mirror of
https://github.com/juspay/hyperswitch.git
synced 2026-03-13 09:02:06 +08:00
feat(router): Add field type for gift card number and CVC (v2) (#10433)
This commit is contained in:
@@ -18316,6 +18316,12 @@
|
||||
"user_card_number"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"user_gift_card_number"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -18334,6 +18340,12 @@
|
||||
"user_card_cvc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"user_gift_card_pin"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
||||
@@ -11965,6 +11965,12 @@
|
||||
"user_card_number"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"user_gift_card_number"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -11983,6 +11989,12 @@
|
||||
"user_card_cvc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"user_gift_card_pin"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
||||
@@ -2332,8 +2332,8 @@ non_mandate = []
|
||||
# Payment method type: Givex
|
||||
[required_fields.gift_card.givex.fields.Adyen]
|
||||
common = [
|
||||
{ required_field = "payment_method_data.gift_card.givex.number", display_name = "gift_card_number", field_type = "user_card_number" },
|
||||
{ required_field = "payment_method_data.gift_card.givex.cvc", display_name = "gift_card_cvc", field_type = "user_card_cvc" }
|
||||
{ required_field = "payment_method_data.gift_card.givex.number", display_name = "gift_card_number", field_type = "user_gift_card_number" },
|
||||
{ required_field = "payment_method_data.gift_card.givex.cvc", display_name = "gift_card_cvc", field_type = "user_gift_card_pin" }
|
||||
]
|
||||
mandate = []
|
||||
non_mandate = []
|
||||
|
||||
@@ -253,9 +253,11 @@ pub struct UnresolvedResponseReason {
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum FieldType {
|
||||
UserCardNumber,
|
||||
UserGiftCardNumber,
|
||||
UserCardExpiryMonth,
|
||||
UserCardExpiryYear,
|
||||
UserCardCvc,
|
||||
UserGiftCardPin,
|
||||
UserCardNetwork,
|
||||
UserFullName,
|
||||
UserEmailAddress,
|
||||
|
||||
Reference in New Issue
Block a user