mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
refactor(api_models): enhance accepted countries/currencies types (#807)
This commit is contained in:
@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user