mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix(connector): add field types for bank debits (#5908)
Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -7190,6 +7190,12 @@
|
|||||||
"user_bank"
|
"user_bank"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"user_bank_account_number"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|||||||
@ -10846,6 +10846,12 @@
|
|||||||
"user_bank"
|
"user_bank"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"user_bank_account_number"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|||||||
@ -507,6 +507,7 @@ pub enum FieldType {
|
|||||||
UserShippingAddressCountry { options: Vec<String> },
|
UserShippingAddressCountry { options: Vec<String> },
|
||||||
UserBlikCode,
|
UserBlikCode,
|
||||||
UserBank,
|
UserBank,
|
||||||
|
UserBankAccountNumber,
|
||||||
Text,
|
Text,
|
||||||
DropDown { options: Vec<String> },
|
DropDown { options: Vec<String> },
|
||||||
UserDateOfBirth,
|
UserDateOfBirth,
|
||||||
|
|||||||
@ -8773,15 +8773,6 @@ impl Default for super::settings::RequiredFields {
|
|||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
(
|
|
||||||
"billing.phone.country_code".to_string(),
|
|
||||||
RequiredFieldInfo {
|
|
||||||
required_field: "payment_method_data.billing.phone.country_code".to_string(),
|
|
||||||
display_name: "dialing_code".to_string(),
|
|
||||||
field_type: enums::FieldType::UserPhoneNumberCountryCode,
|
|
||||||
value: None,
|
|
||||||
}
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
@ -11069,7 +11060,7 @@ impl Default for super::settings::RequiredFields {
|
|||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
|
required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "bank_account_number".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserBankAccountNumber,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -11111,7 +11102,7 @@ impl Default for super::settings::RequiredFields {
|
|||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
|
required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "bank_account_number".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserBankAccountNumber,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -11159,9 +11150,9 @@ impl Default for super::settings::RequiredFields {
|
|||||||
(
|
(
|
||||||
"payment_method_data.bank_debit.sepa.iban".to_string(),
|
"payment_method_data.bank_debit.sepa.iban".to_string(),
|
||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.bacs.iban".to_string(),
|
required_field: "payment_method_data.bank_debit.sepa.iban".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "iban".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserIban,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -11202,9 +11193,9 @@ impl Default for super::settings::RequiredFields {
|
|||||||
(
|
(
|
||||||
"payment_method_data.bank_debit.sepa.iban".to_string(),
|
"payment_method_data.bank_debit.sepa.iban".to_string(),
|
||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.bacs.iban".to_string(),
|
required_field: "payment_method_data.bank_debit.sepa.iban".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "iban".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserIban,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -11233,12 +11224,21 @@ impl Default for super::settings::RequiredFields {
|
|||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"billing.email".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.email".to_string(),
|
||||||
|
display_name: "email".to_string(),
|
||||||
|
field_type: enums::FieldType::UserEmailAddress,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"payment_method_data.bank_debit.sepa.iban".to_string(),
|
"payment_method_data.bank_debit.sepa.iban".to_string(),
|
||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.bacs.iban".to_string(),
|
required_field: "payment_method_data.bank_debit.sepa.iban".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "iban".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserIban,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -11271,7 +11271,7 @@ impl Default for super::settings::RequiredFields {
|
|||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
|
required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "bank_account_number".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserBankAccountNumber,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -11343,7 +11343,7 @@ impl Default for super::settings::RequiredFields {
|
|||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
|
required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "bank_account_number".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserBankAccountNumber,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -11393,7 +11393,7 @@ impl Default for super::settings::RequiredFields {
|
|||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.becs.account_number".to_string(),
|
required_field: "payment_method_data.bank_debit.becs.account_number".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "bank_account_number".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserBankAccountNumber,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -11445,7 +11445,7 @@ impl Default for super::settings::RequiredFields {
|
|||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
|
required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
|
||||||
display_name: "bank_account_number".to_string(),
|
display_name: "bank_account_number".to_string(),
|
||||||
field_type: enums::FieldType::Text,
|
field_type: enums::FieldType::UserBankAccountNumber,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user