|
67 | 67 | "example": "PUBLICTESTHUF" |
68 | 68 | }, |
69 | 69 | "orderRef": { |
70 | | - "type": "string", |
71 | | - "example": "101010515680292482600" |
| 70 | + "$ref": "#/components/schemas/OrderRef" |
72 | 71 | }, |
73 | 72 | "currency": { |
74 | 73 | "$ref": "#/components/schemas/Currency" |
75 | 74 | }, |
76 | 75 | "transactionId": { |
77 | | - "type": "number", |
78 | | - "example": "99844942" |
| 76 | + "$ref": "#/components/schemas/TransactionId" |
79 | 77 | }, |
80 | 78 | "timeout": { |
81 | 79 | "type": "string", |
|
106 | 104 | } |
107 | 105 | } |
108 | 106 | } |
| 107 | + }, |
| 108 | + "/finish": { |
| 109 | + "post": { |
| 110 | + "tags": [ |
| 111 | + "Transaction" |
| 112 | + ], |
| 113 | + "summary": "Finish a two-step transaction", |
| 114 | + "description": "Finish an authorized two-step transaction.", |
| 115 | + "operationId": "finish", |
| 116 | + "parameters": [ |
| 117 | + { |
| 118 | + "$ref": "#/components/parameters/Signature" |
| 119 | + } |
| 120 | + ], |
| 121 | + "requestBody": { |
| 122 | + "description": "The authorized transaction object you would like to finish.", |
| 123 | + "required": true, |
| 124 | + "content": { |
| 125 | + "application/json": { |
| 126 | + "schema": { |
| 127 | + "$ref": "#/components/schemas/AuthorizedTransaction" |
| 128 | + } |
| 129 | + } |
| 130 | + } |
| 131 | + }, |
| 132 | + "responses": { |
| 133 | + "200": { |
| 134 | + "description": "Success response", |
| 135 | + "headers": { |
| 136 | + "Signature": { |
| 137 | + "$ref": "#/components/headers/Signature" |
| 138 | + } |
| 139 | + }, |
| 140 | + "content": { |
| 141 | + "application/json": { |
| 142 | + "schema": { |
| 143 | + "properties": { |
| 144 | + "salt": { |
| 145 | + "type": "string", |
| 146 | + "example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl" |
| 147 | + }, |
| 148 | + "merchant": { |
| 149 | + "type": "string", |
| 150 | + "example": "PUBLICTESTHUF" |
| 151 | + }, |
| 152 | + "orderRef": { |
| 153 | + "$ref": "#/components/schemas/OrderRef" |
| 154 | + }, |
| 155 | + "currency": { |
| 156 | + "$ref": "#/components/schemas/Currency" |
| 157 | + }, |
| 158 | + "transactionId": { |
| 159 | + "$ref": "#/components/schemas/TransactionId" |
| 160 | + }, |
| 161 | + "total": { |
| 162 | + "type": "number", |
| 163 | + "example": 25.0 |
| 164 | + } |
| 165 | + } |
| 166 | + } |
| 167 | + } |
| 168 | + } |
| 169 | + } |
| 170 | + } |
| 171 | + } |
109 | 172 | } |
110 | 173 | }, |
111 | 174 | "components": { |
|
245 | 308 | }, |
246 | 309 | "type": "object" |
247 | 310 | }, |
| 311 | + "AuthorizedTransaction": { |
| 312 | + "type": "object", |
| 313 | + "required": [ |
| 314 | + "originalTotal", |
| 315 | + "approveTotal", |
| 316 | + "currency", |
| 317 | + "orderRef", |
| 318 | + "transactionId" |
| 319 | + ], |
| 320 | + "properties": { |
| 321 | + "originalTotal": { |
| 322 | + "type": "number", |
| 323 | + "default": 0, |
| 324 | + "exclusiveMinimum": true, |
| 325 | + "minimum": 0, |
| 326 | + "example": 25.0 |
| 327 | + }, |
| 328 | + "approveTotal": { |
| 329 | + "type": "number", |
| 330 | + "exclusiveMinimum": false, |
| 331 | + "minimum": 0, |
| 332 | + "example": 25.0 |
| 333 | + }, |
| 334 | + "currency": { |
| 335 | + "$ref": "#/components/schemas/Currency" |
| 336 | + }, |
| 337 | + "orderRef": { |
| 338 | + "$ref": "#/components/schemas/OrderRef" |
| 339 | + }, |
| 340 | + "transactionId": { |
| 341 | + "$ref": "#/components/schemas/TransactionId" |
| 342 | + } |
| 343 | + } |
| 344 | + }, |
| 345 | + "OrderRef": { |
| 346 | + "type": "string", |
| 347 | + "example": "101010515680292482600" |
| 348 | + }, |
| 349 | + "TransactionId": { |
| 350 | + "type": "number", |
| 351 | + "example": "99844942" |
| 352 | + }, |
248 | 353 | "Method": { |
249 | 354 | "type": "string", |
250 | 355 | "enum": [ |
|
0 commit comments