|
382 | 382 | "$ref": "#/components/schemas/TransactionId" |
383 | 383 | }, |
384 | 384 | "status": { |
385 | | - "$ref": "#/components/schemas/Status" |
| 385 | + "$ref": "#/components/schemas/TransactionStatus" |
386 | 386 | }, |
387 | 387 | "resultCode": { |
388 | 388 | "type": "string", |
|
410 | 410 | "example": "2004-02-12T15:19:21+00:00" |
411 | 411 | }, |
412 | 412 | "status": { |
413 | | - "$ref": "#/components/schemas/Status" |
| 413 | + "$ref": "#/components/schemas/TransactionStatus" |
414 | 414 | } |
415 | 415 | } |
416 | 416 | } |
|
490 | 490 | "$ref": "#/components/schemas/OrderRef" |
491 | 491 | }, |
492 | 492 | "status": { |
493 | | - "$ref": "#/components/schemas/Status" |
| 493 | + "$ref": "#/components/schemas/TransactionStatus" |
494 | 494 | }, |
495 | 495 | "transactionId": { |
496 | 496 | "$ref": "#/components/schemas/TransactionId" |
|
638 | 638 | } |
639 | 639 | } |
640 | 640 | }, |
641 | | - "/cardcancel": {}, |
642 | | - "/cardquery": {}, |
| 641 | + "/cardquery": { |
| 642 | + "post": { |
| 643 | + "tags": [ |
| 644 | + "Card" |
| 645 | + ], |
| 646 | + "summary": "Query a saved card", |
| 647 | + "description": "Get the info about a saved bankcard", |
| 648 | + "operationId": "query", |
| 649 | + "parameters": [ |
| 650 | + { |
| 651 | + "$ref": "#/components/parameters/Signature" |
| 652 | + } |
| 653 | + ], |
| 654 | + "requestBody": { |
| 655 | + "description": "The card object you would query.", |
| 656 | + "required": true, |
| 657 | + "content": { |
| 658 | + "application/json": { |
| 659 | + "schema": { |
| 660 | + "$ref": "#/components/schemas/CardQuery" |
| 661 | + } |
| 662 | + } |
| 663 | + } |
| 664 | + }, |
| 665 | + "responses": { |
| 666 | + "200": { |
| 667 | + "description": "Success response", |
| 668 | + "headers": { |
| 669 | + "Signature": { |
| 670 | + "$ref": "#/components/headers/Signature" |
| 671 | + } |
| 672 | + }, |
| 673 | + "content": { |
| 674 | + "application/json": { |
| 675 | + "schema": { |
| 676 | + "properties": { |
| 677 | + "salt": { |
| 678 | + "type": "string", |
| 679 | + "example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl" |
| 680 | + }, |
| 681 | + "merchant": { |
| 682 | + "type": "string", |
| 683 | + "example": "PUBLICTESTHUF" |
| 684 | + }, |
| 685 | + "cardId": { |
| 686 | + "$ref": "#/components/schemas/TransactionId" |
| 687 | + }, |
| 688 | + "status": { |
| 689 | + "$ref": "#/components/schemas/CardStatus" |
| 690 | + }, |
| 691 | + "expiry": { |
| 692 | + "type": "string", |
| 693 | + "description": "The ISO 8601 format of the card expiry date.", |
| 694 | + "example": "2004-02-12T15:19:21+00:00" |
| 695 | + }, |
| 696 | + "history": { |
| 697 | + "type": "array", |
| 698 | + "items": { |
| 699 | + "orerRef": { |
| 700 | + "$ref": "#/components/schemas/OrderRef" |
| 701 | + }, |
| 702 | + "transactionId": { |
| 703 | + "$ref": "#/components/schemas/TansactionId" |
| 704 | + }, |
| 705 | + "status": { |
| 706 | + "$ref": "#/components/schemas/TransactionStatus" |
| 707 | + }, |
| 708 | + "paymentDate": { |
| 709 | + "type": "string", |
| 710 | + "description": "The ISO 8601 format of the payment date.", |
| 711 | + "example": "2004-02-12T15:19:21+00:00" |
| 712 | + }, |
| 713 | + "finishDate": { |
| 714 | + "type": "string", |
| 715 | + "description": "The ISO 8601 format of the finish date.", |
| 716 | + "example": "2004-02-12T15:19:21+00:00" |
| 717 | + } |
| 718 | + } |
| 719 | + } |
| 720 | + } |
| 721 | + } |
| 722 | + } |
| 723 | + } |
| 724 | + } |
| 725 | + } |
| 726 | + } |
| 727 | + }, |
| 728 | + "/cardcancel": { |
| 729 | + "post": { |
| 730 | + "tags": [ |
| 731 | + "Card" |
| 732 | + ], |
| 733 | + "summary": "Cancel a saved card", |
| 734 | + "description": "Cancel a saved bankcard", |
| 735 | + "operationId": "cancel", |
| 736 | + "parameters": [ |
| 737 | + { |
| 738 | + "$ref": "#/components/parameters/Signature" |
| 739 | + } |
| 740 | + ], |
| 741 | + "requestBody": { |
| 742 | + "description": "The card object you would cancel.", |
| 743 | + "required": true, |
| 744 | + "content": { |
| 745 | + "application/json": { |
| 746 | + "schema": { |
| 747 | + "$ref": "#/components/schemas/CardCancel" |
| 748 | + } |
| 749 | + } |
| 750 | + } |
| 751 | + }, |
| 752 | + "responses": { |
| 753 | + "200": { |
| 754 | + "description": "Success response", |
| 755 | + "headers": { |
| 756 | + "Signature": { |
| 757 | + "$ref": "#/components/headers/Signature" |
| 758 | + } |
| 759 | + }, |
| 760 | + "content": { |
| 761 | + "application/json": { |
| 762 | + "schema": { |
| 763 | + "properties": { |
| 764 | + "salt": { |
| 765 | + "type": "string", |
| 766 | + "example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl" |
| 767 | + }, |
| 768 | + "merchant": { |
| 769 | + "type": "string", |
| 770 | + "example": "PUBLICTESTHUF" |
| 771 | + }, |
| 772 | + "cardId": { |
| 773 | + "$ref": "#/components/schemas/TransactionId" |
| 774 | + }, |
| 775 | + "status": { |
| 776 | + "$ref": "#/components/schemas/CardStatus" |
| 777 | + }, |
| 778 | + "expiry": { |
| 779 | + "type": "string", |
| 780 | + "description": "The ISO 8601 format of the card expiry date.", |
| 781 | + "example": "2004-02-12T15:19:21+00:00" |
| 782 | + } |
| 783 | + } |
| 784 | + } |
| 785 | + } |
| 786 | + } |
| 787 | + } |
| 788 | + } |
| 789 | + } |
| 790 | + }, |
| 791 | + "/tokenquery": {}, |
643 | 792 | "/tokencancel": {}, |
644 | 793 | "/starteam": {}, |
645 | 794 | "/startapplepay": {}, |
|
900 | 1049 | "CARD", "EAM", "WIRE" |
901 | 1050 | ] |
902 | 1051 | }, |
903 | | - "Status": { |
| 1052 | + "TransactionStatus": { |
904 | 1053 | "type": "string", |
905 | 1054 | "enum": [ |
906 | 1055 | "INIT", "TIMEOUT", "CANCELLED", "NOTAUTHORIZED", "INPAYMENT", "INFRAUD", "AUTHORIZED", "REVERSED", "FINISHED" |
|
1186 | 1335 | "TransactionType": { |
1187 | 1336 | "type": "string", |
1188 | 1337 | "enum": ["CIT", "MIT"] |
| 1338 | + }, |
| 1339 | + "CardStatus": { |
| 1340 | + "type": "string", |
| 1341 | + "enum": ["ACTIVE", "DISABLED"] |
| 1342 | + }, |
| 1343 | + "CardQuery": { |
| 1344 | + "type": "object", |
| 1345 | + "required": [ |
| 1346 | + "cardId" |
| 1347 | + ], |
| 1348 | + "properties": { |
| 1349 | + "cardId": { |
| 1350 | + "$ref": "#/components/schemas/TransactionId" |
| 1351 | + }, |
| 1352 | + "history": { |
| 1353 | + "type": "boolean", |
| 1354 | + "default": false |
| 1355 | + } |
| 1356 | + } |
| 1357 | + }, |
| 1358 | + "CardCancel": { |
| 1359 | + "type": "object", |
| 1360 | + "required": [ |
| 1361 | + "cardId" |
| 1362 | + ], |
| 1363 | + "properties": { |
| 1364 | + "cardId": { |
| 1365 | + "$ref": "#/components/schemas/TransactionId" |
| 1366 | + } |
| 1367 | + } |
1189 | 1368 | } |
1190 | 1369 | } |
1191 | 1370 | } |
|
0 commit comments