|
162 | 162 | "currency": "EUR", |
163 | 163 | "merchant_code": "MH4H92C7", |
164 | 164 | "description": "Purchase", |
165 | | - "id": "2b79757a-de87-4a2e-90e4-b17c947c730d", |
166 | | - "status": "PAID", |
167 | | - "date": "2020-02-29T10:56:56+00:00", |
168 | | - "merchant_name": "John Doe LTD", |
| 165 | + "valid_until": "2020-02-29T10:56:56+00:00", |
169 | 166 | "redirect_url": "https://sumup.com" |
170 | 167 | } |
171 | 168 | }, |
|
613 | 610 | "expiry_year": "2023", |
614 | 611 | "expiry_month": "01", |
615 | 612 | "cvv": "123", |
616 | | - "zip_code": "12345", |
617 | | - "last_4_digits": "3456" |
| 613 | + "zip_code": "12345" |
618 | 614 | } |
619 | 615 | } |
620 | 616 | }, |
|
6157 | 6153 | "minLength": 5, |
6158 | 6154 | "writeOnly": true |
6159 | 6155 | }, |
6160 | | - "last_4_digits": { |
6161 | | - "description": "Last 4 digits of the payment card number.", |
6162 | | - "type": "string", |
6163 | | - "example": "3456", |
6164 | | - "maxLength": 4, |
6165 | | - "minLength": 4, |
6166 | | - "readOnly": true |
6167 | | - }, |
6168 | 6156 | "type": { |
6169 | 6157 | "$ref": "#/components/schemas/CardType" |
6170 | 6158 | } |
|
6175 | 6163 | "expiry_month", |
6176 | 6164 | "expiry_year", |
6177 | 6165 | "cvv", |
6178 | | - "last_4_digits", |
6179 | 6166 | "type" |
6180 | 6167 | ], |
6181 | 6168 | "title": "Card" |
|
6388 | 6375 | "SETUP_RECURRING_PAYMENT" |
6389 | 6376 | ] |
6390 | 6377 | }, |
6391 | | - "id": { |
6392 | | - "description": "Unique ID of the checkout resource.", |
6393 | | - "type": "string", |
6394 | | - "readOnly": true |
6395 | | - }, |
6396 | | - "status": { |
6397 | | - "description": "Current status of the checkout.", |
6398 | | - "type": "string", |
6399 | | - "enum": [ |
6400 | | - "PENDING", |
6401 | | - "FAILED", |
6402 | | - "PAID" |
6403 | | - ], |
6404 | | - "readOnly": true |
6405 | | - }, |
6406 | | - "date": { |
6407 | | - "description": "Date and time of the creation of the payment checkout. Response format expressed according to [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) code.", |
6408 | | - "type": "string", |
6409 | | - "format": "date-time", |
6410 | | - "example": "2020-02-29T10:56:56+00:00", |
6411 | | - "readOnly": true |
6412 | | - }, |
6413 | 6378 | "valid_until": { |
6414 | 6379 | "description": "Date and time of the checkout expiration before which the client application needs to send a processing request. If no value is present, the checkout does not have an expiration time.", |
6415 | 6380 | "type": "string", |
6416 | 6381 | "format": "date-time", |
6417 | 6382 | "example": "2020-02-29T10:56:56+00:00", |
6418 | 6383 | "nullable": true |
6419 | 6384 | }, |
6420 | | - "transactions": { |
6421 | | - "description": "List of transactions related to the payment.", |
6422 | | - "type": "array", |
6423 | | - "items": { |
6424 | | - "allOf": [ |
6425 | | - { |
6426 | | - "$ref": "#/components/schemas/TransactionBase" |
6427 | | - }, |
6428 | | - { |
6429 | | - "$ref": "#/components/schemas/TransactionCheckoutInfo" |
6430 | | - } |
6431 | | - ] |
6432 | | - }, |
6433 | | - "readOnly": true, |
6434 | | - "uniqueItems": true |
6435 | | - }, |
6436 | 6385 | "redirect_url": { |
6437 | 6386 | "description": "__Required__ for [APMs](https://developer.sumup.com/online-payments/apm/introduction) and __recommended__ for card payments. Refers to a url where the end user is redirected once the payment processing completes. If not specified, the [Payment Widget](https://developer.sumup.com/online-payments/tools/card-widget) renders [3DS challenge](https://developer.sumup.com/online-payments/features/3ds) within an iframe instead of performing a full-page redirect.", |
6438 | 6387 | "type": "string", |
|
10275 | 10224 | "description": "Details of the payment card that is saved as a payment instrument.", |
10276 | 10225 | "type": "object", |
10277 | 10226 | "properties": { |
10278 | | - "token": { |
10279 | | - "description": "Unique token identifying the saved payment card for a customer.", |
10280 | | - "type": "string", |
10281 | | - "readOnly": true |
10282 | | - }, |
10283 | | - "active": { |
10284 | | - "description": "Indicates whether the payment instrument is active and can be used for payments. To deactivate it, send a `DELETE` request to the resource endpoint.", |
10285 | | - "type": "boolean", |
10286 | | - "default": true, |
10287 | | - "readOnly": true |
10288 | | - }, |
10289 | 10227 | "type": { |
10290 | 10228 | "description": "Type of the payment instrument.", |
10291 | 10229 | "type": "string", |
|
10298 | 10236 | } |
10299 | 10237 | }, |
10300 | 10238 | "required": [ |
10301 | | - "token", |
10302 | | - "active", |
10303 | 10239 | "type", |
10304 | 10240 | "card" |
10305 | 10241 | ], |
|
10521 | 10457 | "currency": "EUR", |
10522 | 10458 | "merchant_code": "MH4H92C7", |
10523 | 10459 | "description": "Purchase", |
10524 | | - "id": "2b79757a-de87-4a2e-90e4-b17c947c730d", |
10525 | | - "status": "PAID", |
10526 | | - "date": "2020-02-29T10:56:56+00:00", |
10527 | | - "merchant_name": "John Doe LTD", |
| 10460 | + "valid_until": "2020-02-29T10:56:56+00:00", |
10528 | 10461 | "redirect_url": "https://sumup.com" |
10529 | 10462 | } |
10530 | 10463 | }, |
|
10581 | 10514 | "expiry_year": "2023", |
10582 | 10515 | "expiry_month": "01", |
10583 | 10516 | "cvv": "123", |
10584 | | - "zip_code": "12345", |
10585 | | - "last_4_digits": "3456" |
| 10517 | + "zip_code": "12345" |
10586 | 10518 | } |
10587 | 10519 | } |
10588 | 10520 | }, |
|
0 commit comments