Skip to content

Commit

Permalink
feat(core): add Mobile Payment (Direct Carrier Billing) as a payment …
Browse files Browse the repository at this point in the history
…method (#6196)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
  • Loading branch information
Sakilmostak and hyperswitch-bot[bot] authored Nov 13, 2024
1 parent 600cf44 commit d0a041c
Show file tree
Hide file tree
Showing 94 changed files with 1,058 additions and 257 deletions.
2 changes: 1 addition & 1 deletion .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ws2ipdef = "ws2ipdef" # WinSock Extension
ws2tcpip = "ws2tcpip" # WinSock Extension
ZAR = "ZAR" # South African Rand currency code
JOD = "JOD" # Jordan currency code

Payed = "Payed" # Paid status for digital virgo

[default.extend-words]
aci = "aci" # Name of a connector
Expand Down
139 changes: 135 additions & 4 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5826,6 +5826,7 @@
"cybersource",
"datatrans",
"deutschebank",
"digitalvirgo",
"dlocal",
"ebanx",
"fiserv",
Expand Down Expand Up @@ -8076,6 +8077,24 @@
"enum": [
"browser_ip"
]
},
{
"type": "string",
"enum": [
"user_msisdn"
]
},
{
"type": "string",
"enum": [
"user_client_identifier"
]
},
{
"type": "string",
"enum": [
"order_details_product_name"
]
}
],
"description": "Possible field type of required fields in payment_method_data"
Expand Down Expand Up @@ -10528,6 +10547,71 @@
"MobilePayRedirection": {
"type": "object"
},
"MobilePaymentConsent": {
"type": "string",
"enum": [
"consent_required",
"consent_not_required",
"consent_optional"
]
},
"MobilePaymentData": {
"oneOf": [
{
"type": "object",
"required": [
"direct_carrier_billing"
],
"properties": {
"direct_carrier_billing": {
"type": "object",
"required": [
"msisdn"
],
"properties": {
"msisdn": {
"type": "string",
"description": "The phone number of the user",
"example": "1234567890"
},
"client_uid": {
"type": "string",
"description": "Unique user id",
"example": "02iacdYXGI9CnyJdoN8c7",
"nullable": true
}
}
}
}
}
]
},
"MobilePaymentNextStepData": {
"type": "object",
"required": [
"consent_data_required"
],
"properties": {
"consent_data_required": {
"$ref": "#/components/schemas/MobilePaymentConsent"
}
}
},
"MobilePaymentResponse": {
"allOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/MobilePaymentData"
}
],
"nullable": true
},
{
"type": "object"
}
]
},
"MomoRedirection": {
"type": "object"
},
Expand Down Expand Up @@ -10828,6 +10912,25 @@
]
}
}
},
{
"type": "object",
"description": "Contains consent to collect otp for mobile payment",
"required": [
"consent_data_required",
"type"
],
"properties": {
"consent_data_required": {
"$ref": "#/components/schemas/MobilePaymentConsent"
},
"type": {
"type": "string",
"enum": [
"collect_otp"
]
}
}
}
],
"discriminator": {
Expand All @@ -10842,7 +10945,8 @@
"invoke_sdk_client",
"trigger_api",
"display_bank_transfer_information",
"display_wait_screen"
"display_wait_screen",
"collect_otp"
]
},
"NoThirdPartySdkSessionResponse": {
Expand Down Expand Up @@ -11844,7 +11948,8 @@
"one_click",
"link_wallet",
"invoke_payment_app",
"display_wait_screen"
"display_wait_screen",
"collect_otp"
]
},
"PaymentLinkConfig": {
Expand Down Expand Up @@ -12136,7 +12241,8 @@
"upi",
"voucher",
"gift_card",
"open_banking"
"open_banking",
"mobile_payment"
]
},
"PaymentMethodCollectLinkRequest": {
Expand Down Expand Up @@ -12543,6 +12649,18 @@
"$ref": "#/components/schemas/OpenBankingData"
}
}
},
{
"type": "object",
"title": "MobilePayment",
"required": [
"mobile_payment"
],
"properties": {
"mobile_payment": {
"$ref": "#/components/schemas/MobilePaymentData"
}
}
}
]
},
Expand Down Expand Up @@ -12749,6 +12867,17 @@
"$ref": "#/components/schemas/OpenBankingResponse"
}
}
},
{
"type": "object",
"required": [
"mobile_payment"
],
"properties": {
"mobile_payment": {
"$ref": "#/components/schemas/MobilePaymentResponse"
}
}
}
]
},
Expand Down Expand Up @@ -13118,7 +13247,8 @@
"pay_easy",
"local_bank_transfer",
"mifinity",
"open_banking_pis"
"open_banking_pis",
"direct_carrier_billing"
]
},
"PaymentMethodUpdate": {
Expand Down Expand Up @@ -17921,6 +18051,7 @@
"cybersource",
"datatrans",
"deutschebank",
"digitalvirgo",
"dlocal",
"ebanx",
"fiserv",
Expand Down
Loading

0 comments on commit d0a041c

Please sign in to comment.