mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(revert): populate payment method details in payments response (#5785)
This commit is contained in:
@ -1436,55 +1436,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": [
|
||||
@ -2063,31 +2014,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": [
|
||||
@ -2149,35 +2075,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": [
|
||||
{
|
||||
@ -2194,54 +2091,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": {
|
||||
@ -2449,13 +2298,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"BankHolderType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"personal",
|
||||
"business"
|
||||
]
|
||||
},
|
||||
"BankNames": {
|
||||
"type": "string",
|
||||
"description": "Name of banks supported by Hyperswitch",
|
||||
@ -2607,31 +2449,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": [
|
||||
@ -3082,201 +2899,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": [
|
||||
{
|
||||
@ -3656,48 +3278,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": [
|
||||
@ -4796,19 +4376,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"
|
||||
},
|
||||
@ -7169,32 +6736,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": [
|
||||
{
|
||||
@ -7238,42 +6779,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"
|
||||
},
|
||||
@ -8117,17 +7622,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"LocalBankTransferAdditionalData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"bank_code": {
|
||||
"type": "string",
|
||||
"description": "Partially masked bank code",
|
||||
"example": "**** OA2312",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"MandateAmountData": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -11313,7 +10807,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"bank_transfer": {
|
||||
"$ref": "#/components/schemas/BankTransferAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11346,7 +10840,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"bank_redirect": {
|
||||
"$ref": "#/components/schemas/BankRedirectAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11357,7 +10851,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"crypto": {
|
||||
"$ref": "#/components/schemas/CryptoData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11368,7 +10862,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"bank_debit": {
|
||||
"$ref": "#/components/schemas/BankDebitAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11401,7 +10895,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"real_time_payment": {
|
||||
"$ref": "#/components/schemas/RealTimePaymentData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11412,7 +10906,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"upi": {
|
||||
"$ref": "#/components/schemas/UpiAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11423,7 +10917,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"voucher": {
|
||||
"$ref": "#/components/schemas/VoucherData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11434,7 +10928,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"gift_card": {
|
||||
"$ref": "#/components/schemas/GiftCardAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11445,7 +10939,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"card_redirect": {
|
||||
"$ref": "#/components/schemas/CardRedirectData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11456,7 +10950,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"card_token": {
|
||||
"$ref": "#/components/schemas/CardTokenAdditionalData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11467,7 +10961,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"open_banking": {
|
||||
"$ref": "#/components/schemas/OpenBankingData"
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -15887,29 +15381,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": [
|
||||
@ -17261,25 +16732,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": [
|
||||
@ -17906,42 +17358,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