|
917 | 917 | } |
918 | 918 | } |
919 | 919 | }, |
920 | | - "/starteam": {}, |
| 920 | + "/starteam": { |
| 921 | + "post": { |
| 922 | + "tags": [ |
| 923 | + "Transaction" |
| 924 | + ], |
| 925 | + "summary": "Start an EAM transaction", |
| 926 | + "description": "Start an EAM transaction using the given parameters", |
| 927 | + "operationId": "starteam", |
| 928 | + "parameters": [ |
| 929 | + { |
| 930 | + "$ref": "#/components/parameters/Signature" |
| 931 | + } |
| 932 | + ], |
| 933 | + "requestBody": { |
| 934 | + "description": "The EAM transaction object you would like to start.", |
| 935 | + "required": true, |
| 936 | + "content": { |
| 937 | + "application/json": { |
| 938 | + "schema": { |
| 939 | + "$ref": "#/components/schemas/EamTransaciton" |
| 940 | + } |
| 941 | + } |
| 942 | + } |
| 943 | + }, |
| 944 | + "responses": { |
| 945 | + "200": { |
| 946 | + "description": "Success response", |
| 947 | + "headers": { |
| 948 | + "Signature": { |
| 949 | + "$ref": "#/components/headers/Signature" |
| 950 | + } |
| 951 | + }, |
| 952 | + "content": { |
| 953 | + "application/json": { |
| 954 | + "schema": { |
| 955 | + "properties": { |
| 956 | + "salt": { |
| 957 | + "type": "string", |
| 958 | + "example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl" |
| 959 | + }, |
| 960 | + "merchant": { |
| 961 | + "type": "string", |
| 962 | + "example": "PUBLICTESTHUF" |
| 963 | + }, |
| 964 | + "orderRef": { |
| 965 | + "$ref": "#/components/schemas/OrderRef" |
| 966 | + }, |
| 967 | + "currency": { |
| 968 | + "$ref": "#/components/schemas/Currency" |
| 969 | + }, |
| 970 | + "transactionId": { |
| 971 | + "$ref": "#/components/schemas/TransactionId" |
| 972 | + }, |
| 973 | + "timeout": { |
| 974 | + "type": "string", |
| 975 | + "description": "The ISO 8601 format of the timeout date.", |
| 976 | + "example": "2004-02-12T15:19:21+00:00" |
| 977 | + }, |
| 978 | + "total": { |
| 979 | + "type": "number", |
| 980 | + "example": 25.0 |
| 981 | + }, |
| 982 | + "eam": { |
| 983 | + "type": "string", |
| 984 | + "example": "https://sandbox.simplepay.hu/pay/pay/pspHU/8f4oKRec5R1B696xlxbOcj1jRhhABA2pwSLQDPW60zoGSDWzDU", |
| 985 | + "description": "The deeplink." |
| 986 | + }, |
| 987 | + "tokens": { |
| 988 | + "type": "array", |
| 989 | + "items": { |
| 990 | + "$ref": "#/components/schemas/Token" |
| 991 | + }, |
| 992 | + "description": "The recurring payment tokens. Provided only for the initial recurring payment." |
| 993 | + } |
| 994 | + } |
| 995 | + } |
| 996 | + } |
| 997 | + } |
| 998 | + } |
| 999 | + } |
| 1000 | + } |
| 1001 | + }, |
921 | 1002 | "/startapplepay": {}, |
922 | 1003 | "/doapplepay": {} |
923 | 1004 | }, |
|
1515 | 1596 | ], |
1516 | 1597 | "properties": { |
1517 | 1598 | "token": { |
1518 | | - "$ref": "#/components/schemas/TransactionId" |
| 1599 | + "$ref": "#/components/schemas/Token" |
1519 | 1600 | } |
1520 | 1601 | } |
| 1602 | + }, |
| 1603 | + "EamTransaciton": { |
| 1604 | + "allOf": [ |
| 1605 | + { |
| 1606 | + "$ref": "#/components/schemas/Transaction" |
| 1607 | + }, |
| 1608 | + { |
| 1609 | + "type": "object", |
| 1610 | + "required": [ |
| 1611 | + "eamType" |
| 1612 | + ], |
| 1613 | + "properties": { |
| 1614 | + "eamType": { |
| 1615 | + "type": "integer", |
| 1616 | + "enum": [1, 2, 3, 4, 5, 6, 7], |
| 1617 | + "description": "1: QR, 2: Deeplink, 3: NFC, 4: QR+ Deeplink, 5: QR+NFC, 6: Deeplink +NFC, 7: QR+DL+NFC" |
| 1618 | + } |
| 1619 | + } |
| 1620 | + } |
| 1621 | + ] |
1521 | 1622 | } |
1522 | 1623 | } |
1523 | 1624 | } |
|
0 commit comments