@munchi_oy/core 1.9.74 → 1.9.75
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 +383 -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 +575 -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
|
|
@@ -13732,6 +13800,19 @@ export interface PollVivaSessionDto {
|
|
|
13732
13800
|
*/
|
|
13733
13801
|
'sessionId': string;
|
|
13734
13802
|
}
|
|
13803
|
+
/**
|
|
13804
|
+
*
|
|
13805
|
+
* @export
|
|
13806
|
+
* @interface PollWorldlineSessionDto
|
|
13807
|
+
*/
|
|
13808
|
+
export interface PollWorldlineSessionDto {
|
|
13809
|
+
/**
|
|
13810
|
+
* The Worldline session id (= operationId) to poll.
|
|
13811
|
+
* @type {string}
|
|
13812
|
+
* @memberof PollWorldlineSessionDto
|
|
13813
|
+
*/
|
|
13814
|
+
'sessionId': string;
|
|
13815
|
+
}
|
|
13735
13816
|
/**
|
|
13736
13817
|
*
|
|
13737
13818
|
* @export
|
|
@@ -24660,6 +24741,12 @@ export interface WorldlineRefundRequestDataDto {
|
|
|
24660
24741
|
* @memberof WorldlineRefundRequestDataDto
|
|
24661
24742
|
*/
|
|
24662
24743
|
'amounts': WorldlineRefundRequestDataDtoAmounts;
|
|
24744
|
+
/**
|
|
24745
|
+
* 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.
|
|
24746
|
+
* @type {string}
|
|
24747
|
+
* @memberof WorldlineRefundRequestDataDto
|
|
24748
|
+
*/
|
|
24749
|
+
'receiptNumber'?: string;
|
|
24663
24750
|
/**
|
|
24664
24751
|
* Cashier identifier
|
|
24665
24752
|
* @type {string}
|
|
@@ -24716,6 +24803,59 @@ export interface WorldlineRefundRequestDataDtoAmounts {
|
|
|
24716
24803
|
*/
|
|
24717
24804
|
'tip'?: number;
|
|
24718
24805
|
}
|
|
24806
|
+
/**
|
|
24807
|
+
*
|
|
24808
|
+
* @export
|
|
24809
|
+
* @enum {string}
|
|
24810
|
+
*/
|
|
24811
|
+
export declare const WorldlineRevertMethod: {
|
|
24812
|
+
readonly Reversal: "REVERSAL";
|
|
24813
|
+
readonly Refund: "REFUND";
|
|
24814
|
+
};
|
|
24815
|
+
export type WorldlineRevertMethod = typeof WorldlineRevertMethod[keyof typeof WorldlineRevertMethod];
|
|
24816
|
+
/**
|
|
24817
|
+
*
|
|
24818
|
+
* @export
|
|
24819
|
+
* @interface WorldlineRevertResponseDto
|
|
24820
|
+
*/
|
|
24821
|
+
export interface WorldlineRevertResponseDto {
|
|
24822
|
+
/**
|
|
24823
|
+
*
|
|
24824
|
+
* @type {WorldlineRevertMethod}
|
|
24825
|
+
* @memberof WorldlineRevertResponseDto
|
|
24826
|
+
*/
|
|
24827
|
+
'method': WorldlineRevertMethod;
|
|
24828
|
+
/**
|
|
24829
|
+
* True when the customer must tap their card to complete (REFUND); false for a REVERSAL, which settles without a tap.
|
|
24830
|
+
* @type {boolean}
|
|
24831
|
+
* @memberof WorldlineRevertResponseDto
|
|
24832
|
+
*/
|
|
24833
|
+
'requiresCardTap': boolean;
|
|
24834
|
+
/**
|
|
24835
|
+
* Opaque token to poll GET /payment-session/:clientToken for the final outcome.
|
|
24836
|
+
* @type {string}
|
|
24837
|
+
* @memberof WorldlineRevertResponseDto
|
|
24838
|
+
*/
|
|
24839
|
+
'clientToken': string;
|
|
24840
|
+
/**
|
|
24841
|
+
* Internal session id — the Worldline operationId the webhook resolves against.
|
|
24842
|
+
* @type {string}
|
|
24843
|
+
* @memberof WorldlineRevertResponseDto
|
|
24844
|
+
*/
|
|
24845
|
+
'sessionId': string;
|
|
24846
|
+
/**
|
|
24847
|
+
* Amount being reverted, in the smallest currency unit (cents).
|
|
24848
|
+
* @type {number}
|
|
24849
|
+
* @memberof WorldlineRevertResponseDto
|
|
24850
|
+
*/
|
|
24851
|
+
'amount': number;
|
|
24852
|
+
/**
|
|
24853
|
+
*
|
|
24854
|
+
* @type {PaymentSessionStatus}
|
|
24855
|
+
* @memberof WorldlineRevertResponseDto
|
|
24856
|
+
*/
|
|
24857
|
+
'status': PaymentSessionStatus;
|
|
24858
|
+
}
|
|
24719
24859
|
/**
|
|
24720
24860
|
* AblyApi - axios parameter creator
|
|
24721
24861
|
* @export
|
|
@@ -33027,6 +33167,15 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33027
33167
|
* @throws {RequiredError}
|
|
33028
33168
|
*/
|
|
33029
33169
|
initiateVivaSession: (initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33170
|
+
/**
|
|
33171
|
+
* 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.
|
|
33172
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33173
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33174
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33175
|
+
* @param {*} [options] Override http request option.
|
|
33176
|
+
* @throws {RequiredError}
|
|
33177
|
+
*/
|
|
33178
|
+
initiateWorldlineSession: (initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33030
33179
|
/**
|
|
33031
33180
|
* 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
33181
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33035,6 +33184,14 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33035
33184
|
* @throws {RequiredError}
|
|
33036
33185
|
*/
|
|
33037
33186
|
pollVivaSession: (pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33187
|
+
/**
|
|
33188
|
+
* 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.
|
|
33189
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33190
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33191
|
+
* @param {*} [options] Override http request option.
|
|
33192
|
+
* @throws {RequiredError}
|
|
33193
|
+
*/
|
|
33194
|
+
pollWorldlineSession: (pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33038
33195
|
/**
|
|
33039
33196
|
* 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
33197
|
* @summary Record a manual payment session
|
|
@@ -33059,6 +33216,14 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33059
33216
|
* @throws {RequiredError}
|
|
33060
33217
|
*/
|
|
33061
33218
|
refundVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33219
|
+
/**
|
|
33220
|
+
* 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.
|
|
33221
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33222
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33223
|
+
* @param {*} [options] Override http request option.
|
|
33224
|
+
* @throws {RequiredError}
|
|
33225
|
+
*/
|
|
33226
|
+
refundWorldlineSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33062
33227
|
/**
|
|
33063
33228
|
* 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
33229
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33075,6 +33240,14 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
33075
33240
|
* @throws {RequiredError}
|
|
33076
33241
|
*/
|
|
33077
33242
|
revertVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33243
|
+
/**
|
|
33244
|
+
* 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.
|
|
33245
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33246
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33247
|
+
* @param {*} [options] Override http request option.
|
|
33248
|
+
* @throws {RequiredError}
|
|
33249
|
+
*/
|
|
33250
|
+
revertWorldlineSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33078
33251
|
/**
|
|
33079
33252
|
* 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
33253
|
* @summary Void a manual payment session
|
|
@@ -33131,6 +33304,15 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33131
33304
|
* @throws {RequiredError}
|
|
33132
33305
|
*/
|
|
33133
33306
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateVivaSessionResponseDto>>;
|
|
33307
|
+
/**
|
|
33308
|
+
* 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.
|
|
33309
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33310
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33311
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33312
|
+
* @param {*} [options] Override http request option.
|
|
33313
|
+
* @throws {RequiredError}
|
|
33314
|
+
*/
|
|
33315
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateWorldlineSessionResponseDto>>;
|
|
33134
33316
|
/**
|
|
33135
33317
|
* 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
33318
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33139,6 +33321,14 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33139
33321
|
* @throws {RequiredError}
|
|
33140
33322
|
*/
|
|
33141
33323
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
33324
|
+
/**
|
|
33325
|
+
* 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.
|
|
33326
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33327
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33328
|
+
* @param {*} [options] Override http request option.
|
|
33329
|
+
* @throws {RequiredError}
|
|
33330
|
+
*/
|
|
33331
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
33142
33332
|
/**
|
|
33143
33333
|
* 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
33334
|
* @summary Record a manual payment session
|
|
@@ -33163,6 +33353,14 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33163
33353
|
* @throws {RequiredError}
|
|
33164
33354
|
*/
|
|
33165
33355
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33356
|
+
/**
|
|
33357
|
+
* 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.
|
|
33358
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33359
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33360
|
+
* @param {*} [options] Override http request option.
|
|
33361
|
+
* @throws {RequiredError}
|
|
33362
|
+
*/
|
|
33363
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33166
33364
|
/**
|
|
33167
33365
|
* 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
33366
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33179,6 +33377,14 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
33179
33377
|
* @throws {RequiredError}
|
|
33180
33378
|
*/
|
|
33181
33379
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
33380
|
+
/**
|
|
33381
|
+
* 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.
|
|
33382
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33383
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33384
|
+
* @param {*} [options] Override http request option.
|
|
33385
|
+
* @throws {RequiredError}
|
|
33386
|
+
*/
|
|
33387
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorldlineRevertResponseDto>>;
|
|
33182
33388
|
/**
|
|
33183
33389
|
* 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
33390
|
* @summary Void a manual payment session
|
|
@@ -33235,6 +33441,15 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33235
33441
|
* @throws {RequiredError}
|
|
33236
33442
|
*/
|
|
33237
33443
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
33444
|
+
/**
|
|
33445
|
+
* 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.
|
|
33446
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33447
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33448
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33449
|
+
* @param {*} [options] Override http request option.
|
|
33450
|
+
* @throws {RequiredError}
|
|
33451
|
+
*/
|
|
33452
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateWorldlineSessionResponseDto>;
|
|
33238
33453
|
/**
|
|
33239
33454
|
* 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
33455
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33243,6 +33458,14 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33243
33458
|
* @throws {RequiredError}
|
|
33244
33459
|
*/
|
|
33245
33460
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: any): AxiosPromise<void>;
|
|
33461
|
+
/**
|
|
33462
|
+
* 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.
|
|
33463
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33464
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33465
|
+
* @param {*} [options] Override http request option.
|
|
33466
|
+
* @throws {RequiredError}
|
|
33467
|
+
*/
|
|
33468
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: any): AxiosPromise<void>;
|
|
33246
33469
|
/**
|
|
33247
33470
|
* 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
33471
|
* @summary Record a manual payment session
|
|
@@ -33267,6 +33490,14 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33267
33490
|
* @throws {RequiredError}
|
|
33268
33491
|
*/
|
|
33269
33492
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
33493
|
+
/**
|
|
33494
|
+
* 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.
|
|
33495
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33496
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33497
|
+
* @param {*} [options] Override http request option.
|
|
33498
|
+
* @throws {RequiredError}
|
|
33499
|
+
*/
|
|
33500
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
33270
33501
|
/**
|
|
33271
33502
|
* 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
33503
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33283,6 +33514,14 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
33283
33514
|
* @throws {RequiredError}
|
|
33284
33515
|
*/
|
|
33285
33516
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
33517
|
+
/**
|
|
33518
|
+
* 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.
|
|
33519
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33520
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33521
|
+
* @param {*} [options] Override http request option.
|
|
33522
|
+
* @throws {RequiredError}
|
|
33523
|
+
*/
|
|
33524
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<WorldlineRevertResponseDto>;
|
|
33286
33525
|
/**
|
|
33287
33526
|
* 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
33527
|
* @summary Void a manual payment session
|
|
@@ -33345,6 +33584,16 @@ export interface PaymentSessionApiInterface {
|
|
|
33345
33584
|
* @memberof PaymentSessionApiInterface
|
|
33346
33585
|
*/
|
|
33347
33586
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
33587
|
+
/**
|
|
33588
|
+
* 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.
|
|
33589
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33590
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33591
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33592
|
+
* @param {*} [options] Override http request option.
|
|
33593
|
+
* @throws {RequiredError}
|
|
33594
|
+
* @memberof PaymentSessionApiInterface
|
|
33595
|
+
*/
|
|
33596
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateWorldlineSessionResponseDto>;
|
|
33348
33597
|
/**
|
|
33349
33598
|
* 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
33599
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33354,6 +33603,15 @@ export interface PaymentSessionApiInterface {
|
|
|
33354
33603
|
* @memberof PaymentSessionApiInterface
|
|
33355
33604
|
*/
|
|
33356
33605
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
33606
|
+
/**
|
|
33607
|
+
* 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.
|
|
33608
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33609
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33610
|
+
* @param {*} [options] Override http request option.
|
|
33611
|
+
* @throws {RequiredError}
|
|
33612
|
+
* @memberof PaymentSessionApiInterface
|
|
33613
|
+
*/
|
|
33614
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
33357
33615
|
/**
|
|
33358
33616
|
* 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
33617
|
* @summary Record a manual payment session
|
|
@@ -33381,6 +33639,15 @@ export interface PaymentSessionApiInterface {
|
|
|
33381
33639
|
* @memberof PaymentSessionApiInterface
|
|
33382
33640
|
*/
|
|
33383
33641
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
33642
|
+
/**
|
|
33643
|
+
* 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.
|
|
33644
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33645
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33646
|
+
* @param {*} [options] Override http request option.
|
|
33647
|
+
* @throws {RequiredError}
|
|
33648
|
+
* @memberof PaymentSessionApiInterface
|
|
33649
|
+
*/
|
|
33650
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
33384
33651
|
/**
|
|
33385
33652
|
* 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
33653
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33399,6 +33666,15 @@ export interface PaymentSessionApiInterface {
|
|
|
33399
33666
|
* @memberof PaymentSessionApiInterface
|
|
33400
33667
|
*/
|
|
33401
33668
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
33669
|
+
/**
|
|
33670
|
+
* 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.
|
|
33671
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33672
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33673
|
+
* @param {*} [options] Override http request option.
|
|
33674
|
+
* @throws {RequiredError}
|
|
33675
|
+
* @memberof PaymentSessionApiInterface
|
|
33676
|
+
*/
|
|
33677
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<WorldlineRevertResponseDto>;
|
|
33402
33678
|
/**
|
|
33403
33679
|
* 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
33680
|
* @summary Void a manual payment session
|
|
@@ -33463,6 +33739,16 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33463
33739
|
* @memberof PaymentSessionApi
|
|
33464
33740
|
*/
|
|
33465
33741
|
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateVivaSessionResponseDto, any, {}>>;
|
|
33742
|
+
/**
|
|
33743
|
+
* 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.
|
|
33744
|
+
* @summary Initiate a Worldline terminal payment session
|
|
33745
|
+
* @param {InitiateWorldlineSessionDto} initiateWorldlineSessionDto
|
|
33746
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
33747
|
+
* @param {*} [options] Override http request option.
|
|
33748
|
+
* @throws {RequiredError}
|
|
33749
|
+
* @memberof PaymentSessionApi
|
|
33750
|
+
*/
|
|
33751
|
+
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateWorldlineSessionResponseDto, any, {}>>;
|
|
33466
33752
|
/**
|
|
33467
33753
|
* 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
33754
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -33472,6 +33758,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33472
33758
|
* @memberof PaymentSessionApi
|
|
33473
33759
|
*/
|
|
33474
33760
|
pollVivaSession(pollVivaSessionDto: PollVivaSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
33761
|
+
/**
|
|
33762
|
+
* 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.
|
|
33763
|
+
* @summary Internal: poll Worldline for a stuck payment session (Cloud Task callback)
|
|
33764
|
+
* @param {PollWorldlineSessionDto} pollWorldlineSessionDto
|
|
33765
|
+
* @param {*} [options] Override http request option.
|
|
33766
|
+
* @throws {RequiredError}
|
|
33767
|
+
* @memberof PaymentSessionApi
|
|
33768
|
+
*/
|
|
33769
|
+
pollWorldlineSession(pollWorldlineSessionDto: PollWorldlineSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
33475
33770
|
/**
|
|
33476
33771
|
* 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
33772
|
* @summary Record a manual payment session
|
|
@@ -33499,6 +33794,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33499
33794
|
* @memberof PaymentSessionApi
|
|
33500
33795
|
*/
|
|
33501
33796
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
33797
|
+
/**
|
|
33798
|
+
* 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.
|
|
33799
|
+
* @summary Refund a settled Worldline payment session (gateway only, async)
|
|
33800
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33801
|
+
* @param {*} [options] Override http request option.
|
|
33802
|
+
* @throws {RequiredError}
|
|
33803
|
+
* @memberof PaymentSessionApi
|
|
33804
|
+
*/
|
|
33805
|
+
refundWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
33502
33806
|
/**
|
|
33503
33807
|
* 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
33808
|
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
@@ -33517,6 +33821,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
33517
33821
|
* @memberof PaymentSessionApi
|
|
33518
33822
|
*/
|
|
33519
33823
|
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
33824
|
+
/**
|
|
33825
|
+
* 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.
|
|
33826
|
+
* @summary Revert (fully reverse) a settled Worldline payment session (async)
|
|
33827
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
33828
|
+
* @param {*} [options] Override http request option.
|
|
33829
|
+
* @throws {RequiredError}
|
|
33830
|
+
* @memberof PaymentSessionApi
|
|
33831
|
+
*/
|
|
33832
|
+
revertWorldlineSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WorldlineRevertResponseDto, any, {}>>;
|
|
33520
33833
|
/**
|
|
33521
33834
|
* 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
33835
|
* @summary Void a manual payment session
|
|
@@ -36333,6 +36646,13 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
|
|
|
36333
36646
|
* @throws {RequiredError}
|
|
36334
36647
|
*/
|
|
36335
36648
|
handleWorldlineEvents: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36649
|
+
/**
|
|
36650
|
+
* 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.
|
|
36651
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
36652
|
+
* @param {*} [options] Override http request option.
|
|
36653
|
+
* @throws {RequiredError}
|
|
36654
|
+
*/
|
|
36655
|
+
handleWorldlineSessionEvents: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36336
36656
|
/**
|
|
36337
36657
|
*
|
|
36338
36658
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36472,6 +36792,13 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
|
|
|
36472
36792
|
* @throws {RequiredError}
|
|
36473
36793
|
*/
|
|
36474
36794
|
handleWorldlineEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
36795
|
+
/**
|
|
36796
|
+
* 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.
|
|
36797
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
36798
|
+
* @param {*} [options] Override http request option.
|
|
36799
|
+
* @throws {RequiredError}
|
|
36800
|
+
*/
|
|
36801
|
+
handleWorldlineSessionEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
36475
36802
|
/**
|
|
36476
36803
|
*
|
|
36477
36804
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36611,6 +36938,13 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
|
|
|
36611
36938
|
* @throws {RequiredError}
|
|
36612
36939
|
*/
|
|
36613
36940
|
handleWorldlineEvents(options?: any): AxiosPromise<void>;
|
|
36941
|
+
/**
|
|
36942
|
+
* 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.
|
|
36943
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
36944
|
+
* @param {*} [options] Override http request option.
|
|
36945
|
+
* @throws {RequiredError}
|
|
36946
|
+
*/
|
|
36947
|
+
handleWorldlineSessionEvents(options?: any): AxiosPromise<void>;
|
|
36614
36948
|
/**
|
|
36615
36949
|
*
|
|
36616
36950
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36767,6 +37101,14 @@ export interface WebhookApiInterface {
|
|
|
36767
37101
|
* @memberof WebhookApiInterface
|
|
36768
37102
|
*/
|
|
36769
37103
|
handleWorldlineEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
37104
|
+
/**
|
|
37105
|
+
* 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.
|
|
37106
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37107
|
+
* @param {*} [options] Override http request option.
|
|
37108
|
+
* @throws {RequiredError}
|
|
37109
|
+
* @memberof WebhookApiInterface
|
|
37110
|
+
*/
|
|
37111
|
+
handleWorldlineSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
36770
37112
|
/**
|
|
36771
37113
|
*
|
|
36772
37114
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
@@ -36928,6 +37270,14 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
36928
37270
|
* @memberof WebhookApi
|
|
36929
37271
|
*/
|
|
36930
37272
|
handleWorldlineEvents(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
37273
|
+
/**
|
|
37274
|
+
* 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.
|
|
37275
|
+
* @summary Handle Worldline webhook events for the payment-session flow
|
|
37276
|
+
* @param {*} [options] Override http request option.
|
|
37277
|
+
* @throws {RequiredError}
|
|
37278
|
+
* @memberof WebhookApi
|
|
37279
|
+
*/
|
|
37280
|
+
handleWorldlineSessionEvents(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
36931
37281
|
/**
|
|
36932
37282
|
*
|
|
36933
37283
|
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|