Skip to content

Commit

Permalink
refactor(payment_methods): Add new field_type UserBsbNumber, UserBank…
Browse files Browse the repository at this point in the history
…SortCode and UserBankRoutingNumber for payment_connector_required_fields (#6758)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
  • Loading branch information
swangi-kumari and hyperswitch-bot[bot] authored Dec 10, 2024
1 parent 380a0a9 commit 0935fac
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 6 deletions.
18 changes: 18 additions & 0 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8583,6 +8583,24 @@
"user_iban"
]
},
{
"type": "string",
"enum": [
"user_bsb_number"
]
},
{
"type": "string",
"enum": [
"user_bank_sort_code"
]
},
{
"type": "string",
"enum": [
"user_bank_routing_number"
]
},
{
"type": "string",
"enum": [
Expand Down
18 changes: 18 additions & 0 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10925,6 +10925,24 @@
"user_iban"
]
},
{
"type": "string",
"enum": [
"user_bsb_number"
]
},
{
"type": "string",
"enum": [
"user_bank_sort_code"
]
},
{
"type": "string",
"enum": [
"user_bank_routing_number"
]
},
{
"type": "string",
"enum": [
Expand Down
3 changes: 3 additions & 0 deletions crates/api_models/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ pub enum FieldType {
UserCpf,
UserCnpj,
UserIban,
UserBsbNumber,
UserBankSortCode,
UserBankRoutingNumber,
UserMsisdn,
UserClientIdentifier,
OrderDetailsProductName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11634,7 +11634,7 @@ impl Default for settings::RequiredFields {
RequiredFieldInfo {
required_field: "payment_method_data.bank_debit.ach_bank_debit.routing_number".to_string(),
display_name: "bank_routing_number".to_string(),
field_type: enums::FieldType::Text,
field_type: enums::FieldType::UserBankRoutingNumber,
value: None,
}
)
Expand Down Expand Up @@ -11676,7 +11676,7 @@ impl Default for settings::RequiredFields {
RequiredFieldInfo {
required_field: "payment_method_data.bank_debit.ach_bank_debit.routing_number".to_string(),
display_name: "bank_routing_number".to_string(),
field_type: enums::FieldType::Text,
field_type: enums::FieldType::UserBankRoutingNumber,
value: None,
}
)
Expand Down Expand Up @@ -11845,7 +11845,7 @@ impl Default for settings::RequiredFields {
RequiredFieldInfo {
required_field: "payment_method_data.bank_debit.bacs_bank_debit.sort_code".to_string(),
display_name: "bank_sort_code".to_string(),
field_type: enums::FieldType::Text,
field_type: enums::FieldType::UserBankSortCode,
value: None,
}
),
Expand Down Expand Up @@ -11917,7 +11917,7 @@ impl Default for settings::RequiredFields {
RequiredFieldInfo {
required_field: "payment_method_data.bank_debit.bacs_bank_debit.sort_code".to_string(),
display_name: "bank_sort_code".to_string(),
field_type: enums::FieldType::Text,
field_type: enums::FieldType::UserBankSortCode,
value: None,
}
)
Expand Down Expand Up @@ -11967,7 +11967,7 @@ impl Default for settings::RequiredFields {
RequiredFieldInfo {
required_field: "payment_method_data.bank_debit.becs_bank_debit.bsb_number".to_string(),
display_name: "bsb_number".to_string(),
field_type: enums::FieldType::Text,
field_type: enums::FieldType::UserBsbNumber,
value: None,
}
),
Expand Down Expand Up @@ -12019,7 +12019,7 @@ impl Default for settings::RequiredFields {
RequiredFieldInfo {
required_field: "payment_method_data.bank_debit.becs_bank_debit.sort_code".to_string(),
display_name: "bank_sort_code".to_string(),
field_type: enums::FieldType::Text,
field_type: enums::FieldType::UserBankSortCode,
value: None,
}
)
Expand Down

0 comments on commit 0935fac

Please sign in to comment.