@munchi_oy/core 1.9.44 → 1.9.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +936 -1833
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +840 -2091
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -1624,61 +1624,7 @@ export interface CardPresentDetailsDto {
|
|
|
1624
1624
|
*/
|
|
1625
1625
|
export interface CardPresentDetailsDtoWallet {
|
|
1626
1626
|
/**
|
|
1627
|
-
*
|
|
1628
|
-
* @type {number}
|
|
1629
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1630
|
-
*/
|
|
1631
|
-
'id': number;
|
|
1632
|
-
/**
|
|
1633
|
-
* Unique code for the wallet
|
|
1634
|
-
* @type {string}
|
|
1635
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1636
|
-
*/
|
|
1637
|
-
'code': string;
|
|
1638
|
-
/**
|
|
1639
|
-
* The ID of the user who owns this wallet
|
|
1640
|
-
* @type {number}
|
|
1641
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1642
|
-
*/
|
|
1643
|
-
'user_id': number;
|
|
1644
|
-
/**
|
|
1645
|
-
* Current balance in the wallet
|
|
1646
|
-
* @type {number}
|
|
1647
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1648
|
-
*/
|
|
1649
|
-
'balance': number;
|
|
1650
|
-
/**
|
|
1651
|
-
* Whether the wallet is locked
|
|
1652
|
-
* @type {boolean}
|
|
1653
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1654
|
-
*/
|
|
1655
|
-
'locked': boolean;
|
|
1656
|
-
/**
|
|
1657
|
-
* Reason for locking the wallet, if applicable
|
|
1658
|
-
* @type {object}
|
|
1659
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1660
|
-
*/
|
|
1661
|
-
'locked_reason': object | null;
|
|
1662
|
-
/**
|
|
1663
|
-
* Timestamp when the wallet was locked, if applicable
|
|
1664
|
-
* @type {object}
|
|
1665
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1666
|
-
*/
|
|
1667
|
-
'locked_at': object | null;
|
|
1668
|
-
/**
|
|
1669
|
-
* Timestamp when the wallet was created
|
|
1670
|
-
* @type {string}
|
|
1671
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1672
|
-
*/
|
|
1673
|
-
'created_at': string;
|
|
1674
|
-
/**
|
|
1675
|
-
* Timestamp when the wallet was last updated
|
|
1676
|
-
* @type {string}
|
|
1677
|
-
* @memberof CardPresentDetailsDtoWallet
|
|
1678
|
-
*/
|
|
1679
|
-
'updated_at': string;
|
|
1680
|
-
/**
|
|
1681
|
-
* Type of wallet (e.g., cash, credit_point)
|
|
1627
|
+
* Wallet type
|
|
1682
1628
|
* @type {string}
|
|
1683
1629
|
* @memberof CardPresentDetailsDtoWallet
|
|
1684
1630
|
*/
|
|
@@ -3526,6 +3472,249 @@ export interface CreateManualSessionDto {
|
|
|
3526
3472
|
* @memberof CreateManualSessionDto
|
|
3527
3473
|
*/
|
|
3528
3474
|
'metadata'?: object;
|
|
3475
|
+
/**
|
|
3476
|
+
*
|
|
3477
|
+
* @type {CreateManualSessionDtoOrder}
|
|
3478
|
+
* @memberof CreateManualSessionDto
|
|
3479
|
+
*/
|
|
3480
|
+
'order': CreateManualSessionDtoOrder;
|
|
3481
|
+
/**
|
|
3482
|
+
* Cash handling config forwarded from the client. When enabled the backend additionally records a cash session.
|
|
3483
|
+
* @type {object}
|
|
3484
|
+
* @memberof CreateManualSessionDto
|
|
3485
|
+
*/
|
|
3486
|
+
'cashConfig'?: object;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
/**
|
|
3491
|
+
* The full POS order (cart) this payment is for. Sent by the client instead of a separate Firestore upsert so the backend writes the order, records the payment and returns the computed order in one round-trip.
|
|
3492
|
+
* @export
|
|
3493
|
+
* @interface CreateManualSessionDtoOrder
|
|
3494
|
+
*/
|
|
3495
|
+
export interface CreateManualSessionDtoOrder {
|
|
3496
|
+
/**
|
|
3497
|
+
*
|
|
3498
|
+
* @type {string}
|
|
3499
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3500
|
+
*/
|
|
3501
|
+
'id': string;
|
|
3502
|
+
/**
|
|
3503
|
+
*
|
|
3504
|
+
* @type {string}
|
|
3505
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3506
|
+
*/
|
|
3507
|
+
'businessId': string;
|
|
3508
|
+
/**
|
|
3509
|
+
*
|
|
3510
|
+
* @type {ProviderEnum}
|
|
3511
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3512
|
+
*/
|
|
3513
|
+
'provider': ProviderEnum;
|
|
3514
|
+
/**
|
|
3515
|
+
*
|
|
3516
|
+
* @type {CurrencyCode}
|
|
3517
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3518
|
+
*/
|
|
3519
|
+
'currency': CurrencyCode;
|
|
3520
|
+
/**
|
|
3521
|
+
*
|
|
3522
|
+
* @type {PosBusinessDto}
|
|
3523
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3524
|
+
*/
|
|
3525
|
+
'business': PosBusinessDto;
|
|
3526
|
+
/**
|
|
3527
|
+
*
|
|
3528
|
+
* @type {string}
|
|
3529
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3530
|
+
*/
|
|
3531
|
+
'createdAt': string;
|
|
3532
|
+
/**
|
|
3533
|
+
*
|
|
3534
|
+
* @type {OrderStatusEnum}
|
|
3535
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3536
|
+
*/
|
|
3537
|
+
'status': OrderStatusEnum;
|
|
3538
|
+
/**
|
|
3539
|
+
*
|
|
3540
|
+
* @type {string}
|
|
3541
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3542
|
+
*/
|
|
3543
|
+
'updatedAt': string;
|
|
3544
|
+
/**
|
|
3545
|
+
*
|
|
3546
|
+
* @type {string}
|
|
3547
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3548
|
+
*/
|
|
3549
|
+
'completedAt'?: string;
|
|
3550
|
+
/**
|
|
3551
|
+
*
|
|
3552
|
+
* @type {string}
|
|
3553
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3554
|
+
*/
|
|
3555
|
+
'orderNumber': string;
|
|
3556
|
+
/**
|
|
3557
|
+
*
|
|
3558
|
+
* @type {CheckoutModelEnum}
|
|
3559
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3560
|
+
*/
|
|
3561
|
+
'checkoutModel': CheckoutModelEnum;
|
|
3562
|
+
/**
|
|
3563
|
+
*
|
|
3564
|
+
* @type {OrderTypePOS}
|
|
3565
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3566
|
+
*/
|
|
3567
|
+
'orderType': OrderTypePOS;
|
|
3568
|
+
/**
|
|
3569
|
+
*
|
|
3570
|
+
* @type {string}
|
|
3571
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3572
|
+
*/
|
|
3573
|
+
'spotNumber': string | null;
|
|
3574
|
+
/**
|
|
3575
|
+
* ID of the floor plan dining table linked to this order
|
|
3576
|
+
* @type {string}
|
|
3577
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3578
|
+
*/
|
|
3579
|
+
'tableId'?: string | null;
|
|
3580
|
+
/**
|
|
3581
|
+
*
|
|
3582
|
+
* @type {string}
|
|
3583
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3584
|
+
*/
|
|
3585
|
+
'comments': string | null;
|
|
3586
|
+
/**
|
|
3587
|
+
*
|
|
3588
|
+
* @type {PosOrderDtoTableService}
|
|
3589
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3590
|
+
*/
|
|
3591
|
+
'tableService'?: PosOrderDtoTableService | null;
|
|
3592
|
+
/**
|
|
3593
|
+
*
|
|
3594
|
+
* @type {PosOrderDtoEqualSplitState}
|
|
3595
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3596
|
+
*/
|
|
3597
|
+
'equalSplitState'?: PosOrderDtoEqualSplitState | null;
|
|
3598
|
+
/**
|
|
3599
|
+
* Id of the staff in shift
|
|
3600
|
+
* @type {string}
|
|
3601
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3602
|
+
*/
|
|
3603
|
+
'staffId': string | null;
|
|
3604
|
+
/**
|
|
3605
|
+
* Id of the shift
|
|
3606
|
+
* @type {string}
|
|
3607
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3608
|
+
*/
|
|
3609
|
+
'shiftId': string | null;
|
|
3610
|
+
/**
|
|
3611
|
+
*
|
|
3612
|
+
* @type {OrderRefundStatus}
|
|
3613
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3614
|
+
*/
|
|
3615
|
+
'orderRefundStatus': OrderRefundStatus;
|
|
3616
|
+
/**
|
|
3617
|
+
*
|
|
3618
|
+
* @type {LocatorType}
|
|
3619
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3620
|
+
*/
|
|
3621
|
+
'locatorType': LocatorType;
|
|
3622
|
+
/**
|
|
3623
|
+
*
|
|
3624
|
+
* @type {PosOrderPriceDto}
|
|
3625
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3626
|
+
*/
|
|
3627
|
+
'basketPrice': PosOrderPriceDto;
|
|
3628
|
+
/**
|
|
3629
|
+
*
|
|
3630
|
+
* @type {Array<PosOrderItemDto>}
|
|
3631
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3632
|
+
*/
|
|
3633
|
+
'items': Array<PosOrderItemDto>;
|
|
3634
|
+
/**
|
|
3635
|
+
*
|
|
3636
|
+
* @type {Array<PosDiscountDto>}
|
|
3637
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3638
|
+
*/
|
|
3639
|
+
'discounts': Array<PosDiscountDto>;
|
|
3640
|
+
/**
|
|
3641
|
+
*
|
|
3642
|
+
* @type {PosCustomerDto}
|
|
3643
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3644
|
+
*/
|
|
3645
|
+
'customer': PosCustomerDto | null;
|
|
3646
|
+
/**
|
|
3647
|
+
*
|
|
3648
|
+
* @type {Array<TransactionDto>}
|
|
3649
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3650
|
+
*/
|
|
3651
|
+
'paymentEvents': Array<TransactionDto>;
|
|
3652
|
+
/**
|
|
3653
|
+
*
|
|
3654
|
+
* @type {Array<PaymentRefundDto>}
|
|
3655
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3656
|
+
*/
|
|
3657
|
+
'refunds'?: Array<PaymentRefundDto>;
|
|
3658
|
+
/**
|
|
3659
|
+
* Data version code
|
|
3660
|
+
* @type {string}
|
|
3661
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3662
|
+
*/
|
|
3663
|
+
'version': string;
|
|
3664
|
+
/**
|
|
3665
|
+
*
|
|
3666
|
+
* @type {OrderFormat}
|
|
3667
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3668
|
+
*/
|
|
3669
|
+
'orderFormat'?: OrderFormat;
|
|
3670
|
+
/**
|
|
3671
|
+
* The ID of the loyalty program active during this order.
|
|
3672
|
+
* @type {string}
|
|
3673
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3674
|
+
*/
|
|
3675
|
+
'loyaltyProgramId': string | null;
|
|
3676
|
+
/**
|
|
3677
|
+
* An array of loyalty transaction IDs related to this order.
|
|
3678
|
+
* @type {Array<string>}
|
|
3679
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3680
|
+
*/
|
|
3681
|
+
'loyaltyTransactionIds': Array<string>;
|
|
3682
|
+
/**
|
|
3683
|
+
*
|
|
3684
|
+
* @type {PosOrderDtoTaxSummary}
|
|
3685
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3686
|
+
*/
|
|
3687
|
+
'taxSummary'?: PosOrderDtoTaxSummary;
|
|
3688
|
+
/**
|
|
3689
|
+
* Name of staff member who created the order
|
|
3690
|
+
* @type {string}
|
|
3691
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3692
|
+
*/
|
|
3693
|
+
'staffName'?: string | null;
|
|
3694
|
+
/**
|
|
3695
|
+
*
|
|
3696
|
+
* @type {PosOrderDtoInvoiceCompany}
|
|
3697
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3698
|
+
*/
|
|
3699
|
+
'invoiceCompany'?: PosOrderDtoInvoiceCompany | null;
|
|
3700
|
+
/**
|
|
3701
|
+
*
|
|
3702
|
+
* @type {object}
|
|
3703
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3704
|
+
*/
|
|
3705
|
+
'lastPaymentError'?: object;
|
|
3706
|
+
/**
|
|
3707
|
+
*
|
|
3708
|
+
* @type {Array<OrderFeeDto>}
|
|
3709
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3710
|
+
*/
|
|
3711
|
+
'fees'?: Array<OrderFeeDto> | null;
|
|
3712
|
+
/**
|
|
3713
|
+
* Loyalty user ID associated with this order
|
|
3714
|
+
* @type {number}
|
|
3715
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3716
|
+
*/
|
|
3717
|
+
'targetUserId'?: number;
|
|
3529
3718
|
}
|
|
3530
3719
|
|
|
3531
3720
|
|
|
@@ -6135,6 +6324,180 @@ export interface InitiateNetsTerminalPaymentResponseDto {
|
|
|
6135
6324
|
*/
|
|
6136
6325
|
'connectCloudRequestId': string;
|
|
6137
6326
|
}
|
|
6327
|
+
/**
|
|
6328
|
+
*
|
|
6329
|
+
* @export
|
|
6330
|
+
* @interface InitiateVivaA2aSessionDto
|
|
6331
|
+
*/
|
|
6332
|
+
export interface InitiateVivaA2aSessionDto {
|
|
6333
|
+
/**
|
|
6334
|
+
* The internal business ID.
|
|
6335
|
+
* @type {number}
|
|
6336
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6337
|
+
*/
|
|
6338
|
+
'businessId': number;
|
|
6339
|
+
/**
|
|
6340
|
+
* The unique reference for the order or cart.
|
|
6341
|
+
* @type {string}
|
|
6342
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6343
|
+
*/
|
|
6344
|
+
'referenceId': string;
|
|
6345
|
+
/**
|
|
6346
|
+
* The display reference for the order or cart.
|
|
6347
|
+
* @type {string}
|
|
6348
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6349
|
+
*/
|
|
6350
|
+
'displayId': string;
|
|
6351
|
+
/**
|
|
6352
|
+
* Amount in the smallest currency unit (e.g., cents).
|
|
6353
|
+
* @type {number}
|
|
6354
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6355
|
+
*/
|
|
6356
|
+
'amount': number;
|
|
6357
|
+
/**
|
|
6358
|
+
*
|
|
6359
|
+
* @type {CurrencyCode}
|
|
6360
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6361
|
+
*/
|
|
6362
|
+
'currency': CurrencyCode;
|
|
6363
|
+
/**
|
|
6364
|
+
*
|
|
6365
|
+
* @type {boolean}
|
|
6366
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6367
|
+
*/
|
|
6368
|
+
'showReceipt'?: boolean;
|
|
6369
|
+
/**
|
|
6370
|
+
*
|
|
6371
|
+
* @type {number}
|
|
6372
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6373
|
+
*/
|
|
6374
|
+
'tipAmount'?: number;
|
|
6375
|
+
/**
|
|
6376
|
+
*
|
|
6377
|
+
* @type {boolean}
|
|
6378
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6379
|
+
*/
|
|
6380
|
+
'showTransactionResult'?: boolean;
|
|
6381
|
+
/**
|
|
6382
|
+
*
|
|
6383
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
6384
|
+
* @memberof InitiateVivaA2aSessionDto
|
|
6385
|
+
*/
|
|
6386
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
6387
|
+
}
|
|
6388
|
+
|
|
6389
|
+
|
|
6390
|
+
/**
|
|
6391
|
+
*
|
|
6392
|
+
* @export
|
|
6393
|
+
* @interface InitiateVivaA2aSessionResponseDto
|
|
6394
|
+
*/
|
|
6395
|
+
export interface InitiateVivaA2aSessionResponseDto {
|
|
6396
|
+
/**
|
|
6397
|
+
*
|
|
6398
|
+
* @type {string}
|
|
6399
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6400
|
+
*/
|
|
6401
|
+
'clientTransactionId': string;
|
|
6402
|
+
/**
|
|
6403
|
+
*
|
|
6404
|
+
* @type {number}
|
|
6405
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6406
|
+
*/
|
|
6407
|
+
'amount': number;
|
|
6408
|
+
/**
|
|
6409
|
+
*
|
|
6410
|
+
* @type {number}
|
|
6411
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6412
|
+
*/
|
|
6413
|
+
'tipAmount': number;
|
|
6414
|
+
/**
|
|
6415
|
+
*
|
|
6416
|
+
* @type {VivaAppToAppPaymentMethod}
|
|
6417
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6418
|
+
*/
|
|
6419
|
+
'paymentMethod': VivaAppToAppPaymentMethod;
|
|
6420
|
+
/**
|
|
6421
|
+
*
|
|
6422
|
+
* @type {number}
|
|
6423
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6424
|
+
*/
|
|
6425
|
+
'sourceCode': number;
|
|
6426
|
+
/**
|
|
6427
|
+
*
|
|
6428
|
+
* @type {boolean}
|
|
6429
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6430
|
+
*/
|
|
6431
|
+
'show_receipt': boolean;
|
|
6432
|
+
/**
|
|
6433
|
+
*
|
|
6434
|
+
* @type {boolean}
|
|
6435
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6436
|
+
*/
|
|
6437
|
+
'show_transaction_result': boolean;
|
|
6438
|
+
/**
|
|
6439
|
+
*
|
|
6440
|
+
* @type {boolean}
|
|
6441
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6442
|
+
*/
|
|
6443
|
+
'show_rating': boolean;
|
|
6444
|
+
/**
|
|
6445
|
+
* The ISV amount.
|
|
6446
|
+
* @type {number}
|
|
6447
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6448
|
+
*/
|
|
6449
|
+
'ISV_amount'?: number;
|
|
6450
|
+
/**
|
|
6451
|
+
* The ISV client ID.
|
|
6452
|
+
* @type {string}
|
|
6453
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6454
|
+
*/
|
|
6455
|
+
'ISV_clientId'?: string;
|
|
6456
|
+
/**
|
|
6457
|
+
* The ISV client secret. Only include this if the mobile app must send it for the POC.
|
|
6458
|
+
* @type {string}
|
|
6459
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6460
|
+
*/
|
|
6461
|
+
'ISV_clientSecret'?: string;
|
|
6462
|
+
/**
|
|
6463
|
+
* The ISO numeric currency code required by Viva ISV mode.
|
|
6464
|
+
* @type {number}
|
|
6465
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6466
|
+
*/
|
|
6467
|
+
'ISV_currencyCode'?: number;
|
|
6468
|
+
/**
|
|
6469
|
+
* The customer transaction description shown in Viva.
|
|
6470
|
+
* @type {string}
|
|
6471
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6472
|
+
*/
|
|
6473
|
+
'ISV_customerTrns'?: string;
|
|
6474
|
+
/**
|
|
6475
|
+
* The ISV client transaction ID if used separately from the app transaction ID.
|
|
6476
|
+
* @type {string}
|
|
6477
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6478
|
+
*/
|
|
6479
|
+
'ISV_clientTransactionId'?: string;
|
|
6480
|
+
/**
|
|
6481
|
+
* Merchant-facing reference shown on the Viva receipt (e.g. KIOSK-1234).
|
|
6482
|
+
* @type {string}
|
|
6483
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6484
|
+
*/
|
|
6485
|
+
'merchantReference'?: string;
|
|
6486
|
+
/**
|
|
6487
|
+
* Opaque client token used to poll/sync the session. Never sent to Viva.
|
|
6488
|
+
* @type {string}
|
|
6489
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6490
|
+
*/
|
|
6491
|
+
'clientToken': string;
|
|
6492
|
+
/**
|
|
6493
|
+
* Internal session ID (equals the Viva app-to-app clientTransactionId).
|
|
6494
|
+
* @type {string}
|
|
6495
|
+
* @memberof InitiateVivaA2aSessionResponseDto
|
|
6496
|
+
*/
|
|
6497
|
+
'sessionId': string;
|
|
6498
|
+
}
|
|
6499
|
+
|
|
6500
|
+
|
|
6138
6501
|
/**
|
|
6139
6502
|
*
|
|
6140
6503
|
* @export
|
|
@@ -8489,91 +8852,6 @@ export interface LoyaltyTierDto {
|
|
|
8489
8852
|
*/
|
|
8490
8853
|
'threshold': number;
|
|
8491
8854
|
}
|
|
8492
|
-
/**
|
|
8493
|
-
*
|
|
8494
|
-
* @export
|
|
8495
|
-
* @interface LoyaltyUserDto
|
|
8496
|
-
*/
|
|
8497
|
-
export interface LoyaltyUserDto {
|
|
8498
|
-
/**
|
|
8499
|
-
* The ID of the user
|
|
8500
|
-
* @type {number}
|
|
8501
|
-
* @memberof LoyaltyUserDto
|
|
8502
|
-
*/
|
|
8503
|
-
'id': number;
|
|
8504
|
-
/**
|
|
8505
|
-
* The landline phone number of the user
|
|
8506
|
-
* @type {object}
|
|
8507
|
-
* @memberof LoyaltyUserDto
|
|
8508
|
-
*/
|
|
8509
|
-
'phone': object | null;
|
|
8510
|
-
/**
|
|
8511
|
-
* The mobile phone number of the user
|
|
8512
|
-
* @type {string}
|
|
8513
|
-
* @memberof LoyaltyUserDto
|
|
8514
|
-
*/
|
|
8515
|
-
'cellphone': string;
|
|
8516
|
-
/**
|
|
8517
|
-
* The first name of the user
|
|
8518
|
-
* @type {string}
|
|
8519
|
-
* @memberof LoyaltyUserDto
|
|
8520
|
-
*/
|
|
8521
|
-
'name': string;
|
|
8522
|
-
/**
|
|
8523
|
-
* The last name of the user
|
|
8524
|
-
* @type {string}
|
|
8525
|
-
* @memberof LoyaltyUserDto
|
|
8526
|
-
*/
|
|
8527
|
-
'lastname': string;
|
|
8528
|
-
/**
|
|
8529
|
-
* The level of the user
|
|
8530
|
-
* @type {number}
|
|
8531
|
-
* @memberof LoyaltyUserDto
|
|
8532
|
-
*/
|
|
8533
|
-
'level': number;
|
|
8534
|
-
/**
|
|
8535
|
-
* Whether the user account is enabled
|
|
8536
|
-
* @type {boolean}
|
|
8537
|
-
* @memberof LoyaltyUserDto
|
|
8538
|
-
*/
|
|
8539
|
-
'enabled': boolean;
|
|
8540
|
-
/**
|
|
8541
|
-
* The address of the user
|
|
8542
|
-
* @type {object}
|
|
8543
|
-
* @memberof LoyaltyUserDto
|
|
8544
|
-
*/
|
|
8545
|
-
'address': object | null;
|
|
8546
|
-
/**
|
|
8547
|
-
* Loyalty points accumulated by the user
|
|
8548
|
-
* @type {number}
|
|
8549
|
-
* @memberof LoyaltyUserDto
|
|
8550
|
-
*/
|
|
8551
|
-
'loyalty_level_points': number;
|
|
8552
|
-
/**
|
|
8553
|
-
* Country code of the user
|
|
8554
|
-
* @type {string}
|
|
8555
|
-
* @memberof LoyaltyUserDto
|
|
8556
|
-
*/
|
|
8557
|
-
'country_code': string;
|
|
8558
|
-
/**
|
|
8559
|
-
* Number of orders placed by the user
|
|
8560
|
-
* @type {number}
|
|
8561
|
-
* @memberof LoyaltyUserDto
|
|
8562
|
-
*/
|
|
8563
|
-
'orders_count': number;
|
|
8564
|
-
/**
|
|
8565
|
-
* URL to the user\'s profile photo
|
|
8566
|
-
* @type {object}
|
|
8567
|
-
* @memberof LoyaltyUserDto
|
|
8568
|
-
*/
|
|
8569
|
-
'photo': object | null;
|
|
8570
|
-
/**
|
|
8571
|
-
* List of wallets associated with the user
|
|
8572
|
-
* @type {Array<WalletDto>}
|
|
8573
|
-
* @memberof LoyaltyUserDto
|
|
8574
|
-
*/
|
|
8575
|
-
'wallets': Array<WalletDto>;
|
|
8576
|
-
}
|
|
8577
8855
|
/**
|
|
8578
8856
|
*
|
|
8579
8857
|
* @export
|
|
@@ -16236,6 +16514,298 @@ export interface ReceiptDetailsDto {
|
|
|
16236
16514
|
*/
|
|
16237
16515
|
'transactionStatusInformation': string;
|
|
16238
16516
|
}
|
|
16517
|
+
/**
|
|
16518
|
+
*
|
|
16519
|
+
* @export
|
|
16520
|
+
* @interface RecordManualPaymentResultDto
|
|
16521
|
+
*/
|
|
16522
|
+
export interface RecordManualPaymentResultDto {
|
|
16523
|
+
/**
|
|
16524
|
+
* Whether the payment was recorded on the order.
|
|
16525
|
+
* @type {boolean}
|
|
16526
|
+
* @memberof RecordManualPaymentResultDto
|
|
16527
|
+
*/
|
|
16528
|
+
'success': boolean;
|
|
16529
|
+
/**
|
|
16530
|
+
*
|
|
16531
|
+
* @type {RecordManualStatus}
|
|
16532
|
+
* @memberof RecordManualPaymentResultDto
|
|
16533
|
+
*/
|
|
16534
|
+
'status': RecordManualStatus;
|
|
16535
|
+
/**
|
|
16536
|
+
* Id of the paymentEvent just written to the order (SUCCESS only).
|
|
16537
|
+
* @type {string}
|
|
16538
|
+
* @memberof RecordManualPaymentResultDto
|
|
16539
|
+
*/
|
|
16540
|
+
'transactionId'?: string;
|
|
16541
|
+
/**
|
|
16542
|
+
* Machine-readable failure code (ORDER_ALREADY_PAID | EXCEEDS_AVAILABLE | ...).
|
|
16543
|
+
* @type {string}
|
|
16544
|
+
* @memberof RecordManualPaymentResultDto
|
|
16545
|
+
*/
|
|
16546
|
+
'errorCode'?: string;
|
|
16547
|
+
/**
|
|
16548
|
+
* Human-readable failure message.
|
|
16549
|
+
* @type {string}
|
|
16550
|
+
* @memberof RecordManualPaymentResultDto
|
|
16551
|
+
*/
|
|
16552
|
+
'errorMessage'?: string;
|
|
16553
|
+
/**
|
|
16554
|
+
*
|
|
16555
|
+
* @type {RecordManualPaymentResultDtoOrder}
|
|
16556
|
+
* @memberof RecordManualPaymentResultDto
|
|
16557
|
+
*/
|
|
16558
|
+
'order': RecordManualPaymentResultDtoOrder;
|
|
16559
|
+
}
|
|
16560
|
+
|
|
16561
|
+
|
|
16562
|
+
/**
|
|
16563
|
+
* The full POS order after the attempt — same shape as getPosOrderById returns.
|
|
16564
|
+
* @export
|
|
16565
|
+
* @interface RecordManualPaymentResultDtoOrder
|
|
16566
|
+
*/
|
|
16567
|
+
export interface RecordManualPaymentResultDtoOrder {
|
|
16568
|
+
/**
|
|
16569
|
+
*
|
|
16570
|
+
* @type {string}
|
|
16571
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16572
|
+
*/
|
|
16573
|
+
'id': string;
|
|
16574
|
+
/**
|
|
16575
|
+
*
|
|
16576
|
+
* @type {string}
|
|
16577
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16578
|
+
*/
|
|
16579
|
+
'businessId': string;
|
|
16580
|
+
/**
|
|
16581
|
+
*
|
|
16582
|
+
* @type {ProviderEnum}
|
|
16583
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16584
|
+
*/
|
|
16585
|
+
'provider': ProviderEnum;
|
|
16586
|
+
/**
|
|
16587
|
+
*
|
|
16588
|
+
* @type {CurrencyCode}
|
|
16589
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16590
|
+
*/
|
|
16591
|
+
'currency': CurrencyCode;
|
|
16592
|
+
/**
|
|
16593
|
+
*
|
|
16594
|
+
* @type {PosBusinessDto}
|
|
16595
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16596
|
+
*/
|
|
16597
|
+
'business': PosBusinessDto;
|
|
16598
|
+
/**
|
|
16599
|
+
*
|
|
16600
|
+
* @type {string}
|
|
16601
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16602
|
+
*/
|
|
16603
|
+
'createdAt': string;
|
|
16604
|
+
/**
|
|
16605
|
+
*
|
|
16606
|
+
* @type {OrderStatusEnum}
|
|
16607
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16608
|
+
*/
|
|
16609
|
+
'status': OrderStatusEnum;
|
|
16610
|
+
/**
|
|
16611
|
+
*
|
|
16612
|
+
* @type {string}
|
|
16613
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16614
|
+
*/
|
|
16615
|
+
'updatedAt': string;
|
|
16616
|
+
/**
|
|
16617
|
+
*
|
|
16618
|
+
* @type {string}
|
|
16619
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16620
|
+
*/
|
|
16621
|
+
'completedAt'?: string;
|
|
16622
|
+
/**
|
|
16623
|
+
*
|
|
16624
|
+
* @type {string}
|
|
16625
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16626
|
+
*/
|
|
16627
|
+
'orderNumber': string;
|
|
16628
|
+
/**
|
|
16629
|
+
*
|
|
16630
|
+
* @type {CheckoutModelEnum}
|
|
16631
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16632
|
+
*/
|
|
16633
|
+
'checkoutModel': CheckoutModelEnum;
|
|
16634
|
+
/**
|
|
16635
|
+
*
|
|
16636
|
+
* @type {OrderTypePOS}
|
|
16637
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16638
|
+
*/
|
|
16639
|
+
'orderType': OrderTypePOS;
|
|
16640
|
+
/**
|
|
16641
|
+
*
|
|
16642
|
+
* @type {string}
|
|
16643
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16644
|
+
*/
|
|
16645
|
+
'spotNumber': string | null;
|
|
16646
|
+
/**
|
|
16647
|
+
* ID of the floor plan dining table linked to this order
|
|
16648
|
+
* @type {string}
|
|
16649
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16650
|
+
*/
|
|
16651
|
+
'tableId'?: string | null;
|
|
16652
|
+
/**
|
|
16653
|
+
*
|
|
16654
|
+
* @type {string}
|
|
16655
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16656
|
+
*/
|
|
16657
|
+
'comments': string | null;
|
|
16658
|
+
/**
|
|
16659
|
+
*
|
|
16660
|
+
* @type {PosOrderDtoTableService}
|
|
16661
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16662
|
+
*/
|
|
16663
|
+
'tableService'?: PosOrderDtoTableService | null;
|
|
16664
|
+
/**
|
|
16665
|
+
*
|
|
16666
|
+
* @type {PosOrderDtoEqualSplitState}
|
|
16667
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16668
|
+
*/
|
|
16669
|
+
'equalSplitState'?: PosOrderDtoEqualSplitState | null;
|
|
16670
|
+
/**
|
|
16671
|
+
* Id of the staff in shift
|
|
16672
|
+
* @type {string}
|
|
16673
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16674
|
+
*/
|
|
16675
|
+
'staffId': string | null;
|
|
16676
|
+
/**
|
|
16677
|
+
* Id of the shift
|
|
16678
|
+
* @type {string}
|
|
16679
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16680
|
+
*/
|
|
16681
|
+
'shiftId': string | null;
|
|
16682
|
+
/**
|
|
16683
|
+
*
|
|
16684
|
+
* @type {OrderRefundStatus}
|
|
16685
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16686
|
+
*/
|
|
16687
|
+
'orderRefundStatus': OrderRefundStatus;
|
|
16688
|
+
/**
|
|
16689
|
+
*
|
|
16690
|
+
* @type {LocatorType}
|
|
16691
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16692
|
+
*/
|
|
16693
|
+
'locatorType': LocatorType;
|
|
16694
|
+
/**
|
|
16695
|
+
*
|
|
16696
|
+
* @type {PosOrderPriceDto}
|
|
16697
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16698
|
+
*/
|
|
16699
|
+
'basketPrice': PosOrderPriceDto;
|
|
16700
|
+
/**
|
|
16701
|
+
*
|
|
16702
|
+
* @type {Array<PosOrderItemDto>}
|
|
16703
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16704
|
+
*/
|
|
16705
|
+
'items': Array<PosOrderItemDto>;
|
|
16706
|
+
/**
|
|
16707
|
+
*
|
|
16708
|
+
* @type {Array<PosDiscountDto>}
|
|
16709
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16710
|
+
*/
|
|
16711
|
+
'discounts': Array<PosDiscountDto>;
|
|
16712
|
+
/**
|
|
16713
|
+
*
|
|
16714
|
+
* @type {PosCustomerDto}
|
|
16715
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16716
|
+
*/
|
|
16717
|
+
'customer': PosCustomerDto | null;
|
|
16718
|
+
/**
|
|
16719
|
+
*
|
|
16720
|
+
* @type {Array<TransactionDto>}
|
|
16721
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16722
|
+
*/
|
|
16723
|
+
'paymentEvents': Array<TransactionDto>;
|
|
16724
|
+
/**
|
|
16725
|
+
*
|
|
16726
|
+
* @type {Array<PaymentRefundDto>}
|
|
16727
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16728
|
+
*/
|
|
16729
|
+
'refunds'?: Array<PaymentRefundDto>;
|
|
16730
|
+
/**
|
|
16731
|
+
* Data version code
|
|
16732
|
+
* @type {string}
|
|
16733
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16734
|
+
*/
|
|
16735
|
+
'version': string;
|
|
16736
|
+
/**
|
|
16737
|
+
*
|
|
16738
|
+
* @type {OrderFormat}
|
|
16739
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16740
|
+
*/
|
|
16741
|
+
'orderFormat'?: OrderFormat;
|
|
16742
|
+
/**
|
|
16743
|
+
* The ID of the loyalty program active during this order.
|
|
16744
|
+
* @type {string}
|
|
16745
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16746
|
+
*/
|
|
16747
|
+
'loyaltyProgramId': string | null;
|
|
16748
|
+
/**
|
|
16749
|
+
* An array of loyalty transaction IDs related to this order.
|
|
16750
|
+
* @type {Array<string>}
|
|
16751
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16752
|
+
*/
|
|
16753
|
+
'loyaltyTransactionIds': Array<string>;
|
|
16754
|
+
/**
|
|
16755
|
+
*
|
|
16756
|
+
* @type {PosOrderDtoTaxSummary}
|
|
16757
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16758
|
+
*/
|
|
16759
|
+
'taxSummary'?: PosOrderDtoTaxSummary;
|
|
16760
|
+
/**
|
|
16761
|
+
* Name of staff member who created the order
|
|
16762
|
+
* @type {string}
|
|
16763
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16764
|
+
*/
|
|
16765
|
+
'staffName'?: string | null;
|
|
16766
|
+
/**
|
|
16767
|
+
*
|
|
16768
|
+
* @type {PosOrderDtoInvoiceCompany}
|
|
16769
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16770
|
+
*/
|
|
16771
|
+
'invoiceCompany'?: PosOrderDtoInvoiceCompany | null;
|
|
16772
|
+
/**
|
|
16773
|
+
*
|
|
16774
|
+
* @type {object}
|
|
16775
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16776
|
+
*/
|
|
16777
|
+
'lastPaymentError'?: object;
|
|
16778
|
+
/**
|
|
16779
|
+
*
|
|
16780
|
+
* @type {Array<OrderFeeDto>}
|
|
16781
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16782
|
+
*/
|
|
16783
|
+
'fees'?: Array<OrderFeeDto> | null;
|
|
16784
|
+
/**
|
|
16785
|
+
* Loyalty user ID associated with this order
|
|
16786
|
+
* @type {number}
|
|
16787
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
16788
|
+
*/
|
|
16789
|
+
'targetUserId'?: number;
|
|
16790
|
+
}
|
|
16791
|
+
|
|
16792
|
+
|
|
16793
|
+
/**
|
|
16794
|
+
*
|
|
16795
|
+
* @export
|
|
16796
|
+
* @enum {string}
|
|
16797
|
+
*/
|
|
16798
|
+
|
|
16799
|
+
export const RecordManualStatus = {
|
|
16800
|
+
Success: 'SUCCESS',
|
|
16801
|
+
AlreadyPaid: 'ALREADY_PAID',
|
|
16802
|
+
Rejected: 'REJECTED',
|
|
16803
|
+
Failed: 'FAILED'
|
|
16804
|
+
} as const;
|
|
16805
|
+
|
|
16806
|
+
export type RecordManualStatus = typeof RecordManualStatus[keyof typeof RecordManualStatus];
|
|
16807
|
+
|
|
16808
|
+
|
|
16239
16809
|
/**
|
|
16240
16810
|
*
|
|
16241
16811
|
* @export
|
|
@@ -17052,25 +17622,6 @@ export interface ReverseSessionDto {
|
|
|
17052
17622
|
*/
|
|
17053
17623
|
'amount'?: number;
|
|
17054
17624
|
}
|
|
17055
|
-
/**
|
|
17056
|
-
*
|
|
17057
|
-
* @export
|
|
17058
|
-
* @interface RewardPointPayload
|
|
17059
|
-
*/
|
|
17060
|
-
export interface RewardPointPayload {
|
|
17061
|
-
/**
|
|
17062
|
-
* The amount of credit to add (positive value) or deduct (negative value). Examples: \"+20\" to add 20 points, \"-20\" to deduct 20 points, \"+100\" for large additions, \"-5\" for small deductions.
|
|
17063
|
-
* @type {string}
|
|
17064
|
-
* @memberof RewardPointPayload
|
|
17065
|
-
*/
|
|
17066
|
-
'amount': string;
|
|
17067
|
-
/**
|
|
17068
|
-
* The business ID associated with the reward points
|
|
17069
|
-
* @type {number}
|
|
17070
|
-
* @memberof RewardPointPayload
|
|
17071
|
-
*/
|
|
17072
|
-
'businessId': number;
|
|
17073
|
-
}
|
|
17074
17625
|
/**
|
|
17075
17626
|
*
|
|
17076
17627
|
* @export
|
|
@@ -21107,19 +21658,6 @@ export interface UserInfoResponseDto {
|
|
|
21107
21658
|
*/
|
|
21108
21659
|
'orderingAccessToken': string;
|
|
21109
21660
|
}
|
|
21110
|
-
/**
|
|
21111
|
-
*
|
|
21112
|
-
* @export
|
|
21113
|
-
* @interface UserValidation
|
|
21114
|
-
*/
|
|
21115
|
-
export interface UserValidation {
|
|
21116
|
-
/**
|
|
21117
|
-
*
|
|
21118
|
-
* @type {string}
|
|
21119
|
-
* @memberof UserValidation
|
|
21120
|
-
*/
|
|
21121
|
-
'phone': string;
|
|
21122
|
-
}
|
|
21123
21661
|
/**
|
|
21124
21662
|
*
|
|
21125
21663
|
* @export
|
|
@@ -22644,6 +23182,37 @@ export const EventTypeIdEnum = {
|
|
|
22644
23182
|
|
|
22645
23183
|
export type EventTypeIdEnum = typeof EventTypeIdEnum[keyof typeof EventTypeIdEnum];
|
|
22646
23184
|
|
|
23185
|
+
/**
|
|
23186
|
+
*
|
|
23187
|
+
* @export
|
|
23188
|
+
* @interface VoidManualSessionDto
|
|
23189
|
+
*/
|
|
23190
|
+
export interface VoidManualSessionDto {
|
|
23191
|
+
/**
|
|
23192
|
+
* The order paymentEvent referenceId (sessionId) to reverse. No payment session is created for manual payments, so the order is located directly.
|
|
23193
|
+
* @type {string}
|
|
23194
|
+
* @memberof VoidManualSessionDto
|
|
23195
|
+
*/
|
|
23196
|
+
'sessionId': string;
|
|
23197
|
+
/**
|
|
23198
|
+
* The internal business ID.
|
|
23199
|
+
* @type {number}
|
|
23200
|
+
* @memberof VoidManualSessionDto
|
|
23201
|
+
*/
|
|
23202
|
+
'businessId': number;
|
|
23203
|
+
/**
|
|
23204
|
+
* The POS order ID the paymentEvent lives on.
|
|
23205
|
+
* @type {string}
|
|
23206
|
+
* @memberof VoidManualSessionDto
|
|
23207
|
+
*/
|
|
23208
|
+
'orderId': string;
|
|
23209
|
+
/**
|
|
23210
|
+
* Cash handling config forwarded from the client. When enabled the backend additionally records a REFUND cash log for the reversal.
|
|
23211
|
+
* @type {object}
|
|
23212
|
+
* @memberof VoidManualSessionDto
|
|
23213
|
+
*/
|
|
23214
|
+
'cashConfig'?: object;
|
|
23215
|
+
}
|
|
22647
23216
|
/**
|
|
22648
23217
|
*
|
|
22649
23218
|
* @export
|
|
@@ -22682,61 +23251,7 @@ export interface WalletCatalogDto {
|
|
|
22682
23251
|
*/
|
|
22683
23252
|
export interface WalletDto {
|
|
22684
23253
|
/**
|
|
22685
|
-
*
|
|
22686
|
-
* @type {number}
|
|
22687
|
-
* @memberof WalletDto
|
|
22688
|
-
*/
|
|
22689
|
-
'id': number;
|
|
22690
|
-
/**
|
|
22691
|
-
* Unique code for the wallet
|
|
22692
|
-
* @type {string}
|
|
22693
|
-
* @memberof WalletDto
|
|
22694
|
-
*/
|
|
22695
|
-
'code': string;
|
|
22696
|
-
/**
|
|
22697
|
-
* The ID of the user who owns this wallet
|
|
22698
|
-
* @type {number}
|
|
22699
|
-
* @memberof WalletDto
|
|
22700
|
-
*/
|
|
22701
|
-
'user_id': number;
|
|
22702
|
-
/**
|
|
22703
|
-
* Current balance in the wallet
|
|
22704
|
-
* @type {number}
|
|
22705
|
-
* @memberof WalletDto
|
|
22706
|
-
*/
|
|
22707
|
-
'balance': number;
|
|
22708
|
-
/**
|
|
22709
|
-
* Whether the wallet is locked
|
|
22710
|
-
* @type {boolean}
|
|
22711
|
-
* @memberof WalletDto
|
|
22712
|
-
*/
|
|
22713
|
-
'locked': boolean;
|
|
22714
|
-
/**
|
|
22715
|
-
* Reason for locking the wallet, if applicable
|
|
22716
|
-
* @type {object}
|
|
22717
|
-
* @memberof WalletDto
|
|
22718
|
-
*/
|
|
22719
|
-
'locked_reason': object | null;
|
|
22720
|
-
/**
|
|
22721
|
-
* Timestamp when the wallet was locked, if applicable
|
|
22722
|
-
* @type {object}
|
|
22723
|
-
* @memberof WalletDto
|
|
22724
|
-
*/
|
|
22725
|
-
'locked_at': object | null;
|
|
22726
|
-
/**
|
|
22727
|
-
* Timestamp when the wallet was created
|
|
22728
|
-
* @type {string}
|
|
22729
|
-
* @memberof WalletDto
|
|
22730
|
-
*/
|
|
22731
|
-
'created_at': string;
|
|
22732
|
-
/**
|
|
22733
|
-
* Timestamp when the wallet was last updated
|
|
22734
|
-
* @type {string}
|
|
22735
|
-
* @memberof WalletDto
|
|
22736
|
-
*/
|
|
22737
|
-
'updated_at': string;
|
|
22738
|
-
/**
|
|
22739
|
-
* Type of wallet (e.g., cash, credit_point)
|
|
23254
|
+
* Wallet type
|
|
22740
23255
|
* @type {string}
|
|
22741
23256
|
* @memberof WalletDto
|
|
22742
23257
|
*/
|
|
@@ -22831,464 +23346,6 @@ export interface WorldlineAmountsRequestDto {
|
|
|
22831
23346
|
*/
|
|
22832
23347
|
'tip'?: number;
|
|
22833
23348
|
}
|
|
22834
|
-
/**
|
|
22835
|
-
*
|
|
22836
|
-
* @export
|
|
22837
|
-
* @interface WorldlineAmountsResponseDto
|
|
22838
|
-
*/
|
|
22839
|
-
export interface WorldlineAmountsResponseDto {
|
|
22840
|
-
/**
|
|
22841
|
-
*
|
|
22842
|
-
* @type {WorldlineAmountsResponseDtoCurrency}
|
|
22843
|
-
* @memberof WorldlineAmountsResponseDto
|
|
22844
|
-
*/
|
|
22845
|
-
'currency': WorldlineAmountsResponseDtoCurrency;
|
|
22846
|
-
/**
|
|
22847
|
-
* Base amount
|
|
22848
|
-
* @type {number}
|
|
22849
|
-
* @memberof WorldlineAmountsResponseDto
|
|
22850
|
-
*/
|
|
22851
|
-
'base': number;
|
|
22852
|
-
/**
|
|
22853
|
-
* Total amount
|
|
22854
|
-
* @type {number}
|
|
22855
|
-
* @memberof WorldlineAmountsResponseDto
|
|
22856
|
-
*/
|
|
22857
|
-
'total': number;
|
|
22858
|
-
/**
|
|
22859
|
-
* Tip amount
|
|
22860
|
-
* @type {number}
|
|
22861
|
-
* @memberof WorldlineAmountsResponseDto
|
|
22862
|
-
*/
|
|
22863
|
-
'tip'?: number;
|
|
22864
|
-
}
|
|
22865
|
-
/**
|
|
22866
|
-
* Currency information
|
|
22867
|
-
* @export
|
|
22868
|
-
* @interface WorldlineAmountsResponseDtoCurrency
|
|
22869
|
-
*/
|
|
22870
|
-
export interface WorldlineAmountsResponseDtoCurrency {
|
|
22871
|
-
/**
|
|
22872
|
-
* ISO 4217 numeric currency code
|
|
22873
|
-
* @type {string}
|
|
22874
|
-
* @memberof WorldlineAmountsResponseDtoCurrency
|
|
22875
|
-
*/
|
|
22876
|
-
'code': string;
|
|
22877
|
-
/**
|
|
22878
|
-
* ISO 4217 currency symbol
|
|
22879
|
-
* @type {string}
|
|
22880
|
-
* @memberof WorldlineAmountsResponseDtoCurrency
|
|
22881
|
-
*/
|
|
22882
|
-
'symbol': string;
|
|
22883
|
-
/**
|
|
22884
|
-
* Currency exponent
|
|
22885
|
-
* @type {number}
|
|
22886
|
-
* @memberof WorldlineAmountsResponseDtoCurrency
|
|
22887
|
-
*/
|
|
22888
|
-
'exponent': number;
|
|
22889
|
-
}
|
|
22890
|
-
/**
|
|
22891
|
-
*
|
|
22892
|
-
* @export
|
|
22893
|
-
* @interface WorldlineAsyncResponseDto
|
|
22894
|
-
*/
|
|
22895
|
-
export interface WorldlineAsyncResponseDto {
|
|
22896
|
-
/**
|
|
22897
|
-
* Business operation identifier generated by the POS
|
|
22898
|
-
* @type {string}
|
|
22899
|
-
* @memberof WorldlineAsyncResponseDto
|
|
22900
|
-
*/
|
|
22901
|
-
'operationId': string;
|
|
22902
|
-
}
|
|
22903
|
-
/**
|
|
22904
|
-
*
|
|
22905
|
-
* @export
|
|
22906
|
-
* @enum {string}
|
|
22907
|
-
*/
|
|
22908
|
-
|
|
22909
|
-
export const WorldlineAuthorizationMethod = {
|
|
22910
|
-
Online: 'Online',
|
|
22911
|
-
Offline: 'Offline'
|
|
22912
|
-
} as const;
|
|
22913
|
-
|
|
22914
|
-
export type WorldlineAuthorizationMethod = typeof WorldlineAuthorizationMethod[keyof typeof WorldlineAuthorizationMethod];
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
/**
|
|
22918
|
-
*
|
|
22919
|
-
* @export
|
|
22920
|
-
* @enum {string}
|
|
22921
|
-
*/
|
|
22922
|
-
|
|
22923
|
-
export const WorldlineAuthorizationResponder = {
|
|
22924
|
-
Manual: 'Manual',
|
|
22925
|
-
Unknown: 'Unknown',
|
|
22926
|
-
Local: 'Local',
|
|
22927
|
-
Base24: 'Base24',
|
|
22928
|
-
Issuer: 'Issuer',
|
|
22929
|
-
Network: 'Network',
|
|
22930
|
-
Acquirer: 'Acquirer',
|
|
22931
|
-
Other: 'Other'
|
|
22932
|
-
} as const;
|
|
22933
|
-
|
|
22934
|
-
export type WorldlineAuthorizationResponder = typeof WorldlineAuthorizationResponder[keyof typeof WorldlineAuthorizationResponder];
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
/**
|
|
22938
|
-
*
|
|
22939
|
-
* @export
|
|
22940
|
-
* @interface WorldlineCurrencyDataDto
|
|
22941
|
-
*/
|
|
22942
|
-
export interface WorldlineCurrencyDataDto {
|
|
22943
|
-
/**
|
|
22944
|
-
* ISO 4217 numeric currency code
|
|
22945
|
-
* @type {string}
|
|
22946
|
-
* @memberof WorldlineCurrencyDataDto
|
|
22947
|
-
*/
|
|
22948
|
-
'code': string;
|
|
22949
|
-
/**
|
|
22950
|
-
* ISO 4217 currency symbol
|
|
22951
|
-
* @type {string}
|
|
22952
|
-
* @memberof WorldlineCurrencyDataDto
|
|
22953
|
-
*/
|
|
22954
|
-
'symbol': string;
|
|
22955
|
-
/**
|
|
22956
|
-
* Currency exponent
|
|
22957
|
-
* @type {number}
|
|
22958
|
-
* @memberof WorldlineCurrencyDataDto
|
|
22959
|
-
*/
|
|
22960
|
-
'exponent': number;
|
|
22961
|
-
}
|
|
22962
|
-
/**
|
|
22963
|
-
*
|
|
22964
|
-
* @export
|
|
22965
|
-
* @interface WorldlineDeviceInformationResponseDto
|
|
22966
|
-
*/
|
|
22967
|
-
export interface WorldlineDeviceInformationResponseDto {
|
|
22968
|
-
/**
|
|
22969
|
-
*
|
|
22970
|
-
* @type {WorldlineDeviceInformationResponseDtoEnabledFeatures}
|
|
22971
|
-
* @memberof WorldlineDeviceInformationResponseDto
|
|
22972
|
-
*/
|
|
22973
|
-
'enabledFeatures'?: WorldlineDeviceInformationResponseDtoEnabledFeatures;
|
|
22974
|
-
/**
|
|
22975
|
-
*
|
|
22976
|
-
* @type {WorldlinePaymentResponseDtoMerchant}
|
|
22977
|
-
* @memberof WorldlineDeviceInformationResponseDto
|
|
22978
|
-
*/
|
|
22979
|
-
'merchant'?: WorldlinePaymentResponseDtoMerchant;
|
|
22980
|
-
/**
|
|
22981
|
-
*
|
|
22982
|
-
* @type {WorldlineDeviceInformationResponseDtoOngoingOperation}
|
|
22983
|
-
* @memberof WorldlineDeviceInformationResponseDto
|
|
22984
|
-
*/
|
|
22985
|
-
'ongoingOperation'?: WorldlineDeviceInformationResponseDtoOngoingOperation;
|
|
22986
|
-
/**
|
|
22987
|
-
*
|
|
22988
|
-
* @type {WorldlinePaymentResponseDtoTerminal}
|
|
22989
|
-
* @memberof WorldlineDeviceInformationResponseDto
|
|
22990
|
-
*/
|
|
22991
|
-
'terminal'?: WorldlinePaymentResponseDtoTerminal;
|
|
22992
|
-
}
|
|
22993
|
-
/**
|
|
22994
|
-
* Enabled terminal features
|
|
22995
|
-
* @export
|
|
22996
|
-
* @interface WorldlineDeviceInformationResponseDtoEnabledFeatures
|
|
22997
|
-
*/
|
|
22998
|
-
export interface WorldlineDeviceInformationResponseDtoEnabledFeatures {
|
|
22999
|
-
/**
|
|
23000
|
-
* Cashier support enabled
|
|
23001
|
-
* @type {boolean}
|
|
23002
|
-
* @memberof WorldlineDeviceInformationResponseDtoEnabledFeatures
|
|
23003
|
-
*/
|
|
23004
|
-
'cashier'?: boolean;
|
|
23005
|
-
/**
|
|
23006
|
-
* DCC enabled
|
|
23007
|
-
* @type {boolean}
|
|
23008
|
-
* @memberof WorldlineDeviceInformationResponseDtoEnabledFeatures
|
|
23009
|
-
*/
|
|
23010
|
-
'dcc'?: boolean;
|
|
23011
|
-
/**
|
|
23012
|
-
* Tip enabled
|
|
23013
|
-
* @type {boolean}
|
|
23014
|
-
* @memberof WorldlineDeviceInformationResponseDtoEnabledFeatures
|
|
23015
|
-
*/
|
|
23016
|
-
'tip'?: boolean;
|
|
23017
|
-
}
|
|
23018
|
-
/**
|
|
23019
|
-
* Ongoing terminal operation
|
|
23020
|
-
* @export
|
|
23021
|
-
* @interface WorldlineDeviceInformationResponseDtoOngoingOperation
|
|
23022
|
-
*/
|
|
23023
|
-
export interface WorldlineDeviceInformationResponseDtoOngoingOperation {
|
|
23024
|
-
/**
|
|
23025
|
-
* Current operation identifier
|
|
23026
|
-
* @type {string}
|
|
23027
|
-
* @memberof WorldlineDeviceInformationResponseDtoOngoingOperation
|
|
23028
|
-
*/
|
|
23029
|
-
'operationId': string;
|
|
23030
|
-
/**
|
|
23031
|
-
* Current ongoing operation type
|
|
23032
|
-
* @type {string}
|
|
23033
|
-
* @memberof WorldlineDeviceInformationResponseDtoOngoingOperation
|
|
23034
|
-
*/
|
|
23035
|
-
'type': string;
|
|
23036
|
-
}
|
|
23037
|
-
/**
|
|
23038
|
-
*
|
|
23039
|
-
* @export
|
|
23040
|
-
* @interface WorldlineDialogDto
|
|
23041
|
-
*/
|
|
23042
|
-
export interface WorldlineDialogDto {
|
|
23043
|
-
/**
|
|
23044
|
-
* Dialog title
|
|
23045
|
-
* @type {string}
|
|
23046
|
-
* @memberof WorldlineDialogDto
|
|
23047
|
-
*/
|
|
23048
|
-
'title'?: string;
|
|
23049
|
-
/**
|
|
23050
|
-
* Dialog text
|
|
23051
|
-
* @type {string}
|
|
23052
|
-
* @memberof WorldlineDialogDto
|
|
23053
|
-
*/
|
|
23054
|
-
'text'?: string;
|
|
23055
|
-
/**
|
|
23056
|
-
* Dialog options
|
|
23057
|
-
* @type {object}
|
|
23058
|
-
* @memberof WorldlineDialogDto
|
|
23059
|
-
*/
|
|
23060
|
-
'options'?: object;
|
|
23061
|
-
}
|
|
23062
|
-
/**
|
|
23063
|
-
*
|
|
23064
|
-
* @export
|
|
23065
|
-
* @interface WorldlineEmbeddedReceiptDto
|
|
23066
|
-
*/
|
|
23067
|
-
export interface WorldlineEmbeddedReceiptDto {
|
|
23068
|
-
/**
|
|
23069
|
-
* Receipt header
|
|
23070
|
-
* @type {string}
|
|
23071
|
-
* @memberof WorldlineEmbeddedReceiptDto
|
|
23072
|
-
*/
|
|
23073
|
-
'header'?: string;
|
|
23074
|
-
/**
|
|
23075
|
-
* Receipt content
|
|
23076
|
-
* @type {string}
|
|
23077
|
-
* @memberof WorldlineEmbeddedReceiptDto
|
|
23078
|
-
*/
|
|
23079
|
-
'content'?: string;
|
|
23080
|
-
/**
|
|
23081
|
-
* Receipt footer
|
|
23082
|
-
* @type {string}
|
|
23083
|
-
* @memberof WorldlineEmbeddedReceiptDto
|
|
23084
|
-
*/
|
|
23085
|
-
'footer'?: string;
|
|
23086
|
-
}
|
|
23087
|
-
/**
|
|
23088
|
-
*
|
|
23089
|
-
* @export
|
|
23090
|
-
* @interface WorldlineEnabledFeaturesDto
|
|
23091
|
-
*/
|
|
23092
|
-
export interface WorldlineEnabledFeaturesDto {
|
|
23093
|
-
/**
|
|
23094
|
-
* Cashier support enabled
|
|
23095
|
-
* @type {boolean}
|
|
23096
|
-
* @memberof WorldlineEnabledFeaturesDto
|
|
23097
|
-
*/
|
|
23098
|
-
'cashier'?: boolean;
|
|
23099
|
-
/**
|
|
23100
|
-
* DCC enabled
|
|
23101
|
-
* @type {boolean}
|
|
23102
|
-
* @memberof WorldlineEnabledFeaturesDto
|
|
23103
|
-
*/
|
|
23104
|
-
'dcc'?: boolean;
|
|
23105
|
-
/**
|
|
23106
|
-
* Tip enabled
|
|
23107
|
-
* @type {boolean}
|
|
23108
|
-
* @memberof WorldlineEnabledFeaturesDto
|
|
23109
|
-
*/
|
|
23110
|
-
'tip'?: boolean;
|
|
23111
|
-
}
|
|
23112
|
-
/**
|
|
23113
|
-
*
|
|
23114
|
-
* @export
|
|
23115
|
-
* @enum {string}
|
|
23116
|
-
*/
|
|
23117
|
-
|
|
23118
|
-
export const WorldlineEntryMode = {
|
|
23119
|
-
Keyed: 'Keyed',
|
|
23120
|
-
Magstripe: 'Magstripe',
|
|
23121
|
-
Chip: 'Chip',
|
|
23122
|
-
Contactless: 'Contactless'
|
|
23123
|
-
} as const;
|
|
23124
|
-
|
|
23125
|
-
export type WorldlineEntryMode = typeof WorldlineEntryMode[keyof typeof WorldlineEntryMode];
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
/**
|
|
23129
|
-
*
|
|
23130
|
-
* @export
|
|
23131
|
-
* @interface WorldlineErrorResponseDto
|
|
23132
|
-
*/
|
|
23133
|
-
export interface WorldlineErrorResponseDto {
|
|
23134
|
-
/**
|
|
23135
|
-
* Error description
|
|
23136
|
-
* @type {string}
|
|
23137
|
-
* @memberof WorldlineErrorResponseDto
|
|
23138
|
-
*/
|
|
23139
|
-
'description': string;
|
|
23140
|
-
/**
|
|
23141
|
-
* Validation or processing errors
|
|
23142
|
-
* @type {Array<string>}
|
|
23143
|
-
* @memberof WorldlineErrorResponseDto
|
|
23144
|
-
*/
|
|
23145
|
-
'errors'?: Array<string>;
|
|
23146
|
-
}
|
|
23147
|
-
/**
|
|
23148
|
-
*
|
|
23149
|
-
* @export
|
|
23150
|
-
* @interface WorldlineEventEnvelopeDto
|
|
23151
|
-
*/
|
|
23152
|
-
export interface WorldlineEventEnvelopeDto {
|
|
23153
|
-
/**
|
|
23154
|
-
* Unique event identifier
|
|
23155
|
-
* @type {string}
|
|
23156
|
-
* @memberof WorldlineEventEnvelopeDto
|
|
23157
|
-
*/
|
|
23158
|
-
'id': string;
|
|
23159
|
-
/**
|
|
23160
|
-
* Timestamp when the event was created
|
|
23161
|
-
* @type {string}
|
|
23162
|
-
* @memberof WorldlineEventEnvelopeDto
|
|
23163
|
-
*/
|
|
23164
|
-
'createdAt': string;
|
|
23165
|
-
/**
|
|
23166
|
-
*
|
|
23167
|
-
* @type {WorldlineEventType}
|
|
23168
|
-
* @memberof WorldlineEventEnvelopeDto
|
|
23169
|
-
*/
|
|
23170
|
-
'type': WorldlineEventType;
|
|
23171
|
-
/**
|
|
23172
|
-
* Business operation identifier
|
|
23173
|
-
* @type {string}
|
|
23174
|
-
* @memberof WorldlineEventEnvelopeDto
|
|
23175
|
-
*/
|
|
23176
|
-
'operationId'?: string;
|
|
23177
|
-
/**
|
|
23178
|
-
*
|
|
23179
|
-
* @type {WorldlineEventEnvelopeDtoData}
|
|
23180
|
-
* @memberof WorldlineEventEnvelopeDto
|
|
23181
|
-
*/
|
|
23182
|
-
'data'?: WorldlineEventEnvelopeDtoData;
|
|
23183
|
-
}
|
|
23184
|
-
|
|
23185
|
-
|
|
23186
|
-
/**
|
|
23187
|
-
* @type WorldlineEventEnvelopeDtoData
|
|
23188
|
-
* Event payload
|
|
23189
|
-
* @export
|
|
23190
|
-
*/
|
|
23191
|
-
export type WorldlineEventEnvelopeDtoData = WorldlineDialogDto | WorldlinePaymentResponseDto;
|
|
23192
|
-
|
|
23193
|
-
/**
|
|
23194
|
-
*
|
|
23195
|
-
* @export
|
|
23196
|
-
* @enum {string}
|
|
23197
|
-
*/
|
|
23198
|
-
|
|
23199
|
-
export const WorldlineEventType = {
|
|
23200
|
-
PaymentCompleted: 'PaymentCompleted',
|
|
23201
|
-
RefundCompleted: 'RefundCompleted',
|
|
23202
|
-
CaptureCompleted: 'CaptureCompleted',
|
|
23203
|
-
ReversalCompleted: 'ReversalCompleted',
|
|
23204
|
-
ReadCardCompleted: 'ReadCardCompleted',
|
|
23205
|
-
PrintCompleted: 'PrintCompleted',
|
|
23206
|
-
DialogShown: 'DialogShown'
|
|
23207
|
-
} as const;
|
|
23208
|
-
|
|
23209
|
-
export type WorldlineEventType = typeof WorldlineEventType[keyof typeof WorldlineEventType];
|
|
23210
|
-
|
|
23211
|
-
|
|
23212
|
-
/**
|
|
23213
|
-
*
|
|
23214
|
-
* @export
|
|
23215
|
-
* @interface WorldlineMerchantDto
|
|
23216
|
-
*/
|
|
23217
|
-
export interface WorldlineMerchantDto {
|
|
23218
|
-
/**
|
|
23219
|
-
* Merchant identifier
|
|
23220
|
-
* @type {string}
|
|
23221
|
-
* @memberof WorldlineMerchantDto
|
|
23222
|
-
*/
|
|
23223
|
-
'id'?: string;
|
|
23224
|
-
/**
|
|
23225
|
-
* Merchant display name
|
|
23226
|
-
* @type {string}
|
|
23227
|
-
* @memberof WorldlineMerchantDto
|
|
23228
|
-
*/
|
|
23229
|
-
'name': string;
|
|
23230
|
-
/**
|
|
23231
|
-
* Merchant street address
|
|
23232
|
-
* @type {string}
|
|
23233
|
-
* @memberof WorldlineMerchantDto
|
|
23234
|
-
*/
|
|
23235
|
-
'address'?: string;
|
|
23236
|
-
/**
|
|
23237
|
-
* Postal code and city
|
|
23238
|
-
* @type {string}
|
|
23239
|
-
* @memberof WorldlineMerchantDto
|
|
23240
|
-
*/
|
|
23241
|
-
'city'?: string;
|
|
23242
|
-
/**
|
|
23243
|
-
* Organization number
|
|
23244
|
-
* @type {string}
|
|
23245
|
-
* @memberof WorldlineMerchantDto
|
|
23246
|
-
*/
|
|
23247
|
-
'organizationNumber'?: string;
|
|
23248
|
-
/**
|
|
23249
|
-
* Phone number
|
|
23250
|
-
* @type {string}
|
|
23251
|
-
* @memberof WorldlineMerchantDto
|
|
23252
|
-
*/
|
|
23253
|
-
'phoneNumber'?: string;
|
|
23254
|
-
}
|
|
23255
|
-
/**
|
|
23256
|
-
*
|
|
23257
|
-
* @export
|
|
23258
|
-
* @interface WorldlineOngoingOperationDto
|
|
23259
|
-
*/
|
|
23260
|
-
export interface WorldlineOngoingOperationDto {
|
|
23261
|
-
/**
|
|
23262
|
-
* Current operation identifier
|
|
23263
|
-
* @type {string}
|
|
23264
|
-
* @memberof WorldlineOngoingOperationDto
|
|
23265
|
-
*/
|
|
23266
|
-
'operationId': string;
|
|
23267
|
-
/**
|
|
23268
|
-
* Current ongoing operation type
|
|
23269
|
-
* @type {string}
|
|
23270
|
-
* @memberof WorldlineOngoingOperationDto
|
|
23271
|
-
*/
|
|
23272
|
-
'type': string;
|
|
23273
|
-
}
|
|
23274
|
-
/**
|
|
23275
|
-
*
|
|
23276
|
-
* @export
|
|
23277
|
-
* @enum {string}
|
|
23278
|
-
*/
|
|
23279
|
-
|
|
23280
|
-
export const WorldlineOutcomeDescription = {
|
|
23281
|
-
None: 'None',
|
|
23282
|
-
Aborted: 'Aborted',
|
|
23283
|
-
UserCancel: 'UserCancel',
|
|
23284
|
-
UserTimeout: 'UserTimeout',
|
|
23285
|
-
CommunicationError: 'CommunicationError',
|
|
23286
|
-
GenericError: 'GenericError'
|
|
23287
|
-
} as const;
|
|
23288
|
-
|
|
23289
|
-
export type WorldlineOutcomeDescription = typeof WorldlineOutcomeDescription[keyof typeof WorldlineOutcomeDescription];
|
|
23290
|
-
|
|
23291
|
-
|
|
23292
23349
|
/**
|
|
23293
23350
|
*
|
|
23294
23351
|
* @export
|
|
@@ -23363,408 +23420,6 @@ export interface WorldlinePaymentRequestDataDtoAmounts {
|
|
|
23363
23420
|
*/
|
|
23364
23421
|
'tip'?: number;
|
|
23365
23422
|
}
|
|
23366
|
-
/**
|
|
23367
|
-
*
|
|
23368
|
-
* @export
|
|
23369
|
-
* @interface WorldlinePaymentResponseDto
|
|
23370
|
-
*/
|
|
23371
|
-
export interface WorldlinePaymentResponseDto {
|
|
23372
|
-
/**
|
|
23373
|
-
*
|
|
23374
|
-
* @type {WorldlinePaymentResponseDtoAmounts}
|
|
23375
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23376
|
-
*/
|
|
23377
|
-
'amounts'?: WorldlinePaymentResponseDtoAmounts;
|
|
23378
|
-
/**
|
|
23379
|
-
* Approval code
|
|
23380
|
-
* @type {string}
|
|
23381
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23382
|
-
*/
|
|
23383
|
-
'approvalCode'?: string;
|
|
23384
|
-
/**
|
|
23385
|
-
*
|
|
23386
|
-
* @type {WorldlineAuthorizationMethod}
|
|
23387
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23388
|
-
*/
|
|
23389
|
-
'authorizationMethod'?: WorldlineAuthorizationMethod;
|
|
23390
|
-
/**
|
|
23391
|
-
*
|
|
23392
|
-
* @type {WorldlineAuthorizationResponder}
|
|
23393
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23394
|
-
*/
|
|
23395
|
-
'authorizationResponder'?: WorldlineAuthorizationResponder;
|
|
23396
|
-
/**
|
|
23397
|
-
* Batch number
|
|
23398
|
-
* @type {string}
|
|
23399
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23400
|
-
*/
|
|
23401
|
-
'batchNumber'?: string;
|
|
23402
|
-
/**
|
|
23403
|
-
* Card product name
|
|
23404
|
-
* @type {string}
|
|
23405
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23406
|
-
*/
|
|
23407
|
-
'cardProductName'?: string;
|
|
23408
|
-
/**
|
|
23409
|
-
* Cashier identifier
|
|
23410
|
-
* @type {string}
|
|
23411
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23412
|
-
*/
|
|
23413
|
-
'cashierId'?: string;
|
|
23414
|
-
/**
|
|
23415
|
-
* POS custom data
|
|
23416
|
-
* @type {object}
|
|
23417
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23418
|
-
*/
|
|
23419
|
-
'customData'?: object;
|
|
23420
|
-
/**
|
|
23421
|
-
*
|
|
23422
|
-
* @type {WorldlineEntryMode}
|
|
23423
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23424
|
-
*/
|
|
23425
|
-
'entryMode'?: WorldlineEntryMode;
|
|
23426
|
-
/**
|
|
23427
|
-
* Financial institution
|
|
23428
|
-
* @type {string}
|
|
23429
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23430
|
-
*/
|
|
23431
|
-
'financialInstitution'?: string;
|
|
23432
|
-
/**
|
|
23433
|
-
* Masked PAN
|
|
23434
|
-
* @type {string}
|
|
23435
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23436
|
-
*/
|
|
23437
|
-
'maskedPan'?: string;
|
|
23438
|
-
/**
|
|
23439
|
-
*
|
|
23440
|
-
* @type {WorldlinePaymentResponseDtoMerchant}
|
|
23441
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23442
|
-
*/
|
|
23443
|
-
'merchant'?: WorldlinePaymentResponseDtoMerchant;
|
|
23444
|
-
/**
|
|
23445
|
-
*
|
|
23446
|
-
* @type {WorldlinePaymentResponseDtoReceipt}
|
|
23447
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23448
|
-
*/
|
|
23449
|
-
'receipt'?: WorldlinePaymentResponseDtoReceipt;
|
|
23450
|
-
/**
|
|
23451
|
-
* Receipt number
|
|
23452
|
-
* @type {string}
|
|
23453
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23454
|
-
*/
|
|
23455
|
-
'receiptNumber'?: string;
|
|
23456
|
-
/**
|
|
23457
|
-
* Action code
|
|
23458
|
-
* @type {string}
|
|
23459
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23460
|
-
*/
|
|
23461
|
-
'actionCode'?: string;
|
|
23462
|
-
/**
|
|
23463
|
-
*
|
|
23464
|
-
* @type {WorldlinePaymentResponseDtoTerminal}
|
|
23465
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23466
|
-
*/
|
|
23467
|
-
'terminal'?: WorldlinePaymentResponseDtoTerminal;
|
|
23468
|
-
/**
|
|
23469
|
-
* Terminal reference number
|
|
23470
|
-
* @type {string}
|
|
23471
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23472
|
-
*/
|
|
23473
|
-
'terminalRrn'?: string;
|
|
23474
|
-
/**
|
|
23475
|
-
* Transaction timestamp
|
|
23476
|
-
* @type {string}
|
|
23477
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23478
|
-
*/
|
|
23479
|
-
'timestamp'?: string;
|
|
23480
|
-
/**
|
|
23481
|
-
* Worldline transaction identifier
|
|
23482
|
-
* @type {string}
|
|
23483
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23484
|
-
*/
|
|
23485
|
-
'transactionId'?: string;
|
|
23486
|
-
/**
|
|
23487
|
-
*
|
|
23488
|
-
* @type {WorldlineTransactionOutcome}
|
|
23489
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23490
|
-
*/
|
|
23491
|
-
'transactionOutcome'?: WorldlineTransactionOutcome;
|
|
23492
|
-
/**
|
|
23493
|
-
*
|
|
23494
|
-
* @type {WorldlineOutcomeDescription}
|
|
23495
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23496
|
-
*/
|
|
23497
|
-
'outcomeDescription'?: WorldlineOutcomeDescription;
|
|
23498
|
-
/**
|
|
23499
|
-
*
|
|
23500
|
-
* @type {WorldlineTransactionType}
|
|
23501
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23502
|
-
*/
|
|
23503
|
-
'transactionType'?: WorldlineTransactionType;
|
|
23504
|
-
/**
|
|
23505
|
-
*
|
|
23506
|
-
* @type {WorldlineVerificationMethod}
|
|
23507
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23508
|
-
*/
|
|
23509
|
-
'verificationMethod'?: WorldlineVerificationMethod;
|
|
23510
|
-
/**
|
|
23511
|
-
* Cardholder language
|
|
23512
|
-
* @type {string}
|
|
23513
|
-
* @memberof WorldlinePaymentResponseDto
|
|
23514
|
-
*/
|
|
23515
|
-
'cardholderLanguage'?: string;
|
|
23516
|
-
}
|
|
23517
|
-
|
|
23518
|
-
|
|
23519
|
-
/**
|
|
23520
|
-
* Transaction amounts
|
|
23521
|
-
* @export
|
|
23522
|
-
* @interface WorldlinePaymentResponseDtoAmounts
|
|
23523
|
-
*/
|
|
23524
|
-
export interface WorldlinePaymentResponseDtoAmounts {
|
|
23525
|
-
/**
|
|
23526
|
-
*
|
|
23527
|
-
* @type {WorldlineAmountsResponseDtoCurrency}
|
|
23528
|
-
* @memberof WorldlinePaymentResponseDtoAmounts
|
|
23529
|
-
*/
|
|
23530
|
-
'currency': WorldlineAmountsResponseDtoCurrency;
|
|
23531
|
-
/**
|
|
23532
|
-
* Base amount
|
|
23533
|
-
* @type {number}
|
|
23534
|
-
* @memberof WorldlinePaymentResponseDtoAmounts
|
|
23535
|
-
*/
|
|
23536
|
-
'base': number;
|
|
23537
|
-
/**
|
|
23538
|
-
* Total amount
|
|
23539
|
-
* @type {number}
|
|
23540
|
-
* @memberof WorldlinePaymentResponseDtoAmounts
|
|
23541
|
-
*/
|
|
23542
|
-
'total': number;
|
|
23543
|
-
/**
|
|
23544
|
-
* Tip amount
|
|
23545
|
-
* @type {number}
|
|
23546
|
-
* @memberof WorldlinePaymentResponseDtoAmounts
|
|
23547
|
-
*/
|
|
23548
|
-
'tip'?: number;
|
|
23549
|
-
}
|
|
23550
|
-
/**
|
|
23551
|
-
* Merchant information
|
|
23552
|
-
* @export
|
|
23553
|
-
* @interface WorldlinePaymentResponseDtoMerchant
|
|
23554
|
-
*/
|
|
23555
|
-
export interface WorldlinePaymentResponseDtoMerchant {
|
|
23556
|
-
/**
|
|
23557
|
-
* Merchant identifier
|
|
23558
|
-
* @type {string}
|
|
23559
|
-
* @memberof WorldlinePaymentResponseDtoMerchant
|
|
23560
|
-
*/
|
|
23561
|
-
'id'?: string;
|
|
23562
|
-
/**
|
|
23563
|
-
* Merchant display name
|
|
23564
|
-
* @type {string}
|
|
23565
|
-
* @memberof WorldlinePaymentResponseDtoMerchant
|
|
23566
|
-
*/
|
|
23567
|
-
'name': string;
|
|
23568
|
-
/**
|
|
23569
|
-
* Merchant street address
|
|
23570
|
-
* @type {string}
|
|
23571
|
-
* @memberof WorldlinePaymentResponseDtoMerchant
|
|
23572
|
-
*/
|
|
23573
|
-
'address'?: string;
|
|
23574
|
-
/**
|
|
23575
|
-
* Postal code and city
|
|
23576
|
-
* @type {string}
|
|
23577
|
-
* @memberof WorldlinePaymentResponseDtoMerchant
|
|
23578
|
-
*/
|
|
23579
|
-
'city'?: string;
|
|
23580
|
-
/**
|
|
23581
|
-
* Organization number
|
|
23582
|
-
* @type {string}
|
|
23583
|
-
* @memberof WorldlinePaymentResponseDtoMerchant
|
|
23584
|
-
*/
|
|
23585
|
-
'organizationNumber'?: string;
|
|
23586
|
-
/**
|
|
23587
|
-
* Phone number
|
|
23588
|
-
* @type {string}
|
|
23589
|
-
* @memberof WorldlinePaymentResponseDtoMerchant
|
|
23590
|
-
*/
|
|
23591
|
-
'phoneNumber'?: string;
|
|
23592
|
-
}
|
|
23593
|
-
/**
|
|
23594
|
-
* Receipt data
|
|
23595
|
-
* @export
|
|
23596
|
-
* @interface WorldlinePaymentResponseDtoReceipt
|
|
23597
|
-
*/
|
|
23598
|
-
export interface WorldlinePaymentResponseDtoReceipt {
|
|
23599
|
-
/**
|
|
23600
|
-
*
|
|
23601
|
-
* @type {WorldlineReceiptDtoCustomer}
|
|
23602
|
-
* @memberof WorldlinePaymentResponseDtoReceipt
|
|
23603
|
-
*/
|
|
23604
|
-
'customer'?: WorldlineReceiptDtoCustomer;
|
|
23605
|
-
/**
|
|
23606
|
-
*
|
|
23607
|
-
* @type {WorldlineReceiptDtoMerchant}
|
|
23608
|
-
* @memberof WorldlinePaymentResponseDtoReceipt
|
|
23609
|
-
*/
|
|
23610
|
-
'merchant'?: WorldlineReceiptDtoMerchant;
|
|
23611
|
-
}
|
|
23612
|
-
/**
|
|
23613
|
-
* Terminal information
|
|
23614
|
-
* @export
|
|
23615
|
-
* @interface WorldlinePaymentResponseDtoTerminal
|
|
23616
|
-
*/
|
|
23617
|
-
export interface WorldlinePaymentResponseDtoTerminal {
|
|
23618
|
-
/**
|
|
23619
|
-
* Terminal identifier
|
|
23620
|
-
* @type {string}
|
|
23621
|
-
* @memberof WorldlinePaymentResponseDtoTerminal
|
|
23622
|
-
*/
|
|
23623
|
-
'id': string;
|
|
23624
|
-
/**
|
|
23625
|
-
* Current date and time in the terminal
|
|
23626
|
-
* @type {string}
|
|
23627
|
-
* @memberof WorldlinePaymentResponseDtoTerminal
|
|
23628
|
-
*/
|
|
23629
|
-
'dateTime': string;
|
|
23630
|
-
/**
|
|
23631
|
-
* Terminal uptime in seconds
|
|
23632
|
-
* @type {number}
|
|
23633
|
-
* @memberof WorldlinePaymentResponseDtoTerminal
|
|
23634
|
-
*/
|
|
23635
|
-
'uptimeSeconds'?: number;
|
|
23636
|
-
/**
|
|
23637
|
-
*
|
|
23638
|
-
* @type {WorldlineTerminalInformationDtoSoftware}
|
|
23639
|
-
* @memberof WorldlinePaymentResponseDtoTerminal
|
|
23640
|
-
*/
|
|
23641
|
-
'software'?: WorldlineTerminalInformationDtoSoftware;
|
|
23642
|
-
/**
|
|
23643
|
-
* Configured reboot time
|
|
23644
|
-
* @type {string}
|
|
23645
|
-
* @memberof WorldlinePaymentResponseDtoTerminal
|
|
23646
|
-
*/
|
|
23647
|
-
'rebootTime'?: string;
|
|
23648
|
-
}
|
|
23649
|
-
/**
|
|
23650
|
-
*
|
|
23651
|
-
* @export
|
|
23652
|
-
* @interface WorldlineReceiptContentDto
|
|
23653
|
-
*/
|
|
23654
|
-
export interface WorldlineReceiptContentDto {
|
|
23655
|
-
/**
|
|
23656
|
-
* Recommendation whether the receipt should be printed
|
|
23657
|
-
* @type {boolean}
|
|
23658
|
-
* @memberof WorldlineReceiptContentDto
|
|
23659
|
-
*/
|
|
23660
|
-
'shouldPrint'?: boolean;
|
|
23661
|
-
/**
|
|
23662
|
-
* Plain text receipt
|
|
23663
|
-
* @type {string}
|
|
23664
|
-
* @memberof WorldlineReceiptContentDto
|
|
23665
|
-
*/
|
|
23666
|
-
'plain'?: string;
|
|
23667
|
-
/**
|
|
23668
|
-
*
|
|
23669
|
-
* @type {WorldlineReceiptContentDtoEmbeddedPlain}
|
|
23670
|
-
* @memberof WorldlineReceiptContentDto
|
|
23671
|
-
*/
|
|
23672
|
-
'embeddedPlain'?: WorldlineReceiptContentDtoEmbeddedPlain;
|
|
23673
|
-
}
|
|
23674
|
-
/**
|
|
23675
|
-
* Embedded receipt sections
|
|
23676
|
-
* @export
|
|
23677
|
-
* @interface WorldlineReceiptContentDtoEmbeddedPlain
|
|
23678
|
-
*/
|
|
23679
|
-
export interface WorldlineReceiptContentDtoEmbeddedPlain {
|
|
23680
|
-
/**
|
|
23681
|
-
* Receipt header
|
|
23682
|
-
* @type {string}
|
|
23683
|
-
* @memberof WorldlineReceiptContentDtoEmbeddedPlain
|
|
23684
|
-
*/
|
|
23685
|
-
'header'?: string;
|
|
23686
|
-
/**
|
|
23687
|
-
* Receipt content
|
|
23688
|
-
* @type {string}
|
|
23689
|
-
* @memberof WorldlineReceiptContentDtoEmbeddedPlain
|
|
23690
|
-
*/
|
|
23691
|
-
'content'?: string;
|
|
23692
|
-
/**
|
|
23693
|
-
* Receipt footer
|
|
23694
|
-
* @type {string}
|
|
23695
|
-
* @memberof WorldlineReceiptContentDtoEmbeddedPlain
|
|
23696
|
-
*/
|
|
23697
|
-
'footer'?: string;
|
|
23698
|
-
}
|
|
23699
|
-
/**
|
|
23700
|
-
*
|
|
23701
|
-
* @export
|
|
23702
|
-
* @interface WorldlineReceiptDto
|
|
23703
|
-
*/
|
|
23704
|
-
export interface WorldlineReceiptDto {
|
|
23705
|
-
/**
|
|
23706
|
-
*
|
|
23707
|
-
* @type {WorldlineReceiptDtoCustomer}
|
|
23708
|
-
* @memberof WorldlineReceiptDto
|
|
23709
|
-
*/
|
|
23710
|
-
'customer'?: WorldlineReceiptDtoCustomer;
|
|
23711
|
-
/**
|
|
23712
|
-
*
|
|
23713
|
-
* @type {WorldlineReceiptDtoMerchant}
|
|
23714
|
-
* @memberof WorldlineReceiptDto
|
|
23715
|
-
*/
|
|
23716
|
-
'merchant'?: WorldlineReceiptDtoMerchant;
|
|
23717
|
-
}
|
|
23718
|
-
/**
|
|
23719
|
-
* Customer receipt
|
|
23720
|
-
* @export
|
|
23721
|
-
* @interface WorldlineReceiptDtoCustomer
|
|
23722
|
-
*/
|
|
23723
|
-
export interface WorldlineReceiptDtoCustomer {
|
|
23724
|
-
/**
|
|
23725
|
-
* Recommendation whether the receipt should be printed
|
|
23726
|
-
* @type {boolean}
|
|
23727
|
-
* @memberof WorldlineReceiptDtoCustomer
|
|
23728
|
-
*/
|
|
23729
|
-
'shouldPrint'?: boolean;
|
|
23730
|
-
/**
|
|
23731
|
-
* Plain text receipt
|
|
23732
|
-
* @type {string}
|
|
23733
|
-
* @memberof WorldlineReceiptDtoCustomer
|
|
23734
|
-
*/
|
|
23735
|
-
'plain'?: string;
|
|
23736
|
-
/**
|
|
23737
|
-
*
|
|
23738
|
-
* @type {WorldlineReceiptContentDtoEmbeddedPlain}
|
|
23739
|
-
* @memberof WorldlineReceiptDtoCustomer
|
|
23740
|
-
*/
|
|
23741
|
-
'embeddedPlain'?: WorldlineReceiptContentDtoEmbeddedPlain;
|
|
23742
|
-
}
|
|
23743
|
-
/**
|
|
23744
|
-
* Merchant receipt
|
|
23745
|
-
* @export
|
|
23746
|
-
* @interface WorldlineReceiptDtoMerchant
|
|
23747
|
-
*/
|
|
23748
|
-
export interface WorldlineReceiptDtoMerchant {
|
|
23749
|
-
/**
|
|
23750
|
-
* Recommendation whether the receipt should be printed
|
|
23751
|
-
* @type {boolean}
|
|
23752
|
-
* @memberof WorldlineReceiptDtoMerchant
|
|
23753
|
-
*/
|
|
23754
|
-
'shouldPrint'?: boolean;
|
|
23755
|
-
/**
|
|
23756
|
-
* Plain text receipt
|
|
23757
|
-
* @type {string}
|
|
23758
|
-
* @memberof WorldlineReceiptDtoMerchant
|
|
23759
|
-
*/
|
|
23760
|
-
'plain'?: string;
|
|
23761
|
-
/**
|
|
23762
|
-
*
|
|
23763
|
-
* @type {WorldlineReceiptContentDtoEmbeddedPlain}
|
|
23764
|
-
* @memberof WorldlineReceiptDtoMerchant
|
|
23765
|
-
*/
|
|
23766
|
-
'embeddedPlain'?: WorldlineReceiptContentDtoEmbeddedPlain;
|
|
23767
|
-
}
|
|
23768
23423
|
/**
|
|
23769
23424
|
*
|
|
23770
23425
|
* @export
|
|
@@ -23839,180 +23494,6 @@ export interface WorldlineRefundRequestDataDtoAmounts {
|
|
|
23839
23494
|
*/
|
|
23840
23495
|
'tip'?: number;
|
|
23841
23496
|
}
|
|
23842
|
-
/**
|
|
23843
|
-
*
|
|
23844
|
-
* @export
|
|
23845
|
-
* @interface WorldlineResponseEnvelopeDto
|
|
23846
|
-
*/
|
|
23847
|
-
export interface WorldlineResponseEnvelopeDto {
|
|
23848
|
-
/**
|
|
23849
|
-
* Identifier of the request this response belongs to
|
|
23850
|
-
* @type {string}
|
|
23851
|
-
* @memberof WorldlineResponseEnvelopeDto
|
|
23852
|
-
*/
|
|
23853
|
-
'id'?: string;
|
|
23854
|
-
/**
|
|
23855
|
-
* Timestamp when the response was created
|
|
23856
|
-
* @type {string}
|
|
23857
|
-
* @memberof WorldlineResponseEnvelopeDto
|
|
23858
|
-
*/
|
|
23859
|
-
'createdAt': string;
|
|
23860
|
-
/**
|
|
23861
|
-
*
|
|
23862
|
-
* @type {WorldlineResponseStatus}
|
|
23863
|
-
* @memberof WorldlineResponseEnvelopeDto
|
|
23864
|
-
*/
|
|
23865
|
-
'status': WorldlineResponseStatus;
|
|
23866
|
-
/**
|
|
23867
|
-
*
|
|
23868
|
-
* @type {WorldlineResponseEnvelopeDtoData}
|
|
23869
|
-
* @memberof WorldlineResponseEnvelopeDto
|
|
23870
|
-
*/
|
|
23871
|
-
'data': WorldlineResponseEnvelopeDtoData;
|
|
23872
|
-
}
|
|
23873
|
-
|
|
23874
|
-
|
|
23875
|
-
/**
|
|
23876
|
-
* @type WorldlineResponseEnvelopeDtoData
|
|
23877
|
-
* Response payload
|
|
23878
|
-
* @export
|
|
23879
|
-
*/
|
|
23880
|
-
export type WorldlineResponseEnvelopeDtoData = WorldlineAsyncResponseDto | WorldlineDeviceInformationResponseDto | WorldlineErrorResponseDto | WorldlinePaymentResponseDto;
|
|
23881
|
-
|
|
23882
|
-
/**
|
|
23883
|
-
*
|
|
23884
|
-
* @export
|
|
23885
|
-
* @enum {string}
|
|
23886
|
-
*/
|
|
23887
|
-
|
|
23888
|
-
export const WorldlineResponseStatus = {
|
|
23889
|
-
Ok: 'OK',
|
|
23890
|
-
NotFound: 'NotFound',
|
|
23891
|
-
BadRequest: 'BadRequest',
|
|
23892
|
-
Unauthorized: 'Unauthorized',
|
|
23893
|
-
Forbidden: 'Forbidden',
|
|
23894
|
-
TooManyRequests: 'TooManyRequests',
|
|
23895
|
-
ServiceUnavailable: 'ServiceUnavailable',
|
|
23896
|
-
InternalServerError: 'InternalServerError'
|
|
23897
|
-
} as const;
|
|
23898
|
-
|
|
23899
|
-
export type WorldlineResponseStatus = typeof WorldlineResponseStatus[keyof typeof WorldlineResponseStatus];
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
/**
|
|
23903
|
-
*
|
|
23904
|
-
* @export
|
|
23905
|
-
* @interface WorldlineTerminalInformationDto
|
|
23906
|
-
*/
|
|
23907
|
-
export interface WorldlineTerminalInformationDto {
|
|
23908
|
-
/**
|
|
23909
|
-
* Terminal identifier
|
|
23910
|
-
* @type {string}
|
|
23911
|
-
* @memberof WorldlineTerminalInformationDto
|
|
23912
|
-
*/
|
|
23913
|
-
'id': string;
|
|
23914
|
-
/**
|
|
23915
|
-
* Current date and time in the terminal
|
|
23916
|
-
* @type {string}
|
|
23917
|
-
* @memberof WorldlineTerminalInformationDto
|
|
23918
|
-
*/
|
|
23919
|
-
'dateTime': string;
|
|
23920
|
-
/**
|
|
23921
|
-
* Terminal uptime in seconds
|
|
23922
|
-
* @type {number}
|
|
23923
|
-
* @memberof WorldlineTerminalInformationDto
|
|
23924
|
-
*/
|
|
23925
|
-
'uptimeSeconds'?: number;
|
|
23926
|
-
/**
|
|
23927
|
-
*
|
|
23928
|
-
* @type {WorldlineTerminalInformationDtoSoftware}
|
|
23929
|
-
* @memberof WorldlineTerminalInformationDto
|
|
23930
|
-
*/
|
|
23931
|
-
'software'?: WorldlineTerminalInformationDtoSoftware;
|
|
23932
|
-
/**
|
|
23933
|
-
* Configured reboot time
|
|
23934
|
-
* @type {string}
|
|
23935
|
-
* @memberof WorldlineTerminalInformationDto
|
|
23936
|
-
*/
|
|
23937
|
-
'rebootTime'?: string;
|
|
23938
|
-
}
|
|
23939
|
-
/**
|
|
23940
|
-
* Terminal software information
|
|
23941
|
-
* @export
|
|
23942
|
-
* @interface WorldlineTerminalInformationDtoSoftware
|
|
23943
|
-
*/
|
|
23944
|
-
export interface WorldlineTerminalInformationDtoSoftware {
|
|
23945
|
-
/**
|
|
23946
|
-
* Current terminal software version
|
|
23947
|
-
* @type {string}
|
|
23948
|
-
* @memberof WorldlineTerminalInformationDtoSoftware
|
|
23949
|
-
*/
|
|
23950
|
-
'current': string;
|
|
23951
|
-
}
|
|
23952
|
-
/**
|
|
23953
|
-
*
|
|
23954
|
-
* @export
|
|
23955
|
-
* @interface WorldlineTerminalSoftwareDto
|
|
23956
|
-
*/
|
|
23957
|
-
export interface WorldlineTerminalSoftwareDto {
|
|
23958
|
-
/**
|
|
23959
|
-
* Current terminal software version
|
|
23960
|
-
* @type {string}
|
|
23961
|
-
* @memberof WorldlineTerminalSoftwareDto
|
|
23962
|
-
*/
|
|
23963
|
-
'current': string;
|
|
23964
|
-
}
|
|
23965
|
-
/**
|
|
23966
|
-
*
|
|
23967
|
-
* @export
|
|
23968
|
-
* @enum {string}
|
|
23969
|
-
*/
|
|
23970
|
-
|
|
23971
|
-
export const WorldlineTransactionOutcome = {
|
|
23972
|
-
Approved: 'Approved',
|
|
23973
|
-
Declined: 'Declined',
|
|
23974
|
-
Cancelled: 'Cancelled'
|
|
23975
|
-
} as const;
|
|
23976
|
-
|
|
23977
|
-
export type WorldlineTransactionOutcome = typeof WorldlineTransactionOutcome[keyof typeof WorldlineTransactionOutcome];
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
/**
|
|
23981
|
-
*
|
|
23982
|
-
* @export
|
|
23983
|
-
* @enum {string}
|
|
23984
|
-
*/
|
|
23985
|
-
|
|
23986
|
-
export const WorldlineTransactionType = {
|
|
23987
|
-
Payment: 'Payment',
|
|
23988
|
-
Refund: 'Refund',
|
|
23989
|
-
Capture: 'Capture',
|
|
23990
|
-
Reversal: 'Reversal',
|
|
23991
|
-
Print: 'Print'
|
|
23992
|
-
} as const;
|
|
23993
|
-
|
|
23994
|
-
export type WorldlineTransactionType = typeof WorldlineTransactionType[keyof typeof WorldlineTransactionType];
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
/**
|
|
23998
|
-
*
|
|
23999
|
-
* @export
|
|
24000
|
-
* @enum {string}
|
|
24001
|
-
*/
|
|
24002
|
-
|
|
24003
|
-
export const WorldlineVerificationMethod = {
|
|
24004
|
-
Failed: 'Failed',
|
|
24005
|
-
OnlinePin: 'OnlinePin',
|
|
24006
|
-
OfflinePin: 'OfflinePin',
|
|
24007
|
-
Signature: 'Signature',
|
|
24008
|
-
NoCvm: 'NoCvm',
|
|
24009
|
-
ConsumerDevice: 'ConsumerDevice',
|
|
24010
|
-
Skipped: 'Skipped'
|
|
24011
|
-
} as const;
|
|
24012
|
-
|
|
24013
|
-
export type WorldlineVerificationMethod = typeof WorldlineVerificationMethod[keyof typeof WorldlineVerificationMethod];
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
23497
|
|
|
24017
23498
|
/**
|
|
24018
23499
|
* AblyApi - axios parameter creator
|
|
@@ -35232,131 +34713,6 @@ export class OrderInternalApi extends BaseAPI implements OrderInternalApiInterfa
|
|
|
35232
34713
|
}
|
|
35233
34714
|
|
|
35234
34715
|
|
|
35235
|
-
/**
|
|
35236
|
-
* OrderingCoApi - axios parameter creator
|
|
35237
|
-
* @export
|
|
35238
|
-
*/
|
|
35239
|
-
export const OrderingCoApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35240
|
-
return {
|
|
35241
|
-
/**
|
|
35242
|
-
*
|
|
35243
|
-
* @summary Update tax rate for businesses
|
|
35244
|
-
* @param {object} body
|
|
35245
|
-
* @param {*} [options] Override http request option.
|
|
35246
|
-
* @throws {RequiredError}
|
|
35247
|
-
*/
|
|
35248
|
-
updateTaxRate: async (body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35249
|
-
// verify required parameter 'body' is not null or undefined
|
|
35250
|
-
assertParamExists('updateTaxRate', 'body', body)
|
|
35251
|
-
const localVarPath = `/api/v1/ordering/update-tax-rate`;
|
|
35252
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35253
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35254
|
-
let baseOptions;
|
|
35255
|
-
if (configuration) {
|
|
35256
|
-
baseOptions = configuration.baseOptions;
|
|
35257
|
-
}
|
|
35258
|
-
|
|
35259
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
35260
|
-
const localVarHeaderParameter = {} as any;
|
|
35261
|
-
const localVarQueryParameter = {} as any;
|
|
35262
|
-
|
|
35263
|
-
|
|
35264
|
-
|
|
35265
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
35266
|
-
|
|
35267
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35268
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35269
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35270
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
35271
|
-
|
|
35272
|
-
return {
|
|
35273
|
-
url: toPathString(localVarUrlObj),
|
|
35274
|
-
options: localVarRequestOptions,
|
|
35275
|
-
};
|
|
35276
|
-
},
|
|
35277
|
-
}
|
|
35278
|
-
};
|
|
35279
|
-
|
|
35280
|
-
/**
|
|
35281
|
-
* OrderingCoApi - functional programming interface
|
|
35282
|
-
* @export
|
|
35283
|
-
*/
|
|
35284
|
-
export const OrderingCoApiFp = function(configuration?: Configuration) {
|
|
35285
|
-
const localVarAxiosParamCreator = OrderingCoApiAxiosParamCreator(configuration)
|
|
35286
|
-
return {
|
|
35287
|
-
/**
|
|
35288
|
-
*
|
|
35289
|
-
* @summary Update tax rate for businesses
|
|
35290
|
-
* @param {object} body
|
|
35291
|
-
* @param {*} [options] Override http request option.
|
|
35292
|
-
* @throws {RequiredError}
|
|
35293
|
-
*/
|
|
35294
|
-
async updateTaxRate(body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
35295
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTaxRate(body, options);
|
|
35296
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35297
|
-
},
|
|
35298
|
-
}
|
|
35299
|
-
};
|
|
35300
|
-
|
|
35301
|
-
/**
|
|
35302
|
-
* OrderingCoApi - factory interface
|
|
35303
|
-
* @export
|
|
35304
|
-
*/
|
|
35305
|
-
export const OrderingCoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
35306
|
-
const localVarFp = OrderingCoApiFp(configuration)
|
|
35307
|
-
return {
|
|
35308
|
-
/**
|
|
35309
|
-
*
|
|
35310
|
-
* @summary Update tax rate for businesses
|
|
35311
|
-
* @param {object} body
|
|
35312
|
-
* @param {*} [options] Override http request option.
|
|
35313
|
-
* @throws {RequiredError}
|
|
35314
|
-
*/
|
|
35315
|
-
updateTaxRate(body: object, options?: any): AxiosPromise<void> {
|
|
35316
|
-
return localVarFp.updateTaxRate(body, options).then((request) => request(axios, basePath));
|
|
35317
|
-
},
|
|
35318
|
-
};
|
|
35319
|
-
};
|
|
35320
|
-
|
|
35321
|
-
/**
|
|
35322
|
-
* OrderingCoApi - interface
|
|
35323
|
-
* @export
|
|
35324
|
-
* @interface OrderingCoApi
|
|
35325
|
-
*/
|
|
35326
|
-
export interface OrderingCoApiInterface {
|
|
35327
|
-
/**
|
|
35328
|
-
*
|
|
35329
|
-
* @summary Update tax rate for businesses
|
|
35330
|
-
* @param {object} body
|
|
35331
|
-
* @param {*} [options] Override http request option.
|
|
35332
|
-
* @throws {RequiredError}
|
|
35333
|
-
* @memberof OrderingCoApiInterface
|
|
35334
|
-
*/
|
|
35335
|
-
updateTaxRate(body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
35336
|
-
|
|
35337
|
-
}
|
|
35338
|
-
|
|
35339
|
-
/**
|
|
35340
|
-
* OrderingCoApi - object-oriented interface
|
|
35341
|
-
* @export
|
|
35342
|
-
* @class OrderingCoApi
|
|
35343
|
-
* @extends {BaseAPI}
|
|
35344
|
-
*/
|
|
35345
|
-
export class OrderingCoApi extends BaseAPI implements OrderingCoApiInterface {
|
|
35346
|
-
/**
|
|
35347
|
-
*
|
|
35348
|
-
* @summary Update tax rate for businesses
|
|
35349
|
-
* @param {object} body
|
|
35350
|
-
* @param {*} [options] Override http request option.
|
|
35351
|
-
* @throws {RequiredError}
|
|
35352
|
-
* @memberof OrderingCoApi
|
|
35353
|
-
*/
|
|
35354
|
-
public updateTaxRate(body: object, options?: AxiosRequestConfig) {
|
|
35355
|
-
return OrderingCoApiFp(this.configuration).updateTaxRate(body, options).then((request) => request(this.axios, this.basePath));
|
|
35356
|
-
}
|
|
35357
|
-
}
|
|
35358
|
-
|
|
35359
|
-
|
|
35360
34716
|
/**
|
|
35361
34717
|
* OrdersApi - axios parameter creator
|
|
35362
34718
|
* @export
|
|
@@ -37880,6 +37236,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
37880
37236
|
options: localVarRequestOptions,
|
|
37881
37237
|
};
|
|
37882
37238
|
},
|
|
37239
|
+
/**
|
|
37240
|
+
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
37241
|
+
* @summary Initiate a Viva app-to-app payment session
|
|
37242
|
+
* @param {InitiateVivaA2aSessionDto} initiateVivaA2aSessionDto
|
|
37243
|
+
* @param {*} [options] Override http request option.
|
|
37244
|
+
* @throws {RequiredError}
|
|
37245
|
+
*/
|
|
37246
|
+
initiateVivaA2aSession: async (initiateVivaA2aSessionDto: InitiateVivaA2aSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37247
|
+
// verify required parameter 'initiateVivaA2aSessionDto' is not null or undefined
|
|
37248
|
+
assertParamExists('initiateVivaA2aSession', 'initiateVivaA2aSessionDto', initiateVivaA2aSessionDto)
|
|
37249
|
+
const localVarPath = `/api/v1/payment-session/viva/a2a`;
|
|
37250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37251
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37252
|
+
let baseOptions;
|
|
37253
|
+
if (configuration) {
|
|
37254
|
+
baseOptions = configuration.baseOptions;
|
|
37255
|
+
}
|
|
37256
|
+
|
|
37257
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37258
|
+
const localVarHeaderParameter = {} as any;
|
|
37259
|
+
const localVarQueryParameter = {} as any;
|
|
37260
|
+
|
|
37261
|
+
|
|
37262
|
+
|
|
37263
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37264
|
+
|
|
37265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37267
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37268
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateVivaA2aSessionDto, localVarRequestOptions, configuration)
|
|
37269
|
+
|
|
37270
|
+
return {
|
|
37271
|
+
url: toPathString(localVarUrlObj),
|
|
37272
|
+
options: localVarRequestOptions,
|
|
37273
|
+
};
|
|
37274
|
+
},
|
|
37883
37275
|
/**
|
|
37884
37276
|
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
37885
37277
|
* @summary Initiate a Viva payment session
|
|
@@ -38032,13 +37424,13 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
38032
37424
|
/**
|
|
38033
37425
|
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38034
37426
|
* @summary Void a manual payment session
|
|
38035
|
-
* @param {
|
|
37427
|
+
* @param {VoidManualSessionDto} voidManualSessionDto
|
|
38036
37428
|
* @param {*} [options] Override http request option.
|
|
38037
37429
|
* @throws {RequiredError}
|
|
38038
37430
|
*/
|
|
38039
|
-
voidManualPayment: async (
|
|
38040
|
-
// verify required parameter '
|
|
38041
|
-
assertParamExists('voidManualPayment', '
|
|
37431
|
+
voidManualPayment: async (voidManualSessionDto: VoidManualSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37432
|
+
// verify required parameter 'voidManualSessionDto' is not null or undefined
|
|
37433
|
+
assertParamExists('voidManualPayment', 'voidManualSessionDto', voidManualSessionDto)
|
|
38042
37434
|
const localVarPath = `/api/v1/payment-session/void`;
|
|
38043
37435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38044
37436
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -38058,7 +37450,7 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
38058
37450
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38059
37451
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38060
37452
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38061
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
37453
|
+
localVarRequestOptions.data = serializeDataIfNeeded(voidManualSessionDto, localVarRequestOptions, configuration)
|
|
38062
37454
|
|
|
38063
37455
|
return {
|
|
38064
37456
|
url: toPathString(localVarUrlObj),
|
|
@@ -38097,6 +37489,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
38097
37489
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSession(clientToken, options);
|
|
38098
37490
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38099
37491
|
},
|
|
37492
|
+
/**
|
|
37493
|
+
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
37494
|
+
* @summary Initiate a Viva app-to-app payment session
|
|
37495
|
+
* @param {InitiateVivaA2aSessionDto} initiateVivaA2aSessionDto
|
|
37496
|
+
* @param {*} [options] Override http request option.
|
|
37497
|
+
* @throws {RequiredError}
|
|
37498
|
+
*/
|
|
37499
|
+
async initiateVivaA2aSession(initiateVivaA2aSessionDto: InitiateVivaA2aSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateVivaA2aSessionResponseDto>> {
|
|
37500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateVivaA2aSession(initiateVivaA2aSessionDto, options);
|
|
37501
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37502
|
+
},
|
|
38100
37503
|
/**
|
|
38101
37504
|
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38102
37505
|
* @summary Initiate a Viva payment session
|
|
@@ -38116,7 +37519,7 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
38116
37519
|
* @param {*} [options] Override http request option.
|
|
38117
37520
|
* @throws {RequiredError}
|
|
38118
37521
|
*/
|
|
38119
|
-
async recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
37522
|
+
async recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecordManualPaymentResultDto>> {
|
|
38120
37523
|
const localVarAxiosArgs = await localVarAxiosParamCreator.recordManualPayment(createManualSessionDto, options);
|
|
38121
37524
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38122
37525
|
},
|
|
@@ -38145,12 +37548,12 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
38145
37548
|
/**
|
|
38146
37549
|
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38147
37550
|
* @summary Void a manual payment session
|
|
38148
|
-
* @param {
|
|
37551
|
+
* @param {VoidManualSessionDto} voidManualSessionDto
|
|
38149
37552
|
* @param {*} [options] Override http request option.
|
|
38150
37553
|
* @throws {RequiredError}
|
|
38151
37554
|
*/
|
|
38152
|
-
async voidManualPayment(
|
|
38153
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.voidManualPayment(
|
|
37555
|
+
async voidManualPayment(voidManualSessionDto: VoidManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecordManualPaymentResultDto>> {
|
|
37556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.voidManualPayment(voidManualSessionDto, options);
|
|
38154
37557
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38155
37558
|
},
|
|
38156
37559
|
}
|
|
@@ -38183,6 +37586,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
38183
37586
|
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
38184
37587
|
return localVarFp.getPaymentSession(clientToken, options).then((request) => request(axios, basePath));
|
|
38185
37588
|
},
|
|
37589
|
+
/**
|
|
37590
|
+
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
37591
|
+
* @summary Initiate a Viva app-to-app payment session
|
|
37592
|
+
* @param {InitiateVivaA2aSessionDto} initiateVivaA2aSessionDto
|
|
37593
|
+
* @param {*} [options] Override http request option.
|
|
37594
|
+
* @throws {RequiredError}
|
|
37595
|
+
*/
|
|
37596
|
+
initiateVivaA2aSession(initiateVivaA2aSessionDto: InitiateVivaA2aSessionDto, options?: any): AxiosPromise<InitiateVivaA2aSessionResponseDto> {
|
|
37597
|
+
return localVarFp.initiateVivaA2aSession(initiateVivaA2aSessionDto, options).then((request) => request(axios, basePath));
|
|
37598
|
+
},
|
|
38186
37599
|
/**
|
|
38187
37600
|
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38188
37601
|
* @summary Initiate a Viva payment session
|
|
@@ -38201,7 +37614,7 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
38201
37614
|
* @param {*} [options] Override http request option.
|
|
38202
37615
|
* @throws {RequiredError}
|
|
38203
37616
|
*/
|
|
38204
|
-
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<
|
|
37617
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<RecordManualPaymentResultDto> {
|
|
38205
37618
|
return localVarFp.recordManualPayment(createManualSessionDto, options).then((request) => request(axios, basePath));
|
|
38206
37619
|
},
|
|
38207
37620
|
/**
|
|
@@ -38227,12 +37640,12 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
38227
37640
|
/**
|
|
38228
37641
|
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38229
37642
|
* @summary Void a manual payment session
|
|
38230
|
-
* @param {
|
|
37643
|
+
* @param {VoidManualSessionDto} voidManualSessionDto
|
|
38231
37644
|
* @param {*} [options] Override http request option.
|
|
38232
37645
|
* @throws {RequiredError}
|
|
38233
37646
|
*/
|
|
38234
|
-
voidManualPayment(
|
|
38235
|
-
return localVarFp.voidManualPayment(
|
|
37647
|
+
voidManualPayment(voidManualSessionDto: VoidManualSessionDto, options?: any): AxiosPromise<RecordManualPaymentResultDto> {
|
|
37648
|
+
return localVarFp.voidManualPayment(voidManualSessionDto, options).then((request) => request(axios, basePath));
|
|
38236
37649
|
},
|
|
38237
37650
|
};
|
|
38238
37651
|
};
|
|
@@ -38263,6 +37676,16 @@ export interface PaymentSessionApiInterface {
|
|
|
38263
37676
|
*/
|
|
38264
37677
|
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
38265
37678
|
|
|
37679
|
+
/**
|
|
37680
|
+
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
37681
|
+
* @summary Initiate a Viva app-to-app payment session
|
|
37682
|
+
* @param {InitiateVivaA2aSessionDto} initiateVivaA2aSessionDto
|
|
37683
|
+
* @param {*} [options] Override http request option.
|
|
37684
|
+
* @throws {RequiredError}
|
|
37685
|
+
* @memberof PaymentSessionApiInterface
|
|
37686
|
+
*/
|
|
37687
|
+
initiateVivaA2aSession(initiateVivaA2aSessionDto: InitiateVivaA2aSessionDto, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaA2aSessionResponseDto>;
|
|
37688
|
+
|
|
38266
37689
|
/**
|
|
38267
37690
|
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38268
37691
|
* @summary Initiate a Viva payment session
|
|
@@ -38282,7 +37705,7 @@ export interface PaymentSessionApiInterface {
|
|
|
38282
37705
|
* @throws {RequiredError}
|
|
38283
37706
|
* @memberof PaymentSessionApiInterface
|
|
38284
37707
|
*/
|
|
38285
|
-
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<
|
|
37708
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<RecordManualPaymentResultDto>;
|
|
38286
37709
|
|
|
38287
37710
|
/**
|
|
38288
37711
|
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
@@ -38307,12 +37730,12 @@ export interface PaymentSessionApiInterface {
|
|
|
38307
37730
|
/**
|
|
38308
37731
|
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38309
37732
|
* @summary Void a manual payment session
|
|
38310
|
-
* @param {
|
|
37733
|
+
* @param {VoidManualSessionDto} voidManualSessionDto
|
|
38311
37734
|
* @param {*} [options] Override http request option.
|
|
38312
37735
|
* @throws {RequiredError}
|
|
38313
37736
|
* @memberof PaymentSessionApiInterface
|
|
38314
37737
|
*/
|
|
38315
|
-
voidManualPayment(
|
|
37738
|
+
voidManualPayment(voidManualSessionDto: VoidManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<RecordManualPaymentResultDto>;
|
|
38316
37739
|
|
|
38317
37740
|
}
|
|
38318
37741
|
|
|
@@ -38347,6 +37770,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
38347
37770
|
return PaymentSessionApiFp(this.configuration).getPaymentSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
38348
37771
|
}
|
|
38349
37772
|
|
|
37773
|
+
/**
|
|
37774
|
+
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
37775
|
+
* @summary Initiate a Viva app-to-app payment session
|
|
37776
|
+
* @param {InitiateVivaA2aSessionDto} initiateVivaA2aSessionDto
|
|
37777
|
+
* @param {*} [options] Override http request option.
|
|
37778
|
+
* @throws {RequiredError}
|
|
37779
|
+
* @memberof PaymentSessionApi
|
|
37780
|
+
*/
|
|
37781
|
+
public initiateVivaA2aSession(initiateVivaA2aSessionDto: InitiateVivaA2aSessionDto, options?: AxiosRequestConfig) {
|
|
37782
|
+
return PaymentSessionApiFp(this.configuration).initiateVivaA2aSession(initiateVivaA2aSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
37783
|
+
}
|
|
37784
|
+
|
|
38350
37785
|
/**
|
|
38351
37786
|
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
38352
37787
|
* @summary Initiate a Viva payment session
|
|
@@ -38399,187 +37834,13 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
38399
37834
|
/**
|
|
38400
37835
|
* Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
|
|
38401
37836
|
* @summary Void a manual payment session
|
|
38402
|
-
* @param {
|
|
37837
|
+
* @param {VoidManualSessionDto} voidManualSessionDto
|
|
38403
37838
|
* @param {*} [options] Override http request option.
|
|
38404
37839
|
* @throws {RequiredError}
|
|
38405
37840
|
* @memberof PaymentSessionApi
|
|
38406
37841
|
*/
|
|
38407
|
-
public voidManualPayment(
|
|
38408
|
-
return PaymentSessionApiFp(this.configuration).voidManualPayment(
|
|
38409
|
-
}
|
|
38410
|
-
}
|
|
38411
|
-
|
|
38412
|
-
|
|
38413
|
-
/**
|
|
38414
|
-
* PluginApi - axios parameter creator
|
|
38415
|
-
* @export
|
|
38416
|
-
*/
|
|
38417
|
-
export const PluginApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38418
|
-
return {
|
|
38419
|
-
/**
|
|
38420
|
-
*
|
|
38421
|
-
* @param {*} [options] Override http request option.
|
|
38422
|
-
* @throws {RequiredError}
|
|
38423
|
-
*/
|
|
38424
|
-
loadConfigFile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38425
|
-
const localVarPath = `/api/plugin/config.json`;
|
|
38426
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38427
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38428
|
-
let baseOptions;
|
|
38429
|
-
if (configuration) {
|
|
38430
|
-
baseOptions = configuration.baseOptions;
|
|
38431
|
-
}
|
|
38432
|
-
|
|
38433
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
38434
|
-
const localVarHeaderParameter = {} as any;
|
|
38435
|
-
const localVarQueryParameter = {} as any;
|
|
38436
|
-
|
|
38437
|
-
|
|
38438
|
-
|
|
38439
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38440
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38441
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38442
|
-
|
|
38443
|
-
return {
|
|
38444
|
-
url: toPathString(localVarUrlObj),
|
|
38445
|
-
options: localVarRequestOptions,
|
|
38446
|
-
};
|
|
38447
|
-
},
|
|
38448
|
-
/**
|
|
38449
|
-
*
|
|
38450
|
-
* @param {*} [options] Override http request option.
|
|
38451
|
-
* @throws {RequiredError}
|
|
38452
|
-
*/
|
|
38453
|
-
upsertBusiness: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38454
|
-
const localVarPath = `/api/plugin/business/upsert`;
|
|
38455
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38456
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38457
|
-
let baseOptions;
|
|
38458
|
-
if (configuration) {
|
|
38459
|
-
baseOptions = configuration.baseOptions;
|
|
38460
|
-
}
|
|
38461
|
-
|
|
38462
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
38463
|
-
const localVarHeaderParameter = {} as any;
|
|
38464
|
-
const localVarQueryParameter = {} as any;
|
|
38465
|
-
|
|
38466
|
-
|
|
38467
|
-
|
|
38468
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38469
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38470
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38471
|
-
|
|
38472
|
-
return {
|
|
38473
|
-
url: toPathString(localVarUrlObj),
|
|
38474
|
-
options: localVarRequestOptions,
|
|
38475
|
-
};
|
|
38476
|
-
},
|
|
38477
|
-
}
|
|
38478
|
-
};
|
|
38479
|
-
|
|
38480
|
-
/**
|
|
38481
|
-
* PluginApi - functional programming interface
|
|
38482
|
-
* @export
|
|
38483
|
-
*/
|
|
38484
|
-
export const PluginApiFp = function(configuration?: Configuration) {
|
|
38485
|
-
const localVarAxiosParamCreator = PluginApiAxiosParamCreator(configuration)
|
|
38486
|
-
return {
|
|
38487
|
-
/**
|
|
38488
|
-
*
|
|
38489
|
-
* @param {*} [options] Override http request option.
|
|
38490
|
-
* @throws {RequiredError}
|
|
38491
|
-
*/
|
|
38492
|
-
async loadConfigFile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
38493
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.loadConfigFile(options);
|
|
38494
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38495
|
-
},
|
|
38496
|
-
/**
|
|
38497
|
-
*
|
|
38498
|
-
* @param {*} [options] Override http request option.
|
|
38499
|
-
* @throws {RequiredError}
|
|
38500
|
-
*/
|
|
38501
|
-
async upsertBusiness(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
38502
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertBusiness(options);
|
|
38503
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38504
|
-
},
|
|
38505
|
-
}
|
|
38506
|
-
};
|
|
38507
|
-
|
|
38508
|
-
/**
|
|
38509
|
-
* PluginApi - factory interface
|
|
38510
|
-
* @export
|
|
38511
|
-
*/
|
|
38512
|
-
export const PluginApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38513
|
-
const localVarFp = PluginApiFp(configuration)
|
|
38514
|
-
return {
|
|
38515
|
-
/**
|
|
38516
|
-
*
|
|
38517
|
-
* @param {*} [options] Override http request option.
|
|
38518
|
-
* @throws {RequiredError}
|
|
38519
|
-
*/
|
|
38520
|
-
loadConfigFile(options?: any): AxiosPromise<void> {
|
|
38521
|
-
return localVarFp.loadConfigFile(options).then((request) => request(axios, basePath));
|
|
38522
|
-
},
|
|
38523
|
-
/**
|
|
38524
|
-
*
|
|
38525
|
-
* @param {*} [options] Override http request option.
|
|
38526
|
-
* @throws {RequiredError}
|
|
38527
|
-
*/
|
|
38528
|
-
upsertBusiness(options?: any): AxiosPromise<void> {
|
|
38529
|
-
return localVarFp.upsertBusiness(options).then((request) => request(axios, basePath));
|
|
38530
|
-
},
|
|
38531
|
-
};
|
|
38532
|
-
};
|
|
38533
|
-
|
|
38534
|
-
/**
|
|
38535
|
-
* PluginApi - interface
|
|
38536
|
-
* @export
|
|
38537
|
-
* @interface PluginApi
|
|
38538
|
-
*/
|
|
38539
|
-
export interface PluginApiInterface {
|
|
38540
|
-
/**
|
|
38541
|
-
*
|
|
38542
|
-
* @param {*} [options] Override http request option.
|
|
38543
|
-
* @throws {RequiredError}
|
|
38544
|
-
* @memberof PluginApiInterface
|
|
38545
|
-
*/
|
|
38546
|
-
loadConfigFile(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
38547
|
-
|
|
38548
|
-
/**
|
|
38549
|
-
*
|
|
38550
|
-
* @param {*} [options] Override http request option.
|
|
38551
|
-
* @throws {RequiredError}
|
|
38552
|
-
* @memberof PluginApiInterface
|
|
38553
|
-
*/
|
|
38554
|
-
upsertBusiness(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
38555
|
-
|
|
38556
|
-
}
|
|
38557
|
-
|
|
38558
|
-
/**
|
|
38559
|
-
* PluginApi - object-oriented interface
|
|
38560
|
-
* @export
|
|
38561
|
-
* @class PluginApi
|
|
38562
|
-
* @extends {BaseAPI}
|
|
38563
|
-
*/
|
|
38564
|
-
export class PluginApi extends BaseAPI implements PluginApiInterface {
|
|
38565
|
-
/**
|
|
38566
|
-
*
|
|
38567
|
-
* @param {*} [options] Override http request option.
|
|
38568
|
-
* @throws {RequiredError}
|
|
38569
|
-
* @memberof PluginApi
|
|
38570
|
-
*/
|
|
38571
|
-
public loadConfigFile(options?: AxiosRequestConfig) {
|
|
38572
|
-
return PluginApiFp(this.configuration).loadConfigFile(options).then((request) => request(this.axios, this.basePath));
|
|
38573
|
-
}
|
|
38574
|
-
|
|
38575
|
-
/**
|
|
38576
|
-
*
|
|
38577
|
-
* @param {*} [options] Override http request option.
|
|
38578
|
-
* @throws {RequiredError}
|
|
38579
|
-
* @memberof PluginApi
|
|
38580
|
-
*/
|
|
38581
|
-
public upsertBusiness(options?: AxiosRequestConfig) {
|
|
38582
|
-
return PluginApiFp(this.configuration).upsertBusiness(options).then((request) => request(this.axios, this.basePath));
|
|
37842
|
+
public voidManualPayment(voidManualSessionDto: VoidManualSessionDto, options?: AxiosRequestConfig) {
|
|
37843
|
+
return PaymentSessionApiFp(this.configuration).voidManualPayment(voidManualSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38583
37844
|
}
|
|
38584
37845
|
}
|
|
38585
37846
|
|
|
@@ -42531,234 +41792,6 @@ export class UserApi extends BaseAPI implements UserApiInterface {
|
|
|
42531
41792
|
}
|
|
42532
41793
|
|
|
42533
41794
|
|
|
42534
|
-
/**
|
|
42535
|
-
* UsersApi - axios parameter creator
|
|
42536
|
-
* @export
|
|
42537
|
-
*/
|
|
42538
|
-
export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42539
|
-
return {
|
|
42540
|
-
/**
|
|
42541
|
-
*
|
|
42542
|
-
* @summary Filter user information with phone number
|
|
42543
|
-
* @param {UserValidation} userValidation User body data
|
|
42544
|
-
* @param {*} [options] Override http request option.
|
|
42545
|
-
* @throws {RequiredError}
|
|
42546
|
-
*/
|
|
42547
|
-
getUser: async (userValidation: UserValidation, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42548
|
-
// verify required parameter 'userValidation' is not null or undefined
|
|
42549
|
-
assertParamExists('getUser', 'userValidation', userValidation)
|
|
42550
|
-
const localVarPath = `/api/v1/users`;
|
|
42551
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42552
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42553
|
-
let baseOptions;
|
|
42554
|
-
if (configuration) {
|
|
42555
|
-
baseOptions = configuration.baseOptions;
|
|
42556
|
-
}
|
|
42557
|
-
|
|
42558
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42559
|
-
const localVarHeaderParameter = {} as any;
|
|
42560
|
-
const localVarQueryParameter = {} as any;
|
|
42561
|
-
|
|
42562
|
-
// authentication JWT-auth required
|
|
42563
|
-
// http bearer authentication required
|
|
42564
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
42565
|
-
|
|
42566
|
-
|
|
42567
|
-
|
|
42568
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42569
|
-
|
|
42570
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42571
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42572
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42573
|
-
localVarRequestOptions.data = serializeDataIfNeeded(userValidation, localVarRequestOptions, configuration)
|
|
42574
|
-
|
|
42575
|
-
return {
|
|
42576
|
-
url: toPathString(localVarUrlObj),
|
|
42577
|
-
options: localVarRequestOptions,
|
|
42578
|
-
};
|
|
42579
|
-
},
|
|
42580
|
-
/**
|
|
42581
|
-
*
|
|
42582
|
-
* @summary Add credit points to user wallet
|
|
42583
|
-
* @param {number} userId
|
|
42584
|
-
* @param {number} walletId
|
|
42585
|
-
* @param {RewardPointPayload} rewardPointPayload
|
|
42586
|
-
* @param {*} [options] Override http request option.
|
|
42587
|
-
* @throws {RequiredError}
|
|
42588
|
-
*/
|
|
42589
|
-
updateUserRewardPoints: async (userId: number, walletId: number, rewardPointPayload: RewardPointPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42590
|
-
// verify required parameter 'userId' is not null or undefined
|
|
42591
|
-
assertParamExists('updateUserRewardPoints', 'userId', userId)
|
|
42592
|
-
// verify required parameter 'walletId' is not null or undefined
|
|
42593
|
-
assertParamExists('updateUserRewardPoints', 'walletId', walletId)
|
|
42594
|
-
// verify required parameter 'rewardPointPayload' is not null or undefined
|
|
42595
|
-
assertParamExists('updateUserRewardPoints', 'rewardPointPayload', rewardPointPayload)
|
|
42596
|
-
const localVarPath = `/api/v1/users/{userId}/wallets/{walletId}/events`
|
|
42597
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
42598
|
-
.replace(`{${"walletId"}}`, encodeURIComponent(String(walletId)));
|
|
42599
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42600
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42601
|
-
let baseOptions;
|
|
42602
|
-
if (configuration) {
|
|
42603
|
-
baseOptions = configuration.baseOptions;
|
|
42604
|
-
}
|
|
42605
|
-
|
|
42606
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42607
|
-
const localVarHeaderParameter = {} as any;
|
|
42608
|
-
const localVarQueryParameter = {} as any;
|
|
42609
|
-
|
|
42610
|
-
// authentication JWT-auth required
|
|
42611
|
-
// http bearer authentication required
|
|
42612
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
42613
|
-
|
|
42614
|
-
|
|
42615
|
-
|
|
42616
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42617
|
-
|
|
42618
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42619
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42620
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42621
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rewardPointPayload, localVarRequestOptions, configuration)
|
|
42622
|
-
|
|
42623
|
-
return {
|
|
42624
|
-
url: toPathString(localVarUrlObj),
|
|
42625
|
-
options: localVarRequestOptions,
|
|
42626
|
-
};
|
|
42627
|
-
},
|
|
42628
|
-
}
|
|
42629
|
-
};
|
|
42630
|
-
|
|
42631
|
-
/**
|
|
42632
|
-
* UsersApi - functional programming interface
|
|
42633
|
-
* @export
|
|
42634
|
-
*/
|
|
42635
|
-
export const UsersApiFp = function(configuration?: Configuration) {
|
|
42636
|
-
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
42637
|
-
return {
|
|
42638
|
-
/**
|
|
42639
|
-
*
|
|
42640
|
-
* @summary Filter user information with phone number
|
|
42641
|
-
* @param {UserValidation} userValidation User body data
|
|
42642
|
-
* @param {*} [options] Override http request option.
|
|
42643
|
-
* @throws {RequiredError}
|
|
42644
|
-
*/
|
|
42645
|
-
async getUser(userValidation: UserValidation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LoyaltyUserDto>>> {
|
|
42646
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(userValidation, options);
|
|
42647
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42648
|
-
},
|
|
42649
|
-
/**
|
|
42650
|
-
*
|
|
42651
|
-
* @summary Add credit points to user wallet
|
|
42652
|
-
* @param {number} userId
|
|
42653
|
-
* @param {number} walletId
|
|
42654
|
-
* @param {RewardPointPayload} rewardPointPayload
|
|
42655
|
-
* @param {*} [options] Override http request option.
|
|
42656
|
-
* @throws {RequiredError}
|
|
42657
|
-
*/
|
|
42658
|
-
async updateUserRewardPoints(userId: number, walletId: number, rewardPointPayload: RewardPointPayload, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
42659
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserRewardPoints(userId, walletId, rewardPointPayload, options);
|
|
42660
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42661
|
-
},
|
|
42662
|
-
}
|
|
42663
|
-
};
|
|
42664
|
-
|
|
42665
|
-
/**
|
|
42666
|
-
* UsersApi - factory interface
|
|
42667
|
-
* @export
|
|
42668
|
-
*/
|
|
42669
|
-
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
42670
|
-
const localVarFp = UsersApiFp(configuration)
|
|
42671
|
-
return {
|
|
42672
|
-
/**
|
|
42673
|
-
*
|
|
42674
|
-
* @summary Filter user information with phone number
|
|
42675
|
-
* @param {UserValidation} userValidation User body data
|
|
42676
|
-
* @param {*} [options] Override http request option.
|
|
42677
|
-
* @throws {RequiredError}
|
|
42678
|
-
*/
|
|
42679
|
-
getUser(userValidation: UserValidation, options?: any): AxiosPromise<Array<LoyaltyUserDto>> {
|
|
42680
|
-
return localVarFp.getUser(userValidation, options).then((request) => request(axios, basePath));
|
|
42681
|
-
},
|
|
42682
|
-
/**
|
|
42683
|
-
*
|
|
42684
|
-
* @summary Add credit points to user wallet
|
|
42685
|
-
* @param {number} userId
|
|
42686
|
-
* @param {number} walletId
|
|
42687
|
-
* @param {RewardPointPayload} rewardPointPayload
|
|
42688
|
-
* @param {*} [options] Override http request option.
|
|
42689
|
-
* @throws {RequiredError}
|
|
42690
|
-
*/
|
|
42691
|
-
updateUserRewardPoints(userId: number, walletId: number, rewardPointPayload: RewardPointPayload, options?: any): AxiosPromise<void> {
|
|
42692
|
-
return localVarFp.updateUserRewardPoints(userId, walletId, rewardPointPayload, options).then((request) => request(axios, basePath));
|
|
42693
|
-
},
|
|
42694
|
-
};
|
|
42695
|
-
};
|
|
42696
|
-
|
|
42697
|
-
/**
|
|
42698
|
-
* UsersApi - interface
|
|
42699
|
-
* @export
|
|
42700
|
-
* @interface UsersApi
|
|
42701
|
-
*/
|
|
42702
|
-
export interface UsersApiInterface {
|
|
42703
|
-
/**
|
|
42704
|
-
*
|
|
42705
|
-
* @summary Filter user information with phone number
|
|
42706
|
-
* @param {UserValidation} userValidation User body data
|
|
42707
|
-
* @param {*} [options] Override http request option.
|
|
42708
|
-
* @throws {RequiredError}
|
|
42709
|
-
* @memberof UsersApiInterface
|
|
42710
|
-
*/
|
|
42711
|
-
getUser(userValidation: UserValidation, options?: AxiosRequestConfig): AxiosPromise<Array<LoyaltyUserDto>>;
|
|
42712
|
-
|
|
42713
|
-
/**
|
|
42714
|
-
*
|
|
42715
|
-
* @summary Add credit points to user wallet
|
|
42716
|
-
* @param {number} userId
|
|
42717
|
-
* @param {number} walletId
|
|
42718
|
-
* @param {RewardPointPayload} rewardPointPayload
|
|
42719
|
-
* @param {*} [options] Override http request option.
|
|
42720
|
-
* @throws {RequiredError}
|
|
42721
|
-
* @memberof UsersApiInterface
|
|
42722
|
-
*/
|
|
42723
|
-
updateUserRewardPoints(userId: number, walletId: number, rewardPointPayload: RewardPointPayload, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
42724
|
-
|
|
42725
|
-
}
|
|
42726
|
-
|
|
42727
|
-
/**
|
|
42728
|
-
* UsersApi - object-oriented interface
|
|
42729
|
-
* @export
|
|
42730
|
-
* @class UsersApi
|
|
42731
|
-
* @extends {BaseAPI}
|
|
42732
|
-
*/
|
|
42733
|
-
export class UsersApi extends BaseAPI implements UsersApiInterface {
|
|
42734
|
-
/**
|
|
42735
|
-
*
|
|
42736
|
-
* @summary Filter user information with phone number
|
|
42737
|
-
* @param {UserValidation} userValidation User body data
|
|
42738
|
-
* @param {*} [options] Override http request option.
|
|
42739
|
-
* @throws {RequiredError}
|
|
42740
|
-
* @memberof UsersApi
|
|
42741
|
-
*/
|
|
42742
|
-
public getUser(userValidation: UserValidation, options?: AxiosRequestConfig) {
|
|
42743
|
-
return UsersApiFp(this.configuration).getUser(userValidation, options).then((request) => request(this.axios, this.basePath));
|
|
42744
|
-
}
|
|
42745
|
-
|
|
42746
|
-
/**
|
|
42747
|
-
*
|
|
42748
|
-
* @summary Add credit points to user wallet
|
|
42749
|
-
* @param {number} userId
|
|
42750
|
-
* @param {number} walletId
|
|
42751
|
-
* @param {RewardPointPayload} rewardPointPayload
|
|
42752
|
-
* @param {*} [options] Override http request option.
|
|
42753
|
-
* @throws {RequiredError}
|
|
42754
|
-
* @memberof UsersApi
|
|
42755
|
-
*/
|
|
42756
|
-
public updateUserRewardPoints(userId: number, walletId: number, rewardPointPayload: RewardPointPayload, options?: AxiosRequestConfig) {
|
|
42757
|
-
return UsersApiFp(this.configuration).updateUserRewardPoints(userId, walletId, rewardPointPayload, options).then((request) => request(this.axios, this.basePath));
|
|
42758
|
-
}
|
|
42759
|
-
}
|
|
42760
|
-
|
|
42761
|
-
|
|
42762
41795
|
/**
|
|
42763
41796
|
* VendureSellerApi - axios parameter creator
|
|
42764
41797
|
* @export
|
|
@@ -44522,141 +43555,6 @@ export const WorldlineApiAxiosParamCreator = function (configuration?: Configura
|
|
|
44522
43555
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44523
43556
|
localVarRequestOptions.data = serializeDataIfNeeded(createWorldlineRefundDto, localVarRequestOptions, configuration)
|
|
44524
43557
|
|
|
44525
|
-
return {
|
|
44526
|
-
url: toPathString(localVarUrlObj),
|
|
44527
|
-
options: localVarRequestOptions,
|
|
44528
|
-
};
|
|
44529
|
-
},
|
|
44530
|
-
/**
|
|
44531
|
-
* Proxy endpoint forwarding the Worldline WAN polling contract to the Worldline microservice.
|
|
44532
|
-
* @summary Long-poll for the next unhandled Worldline WAN request
|
|
44533
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44534
|
-
* @param {string} authorization Forwarded to the Worldline microservice as received from the terminal
|
|
44535
|
-
* @param {string} sessionID The terminal session UUID
|
|
44536
|
-
* @param {string} protocolVersion The version of the API protocol being used
|
|
44537
|
-
* @param {*} [options] Override http request option.
|
|
44538
|
-
* @throws {RequiredError}
|
|
44539
|
-
*/
|
|
44540
|
-
getNextRequest: async (terminalId: string, authorization: string, sessionID: string, protocolVersion: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44541
|
-
// verify required parameter 'terminalId' is not null or undefined
|
|
44542
|
-
assertParamExists('getNextRequest', 'terminalId', terminalId)
|
|
44543
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
44544
|
-
assertParamExists('getNextRequest', 'authorization', authorization)
|
|
44545
|
-
// verify required parameter 'sessionID' is not null or undefined
|
|
44546
|
-
assertParamExists('getNextRequest', 'sessionID', sessionID)
|
|
44547
|
-
// verify required parameter 'protocolVersion' is not null or undefined
|
|
44548
|
-
assertParamExists('getNextRequest', 'protocolVersion', protocolVersion)
|
|
44549
|
-
const localVarPath = `/api/v2/terminals/{terminalId}/requests`
|
|
44550
|
-
.replace(`{${"terminalId"}}`, encodeURIComponent(String(terminalId)));
|
|
44551
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44552
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44553
|
-
let baseOptions;
|
|
44554
|
-
if (configuration) {
|
|
44555
|
-
baseOptions = configuration.baseOptions;
|
|
44556
|
-
}
|
|
44557
|
-
|
|
44558
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
44559
|
-
const localVarHeaderParameter = {} as any;
|
|
44560
|
-
const localVarQueryParameter = {} as any;
|
|
44561
|
-
|
|
44562
|
-
if (authorization != null) {
|
|
44563
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
44564
|
-
}
|
|
44565
|
-
|
|
44566
|
-
if (sessionID != null) {
|
|
44567
|
-
localVarHeaderParameter['Session-ID'] = String(sessionID);
|
|
44568
|
-
}
|
|
44569
|
-
|
|
44570
|
-
if (protocolVersion != null) {
|
|
44571
|
-
localVarHeaderParameter['Protocol-Version'] = String(protocolVersion);
|
|
44572
|
-
}
|
|
44573
|
-
|
|
44574
|
-
|
|
44575
|
-
|
|
44576
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44577
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44578
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44579
|
-
|
|
44580
|
-
return {
|
|
44581
|
-
url: toPathString(localVarUrlObj),
|
|
44582
|
-
options: localVarRequestOptions,
|
|
44583
|
-
};
|
|
44584
|
-
},
|
|
44585
|
-
/**
|
|
44586
|
-
* Proxy endpoint forwarding terminal event envelopes to the Worldline microservice.
|
|
44587
|
-
* @summary Report a terminal event such as dialog shown or operation completion
|
|
44588
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44589
|
-
* @param {WorldlineEventEnvelopeDto} worldlineEventEnvelopeDto
|
|
44590
|
-
* @param {*} [options] Override http request option.
|
|
44591
|
-
* @throws {RequiredError}
|
|
44592
|
-
*/
|
|
44593
|
-
submitEvent: async (terminalId: string, worldlineEventEnvelopeDto: WorldlineEventEnvelopeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44594
|
-
// verify required parameter 'terminalId' is not null or undefined
|
|
44595
|
-
assertParamExists('submitEvent', 'terminalId', terminalId)
|
|
44596
|
-
// verify required parameter 'worldlineEventEnvelopeDto' is not null or undefined
|
|
44597
|
-
assertParamExists('submitEvent', 'worldlineEventEnvelopeDto', worldlineEventEnvelopeDto)
|
|
44598
|
-
const localVarPath = `/api/v2/terminals/{terminalId}/events`
|
|
44599
|
-
.replace(`{${"terminalId"}}`, encodeURIComponent(String(terminalId)));
|
|
44600
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44601
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44602
|
-
let baseOptions;
|
|
44603
|
-
if (configuration) {
|
|
44604
|
-
baseOptions = configuration.baseOptions;
|
|
44605
|
-
}
|
|
44606
|
-
|
|
44607
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
44608
|
-
const localVarHeaderParameter = {} as any;
|
|
44609
|
-
const localVarQueryParameter = {} as any;
|
|
44610
|
-
|
|
44611
|
-
|
|
44612
|
-
|
|
44613
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44614
|
-
|
|
44615
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44616
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44617
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44618
|
-
localVarRequestOptions.data = serializeDataIfNeeded(worldlineEventEnvelopeDto, localVarRequestOptions, configuration)
|
|
44619
|
-
|
|
44620
|
-
return {
|
|
44621
|
-
url: toPathString(localVarUrlObj),
|
|
44622
|
-
options: localVarRequestOptions,
|
|
44623
|
-
};
|
|
44624
|
-
},
|
|
44625
|
-
/**
|
|
44626
|
-
* Proxy endpoint forwarding terminal response envelopes to the Worldline microservice.
|
|
44627
|
-
* @summary Submit a response to a previously fetched request
|
|
44628
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44629
|
-
* @param {WorldlineResponseEnvelopeDto} worldlineResponseEnvelopeDto
|
|
44630
|
-
* @param {*} [options] Override http request option.
|
|
44631
|
-
* @throws {RequiredError}
|
|
44632
|
-
*/
|
|
44633
|
-
submitResponse: async (terminalId: string, worldlineResponseEnvelopeDto: WorldlineResponseEnvelopeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44634
|
-
// verify required parameter 'terminalId' is not null or undefined
|
|
44635
|
-
assertParamExists('submitResponse', 'terminalId', terminalId)
|
|
44636
|
-
// verify required parameter 'worldlineResponseEnvelopeDto' is not null or undefined
|
|
44637
|
-
assertParamExists('submitResponse', 'worldlineResponseEnvelopeDto', worldlineResponseEnvelopeDto)
|
|
44638
|
-
const localVarPath = `/api/v2/terminals/{terminalId}/responses`
|
|
44639
|
-
.replace(`{${"terminalId"}}`, encodeURIComponent(String(terminalId)));
|
|
44640
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44641
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44642
|
-
let baseOptions;
|
|
44643
|
-
if (configuration) {
|
|
44644
|
-
baseOptions = configuration.baseOptions;
|
|
44645
|
-
}
|
|
44646
|
-
|
|
44647
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
44648
|
-
const localVarHeaderParameter = {} as any;
|
|
44649
|
-
const localVarQueryParameter = {} as any;
|
|
44650
|
-
|
|
44651
|
-
|
|
44652
|
-
|
|
44653
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44654
|
-
|
|
44655
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44656
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44657
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44658
|
-
localVarRequestOptions.data = serializeDataIfNeeded(worldlineResponseEnvelopeDto, localVarRequestOptions, configuration)
|
|
44659
|
-
|
|
44660
43558
|
return {
|
|
44661
43559
|
url: toPathString(localVarUrlObj),
|
|
44662
43560
|
options: localVarRequestOptions,
|
|
@@ -44705,44 +43603,6 @@ export const WorldlineApiFp = function(configuration?: Configuration) {
|
|
|
44705
43603
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRefund(createWorldlineRefundDto, options);
|
|
44706
43604
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
44707
43605
|
},
|
|
44708
|
-
/**
|
|
44709
|
-
* Proxy endpoint forwarding the Worldline WAN polling contract to the Worldline microservice.
|
|
44710
|
-
* @summary Long-poll for the next unhandled Worldline WAN request
|
|
44711
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44712
|
-
* @param {string} authorization Forwarded to the Worldline microservice as received from the terminal
|
|
44713
|
-
* @param {string} sessionID The terminal session UUID
|
|
44714
|
-
* @param {string} protocolVersion The version of the API protocol being used
|
|
44715
|
-
* @param {*} [options] Override http request option.
|
|
44716
|
-
* @throws {RequiredError}
|
|
44717
|
-
*/
|
|
44718
|
-
async getNextRequest(terminalId: string, authorization: string, sessionID: string, protocolVersion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
44719
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getNextRequest(terminalId, authorization, sessionID, protocolVersion, options);
|
|
44720
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
44721
|
-
},
|
|
44722
|
-
/**
|
|
44723
|
-
* Proxy endpoint forwarding terminal event envelopes to the Worldline microservice.
|
|
44724
|
-
* @summary Report a terminal event such as dialog shown or operation completion
|
|
44725
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44726
|
-
* @param {WorldlineEventEnvelopeDto} worldlineEventEnvelopeDto
|
|
44727
|
-
* @param {*} [options] Override http request option.
|
|
44728
|
-
* @throws {RequiredError}
|
|
44729
|
-
*/
|
|
44730
|
-
async submitEvent(terminalId: string, worldlineEventEnvelopeDto: WorldlineEventEnvelopeDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
44731
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitEvent(terminalId, worldlineEventEnvelopeDto, options);
|
|
44732
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
44733
|
-
},
|
|
44734
|
-
/**
|
|
44735
|
-
* Proxy endpoint forwarding terminal response envelopes to the Worldline microservice.
|
|
44736
|
-
* @summary Submit a response to a previously fetched request
|
|
44737
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44738
|
-
* @param {WorldlineResponseEnvelopeDto} worldlineResponseEnvelopeDto
|
|
44739
|
-
* @param {*} [options] Override http request option.
|
|
44740
|
-
* @throws {RequiredError}
|
|
44741
|
-
*/
|
|
44742
|
-
async submitResponse(terminalId: string, worldlineResponseEnvelopeDto: WorldlineResponseEnvelopeDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
44743
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitResponse(terminalId, worldlineResponseEnvelopeDto, options);
|
|
44744
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
44745
|
-
},
|
|
44746
43606
|
}
|
|
44747
43607
|
};
|
|
44748
43608
|
|
|
@@ -44783,41 +43643,6 @@ export const WorldlineApiFactory = function (configuration?: Configuration, base
|
|
|
44783
43643
|
createRefund(createWorldlineRefundDto: CreateWorldlineRefundDto, options?: any): AxiosPromise<void> {
|
|
44784
43644
|
return localVarFp.createRefund(createWorldlineRefundDto, options).then((request) => request(axios, basePath));
|
|
44785
43645
|
},
|
|
44786
|
-
/**
|
|
44787
|
-
* Proxy endpoint forwarding the Worldline WAN polling contract to the Worldline microservice.
|
|
44788
|
-
* @summary Long-poll for the next unhandled Worldline WAN request
|
|
44789
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44790
|
-
* @param {string} authorization Forwarded to the Worldline microservice as received from the terminal
|
|
44791
|
-
* @param {string} sessionID The terminal session UUID
|
|
44792
|
-
* @param {string} protocolVersion The version of the API protocol being used
|
|
44793
|
-
* @param {*} [options] Override http request option.
|
|
44794
|
-
* @throws {RequiredError}
|
|
44795
|
-
*/
|
|
44796
|
-
getNextRequest(terminalId: string, authorization: string, sessionID: string, protocolVersion: string, options?: any): AxiosPromise<void> {
|
|
44797
|
-
return localVarFp.getNextRequest(terminalId, authorization, sessionID, protocolVersion, options).then((request) => request(axios, basePath));
|
|
44798
|
-
},
|
|
44799
|
-
/**
|
|
44800
|
-
* Proxy endpoint forwarding terminal event envelopes to the Worldline microservice.
|
|
44801
|
-
* @summary Report a terminal event such as dialog shown or operation completion
|
|
44802
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44803
|
-
* @param {WorldlineEventEnvelopeDto} worldlineEventEnvelopeDto
|
|
44804
|
-
* @param {*} [options] Override http request option.
|
|
44805
|
-
* @throws {RequiredError}
|
|
44806
|
-
*/
|
|
44807
|
-
submitEvent(terminalId: string, worldlineEventEnvelopeDto: WorldlineEventEnvelopeDto, options?: any): AxiosPromise<void> {
|
|
44808
|
-
return localVarFp.submitEvent(terminalId, worldlineEventEnvelopeDto, options).then((request) => request(axios, basePath));
|
|
44809
|
-
},
|
|
44810
|
-
/**
|
|
44811
|
-
* Proxy endpoint forwarding terminal response envelopes to the Worldline microservice.
|
|
44812
|
-
* @summary Submit a response to a previously fetched request
|
|
44813
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44814
|
-
* @param {WorldlineResponseEnvelopeDto} worldlineResponseEnvelopeDto
|
|
44815
|
-
* @param {*} [options] Override http request option.
|
|
44816
|
-
* @throws {RequiredError}
|
|
44817
|
-
*/
|
|
44818
|
-
submitResponse(terminalId: string, worldlineResponseEnvelopeDto: WorldlineResponseEnvelopeDto, options?: any): AxiosPromise<void> {
|
|
44819
|
-
return localVarFp.submitResponse(terminalId, worldlineResponseEnvelopeDto, options).then((request) => request(axios, basePath));
|
|
44820
|
-
},
|
|
44821
43646
|
};
|
|
44822
43647
|
};
|
|
44823
43648
|
|
|
@@ -44857,41 +43682,6 @@ export interface WorldlineApiInterface {
|
|
|
44857
43682
|
*/
|
|
44858
43683
|
createRefund(createWorldlineRefundDto: CreateWorldlineRefundDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44859
43684
|
|
|
44860
|
-
/**
|
|
44861
|
-
* Proxy endpoint forwarding the Worldline WAN polling contract to the Worldline microservice.
|
|
44862
|
-
* @summary Long-poll for the next unhandled Worldline WAN request
|
|
44863
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44864
|
-
* @param {string} authorization Forwarded to the Worldline microservice as received from the terminal
|
|
44865
|
-
* @param {string} sessionID The terminal session UUID
|
|
44866
|
-
* @param {string} protocolVersion The version of the API protocol being used
|
|
44867
|
-
* @param {*} [options] Override http request option.
|
|
44868
|
-
* @throws {RequiredError}
|
|
44869
|
-
* @memberof WorldlineApiInterface
|
|
44870
|
-
*/
|
|
44871
|
-
getNextRequest(terminalId: string, authorization: string, sessionID: string, protocolVersion: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44872
|
-
|
|
44873
|
-
/**
|
|
44874
|
-
* Proxy endpoint forwarding terminal event envelopes to the Worldline microservice.
|
|
44875
|
-
* @summary Report a terminal event such as dialog shown or operation completion
|
|
44876
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44877
|
-
* @param {WorldlineEventEnvelopeDto} worldlineEventEnvelopeDto
|
|
44878
|
-
* @param {*} [options] Override http request option.
|
|
44879
|
-
* @throws {RequiredError}
|
|
44880
|
-
* @memberof WorldlineApiInterface
|
|
44881
|
-
*/
|
|
44882
|
-
submitEvent(terminalId: string, worldlineEventEnvelopeDto: WorldlineEventEnvelopeDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44883
|
-
|
|
44884
|
-
/**
|
|
44885
|
-
* Proxy endpoint forwarding terminal response envelopes to the Worldline microservice.
|
|
44886
|
-
* @summary Submit a response to a previously fetched request
|
|
44887
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44888
|
-
* @param {WorldlineResponseEnvelopeDto} worldlineResponseEnvelopeDto
|
|
44889
|
-
* @param {*} [options] Override http request option.
|
|
44890
|
-
* @throws {RequiredError}
|
|
44891
|
-
* @memberof WorldlineApiInterface
|
|
44892
|
-
*/
|
|
44893
|
-
submitResponse(terminalId: string, worldlineResponseEnvelopeDto: WorldlineResponseEnvelopeDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
44894
|
-
|
|
44895
43685
|
}
|
|
44896
43686
|
|
|
44897
43687
|
/**
|
|
@@ -44936,47 +43726,6 @@ export class WorldlineApi extends BaseAPI implements WorldlineApiInterface {
|
|
|
44936
43726
|
public createRefund(createWorldlineRefundDto: CreateWorldlineRefundDto, options?: AxiosRequestConfig) {
|
|
44937
43727
|
return WorldlineApiFp(this.configuration).createRefund(createWorldlineRefundDto, options).then((request) => request(this.axios, this.basePath));
|
|
44938
43728
|
}
|
|
44939
|
-
|
|
44940
|
-
/**
|
|
44941
|
-
* Proxy endpoint forwarding the Worldline WAN polling contract to the Worldline microservice.
|
|
44942
|
-
* @summary Long-poll for the next unhandled Worldline WAN request
|
|
44943
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44944
|
-
* @param {string} authorization Forwarded to the Worldline microservice as received from the terminal
|
|
44945
|
-
* @param {string} sessionID The terminal session UUID
|
|
44946
|
-
* @param {string} protocolVersion The version of the API protocol being used
|
|
44947
|
-
* @param {*} [options] Override http request option.
|
|
44948
|
-
* @throws {RequiredError}
|
|
44949
|
-
* @memberof WorldlineApi
|
|
44950
|
-
*/
|
|
44951
|
-
public getNextRequest(terminalId: string, authorization: string, sessionID: string, protocolVersion: string, options?: AxiosRequestConfig) {
|
|
44952
|
-
return WorldlineApiFp(this.configuration).getNextRequest(terminalId, authorization, sessionID, protocolVersion, options).then((request) => request(this.axios, this.basePath));
|
|
44953
|
-
}
|
|
44954
|
-
|
|
44955
|
-
/**
|
|
44956
|
-
* Proxy endpoint forwarding terminal event envelopes to the Worldline microservice.
|
|
44957
|
-
* @summary Report a terminal event such as dialog shown or operation completion
|
|
44958
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44959
|
-
* @param {WorldlineEventEnvelopeDto} worldlineEventEnvelopeDto
|
|
44960
|
-
* @param {*} [options] Override http request option.
|
|
44961
|
-
* @throws {RequiredError}
|
|
44962
|
-
* @memberof WorldlineApi
|
|
44963
|
-
*/
|
|
44964
|
-
public submitEvent(terminalId: string, worldlineEventEnvelopeDto: WorldlineEventEnvelopeDto, options?: AxiosRequestConfig) {
|
|
44965
|
-
return WorldlineApiFp(this.configuration).submitEvent(terminalId, worldlineEventEnvelopeDto, options).then((request) => request(this.axios, this.basePath));
|
|
44966
|
-
}
|
|
44967
|
-
|
|
44968
|
-
/**
|
|
44969
|
-
* Proxy endpoint forwarding terminal response envelopes to the Worldline microservice.
|
|
44970
|
-
* @summary Submit a response to a previously fetched request
|
|
44971
|
-
* @param {string} terminalId The unique identifier of the terminal
|
|
44972
|
-
* @param {WorldlineResponseEnvelopeDto} worldlineResponseEnvelopeDto
|
|
44973
|
-
* @param {*} [options] Override http request option.
|
|
44974
|
-
* @throws {RequiredError}
|
|
44975
|
-
* @memberof WorldlineApi
|
|
44976
|
-
*/
|
|
44977
|
-
public submitResponse(terminalId: string, worldlineResponseEnvelopeDto: WorldlineResponseEnvelopeDto, options?: AxiosRequestConfig) {
|
|
44978
|
-
return WorldlineApiFp(this.configuration).submitResponse(terminalId, worldlineResponseEnvelopeDto, options).then((request) => request(this.axios, this.basePath));
|
|
44979
|
-
}
|
|
44980
43729
|
}
|
|
44981
43730
|
|
|
44982
43731
|
|