|
863 | 863 | ],
|
864 | 864 | "summary": "Profile - Connector Accounts List",
|
865 | 865 | "description": "List Connector Accounts for the profile",
|
866 |
| - "operationId": "List all Merchant Connectors", |
| 866 | + "operationId": "List all Merchant Connectors for Profile", |
867 | 867 | "parameters": [
|
868 | 868 | {
|
869 | 869 | "name": "id",
|
|
2151 | 2151 | ],
|
2152 | 2152 | "summary": "Payments - Session token",
|
2153 | 2153 | "description": "Creates a session object or a session token for wallets like Apple Pay, Google Pay, etc. These tokens are used by Hyperswitch's SDK to initiate these wallets' SDK.",
|
2154 |
| - "operationId": "Create Session tokens for a Payment", |
| 2154 | + "operationId": "Create V2 Session tokens for a Payment", |
2155 | 2155 | "parameters": [
|
2156 | 2156 | {
|
2157 | 2157 | "name": "payment_id",
|
|
2921 | 2921 | ]
|
2922 | 2922 | }
|
2923 | 2923 | },
|
2924 |
| - "/v2/payment-method-session/:id": { |
| 2924 | + "/v2/payment-method-session/{id}": { |
2925 | 2925 | "get": {
|
2926 | 2926 | "tags": [
|
2927 | 2927 | "Payment Method Session"
|
|
3018 | 3018 | ]
|
3019 | 3019 | }
|
3020 | 3020 | },
|
3021 |
| - "/v2/payment-method-session/:id/list-payment-methods": { |
| 3021 | + "/v2/payment-method-session/{id}/list-payment-methods": { |
3022 | 3022 | "get": {
|
3023 | 3023 | "tags": [
|
3024 | 3024 | "Payment Method Session"
|
|
3059 | 3059 | ]
|
3060 | 3060 | }
|
3061 | 3061 | },
|
3062 |
| - "/v2/payment-method-session/:id/update-saved-payment-method": { |
| 3062 | + "/v2/payment-method-session/{id}/update-saved-payment-method": { |
3063 | 3063 | "put": {
|
3064 | 3064 | "tags": [
|
3065 | 3065 | "Payment Method Session"
|
|
3122 | 3122 | ]
|
3123 | 3123 | }
|
3124 | 3124 | },
|
3125 |
| - "/v2/payment-method-session/:id/confirm": { |
| 3125 | + "/v2/payment-method-session/{id}/confirm": { |
3126 | 3126 | "post": {
|
3127 | 3127 | "tags": [
|
3128 | 3128 | "Payment Method Session"
|
|
3450 | 3450 | }
|
3451 | 3451 | ]
|
3452 | 3452 | }
|
| 3453 | + }, |
| 3454 | + "/proxy": { |
| 3455 | + "post": { |
| 3456 | + "tags": [ |
| 3457 | + "Proxy" |
| 3458 | + ], |
| 3459 | + "summary": "Proxy", |
| 3460 | + "description": "Create a proxy request", |
| 3461 | + "operationId": "Proxy Request", |
| 3462 | + "parameters": [ |
| 3463 | + { |
| 3464 | + "name": "X-Profile-Id", |
| 3465 | + "in": "header", |
| 3466 | + "description": "Profile ID for authentication", |
| 3467 | + "required": true, |
| 3468 | + "schema": { |
| 3469 | + "type": "string" |
| 3470 | + } |
| 3471 | + } |
| 3472 | + ], |
| 3473 | + "requestBody": { |
| 3474 | + "content": { |
| 3475 | + "application/json": { |
| 3476 | + "schema": { |
| 3477 | + "$ref": "#/components/schemas/ProxyRequest" |
| 3478 | + }, |
| 3479 | + "examples": { |
| 3480 | + "Create a proxy request": { |
| 3481 | + "value": { |
| 3482 | + "destination_url": "https://api.example.com/payments", |
| 3483 | + "headers": { |
| 3484 | + "Authorization": "Bearer sk_test_example", |
| 3485 | + "Content-Type": "application/json" |
| 3486 | + }, |
| 3487 | + "method": "POST", |
| 3488 | + "request_body": { |
| 3489 | + "amount": 6540, |
| 3490 | + "capture": true, |
| 3491 | + "currency": "USD", |
| 3492 | + "reference": "ORD-5023-4E89", |
| 3493 | + "source": { |
| 3494 | + "billing_address": { |
| 3495 | + "address_line1": "123 High St.", |
| 3496 | + "city": "London", |
| 3497 | + "country": "GB" |
| 3498 | + }, |
| 3499 | + "expiry_month": "{{$card_exp_month}}", |
| 3500 | + "expiry_year": "{{$card_exp_year}}", |
| 3501 | + "number": "{{$card_number}}", |
| 3502 | + "type": "card" |
| 3503 | + } |
| 3504 | + }, |
| 3505 | + "token": "pm_0196ea5a42a67583863d5b1253d62931", |
| 3506 | + "token_type": "PaymentMethodId" |
| 3507 | + } |
| 3508 | + } |
| 3509 | + } |
| 3510 | + } |
| 3511 | + }, |
| 3512 | + "required": true |
| 3513 | + }, |
| 3514 | + "responses": { |
| 3515 | + "200": { |
| 3516 | + "description": "Proxy request", |
| 3517 | + "content": { |
| 3518 | + "application/json": { |
| 3519 | + "schema": { |
| 3520 | + "$ref": "#/components/schemas/ProxyResponse" |
| 3521 | + } |
| 3522 | + } |
| 3523 | + } |
| 3524 | + }, |
| 3525 | + "400": { |
| 3526 | + "description": "Invalid data" |
| 3527 | + } |
| 3528 | + }, |
| 3529 | + "security": [ |
| 3530 | + { |
| 3531 | + "api_key": [] |
| 3532 | + } |
| 3533 | + ] |
| 3534 | + } |
3453 | 3535 | }
|
3454 | 3536 | },
|
3455 | 3537 | "components": {
|
|
7929 | 8011 | "aci",
|
7930 | 8012 | "adyen",
|
7931 | 8013 | "airwallex",
|
| 8014 | + "archipel", |
7932 | 8015 | "authorizedotnet",
|
7933 | 8016 | "bambora",
|
7934 | 8017 | "bamboraapac",
|
|
13184 | 13267 | }
|
13185 | 13268 | }
|
13186 | 13269 | },
|
| 13270 | + "Method": { |
| 13271 | + "type": "string", |
| 13272 | + "enum": [ |
| 13273 | + "GET", |
| 13274 | + "POST", |
| 13275 | + "PUT", |
| 13276 | + "DELETE", |
| 13277 | + "PATCH" |
| 13278 | + ] |
| 13279 | + }, |
13187 | 13280 | "MifinityData": {
|
13188 | 13281 | "type": "object",
|
13189 | 13282 | "required": [
|
|
13804 | 13897 | "trigger_api",
|
13805 | 13898 | "display_bank_transfer_information",
|
13806 | 13899 | "display_wait_screen",
|
13807 |
| - "collect_otp" |
| 13900 | + "collect_otp", |
| 13901 | + "redirect_inside_popup" |
13808 | 13902 | ]
|
13809 | 13903 | },
|
13810 | 13904 | "NoThirdPartySdkSessionResponse": {
|
|
14131 | 14225 | },
|
14132 | 14226 | "OrganizationUpdateRequest": {
|
14133 | 14227 | "type": "object",
|
| 14228 | + "required": [ |
| 14229 | + "platform_merchant_id" |
| 14230 | + ], |
14134 | 14231 | "properties": {
|
14135 | 14232 | "organization_name": {
|
14136 | 14233 | "type": "string",
|
|
14148 | 14245 | "nullable": true
|
14149 | 14246 | },
|
14150 | 14247 | "platform_merchant_id": {
|
14151 |
| - "allOf": [ |
14152 |
| - { |
14153 |
| - "$ref": "#/components/schemas/id_type.MerchantId" |
14154 |
| - } |
14155 |
| - ], |
14156 |
| - "nullable": true |
| 14248 | + "type": "string", |
| 14249 | + "description": "Platform merchant id is unique distiguisher for special merchant in the platform org" |
14157 | 14250 | }
|
14158 | 14251 | },
|
14159 | 14252 | "additionalProperties": false
|
|
18098 | 18191 | "type": "boolean",
|
18099 | 18192 | "description": "Indicates if 3ds challenge is forced",
|
18100 | 18193 | "nullable": true
|
| 18194 | + }, |
| 18195 | + "is_iframe_redirection_enabled": { |
| 18196 | + "type": "boolean", |
| 18197 | + "description": "Indicates if the redirection has to open in the iframe", |
| 18198 | + "nullable": true |
18101 | 18199 | }
|
18102 | 18200 | },
|
18103 | 18201 | "additionalProperties": false
|
|
18269 | 18367 | ],
|
18270 | 18368 | "default": "no_three_ds",
|
18271 | 18369 | "nullable": true
|
| 18370 | + }, |
| 18371 | + "is_iframe_redirection_enabled": { |
| 18372 | + "type": "boolean", |
| 18373 | + "description": "Indicates if the redirection has to open in the iframe", |
| 18374 | + "nullable": true |
18272 | 18375 | }
|
18273 | 18376 | }
|
18274 | 18377 | },
|
|
20071 | 20174 | ],
|
20072 | 20175 | "nullable": true
|
20073 | 20176 | },
|
| 20177 | + "is_iframe_redirection_enabled": { |
| 20178 | + "type": "boolean", |
| 20179 | + "description": "Indicates if the redirection has to open in the iframe", |
| 20180 | + "nullable": true |
| 20181 | + }, |
20074 | 20182 | "is_external_vault_enabled": {
|
20075 | 20183 | "type": "boolean",
|
20076 | 20184 | "description": "Indicates if external vault is enabled or not.",
|
|
20334 | 20442 | ],
|
20335 | 20443 | "nullable": true
|
20336 | 20444 | },
|
| 20445 | + "is_iframe_redirection_enabled": { |
| 20446 | + "type": "boolean", |
| 20447 | + "description": "Indicates if the redirection has to open in the iframe", |
| 20448 | + "nullable": true |
| 20449 | + }, |
20337 | 20450 | "is_external_vault_enabled": {
|
20338 | 20451 | "type": "boolean",
|
20339 | 20452 | "description": "Indicates if external vault is enabled or not.",
|
|
20370 | 20483 | }
|
20371 | 20484 | }
|
20372 | 20485 | },
|
| 20486 | + "ProxyRequest": { |
| 20487 | + "type": "object", |
| 20488 | + "required": [ |
| 20489 | + "request_body", |
| 20490 | + "destination_url", |
| 20491 | + "headers", |
| 20492 | + "method", |
| 20493 | + "token", |
| 20494 | + "token_type" |
| 20495 | + ], |
| 20496 | + "properties": { |
| 20497 | + "request_body": { |
| 20498 | + "description": "The request body that needs to be forwarded" |
| 20499 | + }, |
| 20500 | + "destination_url": { |
| 20501 | + "type": "string", |
| 20502 | + "description": "The destination URL where the request needs to be forwarded", |
| 20503 | + "example": "https://api.example.com/endpoint" |
| 20504 | + }, |
| 20505 | + "headers": { |
| 20506 | + "type": "object", |
| 20507 | + "description": "The headers that need to be forwarded" |
| 20508 | + }, |
| 20509 | + "method": { |
| 20510 | + "$ref": "#/components/schemas/Method" |
| 20511 | + }, |
| 20512 | + "token": { |
| 20513 | + "type": "string", |
| 20514 | + "description": "The vault token that is used to fetch sensitive data from the vault" |
| 20515 | + }, |
| 20516 | + "token_type": { |
| 20517 | + "$ref": "#/components/schemas/TokenType" |
| 20518 | + } |
| 20519 | + } |
| 20520 | + }, |
| 20521 | + "ProxyResponse": { |
| 20522 | + "type": "object", |
| 20523 | + "required": [ |
| 20524 | + "response", |
| 20525 | + "status_code", |
| 20526 | + "response_headers" |
| 20527 | + ], |
| 20528 | + "properties": { |
| 20529 | + "response": { |
| 20530 | + "description": "The response received from the destination" |
| 20531 | + }, |
| 20532 | + "status_code": { |
| 20533 | + "type": "integer", |
| 20534 | + "format": "int32", |
| 20535 | + "description": "The status code of the response", |
| 20536 | + "minimum": 0 |
| 20537 | + }, |
| 20538 | + "response_headers": { |
| 20539 | + "type": "object", |
| 20540 | + "description": "The headers of the response" |
| 20541 | + } |
| 20542 | + } |
| 20543 | + }, |
20373 | 20544 | "PspTokenization": {
|
20374 | 20545 | "type": "object",
|
20375 | 20546 | "description": "The Payment Service Provider Configuration for payment methods that are created using the payment method session",
|
@@ -20614,19 +20785,18 @@
|
20614 | 20785 | },
|
20615 | 20786 | {
|
20616 | 20787 | "type": "object",
|
| 20788 | + "required": [ |
| 20789 | + "refund_id" |
| 20790 | + ], |
20617 | 20791 | "properties": {
|
20618 | 20792 | "payment_id": {
|
20619 | 20793 | "type": "string",
|
20620 | 20794 | "description": "The identifier for the payment",
|
20621 | 20795 | "nullable": true
|
20622 | 20796 | },
|
20623 | 20797 | "refund_id": {
|
20624 |
| - "allOf": [ |
20625 |
| - { |
20626 |
| - "$ref": "#/components/schemas/common_utils.id_type.GlobalRefundId" |
20627 |
| - } |
20628 |
| - ], |
20629 |
| - "nullable": true |
| 20798 | + "type": "string", |
| 20799 | + "description": "The identifier for the refund" |
20630 | 20800 | },
|
20631 | 20801 | "limit": {
|
20632 | 20802 | "type": "integer",
|
|
21415 | 21585 | "aci",
|
21416 | 21586 | "adyen",
|
21417 | 21587 | "airwallex",
|
| 21588 | + "archipel", |
21418 | 21589 | "authorizedotnet",
|
21419 | 21590 | "bankofamerica",
|
21420 | 21591 | "billwerk",
|
|
23093 | 23264 | }
|
23094 | 23265 | ]
|
23095 | 23266 | },
|
| 23267 | + "TokenType": { |
| 23268 | + "type": "string", |
| 23269 | + "enum": [ |
| 23270 | + "tokenization_id", |
| 23271 | + "payment_method_id" |
| 23272 | + ] |
| 23273 | + }, |
23096 | 23274 | "TokenizationType": {
|
23097 | 23275 | "type": "string",
|
23098 | 23276 | "description": "The type of tokenization to use for the payment method",
|
|
0 commit comments