mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(pm_list): add card pm required field info for connectors (#1918)
This commit is contained in:
@ -508,20 +508,25 @@ pub struct UnresolvedResponseReason {
|
|||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
#[strum(serialize_all = "snake_case")]
|
#[strum(serialize_all = "snake_case")]
|
||||||
pub enum FieldType {
|
pub enum FieldType {
|
||||||
|
CardNumber,
|
||||||
|
CardExpiryMonth,
|
||||||
|
CardExpiryYear,
|
||||||
|
CardCVC,
|
||||||
UserFullName,
|
UserFullName,
|
||||||
UserEmailAddress,
|
UserEmailAddress,
|
||||||
UserPhoneNumber,
|
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,
|
UserAddressline1,
|
||||||
UserAddressline2,
|
UserAddressline2,
|
||||||
UserAddressCity,
|
UserAddressCity,
|
||||||
UserAddressPincode,
|
UserAddressPincode,
|
||||||
UserAddressState,
|
UserAddressState,
|
||||||
UserAddressCountry,
|
UserAddressCountry { options: Vec<String> },
|
||||||
UserBlikCode,
|
UserBlikCode,
|
||||||
UserBillingName,
|
|
||||||
UserBank,
|
UserBank,
|
||||||
UserCurrency { options: Vec<String> },
|
|
||||||
Text,
|
Text,
|
||||||
DropDown { options: Vec<String> },
|
DropDown { options: Vec<String> },
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -5003,6 +5003,30 @@
|
|||||||
},
|
},
|
||||||
"FieldType": {
|
"FieldType": {
|
||||||
"oneOf": [
|
"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",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
@ -5021,6 +5045,12 @@
|
|||||||
"user_phone_number"
|
"user_phone_number"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"user_country_code"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"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",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
@ -5073,37 +5131,13 @@
|
|||||||
"user_address_state"
|
"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",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"user_currency"
|
"user_address_country"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"user_currency": {
|
"user_address_country": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"options"
|
"options"
|
||||||
@ -5119,6 +5153,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"user_blik_code"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"user_bank"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|||||||
Reference in New Issue
Block a user