mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(revert): populate payment method details in payments response (#5785)
This commit is contained in:
@ -5066,55 +5066,6 @@
|
||||
"propertyName": "type"
|
||||
}
|
||||
},
|
||||
"AchBankDebitAdditionalData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"account_number",
|
||||
"routing_number"
|
||||
],
|
||||
"properties": {
|
||||
"account_number": {
|
||||
"type": "string",
|
||||
"description": "Partially masked account number for ach bank debit payment",
|
||||
"example": "0001****3456"
|
||||
},
|
||||
"routing_number": {
|
||||
"type": "string",
|
||||
"description": "Partially masked routing number for ach bank debit payment",
|
||||
"example": "110***000"
|
||||
},
|
||||
"bank_account_holder_name": {
|
||||
"type": "string",
|
||||
"description": "Bank account's owner name",
|
||||
"example": "John Doe",
|
||||
"nullable": true
|
||||
},
|
||||
"bank_name": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/BankNames"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"bank_type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/BankType"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"bank_holder_type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/BankHolderType"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"AchBankTransfer": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -5693,31 +5644,6 @@
|
||||
"unresolved"
|
||||
]
|
||||
},
|
||||
"BacsBankDebitAdditionalData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"account_number",
|
||||
"sort_code"
|
||||
],
|
||||
"properties": {
|
||||
"account_number": {
|
||||
"type": "string",
|
||||
"description": "Partially masked account number for Bacs payment method",
|
||||
"example": "0001****3456"
|
||||
},
|
||||
"sort_code": {
|
||||
"type": "string",
|
||||
"description": "Partially masked sort code for Bacs payment method",
|
||||
"example": "108800"
|
||||
},
|
||||
"bank_account_holder_name": {
|
||||
"type": "string",
|
||||
"description": "Bank account's owner name",
|
||||
"example": "John Doe",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"BacsBankTransfer": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -5779,35 +5705,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"BancontactBankRedirectAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"last4": {
|
||||
"type": "string",
|
||||
"description": "Last 4 digits of the card number",
|
||||
"example": "4242",
|
||||
"nullable": true
|
||||
},
|
||||
"card_exp_month": {
|
||||
"type": "string",
|
||||
"description": "The card's expiry month",
|
||||
"example": "12",
|
||||
"nullable": true
|
||||
},
|
||||
"card_exp_year": {
|
||||
"type": "string",
|
||||
"description": "The card's expiry year",
|
||||
"example": "24",
|
||||
"nullable": true
|
||||
},
|
||||
"card_holder_name": {
|
||||
"type": "string",
|
||||
"description": "The card holder's name",
|
||||
"example": "John Test",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"Bank": {
|
||||
"oneOf": [
|
||||
{
|
||||
@ -5824,54 +5721,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankDebitAdditionalData": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"ach"
|
||||
],
|
||||
"properties": {
|
||||
"ach": {
|
||||
"$ref": "#/components/schemas/AchBankDebitAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bacs"
|
||||
],
|
||||
"properties": {
|
||||
"bacs": {
|
||||
"$ref": "#/components/schemas/BacsBankDebitAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"becs"
|
||||
],
|
||||
"properties": {
|
||||
"becs": {
|
||||
"$ref": "#/components/schemas/BecsBankDebitAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"sepa"
|
||||
],
|
||||
"properties": {
|
||||
"sepa": {
|
||||
"$ref": "#/components/schemas/SepaBankDebitAdditionalData"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankDebitBilling": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@ -6079,13 +5928,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankHolderType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"personal",
|
||||
"business"
|
||||
]
|
||||
},
|
||||
"BankNames": {
|
||||
"type": "string",
|
||||
"description": "Name of banks supported by Hyperswitch",
|
||||
@ -6237,31 +6079,6 @@
|
||||
"nationale_nederlanden"
|
||||
]
|
||||
},
|
||||
"BankRedirectAdditionalData": {
|
||||
"allOf": [
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/BankRedirectDetails"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bank_name": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/BankNames"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankRedirectBilling": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -6712,201 +6529,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankRedirectDetails": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"BancontactCard"
|
||||
],
|
||||
"properties": {
|
||||
"BancontactCard": {
|
||||
"$ref": "#/components/schemas/BancontactBankRedirectAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"Blik"
|
||||
],
|
||||
"properties": {
|
||||
"Blik": {
|
||||
"$ref": "#/components/schemas/BlikBankRedirectAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"Giropay"
|
||||
],
|
||||
"properties": {
|
||||
"Giropay": {
|
||||
"$ref": "#/components/schemas/GiropayBankRedirectAdditionalData"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankTransferAdditionalData": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"ach"
|
||||
],
|
||||
"properties": {
|
||||
"ach": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"sepa"
|
||||
],
|
||||
"properties": {
|
||||
"sepa": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bacs"
|
||||
],
|
||||
"properties": {
|
||||
"bacs": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"multibanco"
|
||||
],
|
||||
"properties": {
|
||||
"multibanco": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"permata"
|
||||
],
|
||||
"properties": {
|
||||
"permata": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bca"
|
||||
],
|
||||
"properties": {
|
||||
"bca": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bni_va"
|
||||
],
|
||||
"properties": {
|
||||
"bni_va": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bri_va"
|
||||
],
|
||||
"properties": {
|
||||
"bri_va": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"cimb_va"
|
||||
],
|
||||
"properties": {
|
||||
"cimb_va": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"danamon_va"
|
||||
],
|
||||
"properties": {
|
||||
"danamon_va": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"mandiri_va"
|
||||
],
|
||||
"properties": {
|
||||
"mandiri_va": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"pix"
|
||||
],
|
||||
"properties": {
|
||||
"pix": {
|
||||
"$ref": "#/components/schemas/PixBankTransferAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"pse"
|
||||
],
|
||||
"properties": {
|
||||
"pse": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"local_bank_transfer"
|
||||
],
|
||||
"properties": {
|
||||
"local_bank_transfer": {
|
||||
"$ref": "#/components/schemas/LocalBankTransferAdditionalData"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankTransferData": {
|
||||
"oneOf": [
|
||||
{
|
||||
@ -7286,48 +6908,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"checking",
|
||||
"savings"
|
||||
]
|
||||
},
|
||||
"BecsBankDebitAdditionalData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"account_number",
|
||||
"bsb_number"
|
||||
],
|
||||
"properties": {
|
||||
"account_number": {
|
||||
"type": "string",
|
||||
"description": "Partially masked account number for Becs payment method",
|
||||
"example": "0001****3456"
|
||||
},
|
||||
"bsb_number": {
|
||||
"type": "string",
|
||||
"description": "Bank-State-Branch (bsb) number",
|
||||
"example": "000000"
|
||||
},
|
||||
"bank_account_holder_name": {
|
||||
"type": "string",
|
||||
"description": "Bank account's owner name",
|
||||
"example": "John Doe",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlikBankRedirectAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blik_code": {
|
||||
"type": "string",
|
||||
"example": "3GD9MO",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"BlocklistDataKind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@ -8443,19 +8023,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"CardTokenAdditionalData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"card_holder_name"
|
||||
],
|
||||
"properties": {
|
||||
"card_holder_name": {
|
||||
"type": "string",
|
||||
"description": "The card holder's name",
|
||||
"example": "John Test"
|
||||
}
|
||||
}
|
||||
},
|
||||
"CashappQr": {
|
||||
"type": "object"
|
||||
},
|
||||
@ -10793,32 +10360,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"GiftCardAdditionalData": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"givex"
|
||||
],
|
||||
"properties": {
|
||||
"givex": {
|
||||
"$ref": "#/components/schemas/GivexGiftCardAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"pay_safe_card"
|
||||
],
|
||||
"properties": {
|
||||
"pay_safe_card": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"GiftCardData": {
|
||||
"oneOf": [
|
||||
{
|
||||
@ -10862,42 +10403,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"GiropayBankRedirectAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bic": {
|
||||
"type": "string",
|
||||
"description": "Masked bank account bic code",
|
||||
"nullable": true
|
||||
},
|
||||
"iban": {
|
||||
"type": "string",
|
||||
"description": "Partially masked international bank account number (iban) for SEPA",
|
||||
"nullable": true
|
||||
},
|
||||
"country": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CountryAlpha2"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"GivexGiftCardAdditionalData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"last4"
|
||||
],
|
||||
"properties": {
|
||||
"last4": {
|
||||
"type": "string",
|
||||
"description": "Last 4 digits of the gift card number",
|
||||
"example": "4242"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GoPayRedirection": {
|
||||
"type": "object"
|
||||
},
|
||||
@ -11741,17 +11246,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"LocalBankTransferAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bank_code": {
|
||||
"type": "string",
|
||||
"description": "Partially masked bank code",
|
||||
"example": "**** OA2312",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"MandateAmountData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -15316,7 +14810,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"bank_transfer": {
|
||||
"$ref": "#/components/schemas/BankTransferAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15349,7 +14843,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"bank_redirect": {
|
||||
"$ref": "#/components/schemas/BankRedirectAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15360,7 +14854,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"crypto": {
|
||||
"$ref": "#/components/schemas/CryptoData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15371,7 +14865,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"bank_debit": {
|
||||
"$ref": "#/components/schemas/BankDebitAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15404,7 +14898,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"real_time_payment": {
|
||||
"$ref": "#/components/schemas/RealTimePaymentData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15415,7 +14909,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"upi": {
|
||||
"$ref": "#/components/schemas/UpiAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15426,7 +14920,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"voucher": {
|
||||
"$ref": "#/components/schemas/VoucherData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15437,7 +14931,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"gift_card": {
|
||||
"$ref": "#/components/schemas/GiftCardAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15448,7 +14942,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"card_redirect": {
|
||||
"$ref": "#/components/schemas/CardRedirectData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15459,7 +14953,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"card_token": {
|
||||
"$ref": "#/components/schemas/CardTokenAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -15470,7 +14964,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"open_banking": {
|
||||
"$ref": "#/components/schemas/OpenBankingData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -20330,29 +19824,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PixBankTransferAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pix_key": {
|
||||
"type": "string",
|
||||
"description": "Partially masked unique key for pix transfer",
|
||||
"example": "a1f4102e ****** 6fa48899c1d1",
|
||||
"nullable": true
|
||||
},
|
||||
"cpf": {
|
||||
"type": "string",
|
||||
"description": "Partially masked CPF - CPF is a Brazilian tax identification number",
|
||||
"example": "**** 124689",
|
||||
"nullable": true
|
||||
},
|
||||
"cnpj": {
|
||||
"type": "string",
|
||||
"description": "Partially masked CNPJ - CNPJ is a Brazilian company tax identification number",
|
||||
"example": "**** 417312",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"PollConfigResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -21695,25 +21166,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"SepaBankDebitAdditionalData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"iban"
|
||||
],
|
||||
"properties": {
|
||||
"iban": {
|
||||
"type": "string",
|
||||
"description": "Partially masked international bank account number (iban) for SEPA",
|
||||
"example": "DE8937******013000"
|
||||
},
|
||||
"bank_account_holder_name": {
|
||||
"type": "string",
|
||||
"description": "Bank account's owner name",
|
||||
"example": "John Doe",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"SepaBankTransfer": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -22340,42 +21792,6 @@
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"UpiAdditionalData": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"upi_collect"
|
||||
],
|
||||
"properties": {
|
||||
"upi_collect": {
|
||||
"$ref": "#/components/schemas/UpiCollectAdditionalData"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"upi_intent"
|
||||
],
|
||||
"properties": {
|
||||
"upi_intent": {
|
||||
"$ref": "#/components/schemas/UpiIntentData"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"UpiCollectAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"vpa_id": {
|
||||
"type": "string",
|
||||
"description": "Masked VPA ID",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"UpiCollectData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user