refactor: Pass country and currency as json format in MCA (#656)

This commit is contained in:
Manoj Ghorela
2023-02-26 18:18:57 +05:30
committed by GitHub
parent 12f25f057d
commit 301736fc25
4 changed files with 62 additions and 93 deletions

View File

@ -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>,