@munchi_oy/core 1.9.74 → 1.9.76
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 +957 -33
- 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 +1267 -35
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -3556,10 +3556,10 @@ export interface CreateManualSessionDto {
|
|
|
3556
3556
|
'tipAmount'?: number;
|
|
3557
3557
|
/**
|
|
3558
3558
|
*
|
|
3559
|
-
* @type {
|
|
3559
|
+
* @type {CreateManualSessionDtoSplitContext}
|
|
3560
3560
|
* @memberof CreateManualSessionDto
|
|
3561
3561
|
*/
|
|
3562
|
-
'splitContext'?:
|
|
3562
|
+
'splitContext'?: CreateManualSessionDtoSplitContext;
|
|
3563
3563
|
/**
|
|
3564
3564
|
* Arbitrary client metadata persisted on the session (e.g. voucher code, gift card id, employee id, external reference, notes). Surfaced to reconciliation when building the order paymentEvent.
|
|
3565
3565
|
* @type {object}
|
|
@@ -3814,6 +3814,31 @@ export interface CreateManualSessionDtoOrder {
|
|
|
3814
3814
|
*/
|
|
3815
3815
|
'tableGroupId'?: string | null;
|
|
3816
3816
|
}
|
|
3817
|
+
/**
|
|
3818
|
+
* Split context. Omit for a full-cart payment, or send { mode, partId|seatId } for a split. Must match the order\'s checkoutModel.
|
|
3819
|
+
* @export
|
|
3820
|
+
* @interface CreateManualSessionDtoSplitContext
|
|
3821
|
+
*/
|
|
3822
|
+
export interface CreateManualSessionDtoSplitContext {
|
|
3823
|
+
/**
|
|
3824
|
+
*
|
|
3825
|
+
* @type {CheckoutModelEnum}
|
|
3826
|
+
* @memberof CreateManualSessionDtoSplitContext
|
|
3827
|
+
*/
|
|
3828
|
+
'mode': CheckoutModelEnum;
|
|
3829
|
+
/**
|
|
3830
|
+
* Equal-split part id. Required when mode=EQUAL_SPLIT; ignored otherwise.
|
|
3831
|
+
* @type {string}
|
|
3832
|
+
* @memberof CreateManualSessionDtoSplitContext
|
|
3833
|
+
*/
|
|
3834
|
+
'partId'?: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* Item-split seat id. Required when mode=ITEM_SPLIT; ignored otherwise.
|
|
3837
|
+
* @type {string}
|
|
3838
|
+
* @memberof CreateManualSessionDtoSplitContext
|
|
3839
|
+
*/
|
|
3840
|
+
'seatId'?: string;
|
|
3841
|
+
}
|
|
3817
3842
|
/**
|
|
3818
3843
|
*
|
|
3819
3844
|
* @export
|
|
@@ -6491,10 +6516,10 @@ export interface InitiateNetsSessionDto {
|
|
|
6491
6516
|
'amount': number;
|
|
6492
6517
|
/**
|
|
6493
6518
|
*
|
|
6494
|
-
* @type {
|
|
6519
|
+
* @type {CreateManualSessionDtoSplitContext}
|
|
6495
6520
|
* @memberof InitiateNetsSessionDto
|
|
6496
6521
|
*/
|
|
6497
|
-
'splitContext'?:
|
|
6522
|
+
'splitContext'?: CreateManualSessionDtoSplitContext;
|
|
6498
6523
|
}
|
|
6499
6524
|
/**
|
|
6500
6525
|
*
|
|
@@ -6584,10 +6609,10 @@ export interface InitiateVivaA2aSessionDto {
|
|
|
6584
6609
|
'showTransactionResult'?: boolean;
|
|
6585
6610
|
/**
|
|
6586
6611
|
*
|
|
6587
|
-
* @type {
|
|
6612
|
+
* @type {CreateManualSessionDtoSplitContext}
|
|
6588
6613
|
* @memberof InitiateVivaA2aSessionDto
|
|
6589
6614
|
*/
|
|
6590
|
-
'splitContext'?:
|
|
6615
|
+
'splitContext'?: CreateManualSessionDtoSplitContext;
|
|
6591
6616
|
}
|
|
6592
6617
|
/**
|
|
6593
6618
|
*
|
|
@@ -6724,35 +6749,10 @@ export interface InitiateVivaSessionDto {
|
|
|
6724
6749
|
'amount': number;
|
|
6725
6750
|
/**
|
|
6726
6751
|
*
|
|
6727
|
-
* @type {
|
|
6752
|
+
* @type {CreateManualSessionDtoSplitContext}
|
|
6728
6753
|
* @memberof InitiateVivaSessionDto
|
|
6729
6754
|
*/
|
|
6730
|
-
'splitContext'?:
|
|
6731
|
-
}
|
|
6732
|
-
/**
|
|
6733
|
-
* Split context. Omit for a full-cart payment, or send { mode, partId|seatId } for a split. Must match the order\'s checkoutModel.
|
|
6734
|
-
* @export
|
|
6735
|
-
* @interface InitiateVivaSessionDtoSplitContext
|
|
6736
|
-
*/
|
|
6737
|
-
export interface InitiateVivaSessionDtoSplitContext {
|
|
6738
|
-
/**
|
|
6739
|
-
*
|
|
6740
|
-
* @type {CheckoutModelEnum}
|
|
6741
|
-
* @memberof InitiateVivaSessionDtoSplitContext
|
|
6742
|
-
*/
|
|
6743
|
-
'mode': CheckoutModelEnum;
|
|
6744
|
-
/**
|
|
6745
|
-
* Equal-split part id. Required when mode=EQUAL_SPLIT; ignored otherwise.
|
|
6746
|
-
* @type {string}
|
|
6747
|
-
* @memberof InitiateVivaSessionDtoSplitContext
|
|
6748
|
-
*/
|
|
6749
|
-
'partId'?: string;
|
|
6750
|
-
/**
|
|
6751
|
-
* Item-split seat id. Required when mode=ITEM_SPLIT; ignored otherwise.
|
|
6752
|
-
* @type {string}
|
|
6753
|
-
* @memberof InitiateVivaSessionDtoSplitContext
|
|
6754
|
-
*/
|
|
6755
|
-
'seatId'?: string;
|
|
6755
|
+
'splitContext'?: CreateManualSessionDtoSplitContext;
|
|
6756
6756
|
}
|
|
6757
6757
|
/**
|
|
6758
6758
|
*
|
|
@@ -6864,6 +6864,74 @@ export interface InitiateVivaSessionResponseDtoVivaIntent {
|
|
|
6864
6864
|
*/
|
|
6865
6865
|
'skipSurcharge': boolean;
|
|
6866
6866
|
}
|
|
6867
|
+
/**
|
|
6868
|
+
*
|
|
6869
|
+
* @export
|
|
6870
|
+
* @interface InitiateWorldlineSessionDto
|
|
6871
|
+
*/
|
|
6872
|
+
export interface InitiateWorldlineSessionDto {
|
|
6873
|
+
/**
|
|
6874
|
+
* The internal business ID.
|
|
6875
|
+
* @type {number}
|
|
6876
|
+
* @memberof InitiateWorldlineSessionDto
|
|
6877
|
+
*/
|
|
6878
|
+
'businessId': number;
|
|
6879
|
+
/**
|
|
6880
|
+
* The POS order ID this payment session is for.
|
|
6881
|
+
* @type {string}
|
|
6882
|
+
* @memberof InitiateWorldlineSessionDto
|
|
6883
|
+
*/
|
|
6884
|
+
'orderId': string;
|
|
6885
|
+
/**
|
|
6886
|
+
* Amount to charge in smallest currency unit (cents).
|
|
6887
|
+
* @type {number}
|
|
6888
|
+
* @memberof InitiateWorldlineSessionDto
|
|
6889
|
+
*/
|
|
6890
|
+
'amount': number;
|
|
6891
|
+
/**
|
|
6892
|
+
* Optional tip amount in the smallest currency unit (cents).
|
|
6893
|
+
* @type {number}
|
|
6894
|
+
* @memberof InitiateWorldlineSessionDto
|
|
6895
|
+
*/
|
|
6896
|
+
'tipAmount'?: number;
|
|
6897
|
+
/**
|
|
6898
|
+
* Whether the terminal should print the customer receipt.
|
|
6899
|
+
* @type {boolean}
|
|
6900
|
+
* @memberof InitiateWorldlineSessionDto
|
|
6901
|
+
*/
|
|
6902
|
+
'showReceipt'?: boolean;
|
|
6903
|
+
/**
|
|
6904
|
+
*
|
|
6905
|
+
* @type {CreateManualSessionDtoSplitContext}
|
|
6906
|
+
* @memberof InitiateWorldlineSessionDto
|
|
6907
|
+
*/
|
|
6908
|
+
'splitContext'?: CreateManualSessionDtoSplitContext;
|
|
6909
|
+
}
|
|
6910
|
+
/**
|
|
6911
|
+
*
|
|
6912
|
+
* @export
|
|
6913
|
+
* @interface InitiateWorldlineSessionResponseDto
|
|
6914
|
+
*/
|
|
6915
|
+
export interface InitiateWorldlineSessionResponseDto {
|
|
6916
|
+
/**
|
|
6917
|
+
* Opaque token returned to the client. Used by the client to poll/sync the session via GET /payment-session/:clientToken.
|
|
6918
|
+
* @type {string}
|
|
6919
|
+
* @memberof InitiateWorldlineSessionResponseDto
|
|
6920
|
+
*/
|
|
6921
|
+
'clientToken': string;
|
|
6922
|
+
/**
|
|
6923
|
+
* Internal session ID — equal to the Worldline operationId the webhook resolves against.
|
|
6924
|
+
* @type {string}
|
|
6925
|
+
* @memberof InitiateWorldlineSessionResponseDto
|
|
6926
|
+
*/
|
|
6927
|
+
'sessionId': string;
|
|
6928
|
+
/**
|
|
6929
|
+
* The Worldline operationId. Same value as sessionId; exposed so the client can correlate terminal/Ably updates during the transition.
|
|
6930
|
+
* @type {string}
|
|
6931
|
+
* @memberof InitiateWorldlineSessionResponseDto
|
|
6932
|
+
*/
|
|
6933
|
+
'operationId': string;
|
|
6934
|
+
}
|
|
6867
6935
|
/**
|
|
6868
6936
|
*
|
|
6869
6937
|
* @export
|
|
@@ -11262,6 +11330,172 @@ export interface OrderResponseDtoPriceSummary {
|
|
|
11262
11330
|
*/
|
|
11263
11331
|
'totalNet': number;
|
|
11264
11332
|
}
|
|
11333
|
+
/**
|
|
11334
|
+
*
|
|
11335
|
+
* @export
|
|
11336
|
+
* @interface OrderSettlementStatusDto
|
|
11337
|
+
*/
|
|
11338
|
+
export interface OrderSettlementStatusDto {
|
|
11339
|
+
/**
|
|
11340
|
+
* The internal business ID.
|
|
11341
|
+
* @type {number}
|
|
11342
|
+
* @memberof OrderSettlementStatusDto
|
|
11343
|
+
*/
|
|
11344
|
+
'businessId': number;
|
|
11345
|
+
/**
|
|
11346
|
+
* The order ID the settlement is computed for.
|
|
11347
|
+
* @type {string}
|
|
11348
|
+
* @memberof OrderSettlementStatusDto
|
|
11349
|
+
*/
|
|
11350
|
+
'orderId': string;
|
|
11351
|
+
/**
|
|
11352
|
+
* The order\'s checkout model (FULL / EQUAL_SPLIT / ITEM_SPLIT).
|
|
11353
|
+
* @type {string}
|
|
11354
|
+
* @memberof OrderSettlementStatusDto
|
|
11355
|
+
*/
|
|
11356
|
+
'checkoutModel': string;
|
|
11357
|
+
/**
|
|
11358
|
+
* Overall settlement status: \'underpaid\' | \'settled\' | \'overpaid\'.
|
|
11359
|
+
* @type {string}
|
|
11360
|
+
* @memberof OrderSettlementStatusDto
|
|
11361
|
+
*/
|
|
11362
|
+
'status': string;
|
|
11363
|
+
/**
|
|
11364
|
+
* True once the order is fully paid (settled or overpaid). The FE\'s stop condition.
|
|
11365
|
+
* @type {boolean}
|
|
11366
|
+
* @memberof OrderSettlementStatusDto
|
|
11367
|
+
*/
|
|
11368
|
+
'isFullyPaid': boolean;
|
|
11369
|
+
/**
|
|
11370
|
+
* Order total in the smallest currency unit (cents).
|
|
11371
|
+
* @type {number}
|
|
11372
|
+
* @memberof OrderSettlementStatusDto
|
|
11373
|
+
*/
|
|
11374
|
+
'cartTotal': number;
|
|
11375
|
+
/**
|
|
11376
|
+
* Sum of settled payments in cents.
|
|
11377
|
+
* @type {number}
|
|
11378
|
+
* @memberof OrderSettlementStatusDto
|
|
11379
|
+
*/
|
|
11380
|
+
'paidAmount': number;
|
|
11381
|
+
/**
|
|
11382
|
+
* Outstanding balance in cents (0 when settled/overpaid).
|
|
11383
|
+
* @type {number}
|
|
11384
|
+
* @memberof OrderSettlementStatusDto
|
|
11385
|
+
*/
|
|
11386
|
+
'remainingAmount': number;
|
|
11387
|
+
/**
|
|
11388
|
+
* Amount still payable in cents (never negative).
|
|
11389
|
+
* @type {number}
|
|
11390
|
+
* @memberof OrderSettlementStatusDto
|
|
11391
|
+
*/
|
|
11392
|
+
'amountLeftToPay': number;
|
|
11393
|
+
/**
|
|
11394
|
+
* Number of paymentEvents currently on the order.
|
|
11395
|
+
* @type {number}
|
|
11396
|
+
* @memberof OrderSettlementStatusDto
|
|
11397
|
+
*/
|
|
11398
|
+
'paymentEventCount': number;
|
|
11399
|
+
}
|
|
11400
|
+
/**
|
|
11401
|
+
*
|
|
11402
|
+
* @export
|
|
11403
|
+
* @interface OrderSettlementStatusRequestDto
|
|
11404
|
+
*/
|
|
11405
|
+
export interface OrderSettlementStatusRequestDto {
|
|
11406
|
+
/**
|
|
11407
|
+
* Cash change handed back to the customer (cents), netted out of the paid amount so an over-tender does not read as overpaid. Omit or 0 for no adjustment.
|
|
11408
|
+
* @type {number}
|
|
11409
|
+
* @memberof OrderSettlementStatusRequestDto
|
|
11410
|
+
*/
|
|
11411
|
+
'cashChange'?: number;
|
|
11412
|
+
/**
|
|
11413
|
+
* Override the cart total (cents) instead of the persisted order total. For FULL-cart callers whose total differs from the snapshot (e.g. cash-rounded).
|
|
11414
|
+
* @type {number}
|
|
11415
|
+
* @memberof OrderSettlementStatusRequestDto
|
|
11416
|
+
*/
|
|
11417
|
+
'cartTotalAmount'?: number;
|
|
11418
|
+
}
|
|
11419
|
+
/**
|
|
11420
|
+
*
|
|
11421
|
+
* @export
|
|
11422
|
+
* @interface OrderSettlementStatusResponseDto
|
|
11423
|
+
*/
|
|
11424
|
+
export interface OrderSettlementStatusResponseDto {
|
|
11425
|
+
/**
|
|
11426
|
+
*
|
|
11427
|
+
* @type {OrderSettlementStatusResponseDtoSettlement}
|
|
11428
|
+
* @memberof OrderSettlementStatusResponseDto
|
|
11429
|
+
*/
|
|
11430
|
+
'settlement': OrderSettlementStatusResponseDtoSettlement | null;
|
|
11431
|
+
}
|
|
11432
|
+
/**
|
|
11433
|
+
* The settlement status, or null when the order is unavailable / not computable.
|
|
11434
|
+
* @export
|
|
11435
|
+
* @interface OrderSettlementStatusResponseDtoSettlement
|
|
11436
|
+
*/
|
|
11437
|
+
export interface OrderSettlementStatusResponseDtoSettlement {
|
|
11438
|
+
/**
|
|
11439
|
+
* The internal business ID.
|
|
11440
|
+
* @type {number}
|
|
11441
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11442
|
+
*/
|
|
11443
|
+
'businessId': number;
|
|
11444
|
+
/**
|
|
11445
|
+
* The order ID the settlement is computed for.
|
|
11446
|
+
* @type {string}
|
|
11447
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11448
|
+
*/
|
|
11449
|
+
'orderId': string;
|
|
11450
|
+
/**
|
|
11451
|
+
* The order\'s checkout model (FULL / EQUAL_SPLIT / ITEM_SPLIT).
|
|
11452
|
+
* @type {string}
|
|
11453
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11454
|
+
*/
|
|
11455
|
+
'checkoutModel': string;
|
|
11456
|
+
/**
|
|
11457
|
+
* Overall settlement status: \'underpaid\' | \'settled\' | \'overpaid\'.
|
|
11458
|
+
* @type {string}
|
|
11459
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11460
|
+
*/
|
|
11461
|
+
'status': string;
|
|
11462
|
+
/**
|
|
11463
|
+
* True once the order is fully paid (settled or overpaid). The FE\'s stop condition.
|
|
11464
|
+
* @type {boolean}
|
|
11465
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11466
|
+
*/
|
|
11467
|
+
'isFullyPaid': boolean;
|
|
11468
|
+
/**
|
|
11469
|
+
* Order total in the smallest currency unit (cents).
|
|
11470
|
+
* @type {number}
|
|
11471
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11472
|
+
*/
|
|
11473
|
+
'cartTotal': number;
|
|
11474
|
+
/**
|
|
11475
|
+
* Sum of settled payments in cents.
|
|
11476
|
+
* @type {number}
|
|
11477
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11478
|
+
*/
|
|
11479
|
+
'paidAmount': number;
|
|
11480
|
+
/**
|
|
11481
|
+
* Outstanding balance in cents (0 when settled/overpaid).
|
|
11482
|
+
* @type {number}
|
|
11483
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11484
|
+
*/
|
|
11485
|
+
'remainingAmount': number;
|
|
11486
|
+
/**
|
|
11487
|
+
* Amount still payable in cents (never negative).
|
|
11488
|
+
* @type {number}
|
|
11489
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11490
|
+
*/
|
|
11491
|
+
'amountLeftToPay': number;
|
|
11492
|
+
/**
|
|
11493
|
+
* Number of paymentEvents currently on the order.
|
|
11494
|
+
* @type {number}
|
|
11495
|
+
* @memberof OrderSettlementStatusResponseDtoSettlement
|
|
11496
|
+
*/
|
|
11497
|
+
'paymentEventCount': number;
|
|
11498
|
+
}
|
|
11265
11499
|
/**
|
|
11266
11500
|
*
|
|
11267
11501
|
* @export
|
|
@@ -13732,6 +13966,19 @@ export interface PollVivaSessionDto {
|
|
|
13732
13966
|
*/
|
|
13733
13967
|
'sessionId': string;
|
|
13734
13968
|
}
|
|
13969
|
+
/**
|
|
13970
|
+
*
|
|
13971
|
+
* @export
|
|
13972
|
+
* @interface PollWorldlineSessionDto
|
|
13973
|
+
*/
|
|
13974
|
+
export interface PollWorldlineSessionDto {
|
|
13975
|
+
/**
|
|
13976
|
+
* The Worldline session id (= operationId) to poll.
|
|
13977
|
+
* @type {string}
|
|
13978
|
+
* @memberof PollWorldlineSessionDto
|
|
13979
|
+
*/
|
|
13980
|
+
'sessionId': string;
|
|
13981
|
+
}
|
|
13735
13982
|
/**
|
|
13736
13983
|
*
|
|
13737
13984
|
* @export
|
|
@@ -19263,6 +19510,273 @@ export interface SupportedChannelDto {
|
|
|
19263
19510
|
*/
|
|
19264
19511
|
'label': string;
|
|
19265
19512
|
}
|
|
19513
|
+
/**
|
|
19514
|
+
*
|
|
19515
|
+
* @export
|
|
19516
|
+
* @interface SyncKioskOrderDto
|
|
19517
|
+
*/
|
|
19518
|
+
export interface SyncKioskOrderDto {
|
|
19519
|
+
/**
|
|
19520
|
+
*
|
|
19521
|
+
* @type {SyncKioskOrderDtoOrder}
|
|
19522
|
+
* @memberof SyncKioskOrderDto
|
|
19523
|
+
*/
|
|
19524
|
+
'order': SyncKioskOrderDtoOrder;
|
|
19525
|
+
}
|
|
19526
|
+
/**
|
|
19527
|
+
* Kiosk order snapshot to persist (same shape as PosOrderDto). Transitional: paymentEvents are still client-owned and persisted as sent.
|
|
19528
|
+
* @export
|
|
19529
|
+
* @interface SyncKioskOrderDtoOrder
|
|
19530
|
+
*/
|
|
19531
|
+
export interface SyncKioskOrderDtoOrder {
|
|
19532
|
+
/**
|
|
19533
|
+
*
|
|
19534
|
+
* @type {string}
|
|
19535
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19536
|
+
*/
|
|
19537
|
+
'id': string;
|
|
19538
|
+
/**
|
|
19539
|
+
*
|
|
19540
|
+
* @type {string}
|
|
19541
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19542
|
+
*/
|
|
19543
|
+
'businessId': string;
|
|
19544
|
+
/**
|
|
19545
|
+
*
|
|
19546
|
+
* @type {ProviderEnum}
|
|
19547
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19548
|
+
*/
|
|
19549
|
+
'provider': ProviderEnum;
|
|
19550
|
+
/**
|
|
19551
|
+
*
|
|
19552
|
+
* @type {CurrencyCode}
|
|
19553
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19554
|
+
*/
|
|
19555
|
+
'currency': CurrencyCode;
|
|
19556
|
+
/**
|
|
19557
|
+
*
|
|
19558
|
+
* @type {PosBusinessDto}
|
|
19559
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19560
|
+
*/
|
|
19561
|
+
'business': PosBusinessDto;
|
|
19562
|
+
/**
|
|
19563
|
+
*
|
|
19564
|
+
* @type {string}
|
|
19565
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19566
|
+
*/
|
|
19567
|
+
'createdAt': string;
|
|
19568
|
+
/**
|
|
19569
|
+
*
|
|
19570
|
+
* @type {OrderStatusEnum}
|
|
19571
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19572
|
+
*/
|
|
19573
|
+
'status': OrderStatusEnum;
|
|
19574
|
+
/**
|
|
19575
|
+
*
|
|
19576
|
+
* @type {string}
|
|
19577
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19578
|
+
*/
|
|
19579
|
+
'updatedAt': string;
|
|
19580
|
+
/**
|
|
19581
|
+
*
|
|
19582
|
+
* @type {string}
|
|
19583
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19584
|
+
*/
|
|
19585
|
+
'completedAt'?: string;
|
|
19586
|
+
/**
|
|
19587
|
+
*
|
|
19588
|
+
* @type {string}
|
|
19589
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19590
|
+
*/
|
|
19591
|
+
'orderNumber': string;
|
|
19592
|
+
/**
|
|
19593
|
+
*
|
|
19594
|
+
* @type {CheckoutModelEnum}
|
|
19595
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19596
|
+
*/
|
|
19597
|
+
'checkoutModel': CheckoutModelEnum;
|
|
19598
|
+
/**
|
|
19599
|
+
*
|
|
19600
|
+
* @type {OrderTypePOS}
|
|
19601
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19602
|
+
*/
|
|
19603
|
+
'orderType': OrderTypePOS;
|
|
19604
|
+
/**
|
|
19605
|
+
*
|
|
19606
|
+
* @type {string}
|
|
19607
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19608
|
+
*/
|
|
19609
|
+
'spotNumber': string | null;
|
|
19610
|
+
/**
|
|
19611
|
+
* ID of the floor plan dining table linked to this order
|
|
19612
|
+
* @type {string}
|
|
19613
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19614
|
+
*/
|
|
19615
|
+
'tableId'?: string | null;
|
|
19616
|
+
/**
|
|
19617
|
+
*
|
|
19618
|
+
* @type {string}
|
|
19619
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19620
|
+
*/
|
|
19621
|
+
'comments': string | null;
|
|
19622
|
+
/**
|
|
19623
|
+
*
|
|
19624
|
+
* @type {PosOrderDtoTableService}
|
|
19625
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19626
|
+
*/
|
|
19627
|
+
'tableService'?: PosOrderDtoTableService | null;
|
|
19628
|
+
/**
|
|
19629
|
+
*
|
|
19630
|
+
* @type {PosOrderDtoEqualSplitState}
|
|
19631
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19632
|
+
*/
|
|
19633
|
+
'equalSplitState'?: PosOrderDtoEqualSplitState | null;
|
|
19634
|
+
/**
|
|
19635
|
+
* Id of the staff in shift
|
|
19636
|
+
* @type {string}
|
|
19637
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19638
|
+
*/
|
|
19639
|
+
'staffId': string | null;
|
|
19640
|
+
/**
|
|
19641
|
+
* Id of the shift
|
|
19642
|
+
* @type {string}
|
|
19643
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19644
|
+
*/
|
|
19645
|
+
'shiftId': string | null;
|
|
19646
|
+
/**
|
|
19647
|
+
*
|
|
19648
|
+
* @type {OrderRefundStatus}
|
|
19649
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19650
|
+
*/
|
|
19651
|
+
'orderRefundStatus': OrderRefundStatus;
|
|
19652
|
+
/**
|
|
19653
|
+
*
|
|
19654
|
+
* @type {LocatorType}
|
|
19655
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19656
|
+
*/
|
|
19657
|
+
'locatorType': LocatorType;
|
|
19658
|
+
/**
|
|
19659
|
+
*
|
|
19660
|
+
* @type {PosOrderPriceDto}
|
|
19661
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19662
|
+
*/
|
|
19663
|
+
'basketPrice': PosOrderPriceDto;
|
|
19664
|
+
/**
|
|
19665
|
+
*
|
|
19666
|
+
* @type {Array<PosOrderItemDto>}
|
|
19667
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19668
|
+
*/
|
|
19669
|
+
'items': Array<PosOrderItemDto>;
|
|
19670
|
+
/**
|
|
19671
|
+
*
|
|
19672
|
+
* @type {Array<PosDiscountDto>}
|
|
19673
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19674
|
+
*/
|
|
19675
|
+
'discounts': Array<PosDiscountDto>;
|
|
19676
|
+
/**
|
|
19677
|
+
*
|
|
19678
|
+
* @type {PosCustomerDto}
|
|
19679
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19680
|
+
*/
|
|
19681
|
+
'customer': PosCustomerDto | null;
|
|
19682
|
+
/**
|
|
19683
|
+
*
|
|
19684
|
+
* @type {Array<TransactionDto>}
|
|
19685
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19686
|
+
*/
|
|
19687
|
+
'paymentEvents': Array<TransactionDto>;
|
|
19688
|
+
/**
|
|
19689
|
+
*
|
|
19690
|
+
* @type {Array<PaymentRefundDto>}
|
|
19691
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19692
|
+
*/
|
|
19693
|
+
'refunds'?: Array<PaymentRefundDto>;
|
|
19694
|
+
/**
|
|
19695
|
+
* Data version code
|
|
19696
|
+
* @type {string}
|
|
19697
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19698
|
+
*/
|
|
19699
|
+
'version': string;
|
|
19700
|
+
/**
|
|
19701
|
+
*
|
|
19702
|
+
* @type {OrderFormat}
|
|
19703
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19704
|
+
*/
|
|
19705
|
+
'orderFormat'?: OrderFormat;
|
|
19706
|
+
/**
|
|
19707
|
+
* The ID of the loyalty program active during this order.
|
|
19708
|
+
* @type {string}
|
|
19709
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19710
|
+
*/
|
|
19711
|
+
'loyaltyProgramId': string | null;
|
|
19712
|
+
/**
|
|
19713
|
+
* An array of loyalty transaction IDs related to this order.
|
|
19714
|
+
* @type {Array<string>}
|
|
19715
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19716
|
+
*/
|
|
19717
|
+
'loyaltyTransactionIds': Array<string>;
|
|
19718
|
+
/**
|
|
19719
|
+
*
|
|
19720
|
+
* @type {PosOrderDtoTaxSummary}
|
|
19721
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19722
|
+
*/
|
|
19723
|
+
'taxSummary'?: PosOrderDtoTaxSummary;
|
|
19724
|
+
/**
|
|
19725
|
+
* Name of staff member who created the order
|
|
19726
|
+
* @type {string}
|
|
19727
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19728
|
+
*/
|
|
19729
|
+
'staffName'?: string | null;
|
|
19730
|
+
/**
|
|
19731
|
+
*
|
|
19732
|
+
* @type {PosOrderDtoInvoiceCompany}
|
|
19733
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19734
|
+
*/
|
|
19735
|
+
'invoiceCompany'?: PosOrderDtoInvoiceCompany | null;
|
|
19736
|
+
/**
|
|
19737
|
+
*
|
|
19738
|
+
* @type {object}
|
|
19739
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19740
|
+
*/
|
|
19741
|
+
'lastPaymentError'?: object;
|
|
19742
|
+
/**
|
|
19743
|
+
*
|
|
19744
|
+
* @type {Array<OrderFeeDto>}
|
|
19745
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19746
|
+
*/
|
|
19747
|
+
'fees'?: Array<OrderFeeDto> | null;
|
|
19748
|
+
/**
|
|
19749
|
+
* Loyalty user ID associated with this order
|
|
19750
|
+
* @type {number}
|
|
19751
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19752
|
+
*/
|
|
19753
|
+
'targetUserId'?: number;
|
|
19754
|
+
/**
|
|
19755
|
+
* ID of the table group this order belongs to
|
|
19756
|
+
* @type {string}
|
|
19757
|
+
* @memberof SyncKioskOrderDtoOrder
|
|
19758
|
+
*/
|
|
19759
|
+
'tableGroupId'?: string | null;
|
|
19760
|
+
}
|
|
19761
|
+
/**
|
|
19762
|
+
*
|
|
19763
|
+
* @export
|
|
19764
|
+
* @interface SyncKioskOrderResponseDto
|
|
19765
|
+
*/
|
|
19766
|
+
export interface SyncKioskOrderResponseDto {
|
|
19767
|
+
/**
|
|
19768
|
+
* Whether the order snapshot was persisted.
|
|
19769
|
+
* @type {boolean}
|
|
19770
|
+
* @memberof SyncKioskOrderResponseDto
|
|
19771
|
+
*/
|
|
19772
|
+
'synced': boolean;
|
|
19773
|
+
/**
|
|
19774
|
+
* Id of the synced order.
|
|
19775
|
+
* @type {string}
|
|
19776
|
+
* @memberof SyncKioskOrderResponseDto
|
|
19777
|
+
*/
|
|
19778
|
+
'orderId': string;
|
|
19779
|
+
}
|
|
19266
19780
|
/**
|
|
19267
19781
|
*
|
|
19268
19782
|
* @export
|
|
@@ -24660,6 +25174,12 @@ export interface WorldlineRefundRequestDataDto {
|
|
|
24660
25174
|
* @memberof WorldlineRefundRequestDataDto
|
|
24661
25175
|
*/
|
|
24662
25176
|
'amounts': WorldlineRefundRequestDataDtoAmounts;
|
|
25177
|
+
/**
|
|
25178
|
+
* Receipt number of the original payment (from PaymentCompleted.receiptNumber). Required for a REVERSAL — it identifies which transaction on the terminal to void. Omit for a ReturnOfGoods refund.
|
|
25179
|
+
* @type {string}
|
|
25180
|
+
* @memberof WorldlineRefundRequestDataDto
|
|
25181
|
+
*/
|
|
25182
|
+
'receiptNumber'?: string;
|
|
24663
25183
|
/**
|
|
24664
25184
|
* Cashier identifier
|
|
24665
25185
|
* @type {string}
|
|
@@ -24716,6 +25236,59 @@ export interface WorldlineRefundRequestDataDtoAmounts {
|
|
|
24716
25236
|
*/
|
|
24717
25237
|
'tip'?: number;
|
|
24718
25238
|
}
|
|
25239
|
+
/**
|
|
25240
|
+
*
|
|
25241
|
+
* @export
|
|
25242
|
+
* @enum {string}
|
|
25243
|
+
*/
|
|
25244
|
+
export declare const WorldlineRevertMethod: {
|
|
25245
|
+
readonly Reversal: "REVERSAL";
|
|
25246
|
+
readonly Refund: "REFUND";
|
|
25247
|
+
};
|
|
25248
|
+
export type WorldlineRevertMethod = typeof WorldlineRevertMethod[keyof typeof WorldlineRevertMethod];
|
|
25249
|
+
/**
|
|
25250
|
+
*
|
|
25251
|
+
* @export
|
|
25252
|
+
* @interface WorldlineRevertResponseDto
|
|
25253
|
+
*/
|
|
25254
|
+
export interface WorldlineRevertResponseDto {
|
|
25255
|
+
/**
|
|
25256
|
+
*
|
|
25257
|
+
* @type {WorldlineRevertMethod}
|
|
25258
|
+
* @memberof WorldlineRevertResponseDto
|
|
25259
|
+
*/
|
|
25260
|
+
'method': WorldlineRevertMethod;
|
|
25261
|
+
/**
|
|
25262
|
+
* True when the customer must tap their card to complete (REFUND); false for a REVERSAL, which settles without a tap.
|
|
25263
|
+
* @type {boolean}
|
|
25264
|
+
* @memberof WorldlineRevertResponseDto
|
|
25265
|
+
*/
|
|
25266
|
+
'requiresCardTap': boolean;
|
|
25267
|
+
/**
|
|
25268
|
+
* Opaque token to poll GET /payment-session/:clientToken for the final outcome.
|
|
25269
|
+
* @type {string}
|
|
25270
|
+
* @memberof WorldlineRevertResponseDto
|
|
25271
|
+
*/
|
|
25272
|
+
'clientToken': string;
|
|
25273
|
+
/**
|
|
25274
|
+
* Internal session id — the Worldline operationId the webhook resolves against.
|
|
25275
|
+
* @type {string}
|
|
25276
|
+
* @memberof WorldlineRevertResponseDto
|
|
25277
|
+
*/
|
|
25278
|
+
'sessionId': string;
|
|
25279
|
+
/**
|
|
25280
|
+
* Amount being reverted, in the smallest currency unit (cents).
|
|
25281
|
+
* @type {number}
|
|
25282
|
+
* @memberof WorldlineRevertResponseDto
|
|
25283
|
+
*/
|
|
25284
|
+
'amount': number;
|
|
25285
|
+
/**
|
|
25286
|
+
*
|
|
25287
|
+
* @type {PaymentSessionStatus}
|
|
25288
|
+
* @memberof WorldlineRevertResponseDto
|
|
25289
|
+
*/
|
|
25290
|
+
'status': PaymentSessionStatus;
|
|
25291
|
+
}
|
|
24719
25292
|
/**
|
|
24720
25293
|
* AblyApi - axios parameter creator
|
|
24721
25294
|
* @export
|
|
@@ -29609,6 +30182,15 @@ export declare class KDSApi extends BaseAPI implements KDSApiInterface {
|
|
|
29609
30182
|
* @export
|
|
29610
30183
|
*/
|
|
29611
30184
|
export declare const KiosksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
30185
|
+
/**
|
|
30186
|
+
* Fresh read of the persisted kiosk order (same PosOrderDto shape as POS): basketPrice, paymentEvents, targetUserId, etc. 404 when the order snapshot does not exist. Replaces the client\'s direct Firestore reads for the receipt screen and the recovery paid-status gate.
|
|
30187
|
+
* @summary Get the full kiosk order snapshot by id
|
|
30188
|
+
* @param {string} orderId The unique ID of the order.
|
|
30189
|
+
* @param {string} businessId The unique ID of the business.
|
|
30190
|
+
* @param {*} [options] Override http request option.
|
|
30191
|
+
* @throws {RequiredError}
|
|
30192
|
+
*/
|
|
30193
|
+
getKioskOrder: (orderId: string, businessId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29612
30194
|
/**
|
|
29613
30195
|
*
|
|
29614
30196
|
* @param {string} orderId The unique ID of the order to validate against the system.
|
|
@@ -29625,6 +30207,14 @@ export declare const KiosksApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29625
30207
|
* @throws {RequiredError}
|
|
29626
30208
|
*/
|
|
29627
30209
|
recoverOrder: (orderId: string, businessId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30210
|
+
/**
|
|
30211
|
+
*
|
|
30212
|
+
* @summary Sync a kiosk order snapshot
|
|
30213
|
+
* @param {SyncKioskOrderDto} syncKioskOrderDto
|
|
30214
|
+
* @param {*} [options] Override http request option.
|
|
30215
|
+
* @throws {RequiredError}
|
|
30216
|
+
*/
|
|
30217
|
+
syncKioskOrder: (syncKioskOrderDto: SyncKioskOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29628
30218
|
/**
|
|
29629
30219
|
*
|
|
29630
30220
|
* @param {string} terminalId The unique ID of the terminal to validate against the system.
|
|
@@ -29639,6 +30229,15 @@ export declare const KiosksApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29639
30229
|
* @export
|
|
29640
30230
|
*/
|
|
29641
30231
|
export declare const KiosksApiFp: (configuration?: Configuration) => {
|
|
30232
|
+
/**
|
|
30233
|
+
* Fresh read of the persisted kiosk order (same PosOrderDto shape as POS): basketPrice, paymentEvents, targetUserId, etc. 404 when the order snapshot does not exist. Replaces the client\'s direct Firestore reads for the receipt screen and the recovery paid-status gate.
|
|
30234
|
+
* @summary Get the full kiosk order snapshot by id
|
|
30235
|
+
* @param {string} orderId The unique ID of the order.
|
|
30236
|
+
* @param {string} businessId The unique ID of the business.
|
|
30237
|
+
* @param {*} [options] Override http request option.
|
|
30238
|
+
* @throws {RequiredError}
|
|
30239
|
+
*/
|
|
30240
|
+
getKioskOrder(orderId: string, businessId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosOrderDto>>;
|
|
29642
30241
|
/**
|
|
29643
30242
|
*
|
|
29644
30243
|
* @param {string} orderId The unique ID of the order to validate against the system.
|
|
@@ -29655,6 +30254,14 @@ export declare const KiosksApiFp: (configuration?: Configuration) => {
|
|
|
29655
30254
|
* @throws {RequiredError}
|
|
29656
30255
|
*/
|
|
29657
30256
|
recoverOrder(orderId: string, businessId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
30257
|
+
/**
|
|
30258
|
+
*
|
|
30259
|
+
* @summary Sync a kiosk order snapshot
|
|
30260
|
+
* @param {SyncKioskOrderDto} syncKioskOrderDto
|
|
30261
|
+
* @param {*} [options] Override http request option.
|
|
30262
|
+
* @throws {RequiredError}
|
|
30263
|
+
*/
|
|
30264
|
+
syncKioskOrder(syncKioskOrderDto: SyncKioskOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncKioskOrderResponseDto>>;
|
|
29658
30265
|
/**
|
|
29659
30266
|
*
|
|
29660
30267
|
* @param {string} terminalId The unique ID of the terminal to validate against the system.
|
|
@@ -29669,6 +30276,15 @@ export declare const KiosksApiFp: (configuration?: Configuration) => {
|
|
|
29669
30276
|
* @export
|
|
29670
30277
|
*/
|
|
29671
30278
|
export declare const KiosksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
30279
|
+
/**
|
|
30280
|
+
* Fresh read of the persisted kiosk order (same PosOrderDto shape as POS): basketPrice, paymentEvents, targetUserId, etc. 404 when the order snapshot does not exist. Replaces the client\'s direct Firestore reads for the receipt screen and the recovery paid-status gate.
|
|
30281
|
+
* @summary Get the full kiosk order snapshot by id
|
|
30282
|
+
* @param {string} orderId The unique ID of the order.
|
|
30283
|
+
* @param {string} businessId The unique ID of the business.
|
|
30284
|
+
* @param {*} [options] Override http request option.
|
|
30285
|
+
* @throws {RequiredError}
|
|
30286
|
+
*/
|
|
30287
|
+
getKioskOrder(orderId: string, businessId: string, options?: any): AxiosPromise<PosOrderDto>;
|
|
29672
30288
|
/**
|
|
29673
30289
|
*
|
|
29674
30290
|
* @param {string} orderId The unique ID of the order to validate against the system.
|
|
@@ -29685,6 +30301,14 @@ export declare const KiosksApiFactory: (configuration?: Configuration, basePath?
|
|
|
29685
30301
|
* @throws {RequiredError}
|
|
29686
30302
|
*/
|
|
29687
30303
|
recoverOrder(orderId: string, businessId: string, options?: any): AxiosPromise<void>;
|
|
30304
|
+
/**
|
|
30305
|
+
*
|
|
30306
|
+
* @summary Sync a kiosk order snapshot
|
|
30307
|
+
* @param {SyncKioskOrderDto} syncKioskOrderDto
|
|
30308
|
+
* @param {*} [options] Override http request option.
|
|
30309
|
+
* @throws {RequiredError}
|
|
30310
|
+
*/
|
|
30311
|
+
syncKioskOrder(syncKioskOrderDto: SyncKioskOrderDto, options?: any): AxiosPromise<SyncKioskOrderResponseDto>;
|
|
29688
30312
|
/**
|
|
29689
30313
|
*
|
|
29690
30314
|
* @param {string} terminalId The unique ID of the terminal to validate against the system.
|
|
@@ -29700,6 +30324,16 @@ export declare const KiosksApiFactory: (configuration?: Configuration, basePath?
|
|
|
29700
30324
|
* @interface KiosksApi
|
|
29701
30325
|
*/
|
|
29702
30326
|
export interface KiosksApiInterface {
|
|
30327
|
+
/**
|
|
30328
|
+
* Fresh read of the persisted kiosk order (same PosOrderDto shape as POS): basketPrice, paymentEvents, targetUserId, etc. 404 when the order snapshot does not exist. Replaces the client\'s direct Firestore reads for the receipt screen and the recovery paid-status gate.
|
|
30329
|
+
* @summary Get the full kiosk order snapshot by id
|
|
30330
|
+
* @param {string} orderId The unique ID of the order.
|
|
30331
|
+
* @param {string} businessId The unique ID of the business.
|
|
30332
|
+
* @param {*} [options] Override http request option.
|
|
30333
|
+
* @throws {RequiredError}
|
|
30334
|
+
* @memberof KiosksApiInterface
|
|
30335
|
+
*/
|
|
30336
|
+
getKioskOrder(orderId: string, businessId: string, options?: AxiosRequestConfig): AxiosPromise<PosOrderDto>;
|
|
29703
30337
|
/**
|
|
29704
30338
|
*
|
|
29705
30339
|
* @param {string} orderId The unique ID of the order to validate against the system.
|
|
@@ -29718,6 +30352,15 @@ export interface KiosksApiInterface {
|
|
|
29718
30352
|
* @memberof KiosksApiInterface
|
|
29719
30353
|
*/
|
|
29720
30354
|
recoverOrder(orderId: string, businessId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30355
|
+
/**
|
|
30356
|
+
*
|
|
30357
|
+
* @summary Sync a kiosk order snapshot
|
|
30358
|
+
* @param {SyncKioskOrderDto} syncKioskOrderDto
|
|
30359
|
+
* @param {*} [options] Override http request option.
|
|
30360
|
+
* @throws {RequiredError}
|
|
30361
|
+
* @memberof KiosksApiInterface
|
|
30362
|
+
*/
|
|
30363
|
+
syncKioskOrder(syncKioskOrderDto: SyncKioskOrderDto, options?: AxiosRequestConfig): AxiosPromise<SyncKioskOrderResponseDto>;
|
|
29721
30364
|
/**
|
|
29722
30365
|
*
|
|
29723
30366
|
* @param {string} terminalId The unique ID of the terminal to validate against the system.
|
|
@@ -29735,6 +30378,16 @@ export interface KiosksApiInterface {
|
|
|
29735
30378
|
* @extends {BaseAPI}
|
|
29736
30379
|
*/
|
|
29737
30380
|
export declare class KiosksApi extends BaseAPI implements KiosksApiInterface {
|
|
30381
|
+
/**
|
|
30382
|
+
* Fresh read of the persisted kiosk order (same PosOrderDto shape as POS): basketPrice, paymentEvents, targetUserId, etc. 404 when the order snapshot does not exist. Replaces the client\'s direct Firestore reads for the receipt screen and the recovery paid-status gate.
|
|
30383
|
+
* @summary Get the full kiosk order snapshot by id
|
|
30384
|
+
* @param {string} orderId The unique ID of the order.
|
|
30385
|
+
* @param {string} businessId The unique ID of the business.
|
|
30386
|
+
* @param {*} [options] Override http request option.
|
|
30387
|
+
* @throws {RequiredError}
|
|
30388
|
+
* @memberof KiosksApi
|
|
30389
|
+
*/
|
|
30390
|
+
getKioskOrder(orderId: string, businessId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PosOrderDto, any, {}>>;
|
|
29738
30391
|
/**
|
|
29739
30392
|
*
|
|
29740
30393
|
* @param {string} orderId The unique ID of the order to validate against the system.
|
|
@@ -29753,6 +30406,15 @@ export declare class KiosksApi extends BaseAPI implements KiosksApiInterface {
|
|
|
29753
30406
|
* @memberof KiosksApi
|
|
29754
30407
|
*/
|
|
29755
30408
|
recoverOrder(orderId: string, businessId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
30409
|
+
/**
|
|
30410
|
+
*
|
|
30411
|
+
* @summary Sync a kiosk order snapshot
|
|
30412
|
+
* @param {SyncKioskOrderDto} syncKioskOrderDto
|
|
30413
|
+
* @param {*} [options] Override http request option.
|
|
30414
|
+
* @throws {RequiredError}
|
|
30415
|
+
* @memberof KiosksApi
|
|
30416
|
+
*/
|
|
30417
|
+
syncKioskOrder(syncKioskOrderDto: SyncKioskOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncKioskOrderResponseDto, any, {}>>;
|
|
29756
30418
|
/**
|
|
29757
30419
|
*
|
|
29758
30420
|
* @param {string} terminalId The unique ID of the terminal to validate against the system.
|
|
@@ -32993,6 +33655,16 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
32993
33655
|
* @throws {RequiredError}
|
|
32994
33656
|
*/
|
|
32995
33657
|
cancelSession: (clientToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33658
|
+
/**
|
|
33659
|
+
* Unified paid-status check for both POS and kiosk. Reads the order from the channel-appropriate collection (via the x-app-x channel header) and derives the settlement from its persisted paymentEvents — the same events reconciliation writes for every provider (Viva/Nets/Worldline, card or manual). The FE polls this after a payment and stops when isFullyPaid is true. Send an empty body for the plain check, or optional { cashChange, cartTotalAmount } overrides. Always 200: `settlement` is null while the order snapshot does not yet exist / cannot be computed (treat as pending).
|
|
33660
|
+
* @summary Get an order\'s paid/reconcile status (POS or kiosk)
|
|
33661
|
+
* @param {number} businessId The internal business ID.
|
|
33662
|
+
* @param {string} orderId The order ID.
|
|
33663
|
+
* @param {OrderSettlementStatusRequestDto} [orderSettlementStatusRequestDto]
|
|
33664
|
+
* @param {*} [options] Override http request option.
|
|
33665
|
+
* @throws {RequiredError}
|
|
33666
|
+
*/
|
|
33667
|
+
getOrderSettlementStatus: (businessId: number, orderId: string, orderSettlementStatusRequestDto?: OrderSettlementStatusRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32996
33668
|
/**
|
|
32997
33669
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
32998
33670
|
* @summary Get payment session status by clientToken
|
|
@@ -33027,6 +33699,15 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33027
33699
|
* @throws {RequiredError}
|
|
33028
33700
|
*/
|
|
33029
33701
|
initiateVivaSession: (initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33702
|
+
/**
|
|
33703
|
+
* Creates a PaymentSession row and pushes the transaction to the station\'s Worldline terminal via the Worldline microservice (async — the result arrives via the Worldline webhook). Returns a client-facing token to poll. The backend owns the order mutation (webhook → reconciliation), replacing the legacy FE-writes-from-Ably flow. Idempotent via X-Idempotency-Key header.
|
|
33704
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33705
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33706
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33707
|
+
* @param {*} [options] Override http request option.
|
|
33708
|
+
* @throws {RequiredError}
|
|
33709
|
+
*/
|
|
33710
|
+
initiateWorldlineSession: (initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33030
33711
|
/**
|
|
33031
33712
|
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
33032
33713
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33035,6 +33716,14 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33035
33716
|
* @throws {RequiredError}
|
|
33036
33717
|
*/
|
|
33037
33718
|
pollVivaSession: (pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33719
|
+
/**
|
|
33720
|
+
* Called by a Cloud Task (not the client). Polls the Worldline microservice by operationId for up to ~45s; as soon as the operation is terminal it finalizes the PaymentSession through the same sweep the webhook uses (CAS-guarded, so a webhook + poll never double-write). Ensures the session resolves even if the webhook is slow or never arrives.
|
|
33721
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33722
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33723
|
+
* @param {*} [options] Override http request option.
|
|
33724
|
+
* @throws {RequiredError}
|
|
33725
|
+
*/
|
|
33726
|
+
pollWorldlineSession: (pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33038
33727
|
/**
|
|
33039
33728
|
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
33040
33729
|
* @summary Record a manual payment session
|
|
@@ -33059,6 +33748,14 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33059
33748
|
* @throws {RequiredError}
|
|
33060
33749
|
*/
|
|
33061
33750
|
refundVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33751
|
+
/**
|
|
33752
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Worldline terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
33753
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33754
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33755
|
+
* @param {*} [options] Override http request option.
|
|
33756
|
+
* @throws {RequiredError}
|
|
33757
|
+
*/
|
|
33758
|
+
refundWorldlineSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33062
33759
|
/**
|
|
33063
33760
|
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
33064
33761
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33075,6 +33772,14 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33075
33772
|
* @throws {RequiredError}
|
|
33076
33773
|
*/
|
|
33077
33774
|
revertVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33775
|
+
/**
|
|
33776
|
+
* Starts a terminal reversal for the full remaining amount AND writes a reversal paymentEvent to the order once the reversal settles (via reconciliation). Returns a PENDING refund session — poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. A reversal typically settles without a card tap; if the payment is already batched/settled the reversal fails and the client should fall back to /worldline/refund.
|
|
33777
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33778
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33779
|
+
* @param {*} [options] Override http request option.
|
|
33780
|
+
* @throws {RequiredError}
|
|
33781
|
+
*/
|
|
33782
|
+
revertWorldlineSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33078
33783
|
/**
|
|
33079
33784
|
* 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.
|
|
33080
33785
|
* @summary Void a manual payment session
|
|
@@ -33097,6 +33802,16 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33097
33802
|
* @throws {RequiredError}
|
|
33098
33803
|
*/
|
|
33099
33804
|
cancelSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33805
|
+
/**
|
|
33806
|
+
* Unified paid-status check for both POS and kiosk. Reads the order from the channel-appropriate collection (via the x-app-x channel header) and derives the settlement from its persisted paymentEvents — the same events reconciliation writes for every provider (Viva/Nets/Worldline, card or manual). The FE polls this after a payment and stops when isFullyPaid is true. Send an empty body for the plain check, or optional { cashChange, cartTotalAmount } overrides. Always 200: `settlement` is null while the order snapshot does not yet exist / cannot be computed (treat as pending).
|
|
33807
|
+
* @summary Get an order\'s paid/reconcile status (POS or kiosk)
|
|
33808
|
+
* @param {number} businessId The internal business ID.
|
|
33809
|
+
* @param {string} orderId The order ID.
|
|
33810
|
+
* @param {OrderSettlementStatusRequestDto} [orderSettlementStatusRequestDto]
|
|
33811
|
+
* @param {*} [options] Override http request option.
|
|
33812
|
+
* @throws {RequiredError}
|
|
33813
|
+
*/
|
|
33814
|
+
getOrderSettlementStatus(businessId: number, orderId: string, orderSettlementStatusRequestDto?: OrderSettlementStatusRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSettlementStatusResponseDto>>;
|
|
33100
33815
|
/**
|
|
33101
33816
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
33102
33817
|
* @summary Get payment session status by clientToken
|
|
@@ -33131,6 +33846,15 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33131
33846
|
* @throws {RequiredError}
|
|
33132
33847
|
*/
|
|
33133
33848
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateVivaSessionResponseDto>>;
|
|
33849
|
+
/**
|
|
33850
|
+
* Creates a PaymentSession row and pushes the transaction to the station\'s Worldline terminal via the Worldline microservice (async — the result arrives via the Worldline webhook). Returns a client-facing token to poll. The backend owns the order mutation (webhook → reconciliation), replacing the legacy FE-writes-from-Ably flow. Idempotent via X-Idempotency-Key header.
|
|
33851
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33852
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33853
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33854
|
+
* @param {*} [options] Override http request option.
|
|
33855
|
+
* @throws {RequiredError}
|
|
33856
|
+
*/
|
|
33857
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateWorldlineSessionResponseDto>>;
|
|
33134
33858
|
/**
|
|
33135
33859
|
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
33136
33860
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33139,6 +33863,14 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33139
33863
|
* @throws {RequiredError}
|
|
33140
33864
|
*/
|
|
33141
33865
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
33866
|
+
/**
|
|
33867
|
+
* Called by a Cloud Task (not the client). Polls the Worldline microservice by operationId for up to ~45s; as soon as the operation is terminal it finalizes the PaymentSession through the same sweep the webhook uses (CAS-guarded, so a webhook + poll never double-write). Ensures the session resolves even if the webhook is slow or never arrives.
|
|
33868
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33869
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33870
|
+
* @param {*} [options] Override http request option.
|
|
33871
|
+
* @throws {RequiredError}
|
|
33872
|
+
*/
|
|
33873
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
33142
33874
|
/**
|
|
33143
33875
|
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
33144
33876
|
* @summary Record a manual payment session
|
|
@@ -33163,6 +33895,14 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33163
33895
|
* @throws {RequiredError}
|
|
33164
33896
|
*/
|
|
33165
33897
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33898
|
+
/**
|
|
33899
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Worldline terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
33900
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33901
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33902
|
+
* @param {*} [options] Override http request option.
|
|
33903
|
+
* @throws {RequiredError}
|
|
33904
|
+
*/
|
|
33905
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33166
33906
|
/**
|
|
33167
33907
|
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
33168
33908
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33179,6 +33919,14 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33179
33919
|
* @throws {RequiredError}
|
|
33180
33920
|
*/
|
|
33181
33921
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33922
|
+
/**
|
|
33923
|
+
* Starts a terminal reversal for the full remaining amount AND writes a reversal paymentEvent to the order once the reversal settles (via reconciliation). Returns a PENDING refund session — poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. A reversal typically settles without a card tap; if the payment is already batched/settled the reversal fails and the client should fall back to /worldline/refund.
|
|
33924
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33925
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33926
|
+
* @param {*} [options] Override http request option.
|
|
33927
|
+
* @throws {RequiredError}
|
|
33928
|
+
*/
|
|
33929
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorldlineRevertResponseDto>>;
|
|
33182
33930
|
/**
|
|
33183
33931
|
* 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.
|
|
33184
33932
|
* @summary Void a manual payment session
|
|
@@ -33201,6 +33949,16 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33201
33949
|
* @throws {RequiredError}
|
|
33202
33950
|
*/
|
|
33203
33951
|
cancelSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
33952
|
+
/**
|
|
33953
|
+
* Unified paid-status check for both POS and kiosk. Reads the order from the channel-appropriate collection (via the x-app-x channel header) and derives the settlement from its persisted paymentEvents — the same events reconciliation writes for every provider (Viva/Nets/Worldline, card or manual). The FE polls this after a payment and stops when isFullyPaid is true. Send an empty body for the plain check, or optional { cashChange, cartTotalAmount } overrides. Always 200: `settlement` is null while the order snapshot does not yet exist / cannot be computed (treat as pending).
|
|
33954
|
+
* @summary Get an order\'s paid/reconcile status (POS or kiosk)
|
|
33955
|
+
* @param {number} businessId The internal business ID.
|
|
33956
|
+
* @param {string} orderId The order ID.
|
|
33957
|
+
* @param {OrderSettlementStatusRequestDto} [orderSettlementStatusRequestDto]
|
|
33958
|
+
* @param {*} [options] Override http request option.
|
|
33959
|
+
* @throws {RequiredError}
|
|
33960
|
+
*/
|
|
33961
|
+
getOrderSettlementStatus(businessId: number, orderId: string, orderSettlementStatusRequestDto?: OrderSettlementStatusRequestDto, options?: any): AxiosPromise<OrderSettlementStatusResponseDto>;
|
|
33204
33962
|
/**
|
|
33205
33963
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
33206
33964
|
* @summary Get payment session status by clientToken
|
|
@@ -33235,6 +33993,15 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33235
33993
|
* @throws {RequiredError}
|
|
33236
33994
|
*/
|
|
33237
33995
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
33996
|
+
/**
|
|
33997
|
+
* Creates a PaymentSession row and pushes the transaction to the station\'s Worldline terminal via the Worldline microservice (async — the result arrives via the Worldline webhook). Returns a client-facing token to poll. The backend owns the order mutation (webhook → reconciliation), replacing the legacy FE-writes-from-Ably flow. Idempotent via X-Idempotency-Key header.
|
|
33998
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33999
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
34000
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
34001
|
+
* @param {*} [options] Override http request option.
|
|
34002
|
+
* @throws {RequiredError}
|
|
34003
|
+
*/
|
|
34004
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateWorldlineSessionResponseDto>;
|
|
33238
34005
|
/**
|
|
33239
34006
|
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
33240
34007
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33243,6 +34010,14 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33243
34010
|
* @throws {RequiredError}
|
|
33244
34011
|
*/
|
|
33245
34012
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: any): AxiosPromise<void>;
|
|
34013
|
+
/**
|
|
34014
|
+
* Called by a Cloud Task (not the client). Polls the Worldline microservice by operationId for up to ~45s; as soon as the operation is terminal it finalizes the PaymentSession through the same sweep the webhook uses (CAS-guarded, so a webhook + poll never double-write). Ensures the session resolves even if the webhook is slow or never arrives.
|
|
34015
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
34016
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
34017
|
+
* @param {*} [options] Override http request option.
|
|
34018
|
+
* @throws {RequiredError}
|
|
34019
|
+
*/
|
|
34020
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: any): AxiosPromise<void>;
|
|
33246
34021
|
/**
|
|
33247
34022
|
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
33248
34023
|
* @summary Record a manual payment session
|
|
@@ -33267,6 +34042,14 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33267
34042
|
* @throws {RequiredError}
|
|
33268
34043
|
*/
|
|
33269
34044
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
34045
|
+
/**
|
|
34046
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Worldline terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
34047
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
34048
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
34049
|
+
* @param {*} [options] Override http request option.
|
|
34050
|
+
* @throws {RequiredError}
|
|
34051
|
+
*/
|
|
34052
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
33270
34053
|
/**
|
|
33271
34054
|
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
33272
34055
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33283,6 +34066,14 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33283
34066
|
* @throws {RequiredError}
|
|
33284
34067
|
*/
|
|
33285
34068
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
34069
|
+
/**
|
|
34070
|
+
* Starts a terminal reversal for the full remaining amount AND writes a reversal paymentEvent to the order once the reversal settles (via reconciliation). Returns a PENDING refund session — poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. A reversal typically settles without a card tap; if the payment is already batched/settled the reversal fails and the client should fall back to /worldline/refund.
|
|
34071
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
34072
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
34073
|
+
* @param {*} [options] Override http request option.
|
|
34074
|
+
* @throws {RequiredError}
|
|
34075
|
+
*/
|
|
34076
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<WorldlineRevertResponseDto>;
|
|
33286
34077
|
/**
|
|
33287
34078
|
* 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.
|
|
33288
34079
|
* @summary Void a manual payment session
|
|
@@ -33307,6 +34098,17 @@ export interface PaymentSessionApiInterface {
|
|
|
33307
34098
|
* @memberof PaymentSessionApiInterface
|
|
33308
34099
|
*/
|
|
33309
34100
|
cancelSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
34101
|
+
/**
|
|
34102
|
+
* Unified paid-status check for both POS and kiosk. Reads the order from the channel-appropriate collection (via the x-app-x channel header) and derives the settlement from its persisted paymentEvents — the same events reconciliation writes for every provider (Viva/Nets/Worldline, card or manual). The FE polls this after a payment and stops when isFullyPaid is true. Send an empty body for the plain check, or optional { cashChange, cartTotalAmount } overrides. Always 200: `settlement` is null while the order snapshot does not yet exist / cannot be computed (treat as pending).
|
|
34103
|
+
* @summary Get an order\'s paid/reconcile status (POS or kiosk)
|
|
34104
|
+
* @param {number} businessId The internal business ID.
|
|
34105
|
+
* @param {string} orderId The order ID.
|
|
34106
|
+
* @param {OrderSettlementStatusRequestDto} [orderSettlementStatusRequestDto]
|
|
34107
|
+
* @param {*} [options] Override http request option.
|
|
34108
|
+
* @throws {RequiredError}
|
|
34109
|
+
* @memberof PaymentSessionApiInterface
|
|
34110
|
+
*/
|
|
34111
|
+
getOrderSettlementStatus(businessId: number, orderId: string, orderSettlementStatusRequestDto?: OrderSettlementStatusRequestDto, options?: AxiosRequestConfig): AxiosPromise<OrderSettlementStatusResponseDto>;
|
|
33310
34112
|
/**
|
|
33311
34113
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
33312
34114
|
* @summary Get payment session status by clientToken
|
|
@@ -33345,6 +34147,16 @@ export interface PaymentSessionApiInterface {
|
|
|
33345
34147
|
* @memberof PaymentSessionApiInterface
|
|
33346
34148
|
*/
|
|
33347
34149
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
34150
|
+
/**
|
|
34151
|
+
* Creates a PaymentSession row and pushes the transaction to the station\'s Worldline terminal via the Worldline microservice (async — the result arrives via the Worldline webhook). Returns a client-facing token to poll. The backend owns the order mutation (webhook → reconciliation), replacing the legacy FE-writes-from-Ably flow. Idempotent via X-Idempotency-Key header.
|
|
34152
|
+
* @summary Initiate a Worldline terminal payment session
|
|
34153
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
34154
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
34155
|
+
* @param {*} [options] Override http request option.
|
|
34156
|
+
* @throws {RequiredError}
|
|
34157
|
+
* @memberof PaymentSessionApiInterface
|
|
34158
|
+
*/
|
|
34159
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateWorldlineSessionResponseDto>;
|
|
33348
34160
|
/**
|
|
33349
34161
|
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
33350
34162
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33354,6 +34166,15 @@ export interface PaymentSessionApiInterface {
|
|
|
33354
34166
|
* @memberof PaymentSessionApiInterface
|
|
33355
34167
|
*/
|
|
33356
34168
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
34169
|
+
/**
|
|
34170
|
+
* Called by a Cloud Task (not the client). Polls the Worldline microservice by operationId for up to ~45s; as soon as the operation is terminal it finalizes the PaymentSession through the same sweep the webhook uses (CAS-guarded, so a webhook + poll never double-write). Ensures the session resolves even if the webhook is slow or never arrives.
|
|
34171
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
34172
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
34173
|
+
* @param {*} [options] Override http request option.
|
|
34174
|
+
* @throws {RequiredError}
|
|
34175
|
+
* @memberof PaymentSessionApiInterface
|
|
34176
|
+
*/
|
|
34177
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
33357
34178
|
/**
|
|
33358
34179
|
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
33359
34180
|
* @summary Record a manual payment session
|
|
@@ -33381,6 +34202,15 @@ export interface PaymentSessionApiInterface {
|
|
|
33381
34202
|
* @memberof PaymentSessionApiInterface
|
|
33382
34203
|
*/
|
|
33383
34204
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
34205
|
+
/**
|
|
34206
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Worldline terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
34207
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
34208
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
34209
|
+
* @param {*} [options] Override http request option.
|
|
34210
|
+
* @throws {RequiredError}
|
|
34211
|
+
* @memberof PaymentSessionApiInterface
|
|
34212
|
+
*/
|
|
34213
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
33384
34214
|
/**
|
|
33385
34215
|
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
33386
34216
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33399,6 +34229,15 @@ export interface PaymentSessionApiInterface {
|
|
|
33399
34229
|
* @memberof PaymentSessionApiInterface
|
|
33400
34230
|
*/
|
|
33401
34231
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
34232
|
+
/**
|
|
34233
|
+
* Starts a terminal reversal for the full remaining amount AND writes a reversal paymentEvent to the order once the reversal settles (via reconciliation). Returns a PENDING refund session — poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. A reversal typically settles without a card tap; if the payment is already batched/settled the reversal fails and the client should fall back to /worldline/refund.
|
|
34234
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
34235
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
34236
|
+
* @param {*} [options] Override http request option.
|
|
34237
|
+
* @throws {RequiredError}
|
|
34238
|
+
* @memberof PaymentSessionApiInterface
|
|
34239
|
+
*/
|
|
34240
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<WorldlineRevertResponseDto>;
|
|
33402
34241
|
/**
|
|
33403
34242
|
* 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.
|
|
33404
34243
|
* @summary Void a manual payment session
|
|
@@ -33425,6 +34264,17 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33425
34264
|
* @memberof PaymentSessionApi
|
|
33426
34265
|
*/
|
|
33427
34266
|
cancelSession(clientToken: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
34267
|
+
/**
|
|
34268
|
+
* Unified paid-status check for both POS and kiosk. Reads the order from the channel-appropriate collection (via the x-app-x channel header) and derives the settlement from its persisted paymentEvents — the same events reconciliation writes for every provider (Viva/Nets/Worldline, card or manual). The FE polls this after a payment and stops when isFullyPaid is true. Send an empty body for the plain check, or optional { cashChange, cartTotalAmount } overrides. Always 200: `settlement` is null while the order snapshot does not yet exist / cannot be computed (treat as pending).
|
|
34269
|
+
* @summary Get an order\'s paid/reconcile status (POS or kiosk)
|
|
34270
|
+
* @param {number} businessId The internal business ID.
|
|
34271
|
+
* @param {string} orderId The order ID.
|
|
34272
|
+
* @param {OrderSettlementStatusRequestDto} [orderSettlementStatusRequestDto]
|
|
34273
|
+
* @param {*} [options] Override http request option.
|
|
34274
|
+
* @throws {RequiredError}
|
|
34275
|
+
* @memberof PaymentSessionApi
|
|
34276
|
+
*/
|
|
34277
|
+
getOrderSettlementStatus(businessId: number, orderId: string, orderSettlementStatusRequestDto?: OrderSettlementStatusRequestDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSettlementStatusResponseDto, any, {}>>;
|
|
33428
34278
|
/**
|
|
33429
34279
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
33430
34280
|
* @summary Get payment session status by clientToken
|
|
@@ -33463,6 +34313,16 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33463
34313
|
* @memberof PaymentSessionApi
|
|
33464
34314
|
*/
|
|
33465
34315
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateVivaSessionResponseDto, any, {}>>;
|
|
34316
|
+
/**
|
|
34317
|
+
* Creates a PaymentSession row and pushes the transaction to the station\'s Worldline terminal via the Worldline microservice (async — the result arrives via the Worldline webhook). Returns a client-facing token to poll. The backend owns the order mutation (webhook → reconciliation), replacing the legacy FE-writes-from-Ably flow. Idempotent via X-Idempotency-Key header.
|
|
34318
|
+
* @summary Initiate a Worldline terminal payment session
|
|
34319
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
34320
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
34321
|
+
* @param {*} [options] Override http request option.
|
|
34322
|
+
* @throws {RequiredError}
|
|
34323
|
+
* @memberof PaymentSessionApi
|
|
34324
|
+
*/
|
|
34325
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateWorldlineSessionResponseDto, any, {}>>;
|
|
33466
34326
|
/**
|
|
33467
34327
|
* Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
|
|
33468
34328
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33472,6 +34332,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33472
34332
|
* @memberof PaymentSessionApi
|
|
33473
34333
|
*/
|
|
33474
34334
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
34335
|
+
/**
|
|
34336
|
+
* Called by a Cloud Task (not the client). Polls the Worldline microservice by operationId for up to ~45s; as soon as the operation is terminal it finalizes the PaymentSession through the same sweep the webhook uses (CAS-guarded, so a webhook + poll never double-write). Ensures the session resolves even if the webhook is slow or never arrives.
|
|
34337
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
34338
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
34339
|
+
* @param {*} [options] Override http request option.
|
|
34340
|
+
* @throws {RequiredError}
|
|
34341
|
+
* @memberof PaymentSessionApi
|
|
34342
|
+
*/
|
|
34343
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
33475
34344
|
/**
|
|
33476
34345
|
* Records a non-gateway payment (cash / voucher / CardManual / gift card / …) through PaymentSession so every device sees it. Card paymethods (Card/Debit/Credit/Edenred) use a gateway initiate. Resolves to SUCCESS immediately; reconciliation writes the paymentEvent.
|
|
33477
34346
|
* @summary Record a manual payment session
|
|
@@ -33499,6 +34368,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33499
34368
|
* @memberof PaymentSessionApi
|
|
33500
34369
|
*/
|
|
33501
34370
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
34371
|
+
/**
|
|
34372
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Worldline terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
34373
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
34374
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
34375
|
+
* @param {*} [options] Override http request option.
|
|
34376
|
+
* @throws {RequiredError}
|
|
34377
|
+
* @memberof PaymentSessionApi
|
|
34378
|
+
*/
|
|
34379
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
33502
34380
|
/**
|
|
33503
34381
|
* Starts a terminal-present ReturnOfGoods for the full remaining amount AND writes a reversal paymentEvent to the order once the refund settles (via reconciliation). Returns a PENDING refund session — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED.
|
|
33504
34382
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33517,6 +34395,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33517
34395
|
* @memberof PaymentSessionApi
|
|
33518
34396
|
*/
|
|
33519
34397
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
34398
|
+
/**
|
|
34399
|
+
* Starts a terminal reversal for the full remaining amount AND writes a reversal paymentEvent to the order once the reversal settles (via reconciliation). Returns a PENDING refund session — poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. A reversal typically settles without a card tap; if the payment is already batched/settled the reversal fails and the client should fall back to /worldline/refund.
|
|
34400
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
34401
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
34402
|
+
* @param {*} [options] Override http request option.
|
|
34403
|
+
* @throws {RequiredError}
|
|
34404
|
+
* @memberof PaymentSessionApi
|
|
34405
|
+
*/
|
|
34406
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WorldlineRevertResponseDto, any, {}>>;
|
|
33520
34407
|
/**
|
|
33521
34408
|
* 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.
|
|
33522
34409
|
* @summary Void a manual payment session
|
|
@@ -36333,6 +37220,13 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
|
|
|
36333
37220
|
* @throws {RequiredError}
|
|
36334
37221
|
*/
|
|
36335
37222
|
handleWorldlineEvents: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37223
|
+
/**
|
|
37224
|
+
* Per-operation callback registered at initiate (x-munchi-webhook-address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. The legacy /worldline/events (FE-writes-from-Ably) stays untouched.
|
|
37225
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37226
|
+
* @param {*} [options] Override http request option.
|
|
37227
|
+
* @throws {RequiredError}
|
|
37228
|
+
*/
|
|
37229
|
+
handleWorldlineSessionEvents: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36336
37230
|
/**
|
|
36337
37231
|
*
|
|
36338
37232
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36472,6 +37366,13 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
|
|
|
36472
37366
|
* @throws {RequiredError}
|
|
36473
37367
|
*/
|
|
36474
37368
|
handleWorldlineEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
37369
|
+
/**
|
|
37370
|
+
* Per-operation callback registered at initiate (x-munchi-webhook-address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. The legacy /worldline/events (FE-writes-from-Ably) stays untouched.
|
|
37371
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37372
|
+
* @param {*} [options] Override http request option.
|
|
37373
|
+
* @throws {RequiredError}
|
|
37374
|
+
*/
|
|
37375
|
+
handleWorldlineSessionEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
36475
37376
|
/**
|
|
36476
37377
|
*
|
|
36477
37378
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36611,6 +37512,13 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
|
|
|
36611
37512
|
* @throws {RequiredError}
|
|
36612
37513
|
*/
|
|
36613
37514
|
handleWorldlineEvents(options?: any): AxiosPromise<void>;
|
|
37515
|
+
/**
|
|
37516
|
+
* Per-operation callback registered at initiate (x-munchi-webhook-address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. The legacy /worldline/events (FE-writes-from-Ably) stays untouched.
|
|
37517
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37518
|
+
* @param {*} [options] Override http request option.
|
|
37519
|
+
* @throws {RequiredError}
|
|
37520
|
+
*/
|
|
37521
|
+
handleWorldlineSessionEvents(options?: any): AxiosPromise<void>;
|
|
36614
37522
|
/**
|
|
36615
37523
|
*
|
|
36616
37524
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36767,6 +37675,14 @@ export interface WebhookApiInterface {
|
|
|
36767
37675
|
* @memberof WebhookApiInterface
|
|
36768
37676
|
*/
|
|
36769
37677
|
handleWorldlineEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
37678
|
+
/**
|
|
37679
|
+
* Per-operation callback registered at initiate (x-munchi-webhook-address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. The legacy /worldline/events (FE-writes-from-Ably) stays untouched.
|
|
37680
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37681
|
+
* @param {*} [options] Override http request option.
|
|
37682
|
+
* @throws {RequiredError}
|
|
37683
|
+
* @memberof WebhookApiInterface
|
|
37684
|
+
*/
|
|
37685
|
+
handleWorldlineSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
36770
37686
|
/**
|
|
36771
37687
|
*
|
|
36772
37688
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36928,6 +37844,14 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
36928
37844
|
* @memberof WebhookApi
|
|
36929
37845
|
*/
|
|
36930
37846
|
handleWorldlineEvents(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
37847
|
+
/**
|
|
37848
|
+
* Per-operation callback registered at initiate (x-munchi-webhook-address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. The legacy /worldline/events (FE-writes-from-Ably) stays untouched.
|
|
37849
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37850
|
+
* @param {*} [options] Override http request option.
|
|
37851
|
+
* @throws {RequiredError}
|
|
37852
|
+
* @memberof WebhookApi
|
|
37853
|
+
*/
|
|
37854
|
+
handleWorldlineSessionEvents(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
36931
37855
|
/**
|
|
36932
37856
|
*
|
|
36933
37857
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|