You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SumUp/Checkouts/Checkouts.php
+151-4Lines changed: 151 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -89,9 +89,9 @@ class Checkout
89
89
/**
90
90
* Three-letter [ISO4217](https://en.wikipedia.org/wiki/ISO_4217) code of the currency for the amount. Currently supported currency values are enumerated above.
91
91
*
92
-
* @var \SumUp\Shared\Currency|null
92
+
* @var string|null
93
93
*/
94
-
public ?\SumUp\Shared\Currency$currency = null;
94
+
public ?string$currency = null;
95
95
96
96
/**
97
97
* Unique identifying code of the merchant profile.
@@ -201,9 +201,9 @@ class CheckoutCreateRequest
201
201
/**
202
202
* Three-letter [ISO4217](https://en.wikipedia.org/wiki/ISO_4217) code of the currency for the amount. Currently supported currency values are enumerated above.
203
203
*
204
-
* @var \SumUp\Shared\Currency
204
+
* @var string
205
205
*/
206
-
public\SumUp\Shared\Currency$currency;
206
+
publicstring$currency;
207
207
208
208
/**
209
209
* Unique identifying code of the merchant profile.
@@ -286,6 +286,132 @@ class CheckoutCreateRequest
286
286
287
287
class CheckoutSuccess
288
288
{
289
+
/**
290
+
* Unique ID of the payment checkout specified by the client application when creating the checkout resource.
291
+
*
292
+
* @var string|null
293
+
*/
294
+
public ?string$checkoutReference = null;
295
+
296
+
/**
297
+
* Amount of the payment.
298
+
*
299
+
* @var float|null
300
+
*/
301
+
public ?float$amount = null;
302
+
303
+
/**
304
+
* Three-letter [ISO4217](https://en.wikipedia.org/wiki/ISO_4217) code of the currency for the amount. Currently supported currency values are enumerated above.
305
+
*
306
+
* @var string|null
307
+
*/
308
+
public ?string$currency = null;
309
+
310
+
/**
311
+
* Unique identifying code of the merchant profile.
312
+
*
313
+
* @var string|null
314
+
*/
315
+
public ?string$merchantCode = null;
316
+
317
+
/**
318
+
* Short description of the checkout visible in the SumUp dashboard. The description can contribute to reporting, allowing easier identification of a checkout.
319
+
*
320
+
* @var string|null
321
+
*/
322
+
public ?string$description = null;
323
+
324
+
/**
325
+
* URL to which the SumUp platform sends the processing status of the payment checkout.
326
+
*
327
+
* @var string|null
328
+
*/
329
+
public ?string$returnUrl = null;
330
+
331
+
/**
332
+
* Unique ID of the checkout resource.
333
+
*
334
+
* @var string|null
335
+
*/
336
+
public ?string$id = null;
337
+
338
+
/**
339
+
* Current status of the checkout.
340
+
*
341
+
* @var string|null
342
+
*/
343
+
public ?string$status = null;
344
+
345
+
/**
346
+
* Date and time of the creation of the payment checkout. Response format expressed according to [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) code.
347
+
*
348
+
* @var string|null
349
+
*/
350
+
public ?string$date = null;
351
+
352
+
/**
353
+
* 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.
354
+
*
355
+
* @var string|null
356
+
*/
357
+
public ?string$validUntil = null;
358
+
359
+
/**
360
+
* Unique identification of a customer. If specified, the checkout session and payment instrument are associated with the referenced customer.
361
+
*
362
+
* @var string|null
363
+
*/
364
+
public ?string$customerId = null;
365
+
366
+
/**
367
+
* Created mandate
368
+
*
369
+
* @var \SumUp\Shared\MandateResponse|null
370
+
*/
371
+
public ?\SumUp\Shared\MandateResponse$mandate = null;
372
+
373
+
/**
374
+
* List of transactions related to the payment.
375
+
*
376
+
* @var mixed[]|null
377
+
*/
378
+
public ?array$transactions = null;
379
+
380
+
/**
381
+
* Transaction code of the successful transaction with which the payment for the checkout is completed.
382
+
*
383
+
* @var string|null
384
+
*/
385
+
public ?string$transactionCode = null;
386
+
387
+
/**
388
+
* Transaction ID of the successful transaction with which the payment for the checkout is completed.
389
+
*
390
+
* @var string|null
391
+
*/
392
+
public ?string$transactionId = null;
393
+
394
+
/**
395
+
* Name of the merchant
396
+
*
397
+
* @var string|null
398
+
*/
399
+
public ?string$merchantName = null;
400
+
401
+
/**
402
+
* Refers to a url where the end user is redirected once the payment processing completes.
403
+
*
404
+
* @var string|null
405
+
*/
406
+
public ?string$redirectUrl = null;
407
+
408
+
/**
409
+
* Object containing token information for the specified payment instrument
410
+
*
411
+
* @var array|null
412
+
*/
413
+
public ?array$paymentInstrument = null;
414
+
289
415
}
290
416
291
417
/**
@@ -324,6 +450,27 @@ class DetailsError
324
450
325
451
class ErrorExtended
326
452
{
453
+
/**
454
+
* Short description of the error.
455
+
*
456
+
* @var string|null
457
+
*/
458
+
public ?string$message = null;
459
+
460
+
/**
461
+
* Platform code for the error.
462
+
*
463
+
* @var string|null
464
+
*/
465
+
public ?string$errorCode = null;
466
+
467
+
/**
468
+
* Parameter name (with relative location) to which the error applies. Parameters from embedded resources are displayed using dot notation. For example, `card.name` refers to the `name` parameter embedded in the `card` object.
0 commit comments