mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor: Pass country and currency as json format in MCA (#656)
This commit is contained in:
@ -324,9 +324,8 @@ pub struct ListPaymentMethod {
|
||||
/// 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": "disable_only",
|
||||
"list": ["FR", "DE","IN"]
|
||||
}
|
||||
))]
|
||||
pub accepted_countries: Option<admin::AcceptedCountries>,
|
||||
@ -334,9 +333,8 @@ pub struct ListPaymentMethod {
|
||||
/// 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": "enable_only",
|
||||
"list": ["USD", "EUR"]
|
||||
}
|
||||
))]
|
||||
pub accepted_currencies: Option<admin::AcceptedCurrencies>,
|
||||
|
||||
Reference in New Issue
Block a user