refactor(api_models): enhance accepted countries/currencies types (#807)

This commit is contained in:
ItsMeShashank
2023-03-28 17:01:02 +05:30
committed by GitHub
parent 97b95f0e4d
commit f9ef3135af
4 changed files with 69 additions and 78 deletions

View File

@ -241,9 +241,8 @@ pub struct RequestPaymentMethodTypes {
/// List of currencies accepted or has the processing capabilities of the processor
#[schema(example = json!(
{
"enable_all":false,
"disable_only": ["INR", "CAD", "AED","JPY"],
"enable_only": ["EUR","USD"]
"type": "specific_accepted",
"list": ["USD", "INR"]
}
))]
pub accepted_currencies: Option<admin::AcceptedCurrencies>,
@ -251,9 +250,8 @@ pub struct RequestPaymentMethodTypes {
/// List of Countries accepted or has the processing capabilities of the processor
#[schema(example = json!(
{
"enable_all":false,
"disable_only": ["FR", "DE","IN"],
"enable_only": ["UK","AU"]
"type": "specific_accepted",
"list": ["UK", "AU"]
}
))]
pub accepted_countries: Option<admin::AcceptedCountries>,