feat(pm_list): add card pm required field info for connectors (#1918)

This commit is contained in:
Prasunna Soppa
2023-08-23 14:48:42 +05:30
committed by GitHub
parent abc736bbc1
commit 52e01769d4
3 changed files with 1767 additions and 175 deletions

View File

@ -508,20 +508,25 @@ pub struct UnresolvedResponseReason {
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum FieldType {
CardNumber,
CardExpiryMonth,
CardExpiryYear,
CardCVC,
UserFullName,
UserEmailAddress,
UserPhoneNumber,
UserCountry { options: Vec<String> },
UserCountryCode, //phone number's country code
UserCountry { options: Vec<String> }, //for country inside payment method data ex- bank redirect
UserCurrency { options: Vec<String> },
UserBillingName,
UserAddressline1,
UserAddressline2,
UserAddressCity,
UserAddressPincode,
UserAddressState,
UserAddressCountry,
UserAddressCountry { options: Vec<String> },
UserBlikCode,
UserBillingName,
UserBank,
UserCurrency { options: Vec<String> },
Text,
DropDown { options: Vec<String> },
}

File diff suppressed because it is too large Load Diff

View File

@ -5003,6 +5003,30 @@
},
"FieldType": {
"oneOf": [
{
"type": "string",
"enum": [
"card_number"
]
},
{
"type": "string",
"enum": [
"card_expiry_month"
]
},
{
"type": "string",
"enum": [
"card_expiry_year"
]
},
{
"type": "string",
"enum": [
"card_c_v_c"
]
},
{
"type": "string",
"enum": [
@ -5021,6 +5045,12 @@
"user_phone_number"
]
},
{
"type": "string",
"enum": [
"user_country_code"
]
},
{
"type": "object",
"required": [
@ -5043,6 +5073,34 @@
}
}
},
{
"type": "object",
"required": [
"user_currency"
],
"properties": {
"user_currency": {
"type": "object",
"required": [
"options"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
{
"type": "string",
"enum": [
"user_billing_name"
]
},
{
"type": "string",
"enum": [
@ -5073,37 +5131,13 @@
"user_address_state"
]
},
{
"type": "string",
"enum": [
"user_address_country"
]
},
{
"type": "string",
"enum": [
"user_blik_code"
]
},
{
"type": "string",
"enum": [
"user_billing_name"
]
},
{
"type": "string",
"enum": [
"user_bank"
]
},
{
"type": "object",
"required": [
"user_currency"
"user_address_country"
],
"properties": {
"user_currency": {
"user_address_country": {
"type": "object",
"required": [
"options"
@ -5119,6 +5153,18 @@
}
}
},
{
"type": "string",
"enum": [
"user_blik_code"
]
},
{
"type": "string",
"enum": [
"user_bank"
]
},
{
"type": "string",
"enum": [