|
999 | 999 | } |
1000 | 1000 | } |
1001 | 1001 | }, |
1002 | | - "/startapplepay": {}, |
1003 | | - "/doapplepay": {} |
| 1002 | + "/startapplepay": { |
| 1003 | + "post": { |
| 1004 | + "tags": [ |
| 1005 | + "Transaction" |
| 1006 | + ], |
| 1007 | + "summary": "Start an ApplePay session", |
| 1008 | + "description": "Start an ApplePay session using the given parameters", |
| 1009 | + "operationId": "starteam", |
| 1010 | + "parameters": [ |
| 1011 | + { |
| 1012 | + "$ref": "#/components/parameters/Signature" |
| 1013 | + } |
| 1014 | + ], |
| 1015 | + "requestBody": { |
| 1016 | + "description": "The ApplePay session object you would like to start.", |
| 1017 | + "required": true, |
| 1018 | + "content": { |
| 1019 | + "application/json": { |
| 1020 | + "schema": { |
| 1021 | + "$ref": "#/components/schemas/ApplePaySession" |
| 1022 | + } |
| 1023 | + } |
| 1024 | + } |
| 1025 | + }, |
| 1026 | + "responses": { |
| 1027 | + "200": { |
| 1028 | + "description": "Success response", |
| 1029 | + "headers": { |
| 1030 | + "Signature": { |
| 1031 | + "$ref": "#/components/headers/Signature" |
| 1032 | + } |
| 1033 | + }, |
| 1034 | + "content": { |
| 1035 | + "application/json": { |
| 1036 | + "schema": { |
| 1037 | + "properties": { |
| 1038 | + "salt": { |
| 1039 | + "type": "string", |
| 1040 | + "example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl" |
| 1041 | + }, |
| 1042 | + "merchant": { |
| 1043 | + "type": "string", |
| 1044 | + "example": "PUBLICTESTHUF" |
| 1045 | + }, |
| 1046 | + "transactionId": { |
| 1047 | + "$ref": "#/components/schemas/TransactionId" |
| 1048 | + }, |
| 1049 | + "timeout": { |
| 1050 | + "type": "string", |
| 1051 | + "description": "The ISO 8601 format of the timeout date.", |
| 1052 | + "example": "2004-02-12T15:19:21+00:00" |
| 1053 | + }, |
| 1054 | + "total": { |
| 1055 | + "type": "number", |
| 1056 | + "example": 25.0 |
| 1057 | + }, |
| 1058 | + "applePaySession": { |
| 1059 | + "type": "object", |
| 1060 | + "properties": { |
| 1061 | + "epochTimestamp": { |
| 1062 | + "type": "integer", |
| 1063 | + "example": 1749017418352, |
| 1064 | + "description": "The timestamp of the session start." |
| 1065 | + }, |
| 1066 | + "expiresAt": { |
| 1067 | + "type": "integer", |
| 1068 | + "example": 1749017418352, |
| 1069 | + "description": "The timestamp of the session expiration." |
| 1070 | + }, |
| 1071 | + "merchantSessionIdentifier": { |
| 1072 | + "type": "string", |
| 1073 | + "example": "SSHCE5A2091BEC546FD8FACC2A313A2E8AF_2101F68F6980DFE07DEFE987B1CAF2961766C119C8FDCBB33566B1A97F33C9C3" |
| 1074 | + }, |
| 1075 | + "nonce": { |
| 1076 | + "type": "string", |
| 1077 | + "example": "836a2281" |
| 1078 | + }, |
| 1079 | + "merchantIdentifier": { |
| 1080 | + "type": "string", |
| 1081 | + "example": "D4D7D4CCCD55649F9B1BC1F06432938F62FE991826M4F4CD6829F058F422A26A", |
| 1082 | + "description": "The ApplePay merchant ID." |
| 1083 | + }, |
| 1084 | + "domainName": { |
| 1085 | + "type": "string", |
| 1086 | + "example": "samehost.example.com", |
| 1087 | + "description": "The FQDN." |
| 1088 | + }, |
| 1089 | + "displayName": { |
| 1090 | + "type": "string", |
| 1091 | + "example": "My Webshop" |
| 1092 | + }, |
| 1093 | + "signature": { |
| 1094 | + "type": "string", |
| 1095 | + "example": "308008…………………0000000" |
| 1096 | + }, |
| 1097 | + "operationalAnalyticsIdentifier": { |
| 1098 | + "type": "string", |
| 1099 | + "example": "My Webshop:D4D7D4CCCD55649F4B1BC1F06432938E62FE99182604F4CD6829F058F422A26A" |
| 1100 | + }, |
| 1101 | + "retries": { |
| 1102 | + "type": "integer", |
| 1103 | + "example": 0 |
| 1104 | + }, |
| 1105 | + "pspId": { |
| 1106 | + "type": "string", |
| 1107 | + "example": "2A7CFE1FC43C6DE9FC90CA89E46C067DB94C570AF75A7355CD754BF1B683B6C5" |
| 1108 | + } |
| 1109 | + } |
| 1110 | + } |
| 1111 | + } |
| 1112 | + } |
| 1113 | + } |
| 1114 | + } |
| 1115 | + } |
| 1116 | + } |
| 1117 | + } |
| 1118 | + }, |
| 1119 | + "/doapplepay": { |
| 1120 | + "post": { |
| 1121 | + "tags": [ |
| 1122 | + "Transaction" |
| 1123 | + ], |
| 1124 | + "summary": "Start an ApplePay transaction", |
| 1125 | + "description": "Start an ApplePay transaction using the given parameters", |
| 1126 | + "operationId": "starteam", |
| 1127 | + "parameters": [ |
| 1128 | + { |
| 1129 | + "$ref": "#/components/parameters/Signature" |
| 1130 | + } |
| 1131 | + ], |
| 1132 | + "requestBody": { |
| 1133 | + "description": "The ApplePay transaction object you would like to start.", |
| 1134 | + "required": true, |
| 1135 | + "content": { |
| 1136 | + "application/json": { |
| 1137 | + "schema": { |
| 1138 | + "$ref": "#/components/schemas/ApplePayTransaction" |
| 1139 | + } |
| 1140 | + } |
| 1141 | + } |
| 1142 | + }, |
| 1143 | + "responses": { |
| 1144 | + "200": { |
| 1145 | + "description": "Success response", |
| 1146 | + "headers": { |
| 1147 | + "Signature": { |
| 1148 | + "$ref": "#/components/headers/Signature" |
| 1149 | + } |
| 1150 | + }, |
| 1151 | + "content": { |
| 1152 | + "application/json": { |
| 1153 | + "schema": { |
| 1154 | + "properties": { |
| 1155 | + "salt": { |
| 1156 | + "type": "string", |
| 1157 | + "example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl" |
| 1158 | + }, |
| 1159 | + "merchant": { |
| 1160 | + "type": "string", |
| 1161 | + "example": "PUBLICTESTHUF" |
| 1162 | + }, |
| 1163 | + "orderRef": { |
| 1164 | + "$ref": "#/components/schemas/OrderRef" |
| 1165 | + }, |
| 1166 | + "transactionId": { |
| 1167 | + "$ref": "#/components/schemas/TransactionId" |
| 1168 | + }, |
| 1169 | + "currency": { |
| 1170 | + "$ref": "#/components/schemas/Currency" |
| 1171 | + }, |
| 1172 | + "total": { |
| 1173 | + "type": "number", |
| 1174 | + "example": 25.0 |
| 1175 | + }, |
| 1176 | + "applePayStatus": { |
| 1177 | + "type": "string", |
| 1178 | + "example": "STATUS_SUCCESS" |
| 1179 | + } |
| 1180 | + } |
| 1181 | + } |
| 1182 | + } |
| 1183 | + } |
| 1184 | + } |
| 1185 | + } |
| 1186 | + } |
| 1187 | + } |
1004 | 1188 | }, |
1005 | 1189 | "components": { |
1006 | 1190 | "headers": { |
|
1619 | 1803 | } |
1620 | 1804 | } |
1621 | 1805 | ] |
| 1806 | + }, |
| 1807 | + "ApplePaySession": { |
| 1808 | + "allOf": [ |
| 1809 | + { |
| 1810 | + "$ref": "#/components/schemas/Transaction" |
| 1811 | + }, |
| 1812 | + { |
| 1813 | + "type": "object", |
| 1814 | + "required": [ |
| 1815 | + "domain" |
| 1816 | + ], |
| 1817 | + "properties": { |
| 1818 | + "domain": { |
| 1819 | + "type": "string", |
| 1820 | + "example": "samehost.example.com", |
| 1821 | + "description": "The FQDN registered for ApplePay." |
| 1822 | + } |
| 1823 | + } |
| 1824 | + } |
| 1825 | + ] |
| 1826 | + }, |
| 1827 | + "ApplePayTransaction": { |
| 1828 | + "type": "object", |
| 1829 | + "required": [ |
| 1830 | + "applePayToken" |
| 1831 | + ], |
| 1832 | + "properties": { |
| 1833 | + "transactionId": { |
| 1834 | + "$ref": "#/components/schemas/TransactionId" |
| 1835 | + }, |
| 1836 | + "currecy": { |
| 1837 | + "$ref": "#/components/schemas/Currency" |
| 1838 | + }, |
| 1839 | + "applePayToken": { |
| 1840 | + "type": "string", |
| 1841 | + "example": "eyJwYX…………………J9fQ==", |
| 1842 | + "description": "The base64 encoded value of the applePaySession object in the startapplepay call response." |
| 1843 | + } |
| 1844 | + } |
1622 | 1845 | } |
1623 | 1846 | } |
1624 | 1847 | } |
|
0 commit comments