@munchi_oy/core 1.9.39 → 1.9.41
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 +954 -107
- 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 +1552 -314
- package/package.json +13 -15
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -3360,6 +3360,61 @@ export interface CreateLoyaltyProgramUserResponseDto {
|
|
|
3360
3360
|
*/
|
|
3361
3361
|
'loyaltyAccount': LoyaltyAccountDto;
|
|
3362
3362
|
}
|
|
3363
|
+
/**
|
|
3364
|
+
*
|
|
3365
|
+
* @export
|
|
3366
|
+
* @interface CreateManualSessionDto
|
|
3367
|
+
*/
|
|
3368
|
+
export interface CreateManualSessionDto {
|
|
3369
|
+
/**
|
|
3370
|
+
* The internal business ID.
|
|
3371
|
+
* @type {number}
|
|
3372
|
+
* @memberof CreateManualSessionDto
|
|
3373
|
+
*/
|
|
3374
|
+
'businessId': number;
|
|
3375
|
+
/**
|
|
3376
|
+
* The POS order ID this payment session is for.
|
|
3377
|
+
* @type {string}
|
|
3378
|
+
* @memberof CreateManualSessionDto
|
|
3379
|
+
*/
|
|
3380
|
+
'orderId': string;
|
|
3381
|
+
/**
|
|
3382
|
+
* Amount to record in smallest currency unit (cents).
|
|
3383
|
+
* @type {number}
|
|
3384
|
+
* @memberof CreateManualSessionDto
|
|
3385
|
+
*/
|
|
3386
|
+
'amount': number;
|
|
3387
|
+
/**
|
|
3388
|
+
* Manual payment method (Cash, Voucher, CardManual, EdenredManual, GiftCard, …). Card paymethods (Card/Debit/Credit/Edenred — see CLOUD_CARD_PAYMETHOD) go through a gateway initiate, not here.
|
|
3389
|
+
* @type {string}
|
|
3390
|
+
* @memberof CreateManualSessionDto
|
|
3391
|
+
*/
|
|
3392
|
+
'paymethod': string;
|
|
3393
|
+
/**
|
|
3394
|
+
*
|
|
3395
|
+
* @type {PaymentProvider}
|
|
3396
|
+
* @memberof CreateManualSessionDto
|
|
3397
|
+
*/
|
|
3398
|
+
'provider': PaymentProvider;
|
|
3399
|
+
/**
|
|
3400
|
+
* Tip amount in smallest currency unit (cents).
|
|
3401
|
+
* @type {number}
|
|
3402
|
+
* @memberof CreateManualSessionDto
|
|
3403
|
+
*/
|
|
3404
|
+
'tipAmount'?: number;
|
|
3405
|
+
/**
|
|
3406
|
+
*
|
|
3407
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
3408
|
+
* @memberof CreateManualSessionDto
|
|
3409
|
+
*/
|
|
3410
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
3411
|
+
/**
|
|
3412
|
+
* 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.
|
|
3413
|
+
* @type {object}
|
|
3414
|
+
* @memberof CreateManualSessionDto
|
|
3415
|
+
*/
|
|
3416
|
+
'metadata'?: object;
|
|
3417
|
+
}
|
|
3363
3418
|
/**
|
|
3364
3419
|
*
|
|
3365
3420
|
* @export
|
|
@@ -5107,10 +5162,10 @@ export interface ExtendedProductDto {
|
|
|
5107
5162
|
'display_photo'?: boolean;
|
|
5108
5163
|
/**
|
|
5109
5164
|
*
|
|
5110
|
-
* @type {
|
|
5165
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
5111
5166
|
* @memberof ExtendedProductDto
|
|
5112
5167
|
*/
|
|
5113
|
-
'reporting_category'?:
|
|
5168
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
5114
5169
|
/**
|
|
5115
5170
|
* Indicates if the product is inventoried in POS
|
|
5116
5171
|
* @type {boolean}
|
|
@@ -5142,49 +5197,6 @@ export interface ExtendedProductDto {
|
|
|
5142
5197
|
*/
|
|
5143
5198
|
'default_course_name'?: string | null;
|
|
5144
5199
|
}
|
|
5145
|
-
/**
|
|
5146
|
-
* Reporting category details
|
|
5147
|
-
* @export
|
|
5148
|
-
* @interface ExtendedProductDtoReportingCategory
|
|
5149
|
-
*/
|
|
5150
|
-
export interface ExtendedProductDtoReportingCategory {
|
|
5151
|
-
/**
|
|
5152
|
-
* Reporting Category ID
|
|
5153
|
-
* @type {number}
|
|
5154
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5155
|
-
*/
|
|
5156
|
-
'id': number;
|
|
5157
|
-
/**
|
|
5158
|
-
* Business ID
|
|
5159
|
-
* @type {string}
|
|
5160
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5161
|
-
*/
|
|
5162
|
-
'business_id': string;
|
|
5163
|
-
/**
|
|
5164
|
-
* Reporting Category Name
|
|
5165
|
-
* @type {string}
|
|
5166
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5167
|
-
*/
|
|
5168
|
-
'reporting_category_name': string;
|
|
5169
|
-
/**
|
|
5170
|
-
* Index/Order
|
|
5171
|
-
* @type {number}
|
|
5172
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5173
|
-
*/
|
|
5174
|
-
'index': number;
|
|
5175
|
-
/**
|
|
5176
|
-
* Created at timestamp
|
|
5177
|
-
* @type {string}
|
|
5178
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5179
|
-
*/
|
|
5180
|
-
'created_at': string;
|
|
5181
|
-
/**
|
|
5182
|
-
* Updated at timestamp
|
|
5183
|
-
* @type {string}
|
|
5184
|
-
* @memberof ExtendedProductDtoReportingCategory
|
|
5185
|
-
*/
|
|
5186
|
-
'updated_at': string;
|
|
5187
|
-
}
|
|
5188
5200
|
/**
|
|
5189
5201
|
*
|
|
5190
5202
|
* @export
|
|
@@ -5603,6 +5615,25 @@ export interface GetPaymentStatusDto {
|
|
|
5603
5615
|
*/
|
|
5604
5616
|
'orderId'?: string;
|
|
5605
5617
|
}
|
|
5618
|
+
/**
|
|
5619
|
+
*
|
|
5620
|
+
* @export
|
|
5621
|
+
* @interface GetPosOrderDto
|
|
5622
|
+
*/
|
|
5623
|
+
export interface GetPosOrderDto {
|
|
5624
|
+
/**
|
|
5625
|
+
* Id of the business
|
|
5626
|
+
* @type {number}
|
|
5627
|
+
* @memberof GetPosOrderDto
|
|
5628
|
+
*/
|
|
5629
|
+
'businessId': number;
|
|
5630
|
+
/**
|
|
5631
|
+
* Id of the order
|
|
5632
|
+
* @type {string}
|
|
5633
|
+
* @memberof GetPosOrderDto
|
|
5634
|
+
*/
|
|
5635
|
+
'orderId': string;
|
|
5636
|
+
}
|
|
5606
5637
|
/**
|
|
5607
5638
|
*
|
|
5608
5639
|
* @export
|
|
@@ -5876,6 +5907,210 @@ export interface InitiateNetsTerminalPaymentResponseDto {
|
|
|
5876
5907
|
*/
|
|
5877
5908
|
'connectCloudRequestId': string;
|
|
5878
5909
|
}
|
|
5910
|
+
/**
|
|
5911
|
+
*
|
|
5912
|
+
* @export
|
|
5913
|
+
* @interface InitiateVivaSessionDto
|
|
5914
|
+
*/
|
|
5915
|
+
export interface InitiateVivaSessionDto {
|
|
5916
|
+
/**
|
|
5917
|
+
* The internal business ID.
|
|
5918
|
+
* @type {number}
|
|
5919
|
+
* @memberof InitiateVivaSessionDto
|
|
5920
|
+
*/
|
|
5921
|
+
'businessId': number;
|
|
5922
|
+
/**
|
|
5923
|
+
* The POS order ID this payment session is for.
|
|
5924
|
+
* @type {string}
|
|
5925
|
+
* @memberof InitiateVivaSessionDto
|
|
5926
|
+
*/
|
|
5927
|
+
'orderId': string;
|
|
5928
|
+
/**
|
|
5929
|
+
* Amount to charge in smallest currency unit (cents).
|
|
5930
|
+
* @type {number}
|
|
5931
|
+
* @memberof InitiateVivaSessionDto
|
|
5932
|
+
*/
|
|
5933
|
+
'amount': number;
|
|
5934
|
+
/**
|
|
5935
|
+
*
|
|
5936
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
5937
|
+
* @memberof InitiateVivaSessionDto
|
|
5938
|
+
*/
|
|
5939
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
5940
|
+
}
|
|
5941
|
+
/**
|
|
5942
|
+
* Split context. Omit for a full-cart payment, or send { mode, partId|seatId } for a split. Must match the order\'s checkoutModel.
|
|
5943
|
+
* @export
|
|
5944
|
+
* @interface InitiateVivaSessionDtoSplitContext
|
|
5945
|
+
*/
|
|
5946
|
+
export interface InitiateVivaSessionDtoSplitContext {
|
|
5947
|
+
/**
|
|
5948
|
+
*
|
|
5949
|
+
* @type {CheckoutModelEnum}
|
|
5950
|
+
* @memberof InitiateVivaSessionDtoSplitContext
|
|
5951
|
+
*/
|
|
5952
|
+
'mode': CheckoutModelEnum;
|
|
5953
|
+
/**
|
|
5954
|
+
* Equal-split part id. Required when mode=EQUAL_SPLIT; ignored otherwise.
|
|
5955
|
+
* @type {string}
|
|
5956
|
+
* @memberof InitiateVivaSessionDtoSplitContext
|
|
5957
|
+
*/
|
|
5958
|
+
'partId'?: string;
|
|
5959
|
+
/**
|
|
5960
|
+
* Item-split seat id. Required when mode=ITEM_SPLIT; ignored otherwise.
|
|
5961
|
+
* @type {string}
|
|
5962
|
+
* @memberof InitiateVivaSessionDtoSplitContext
|
|
5963
|
+
*/
|
|
5964
|
+
'seatId'?: string;
|
|
5965
|
+
}
|
|
5966
|
+
/**
|
|
5967
|
+
*
|
|
5968
|
+
* @export
|
|
5969
|
+
* @interface InitiateVivaSessionResponseDto
|
|
5970
|
+
*/
|
|
5971
|
+
export interface InitiateVivaSessionResponseDto {
|
|
5972
|
+
/**
|
|
5973
|
+
* Opaque token returned to the client. Used by the client to poll/sync the session. Never sent to Viva.
|
|
5974
|
+
* @type {string}
|
|
5975
|
+
* @memberof InitiateVivaSessionResponseDto
|
|
5976
|
+
*/
|
|
5977
|
+
'clientToken': string;
|
|
5978
|
+
/**
|
|
5979
|
+
* Internal session ID sent to Viva for the transaction.
|
|
5980
|
+
* @type {string}
|
|
5981
|
+
* @memberof InitiateVivaSessionResponseDto
|
|
5982
|
+
*/
|
|
5983
|
+
'sessionId': string;
|
|
5984
|
+
/**
|
|
5985
|
+
*
|
|
5986
|
+
* @type {InitiateVivaSessionResponseDtoVivaIntent}
|
|
5987
|
+
* @memberof InitiateVivaSessionResponseDto
|
|
5988
|
+
*/
|
|
5989
|
+
'vivaIntent': InitiateVivaSessionResponseDtoVivaIntent;
|
|
5990
|
+
}
|
|
5991
|
+
/**
|
|
5992
|
+
* Viva payment intent returned by Viva createTransaction.
|
|
5993
|
+
* @export
|
|
5994
|
+
* @interface InitiateVivaSessionResponseDtoVivaIntent
|
|
5995
|
+
*/
|
|
5996
|
+
export interface InitiateVivaSessionResponseDtoVivaIntent {
|
|
5997
|
+
/**
|
|
5998
|
+
* The session ID for the transaction.
|
|
5999
|
+
* @type {string}
|
|
6000
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6001
|
+
*/
|
|
6002
|
+
'sessionId': string;
|
|
6003
|
+
/**
|
|
6004
|
+
* The terminal ID initiating the transaction.
|
|
6005
|
+
* @type {string}
|
|
6006
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6007
|
+
*/
|
|
6008
|
+
'terminalId': string;
|
|
6009
|
+
/**
|
|
6010
|
+
* The cash register ID associated with the transaction.
|
|
6011
|
+
* @type {string}
|
|
6012
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6013
|
+
*/
|
|
6014
|
+
'cashRegisterId': string;
|
|
6015
|
+
/**
|
|
6016
|
+
* The amount of the transaction.
|
|
6017
|
+
* @type {number}
|
|
6018
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6019
|
+
*/
|
|
6020
|
+
'amount': number;
|
|
6021
|
+
/**
|
|
6022
|
+
* The currency code for the transaction amount.
|
|
6023
|
+
* @type {string}
|
|
6024
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6025
|
+
*/
|
|
6026
|
+
'currencyCode': CurrencyCodeEnum;
|
|
6027
|
+
/**
|
|
6028
|
+
* A reference for the merchant.
|
|
6029
|
+
* @type {string}
|
|
6030
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6031
|
+
*/
|
|
6032
|
+
'merchantReference'?: string;
|
|
6033
|
+
/**
|
|
6034
|
+
* A human-readable description for the customer statement.
|
|
6035
|
+
* @type {string}
|
|
6036
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6037
|
+
*/
|
|
6038
|
+
'customerTrns'?: string;
|
|
6039
|
+
/**
|
|
6040
|
+
* The tip amount included in the transaction.
|
|
6041
|
+
* @type {number}
|
|
6042
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6043
|
+
*/
|
|
6044
|
+
'tipAmount': number;
|
|
6045
|
+
/**
|
|
6046
|
+
* Indicates if the transaction is a preauthorization.
|
|
6047
|
+
* @type {boolean}
|
|
6048
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6049
|
+
*/
|
|
6050
|
+
'preauth': boolean;
|
|
6051
|
+
/**
|
|
6052
|
+
* Whether to show the transaction result on the terminal.
|
|
6053
|
+
* @type {boolean}
|
|
6054
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6055
|
+
*/
|
|
6056
|
+
'showTransactionResult': boolean;
|
|
6057
|
+
/**
|
|
6058
|
+
* Whether to show the receipt on the terminal.
|
|
6059
|
+
* @type {boolean}
|
|
6060
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6061
|
+
*/
|
|
6062
|
+
'showReceipt': boolean;
|
|
6063
|
+
/**
|
|
6064
|
+
*
|
|
6065
|
+
* @type {VivaPaymentResultDtoIsvDetails}
|
|
6066
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6067
|
+
*/
|
|
6068
|
+
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
6069
|
+
/**
|
|
6070
|
+
* Whether to skip applying a surcharge to the transaction.
|
|
6071
|
+
* @type {boolean}
|
|
6072
|
+
* @memberof InitiateVivaSessionResponseDtoVivaIntent
|
|
6073
|
+
*/
|
|
6074
|
+
'skipSurcharge': boolean;
|
|
6075
|
+
}
|
|
6076
|
+
export declare const CurrencyCodeEnum: {
|
|
6077
|
+
readonly _978: "978";
|
|
6078
|
+
readonly _840: "840";
|
|
6079
|
+
readonly _826: "826";
|
|
6080
|
+
readonly _392: "392";
|
|
6081
|
+
readonly _036: "036";
|
|
6082
|
+
readonly _124: "124";
|
|
6083
|
+
readonly _756: "756";
|
|
6084
|
+
readonly _156: "156";
|
|
6085
|
+
readonly _344: "344";
|
|
6086
|
+
readonly _554: "554";
|
|
6087
|
+
readonly _752: "752";
|
|
6088
|
+
readonly _410: "410";
|
|
6089
|
+
readonly _702: "702";
|
|
6090
|
+
readonly _578: "578";
|
|
6091
|
+
readonly _484: "484";
|
|
6092
|
+
readonly _356: "356";
|
|
6093
|
+
readonly _643: "643";
|
|
6094
|
+
readonly _710: "710";
|
|
6095
|
+
readonly _949: "949";
|
|
6096
|
+
readonly _986: "986";
|
|
6097
|
+
readonly _901: "901";
|
|
6098
|
+
readonly _208: "208";
|
|
6099
|
+
readonly _985: "985";
|
|
6100
|
+
readonly _764: "764";
|
|
6101
|
+
readonly _360: "360";
|
|
6102
|
+
readonly _348: "348";
|
|
6103
|
+
readonly _203: "203";
|
|
6104
|
+
readonly _376: "376";
|
|
6105
|
+
readonly _152: "152";
|
|
6106
|
+
readonly _608: "608";
|
|
6107
|
+
readonly _784: "784";
|
|
6108
|
+
readonly _170: "170";
|
|
6109
|
+
readonly _682: "682";
|
|
6110
|
+
readonly _458: "458";
|
|
6111
|
+
readonly _946: "946";
|
|
6112
|
+
};
|
|
6113
|
+
export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
|
|
5879
6114
|
/**
|
|
5880
6115
|
*
|
|
5881
6116
|
* @export
|
|
@@ -11179,6 +11414,9 @@ export declare const PaymentMethod: {
|
|
|
11179
11414
|
readonly Jpn: "JPN";
|
|
11180
11415
|
readonly NineLives: "NineLives";
|
|
11181
11416
|
readonly Trade: "Trade";
|
|
11417
|
+
readonly Exchange: "Exchange";
|
|
11418
|
+
readonly Tilisiirto: "Tilisiirto";
|
|
11419
|
+
readonly LoyaltyPoints: "LoyaltyPoints";
|
|
11182
11420
|
};
|
|
11183
11421
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
11184
11422
|
/**
|
|
@@ -11843,6 +12081,110 @@ export interface PaymentRefundLineAllocationDto {
|
|
|
11843
12081
|
*/
|
|
11844
12082
|
'quantity': number;
|
|
11845
12083
|
}
|
|
12084
|
+
/**
|
|
12085
|
+
*
|
|
12086
|
+
* @export
|
|
12087
|
+
* @enum {string}
|
|
12088
|
+
*/
|
|
12089
|
+
export declare const PaymentSessionStatus: {
|
|
12090
|
+
readonly Initiated: "INITIATED";
|
|
12091
|
+
readonly Processing: "PROCESSING";
|
|
12092
|
+
readonly Success: "SUCCESS";
|
|
12093
|
+
readonly Failed: "FAILED";
|
|
12094
|
+
readonly Cancelled: "CANCELLED";
|
|
12095
|
+
readonly Closed: "CLOSED";
|
|
12096
|
+
readonly Voiding: "VOIDING";
|
|
12097
|
+
readonly Voided: "VOIDED";
|
|
12098
|
+
readonly VoidFailed: "VOID_FAILED";
|
|
12099
|
+
readonly Refunding: "REFUNDING";
|
|
12100
|
+
readonly Refunded: "REFUNDED";
|
|
12101
|
+
};
|
|
12102
|
+
export type PaymentSessionStatus = typeof PaymentSessionStatus[keyof typeof PaymentSessionStatus];
|
|
12103
|
+
/**
|
|
12104
|
+
*
|
|
12105
|
+
* @export
|
|
12106
|
+
* @interface PaymentSessionViewDto
|
|
12107
|
+
*/
|
|
12108
|
+
export interface PaymentSessionViewDto {
|
|
12109
|
+
/**
|
|
12110
|
+
* Opaque client token.
|
|
12111
|
+
* @type {string}
|
|
12112
|
+
* @memberof PaymentSessionViewDto
|
|
12113
|
+
*/
|
|
12114
|
+
'clientToken': string;
|
|
12115
|
+
/**
|
|
12116
|
+
* Internal session ID.
|
|
12117
|
+
* @type {string}
|
|
12118
|
+
* @memberof PaymentSessionViewDto
|
|
12119
|
+
*/
|
|
12120
|
+
'sessionId': string;
|
|
12121
|
+
/**
|
|
12122
|
+
* Viva transaction ID set after webhook completes.
|
|
12123
|
+
* @type {string}
|
|
12124
|
+
* @memberof PaymentSessionViewDto
|
|
12125
|
+
*/
|
|
12126
|
+
'providerTransactionId'?: string;
|
|
12127
|
+
/**
|
|
12128
|
+
*
|
|
12129
|
+
* @type {PaymentSessionStatus}
|
|
12130
|
+
* @memberof PaymentSessionViewDto
|
|
12131
|
+
*/
|
|
12132
|
+
'status': PaymentSessionStatus;
|
|
12133
|
+
/**
|
|
12134
|
+
* Amount in cents.
|
|
12135
|
+
* @type {number}
|
|
12136
|
+
* @memberof PaymentSessionViewDto
|
|
12137
|
+
*/
|
|
12138
|
+
'amount': number;
|
|
12139
|
+
/**
|
|
12140
|
+
* Currency.
|
|
12141
|
+
* @type {string}
|
|
12142
|
+
* @memberof PaymentSessionViewDto
|
|
12143
|
+
*/
|
|
12144
|
+
'currency': string;
|
|
12145
|
+
/**
|
|
12146
|
+
* Tip amount (cents).
|
|
12147
|
+
* @type {number}
|
|
12148
|
+
* @memberof PaymentSessionViewDto
|
|
12149
|
+
*/
|
|
12150
|
+
'tipAmount': number;
|
|
12151
|
+
/**
|
|
12152
|
+
* Surcharge amount (cents).
|
|
12153
|
+
* @type {number}
|
|
12154
|
+
* @memberof PaymentSessionViewDto
|
|
12155
|
+
*/
|
|
12156
|
+
'surchargeAmount': number;
|
|
12157
|
+
/**
|
|
12158
|
+
* Error code if failed.
|
|
12159
|
+
* @type {string}
|
|
12160
|
+
* @memberof PaymentSessionViewDto
|
|
12161
|
+
*/
|
|
12162
|
+
'errorCode'?: string;
|
|
12163
|
+
/**
|
|
12164
|
+
* Error message if failed.
|
|
12165
|
+
* @type {string}
|
|
12166
|
+
* @memberof PaymentSessionViewDto
|
|
12167
|
+
*/
|
|
12168
|
+
'errorMessage'?: string;
|
|
12169
|
+
/**
|
|
12170
|
+
*
|
|
12171
|
+
* @type {string}
|
|
12172
|
+
* @memberof PaymentSessionViewDto
|
|
12173
|
+
*/
|
|
12174
|
+
'createdAt': string;
|
|
12175
|
+
/**
|
|
12176
|
+
*
|
|
12177
|
+
* @type {string}
|
|
12178
|
+
* @memberof PaymentSessionViewDto
|
|
12179
|
+
*/
|
|
12180
|
+
'updatedAt': string;
|
|
12181
|
+
/**
|
|
12182
|
+
*
|
|
12183
|
+
* @type {string}
|
|
12184
|
+
* @memberof PaymentSessionViewDto
|
|
12185
|
+
*/
|
|
12186
|
+
'closedAt'?: string;
|
|
12187
|
+
}
|
|
11846
12188
|
/**
|
|
11847
12189
|
*
|
|
11848
12190
|
* @export
|
|
@@ -12717,10 +13059,10 @@ export interface PosItemDto {
|
|
|
12717
13059
|
'display_photo'?: boolean;
|
|
12718
13060
|
/**
|
|
12719
13061
|
*
|
|
12720
|
-
* @type {
|
|
13062
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
12721
13063
|
* @memberof PosItemDto
|
|
12722
13064
|
*/
|
|
12723
|
-
'reporting_category'?:
|
|
13065
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
12724
13066
|
/**
|
|
12725
13067
|
* Indicates if the product is inventoried in POS
|
|
12726
13068
|
* @type {boolean}
|
|
@@ -13393,10 +13735,10 @@ export interface PosOrderItemDto {
|
|
|
13393
13735
|
'display_photo'?: boolean;
|
|
13394
13736
|
/**
|
|
13395
13737
|
*
|
|
13396
|
-
* @type {
|
|
13738
|
+
* @type {PosOrderItemDtoReportingCategory}
|
|
13397
13739
|
* @memberof PosOrderItemDto
|
|
13398
13740
|
*/
|
|
13399
|
-
'reporting_category'?:
|
|
13741
|
+
'reporting_category'?: PosOrderItemDtoReportingCategory | null;
|
|
13400
13742
|
/**
|
|
13401
13743
|
* Category ID of the item
|
|
13402
13744
|
* @type {number}
|
|
@@ -13416,6 +13758,49 @@ export interface PosOrderItemDto {
|
|
|
13416
13758
|
*/
|
|
13417
13759
|
'courseName'?: string | null;
|
|
13418
13760
|
}
|
|
13761
|
+
/**
|
|
13762
|
+
* Reporting category details
|
|
13763
|
+
* @export
|
|
13764
|
+
* @interface PosOrderItemDtoReportingCategory
|
|
13765
|
+
*/
|
|
13766
|
+
export interface PosOrderItemDtoReportingCategory {
|
|
13767
|
+
/**
|
|
13768
|
+
* Reporting Category ID
|
|
13769
|
+
* @type {number}
|
|
13770
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
13771
|
+
*/
|
|
13772
|
+
'id': number;
|
|
13773
|
+
/**
|
|
13774
|
+
* Business ID
|
|
13775
|
+
* @type {string}
|
|
13776
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
13777
|
+
*/
|
|
13778
|
+
'business_id': string;
|
|
13779
|
+
/**
|
|
13780
|
+
* Reporting Category Name
|
|
13781
|
+
* @type {string}
|
|
13782
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
13783
|
+
*/
|
|
13784
|
+
'reporting_category_name': string;
|
|
13785
|
+
/**
|
|
13786
|
+
* Index/Order
|
|
13787
|
+
* @type {number}
|
|
13788
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
13789
|
+
*/
|
|
13790
|
+
'index': number;
|
|
13791
|
+
/**
|
|
13792
|
+
* Created at timestamp
|
|
13793
|
+
* @type {string}
|
|
13794
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
13795
|
+
*/
|
|
13796
|
+
'created_at': string;
|
|
13797
|
+
/**
|
|
13798
|
+
* Updated at timestamp
|
|
13799
|
+
* @type {string}
|
|
13800
|
+
* @memberof PosOrderItemDtoReportingCategory
|
|
13801
|
+
*/
|
|
13802
|
+
'updated_at': string;
|
|
13803
|
+
}
|
|
13419
13804
|
/**
|
|
13420
13805
|
*
|
|
13421
13806
|
* @export
|
|
@@ -16082,6 +16467,25 @@ export declare const ScopeEnum: {
|
|
|
16082
16467
|
readonly Cart: "CART";
|
|
16083
16468
|
};
|
|
16084
16469
|
export type ScopeEnum = typeof ScopeEnum[keyof typeof ScopeEnum];
|
|
16470
|
+
/**
|
|
16471
|
+
*
|
|
16472
|
+
* @export
|
|
16473
|
+
* @interface ReverseSessionDto
|
|
16474
|
+
*/
|
|
16475
|
+
export interface ReverseSessionDto {
|
|
16476
|
+
/**
|
|
16477
|
+
* The payment session\'s sessionId (id B) — the same value stored as the order paymentEvent referenceId. Use it to void/refund a recorded payment (the clientToken is only held during the live pay flow).
|
|
16478
|
+
* @type {string}
|
|
16479
|
+
* @memberof ReverseSessionDto
|
|
16480
|
+
*/
|
|
16481
|
+
'sessionId': string;
|
|
16482
|
+
/**
|
|
16483
|
+
* Amount to refund in cents for a partial / item refund. Must be > 0 and <= the session\'s paid amount. Omit to refund the full session amount.
|
|
16484
|
+
* @type {number}
|
|
16485
|
+
* @memberof ReverseSessionDto
|
|
16486
|
+
*/
|
|
16487
|
+
'amount'?: number;
|
|
16488
|
+
}
|
|
16085
16489
|
/**
|
|
16086
16490
|
*
|
|
16087
16491
|
* @export
|
|
@@ -16448,6 +16852,31 @@ export declare const SourceType: {
|
|
|
16448
16852
|
readonly Ticket: "TICKET";
|
|
16449
16853
|
};
|
|
16450
16854
|
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
16855
|
+
/**
|
|
16856
|
+
*
|
|
16857
|
+
* @export
|
|
16858
|
+
* @interface SplitContextDto
|
|
16859
|
+
*/
|
|
16860
|
+
export interface SplitContextDto {
|
|
16861
|
+
/**
|
|
16862
|
+
*
|
|
16863
|
+
* @type {CheckoutModelEnum}
|
|
16864
|
+
* @memberof SplitContextDto
|
|
16865
|
+
*/
|
|
16866
|
+
'mode': CheckoutModelEnum;
|
|
16867
|
+
/**
|
|
16868
|
+
* Equal-split part id. Required when mode=EQUAL_SPLIT; ignored otherwise.
|
|
16869
|
+
* @type {string}
|
|
16870
|
+
* @memberof SplitContextDto
|
|
16871
|
+
*/
|
|
16872
|
+
'partId'?: string;
|
|
16873
|
+
/**
|
|
16874
|
+
* Item-split seat id. Required when mode=ITEM_SPLIT; ignored otherwise.
|
|
16875
|
+
* @type {string}
|
|
16876
|
+
* @memberof SplitContextDto
|
|
16877
|
+
*/
|
|
16878
|
+
'seatId'?: string;
|
|
16879
|
+
}
|
|
16451
16880
|
/**
|
|
16452
16881
|
*
|
|
16453
16882
|
* @export
|
|
@@ -17084,10 +17513,10 @@ export type TableShape = typeof TableShape[keyof typeof TableShape];
|
|
|
17084
17513
|
*/
|
|
17085
17514
|
export declare const TableStatus: {
|
|
17086
17515
|
readonly Available: "AVAILABLE";
|
|
17087
|
-
readonly Occupied: "OCCUPIED";
|
|
17088
17516
|
readonly Dirty: "DIRTY";
|
|
17089
17517
|
readonly Blocked: "BLOCKED";
|
|
17090
17518
|
readonly OutOfService: "OUT_OF_SERVICE";
|
|
17519
|
+
readonly Occupied: "OCCUPIED";
|
|
17091
17520
|
};
|
|
17092
17521
|
export type TableStatus = typeof TableStatus[keyof typeof TableStatus];
|
|
17093
17522
|
/**
|
|
@@ -19717,6 +20146,9 @@ export declare const NameEnum: {
|
|
|
19717
20146
|
readonly Jpn: "JPN";
|
|
19718
20147
|
readonly NineLives: "NineLives";
|
|
19719
20148
|
readonly Trade: "Trade";
|
|
20149
|
+
readonly Exchange: "Exchange";
|
|
20150
|
+
readonly Tilisiirto: "Tilisiirto";
|
|
20151
|
+
readonly LoyaltyPoints: "LoyaltyPoints";
|
|
19720
20152
|
};
|
|
19721
20153
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
19722
20154
|
/**
|
|
@@ -20778,63 +21210,25 @@ export interface VivaPaymentIntent {
|
|
|
20778
21210
|
* @memberof VivaPaymentIntent
|
|
20779
21211
|
*/
|
|
20780
21212
|
'showTransactionResult': boolean;
|
|
20781
|
-
/**
|
|
20782
|
-
* Whether to show the receipt on the terminal.
|
|
20783
|
-
* @type {boolean}
|
|
20784
|
-
* @memberof VivaPaymentIntent
|
|
20785
|
-
*/
|
|
20786
|
-
'showReceipt': boolean;
|
|
20787
|
-
/**
|
|
20788
|
-
*
|
|
20789
|
-
* @type {VivaPaymentResultDtoIsvDetails}
|
|
20790
|
-
* @memberof VivaPaymentIntent
|
|
20791
|
-
*/
|
|
20792
|
-
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
20793
|
-
/**
|
|
20794
|
-
* Whether to skip applying a surcharge to the transaction.
|
|
20795
|
-
* @type {boolean}
|
|
20796
|
-
* @memberof VivaPaymentIntent
|
|
20797
|
-
*/
|
|
20798
|
-
'skipSurcharge': boolean;
|
|
20799
|
-
}
|
|
20800
|
-
export declare const CurrencyCodeEnum: {
|
|
20801
|
-
readonly _978: "978";
|
|
20802
|
-
readonly _840: "840";
|
|
20803
|
-
readonly _826: "826";
|
|
20804
|
-
readonly _392: "392";
|
|
20805
|
-
readonly _036: "036";
|
|
20806
|
-
readonly _124: "124";
|
|
20807
|
-
readonly _756: "756";
|
|
20808
|
-
readonly _156: "156";
|
|
20809
|
-
readonly _344: "344";
|
|
20810
|
-
readonly _554: "554";
|
|
20811
|
-
readonly _752: "752";
|
|
20812
|
-
readonly _410: "410";
|
|
20813
|
-
readonly _702: "702";
|
|
20814
|
-
readonly _578: "578";
|
|
20815
|
-
readonly _484: "484";
|
|
20816
|
-
readonly _356: "356";
|
|
20817
|
-
readonly _643: "643";
|
|
20818
|
-
readonly _710: "710";
|
|
20819
|
-
readonly _949: "949";
|
|
20820
|
-
readonly _986: "986";
|
|
20821
|
-
readonly _901: "901";
|
|
20822
|
-
readonly _208: "208";
|
|
20823
|
-
readonly _985: "985";
|
|
20824
|
-
readonly _764: "764";
|
|
20825
|
-
readonly _360: "360";
|
|
20826
|
-
readonly _348: "348";
|
|
20827
|
-
readonly _203: "203";
|
|
20828
|
-
readonly _376: "376";
|
|
20829
|
-
readonly _152: "152";
|
|
20830
|
-
readonly _608: "608";
|
|
20831
|
-
readonly _784: "784";
|
|
20832
|
-
readonly _170: "170";
|
|
20833
|
-
readonly _682: "682";
|
|
20834
|
-
readonly _458: "458";
|
|
20835
|
-
readonly _946: "946";
|
|
20836
|
-
};
|
|
20837
|
-
export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
|
|
21213
|
+
/**
|
|
21214
|
+
* Whether to show the receipt on the terminal.
|
|
21215
|
+
* @type {boolean}
|
|
21216
|
+
* @memberof VivaPaymentIntent
|
|
21217
|
+
*/
|
|
21218
|
+
'showReceipt': boolean;
|
|
21219
|
+
/**
|
|
21220
|
+
*
|
|
21221
|
+
* @type {VivaPaymentResultDtoIsvDetails}
|
|
21222
|
+
* @memberof VivaPaymentIntent
|
|
21223
|
+
*/
|
|
21224
|
+
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
21225
|
+
/**
|
|
21226
|
+
* Whether to skip applying a surcharge to the transaction.
|
|
21227
|
+
* @type {boolean}
|
|
21228
|
+
* @memberof VivaPaymentIntent
|
|
21229
|
+
*/
|
|
21230
|
+
'skipSurcharge': boolean;
|
|
21231
|
+
}
|
|
20838
21232
|
/**
|
|
20839
21233
|
*
|
|
20840
21234
|
* @export
|
|
@@ -28977,6 +29371,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
28977
29371
|
* @throws {RequiredError}
|
|
28978
29372
|
*/
|
|
28979
29373
|
getParkedPosOrderV2: (businessId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29374
|
+
/**
|
|
29375
|
+
*
|
|
29376
|
+
* @summary Get a single POS order from Firestore
|
|
29377
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
29378
|
+
* @param {*} [options] Override http request option.
|
|
29379
|
+
* @throws {RequiredError}
|
|
29380
|
+
*/
|
|
29381
|
+
getPosOrderById: (getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28980
29382
|
/**
|
|
28981
29383
|
*
|
|
28982
29384
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -29082,6 +29484,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
29082
29484
|
* @throws {RequiredError}
|
|
29083
29485
|
*/
|
|
29084
29486
|
getParkedPosOrderV2(businessId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PosOrderDto>>>;
|
|
29487
|
+
/**
|
|
29488
|
+
*
|
|
29489
|
+
* @summary Get a single POS order from Firestore
|
|
29490
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
29491
|
+
* @param {*} [options] Override http request option.
|
|
29492
|
+
* @throws {RequiredError}
|
|
29493
|
+
*/
|
|
29494
|
+
getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosOrderDto>>;
|
|
29085
29495
|
/**
|
|
29086
29496
|
*
|
|
29087
29497
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -29187,6 +29597,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
29187
29597
|
* @throws {RequiredError}
|
|
29188
29598
|
*/
|
|
29189
29599
|
getParkedPosOrderV2(businessId: string, options?: any): AxiosPromise<Array<PosOrderDto>>;
|
|
29600
|
+
/**
|
|
29601
|
+
*
|
|
29602
|
+
* @summary Get a single POS order from Firestore
|
|
29603
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
29604
|
+
* @param {*} [options] Override http request option.
|
|
29605
|
+
* @throws {RequiredError}
|
|
29606
|
+
*/
|
|
29607
|
+
getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: any): AxiosPromise<PosOrderDto>;
|
|
29190
29608
|
/**
|
|
29191
29609
|
*
|
|
29192
29610
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -29300,6 +29718,15 @@ export interface OrdersApiInterface {
|
|
|
29300
29718
|
* @memberof OrdersApiInterface
|
|
29301
29719
|
*/
|
|
29302
29720
|
getParkedPosOrderV2(businessId: string, options?: AxiosRequestConfig): AxiosPromise<Array<PosOrderDto>>;
|
|
29721
|
+
/**
|
|
29722
|
+
*
|
|
29723
|
+
* @summary Get a single POS order from Firestore
|
|
29724
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
29725
|
+
* @param {*} [options] Override http request option.
|
|
29726
|
+
* @throws {RequiredError}
|
|
29727
|
+
* @memberof OrdersApiInterface
|
|
29728
|
+
*/
|
|
29729
|
+
getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig): AxiosPromise<PosOrderDto>;
|
|
29303
29730
|
/**
|
|
29304
29731
|
*
|
|
29305
29732
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -29419,6 +29846,15 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
29419
29846
|
* @memberof OrdersApi
|
|
29420
29847
|
*/
|
|
29421
29848
|
getParkedPosOrderV2(businessId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PosOrderDto[], any, {}>>;
|
|
29849
|
+
/**
|
|
29850
|
+
*
|
|
29851
|
+
* @summary Get a single POS order from Firestore
|
|
29852
|
+
* @param {GetPosOrderDto} getPosOrderDto
|
|
29853
|
+
* @param {*} [options] Override http request option.
|
|
29854
|
+
* @throws {RequiredError}
|
|
29855
|
+
* @memberof OrdersApi
|
|
29856
|
+
*/
|
|
29857
|
+
getPosOrderById(getPosOrderDto: GetPosOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PosOrderDto, any, {}>>;
|
|
29422
29858
|
/**
|
|
29423
29859
|
*
|
|
29424
29860
|
* @summary Mark an order as ready for pickup/delivery
|
|
@@ -30198,6 +30634,338 @@ export declare class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
30198
30634
|
*/
|
|
30199
30635
|
refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VivaPaymentResultDto, any, {}>>;
|
|
30200
30636
|
}
|
|
30637
|
+
/**
|
|
30638
|
+
* PaymentSessionApi - axios parameter creator
|
|
30639
|
+
* @export
|
|
30640
|
+
*/
|
|
30641
|
+
export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
30642
|
+
/**
|
|
30643
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
30644
|
+
* @summary Cancel an in-flight Viva payment session
|
|
30645
|
+
* @param {string} clientToken
|
|
30646
|
+
* @param {*} [options] Override http request option.
|
|
30647
|
+
* @throws {RequiredError}
|
|
30648
|
+
*/
|
|
30649
|
+
cancelVivaSession: (clientToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30650
|
+
/**
|
|
30651
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
30652
|
+
* @summary Get payment session status by clientToken
|
|
30653
|
+
* @param {string} clientToken
|
|
30654
|
+
* @param {*} [options] Override http request option.
|
|
30655
|
+
* @throws {RequiredError}
|
|
30656
|
+
*/
|
|
30657
|
+
getPaymentSession: (clientToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30658
|
+
/**
|
|
30659
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
30660
|
+
* @summary Initiate a Viva payment session
|
|
30661
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
30662
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
30663
|
+
* @param {*} [options] Override http request option.
|
|
30664
|
+
* @throws {RequiredError}
|
|
30665
|
+
*/
|
|
30666
|
+
initiateVivaSession: (initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30667
|
+
/**
|
|
30668
|
+
* 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.
|
|
30669
|
+
* @summary Record a manual payment session
|
|
30670
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
30671
|
+
* @param {*} [options] Override http request option.
|
|
30672
|
+
* @throws {RequiredError}
|
|
30673
|
+
*/
|
|
30674
|
+
recordManualPayment: (createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30675
|
+
/**
|
|
30676
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
30677
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
30678
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30679
|
+
* @param {*} [options] Override http request option.
|
|
30680
|
+
* @throws {RequiredError}
|
|
30681
|
+
*/
|
|
30682
|
+
refundVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30683
|
+
/**
|
|
30684
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
30685
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
30686
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30687
|
+
* @param {*} [options] Override http request option.
|
|
30688
|
+
* @throws {RequiredError}
|
|
30689
|
+
*/
|
|
30690
|
+
revertVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30691
|
+
/**
|
|
30692
|
+
* 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.
|
|
30693
|
+
* @summary Void a manual payment session
|
|
30694
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30695
|
+
* @param {*} [options] Override http request option.
|
|
30696
|
+
* @throws {RequiredError}
|
|
30697
|
+
*/
|
|
30698
|
+
voidManualPayment: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30699
|
+
};
|
|
30700
|
+
/**
|
|
30701
|
+
* PaymentSessionApi - functional programming interface
|
|
30702
|
+
* @export
|
|
30703
|
+
*/
|
|
30704
|
+
export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
30705
|
+
/**
|
|
30706
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
30707
|
+
* @summary Cancel an in-flight Viva payment session
|
|
30708
|
+
* @param {string} clientToken
|
|
30709
|
+
* @param {*} [options] Override http request option.
|
|
30710
|
+
* @throws {RequiredError}
|
|
30711
|
+
*/
|
|
30712
|
+
cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
30713
|
+
/**
|
|
30714
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
30715
|
+
* @summary Get payment session status by clientToken
|
|
30716
|
+
* @param {string} clientToken
|
|
30717
|
+
* @param {*} [options] Override http request option.
|
|
30718
|
+
* @throws {RequiredError}
|
|
30719
|
+
*/
|
|
30720
|
+
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
30721
|
+
/**
|
|
30722
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
30723
|
+
* @summary Initiate a Viva payment session
|
|
30724
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
30725
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
30726
|
+
* @param {*} [options] Override http request option.
|
|
30727
|
+
* @throws {RequiredError}
|
|
30728
|
+
*/
|
|
30729
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateVivaSessionResponseDto>>;
|
|
30730
|
+
/**
|
|
30731
|
+
* 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.
|
|
30732
|
+
* @summary Record a manual payment session
|
|
30733
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
30734
|
+
* @param {*} [options] Override http request option.
|
|
30735
|
+
* @throws {RequiredError}
|
|
30736
|
+
*/
|
|
30737
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
30738
|
+
/**
|
|
30739
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
30740
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
30741
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30742
|
+
* @param {*} [options] Override http request option.
|
|
30743
|
+
* @throws {RequiredError}
|
|
30744
|
+
*/
|
|
30745
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
30746
|
+
/**
|
|
30747
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
30748
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
30749
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30750
|
+
* @param {*} [options] Override http request option.
|
|
30751
|
+
* @throws {RequiredError}
|
|
30752
|
+
*/
|
|
30753
|
+
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
30754
|
+
/**
|
|
30755
|
+
* 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.
|
|
30756
|
+
* @summary Void a manual payment session
|
|
30757
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30758
|
+
* @param {*} [options] Override http request option.
|
|
30759
|
+
* @throws {RequiredError}
|
|
30760
|
+
*/
|
|
30761
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
|
|
30762
|
+
};
|
|
30763
|
+
/**
|
|
30764
|
+
* PaymentSessionApi - factory interface
|
|
30765
|
+
* @export
|
|
30766
|
+
*/
|
|
30767
|
+
export declare const PaymentSessionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
30768
|
+
/**
|
|
30769
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
30770
|
+
* @summary Cancel an in-flight Viva payment session
|
|
30771
|
+
* @param {string} clientToken
|
|
30772
|
+
* @param {*} [options] Override http request option.
|
|
30773
|
+
* @throws {RequiredError}
|
|
30774
|
+
*/
|
|
30775
|
+
cancelVivaSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
30776
|
+
/**
|
|
30777
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
30778
|
+
* @summary Get payment session status by clientToken
|
|
30779
|
+
* @param {string} clientToken
|
|
30780
|
+
* @param {*} [options] Override http request option.
|
|
30781
|
+
* @throws {RequiredError}
|
|
30782
|
+
*/
|
|
30783
|
+
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
30784
|
+
/**
|
|
30785
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
30786
|
+
* @summary Initiate a Viva payment session
|
|
30787
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
30788
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
30789
|
+
* @param {*} [options] Override http request option.
|
|
30790
|
+
* @throws {RequiredError}
|
|
30791
|
+
*/
|
|
30792
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
30793
|
+
/**
|
|
30794
|
+
* 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.
|
|
30795
|
+
* @summary Record a manual payment session
|
|
30796
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
30797
|
+
* @param {*} [options] Override http request option.
|
|
30798
|
+
* @throws {RequiredError}
|
|
30799
|
+
*/
|
|
30800
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
30801
|
+
/**
|
|
30802
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
30803
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
30804
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30805
|
+
* @param {*} [options] Override http request option.
|
|
30806
|
+
* @throws {RequiredError}
|
|
30807
|
+
*/
|
|
30808
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
30809
|
+
/**
|
|
30810
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
30811
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
30812
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30813
|
+
* @param {*} [options] Override http request option.
|
|
30814
|
+
* @throws {RequiredError}
|
|
30815
|
+
*/
|
|
30816
|
+
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
30817
|
+
/**
|
|
30818
|
+
* 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.
|
|
30819
|
+
* @summary Void a manual payment session
|
|
30820
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30821
|
+
* @param {*} [options] Override http request option.
|
|
30822
|
+
* @throws {RequiredError}
|
|
30823
|
+
*/
|
|
30824
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
|
|
30825
|
+
};
|
|
30826
|
+
/**
|
|
30827
|
+
* PaymentSessionApi - interface
|
|
30828
|
+
* @export
|
|
30829
|
+
* @interface PaymentSessionApi
|
|
30830
|
+
*/
|
|
30831
|
+
export interface PaymentSessionApiInterface {
|
|
30832
|
+
/**
|
|
30833
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
30834
|
+
* @summary Cancel an in-flight Viva payment session
|
|
30835
|
+
* @param {string} clientToken
|
|
30836
|
+
* @param {*} [options] Override http request option.
|
|
30837
|
+
* @throws {RequiredError}
|
|
30838
|
+
* @memberof PaymentSessionApiInterface
|
|
30839
|
+
*/
|
|
30840
|
+
cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
30841
|
+
/**
|
|
30842
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
30843
|
+
* @summary Get payment session status by clientToken
|
|
30844
|
+
* @param {string} clientToken
|
|
30845
|
+
* @param {*} [options] Override http request option.
|
|
30846
|
+
* @throws {RequiredError}
|
|
30847
|
+
* @memberof PaymentSessionApiInterface
|
|
30848
|
+
*/
|
|
30849
|
+
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
30850
|
+
/**
|
|
30851
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
30852
|
+
* @summary Initiate a Viva payment session
|
|
30853
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
30854
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
30855
|
+
* @param {*} [options] Override http request option.
|
|
30856
|
+
* @throws {RequiredError}
|
|
30857
|
+
* @memberof PaymentSessionApiInterface
|
|
30858
|
+
*/
|
|
30859
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateVivaSessionResponseDto>;
|
|
30860
|
+
/**
|
|
30861
|
+
* 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.
|
|
30862
|
+
* @summary Record a manual payment session
|
|
30863
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
30864
|
+
* @param {*} [options] Override http request option.
|
|
30865
|
+
* @throws {RequiredError}
|
|
30866
|
+
* @memberof PaymentSessionApiInterface
|
|
30867
|
+
*/
|
|
30868
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
30869
|
+
/**
|
|
30870
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
30871
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
30872
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30873
|
+
* @param {*} [options] Override http request option.
|
|
30874
|
+
* @throws {RequiredError}
|
|
30875
|
+
* @memberof PaymentSessionApiInterface
|
|
30876
|
+
*/
|
|
30877
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
30878
|
+
/**
|
|
30879
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
30880
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
30881
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30882
|
+
* @param {*} [options] Override http request option.
|
|
30883
|
+
* @throws {RequiredError}
|
|
30884
|
+
* @memberof PaymentSessionApiInterface
|
|
30885
|
+
*/
|
|
30886
|
+
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
30887
|
+
/**
|
|
30888
|
+
* 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.
|
|
30889
|
+
* @summary Void a manual payment session
|
|
30890
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30891
|
+
* @param {*} [options] Override http request option.
|
|
30892
|
+
* @throws {RequiredError}
|
|
30893
|
+
* @memberof PaymentSessionApiInterface
|
|
30894
|
+
*/
|
|
30895
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
30896
|
+
}
|
|
30897
|
+
/**
|
|
30898
|
+
* PaymentSessionApi - object-oriented interface
|
|
30899
|
+
* @export
|
|
30900
|
+
* @class PaymentSessionApi
|
|
30901
|
+
* @extends {BaseAPI}
|
|
30902
|
+
*/
|
|
30903
|
+
export declare class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInterface {
|
|
30904
|
+
/**
|
|
30905
|
+
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome, and a late success is auto-voided. Viva card only.
|
|
30906
|
+
* @summary Cancel an in-flight Viva payment session
|
|
30907
|
+
* @param {string} clientToken
|
|
30908
|
+
* @param {*} [options] Override http request option.
|
|
30909
|
+
* @throws {RequiredError}
|
|
30910
|
+
* @memberof PaymentSessionApi
|
|
30911
|
+
*/
|
|
30912
|
+
cancelVivaSession(clientToken: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
30913
|
+
/**
|
|
30914
|
+
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
30915
|
+
* @summary Get payment session status by clientToken
|
|
30916
|
+
* @param {string} clientToken
|
|
30917
|
+
* @param {*} [options] Override http request option.
|
|
30918
|
+
* @throws {RequiredError}
|
|
30919
|
+
* @memberof PaymentSessionApi
|
|
30920
|
+
*/
|
|
30921
|
+
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
30922
|
+
/**
|
|
30923
|
+
* Creates a PaymentSession row, calls Viva createTransaction, returns a client-facing token and the Viva payment intent. Idempotent via X-Idempotency-Key header.
|
|
30924
|
+
* @summary Initiate a Viva payment session
|
|
30925
|
+
* @param {InitiateVivaSessionDto} initiateVivaSessionDto
|
|
30926
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
30927
|
+
* @param {*} [options] Override http request option.
|
|
30928
|
+
* @throws {RequiredError}
|
|
30929
|
+
* @memberof PaymentSessionApi
|
|
30930
|
+
*/
|
|
30931
|
+
initiateVivaSession(initiateVivaSessionDto: InitiateVivaSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateVivaSessionResponseDto, any, {}>>;
|
|
30932
|
+
/**
|
|
30933
|
+
* 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.
|
|
30934
|
+
* @summary Record a manual payment session
|
|
30935
|
+
* @param {CreateManualSessionDto} createManualSessionDto
|
|
30936
|
+
* @param {*} [options] Override http request option.
|
|
30937
|
+
* @throws {RequiredError}
|
|
30938
|
+
* @memberof PaymentSessionApi
|
|
30939
|
+
*/
|
|
30940
|
+
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
30941
|
+
/**
|
|
30942
|
+
* Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
|
|
30943
|
+
* @summary Refund a settled Viva payment session (gateway only)
|
|
30944
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30945
|
+
* @param {*} [options] Override http request option.
|
|
30946
|
+
* @throws {RequiredError}
|
|
30947
|
+
* @memberof PaymentSessionApi
|
|
30948
|
+
*/
|
|
30949
|
+
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
30950
|
+
/**
|
|
30951
|
+
* Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
|
|
30952
|
+
* @summary Revert (fully reverse) a settled Viva payment session
|
|
30953
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30954
|
+
* @param {*} [options] Override http request option.
|
|
30955
|
+
* @throws {RequiredError}
|
|
30956
|
+
* @memberof PaymentSessionApi
|
|
30957
|
+
*/
|
|
30958
|
+
revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
30959
|
+
/**
|
|
30960
|
+
* 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.
|
|
30961
|
+
* @summary Void a manual payment session
|
|
30962
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
30963
|
+
* @param {*} [options] Override http request option.
|
|
30964
|
+
* @throws {RequiredError}
|
|
30965
|
+
* @memberof PaymentSessionApi
|
|
30966
|
+
*/
|
|
30967
|
+
voidManualPayment(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
|
|
30968
|
+
}
|
|
30201
30969
|
/**
|
|
30202
30970
|
* PluginApi - axios parameter creator
|
|
30203
30971
|
* @export
|
|
@@ -32768,6 +33536,14 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
|
|
|
32768
33536
|
* @throws {RequiredError}
|
|
32769
33537
|
*/
|
|
32770
33538
|
handleVivaEvents: (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33539
|
+
/**
|
|
33540
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
33541
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
33542
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
33543
|
+
* @param {*} [options] Override http request option.
|
|
33544
|
+
* @throws {RequiredError}
|
|
33545
|
+
*/
|
|
33546
|
+
handleVivaSessionEvents: (vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32771
33547
|
/**
|
|
32772
33548
|
*
|
|
32773
33549
|
* @param {*} [options] Override http request option.
|
|
@@ -32806,6 +33582,13 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
|
|
|
32806
33582
|
* @throws {RequiredError}
|
|
32807
33583
|
*/
|
|
32808
33584
|
updateWoltProduct: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33585
|
+
/**
|
|
33586
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
33587
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
33588
|
+
* @param {*} [options] Override http request option.
|
|
33589
|
+
* @throws {RequiredError}
|
|
33590
|
+
*/
|
|
33591
|
+
verifyVivaSessionWebhook: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32809
33592
|
/**
|
|
32810
33593
|
*
|
|
32811
33594
|
* @param {*} [options] Override http request option.
|
|
@@ -32890,6 +33673,14 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
|
|
|
32890
33673
|
* @throws {RequiredError}
|
|
32891
33674
|
*/
|
|
32892
33675
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
33676
|
+
/**
|
|
33677
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
33678
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
33679
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
33680
|
+
* @param {*} [options] Override http request option.
|
|
33681
|
+
* @throws {RequiredError}
|
|
33682
|
+
*/
|
|
33683
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
32893
33684
|
/**
|
|
32894
33685
|
*
|
|
32895
33686
|
* @param {*} [options] Override http request option.
|
|
@@ -32928,6 +33719,13 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
|
|
|
32928
33719
|
* @throws {RequiredError}
|
|
32929
33720
|
*/
|
|
32930
33721
|
updateWoltProduct(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
33722
|
+
/**
|
|
33723
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
33724
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
33725
|
+
* @param {*} [options] Override http request option.
|
|
33726
|
+
* @throws {RequiredError}
|
|
33727
|
+
*/
|
|
33728
|
+
verifyVivaSessionWebhook(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
32931
33729
|
/**
|
|
32932
33730
|
*
|
|
32933
33731
|
* @param {*} [options] Override http request option.
|
|
@@ -33012,6 +33810,14 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
|
|
|
33012
33810
|
* @throws {RequiredError}
|
|
33013
33811
|
*/
|
|
33014
33812
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void>;
|
|
33813
|
+
/**
|
|
33814
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
33815
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
33816
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
33817
|
+
* @param {*} [options] Override http request option.
|
|
33818
|
+
* @throws {RequiredError}
|
|
33819
|
+
*/
|
|
33820
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: any): AxiosPromise<void>;
|
|
33015
33821
|
/**
|
|
33016
33822
|
*
|
|
33017
33823
|
* @param {*} [options] Override http request option.
|
|
@@ -33050,6 +33856,13 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
|
|
|
33050
33856
|
* @throws {RequiredError}
|
|
33051
33857
|
*/
|
|
33052
33858
|
updateWoltProduct(options?: any): AxiosPromise<void>;
|
|
33859
|
+
/**
|
|
33860
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
33861
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
33862
|
+
* @param {*} [options] Override http request option.
|
|
33863
|
+
* @throws {RequiredError}
|
|
33864
|
+
*/
|
|
33865
|
+
verifyVivaSessionWebhook(options?: any): AxiosPromise<void>;
|
|
33053
33866
|
/**
|
|
33054
33867
|
*
|
|
33055
33868
|
* @param {*} [options] Override http request option.
|
|
@@ -33146,6 +33959,15 @@ export interface WebhookApiInterface {
|
|
|
33146
33959
|
* @memberof WebhookApiInterface
|
|
33147
33960
|
*/
|
|
33148
33961
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
33962
|
+
/**
|
|
33963
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
33964
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
33965
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
33966
|
+
* @param {*} [options] Override http request option.
|
|
33967
|
+
* @throws {RequiredError}
|
|
33968
|
+
* @memberof WebhookApiInterface
|
|
33969
|
+
*/
|
|
33970
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
33149
33971
|
/**
|
|
33150
33972
|
*
|
|
33151
33973
|
* @param {*} [options] Override http request option.
|
|
@@ -33190,6 +34012,14 @@ export interface WebhookApiInterface {
|
|
|
33190
34012
|
* @memberof WebhookApiInterface
|
|
33191
34013
|
*/
|
|
33192
34014
|
updateWoltProduct(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
34015
|
+
/**
|
|
34016
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
34017
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
34018
|
+
* @param {*} [options] Override http request option.
|
|
34019
|
+
* @throws {RequiredError}
|
|
34020
|
+
* @memberof WebhookApiInterface
|
|
34021
|
+
*/
|
|
34022
|
+
verifyVivaSessionWebhook(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
33193
34023
|
/**
|
|
33194
34024
|
*
|
|
33195
34025
|
* @param {*} [options] Override http request option.
|
|
@@ -33288,6 +34118,15 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
33288
34118
|
* @memberof WebhookApi
|
|
33289
34119
|
*/
|
|
33290
34120
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
34121
|
+
/**
|
|
34122
|
+
* Routes Viva ECR events to PaymentSession update + reconciliation. Does not touch the legacy /viva/verification path.
|
|
34123
|
+
* @summary Handle Viva webhook events for the payment-session flow
|
|
34124
|
+
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
34125
|
+
* @param {*} [options] Override http request option.
|
|
34126
|
+
* @throws {RequiredError}
|
|
34127
|
+
* @memberof WebhookApi
|
|
34128
|
+
*/
|
|
34129
|
+
handleVivaSessionEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
33291
34130
|
/**
|
|
33292
34131
|
*
|
|
33293
34132
|
* @param {*} [options] Override http request option.
|
|
@@ -33332,6 +34171,14 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
33332
34171
|
* @memberof WebhookApi
|
|
33333
34172
|
*/
|
|
33334
34173
|
updateWoltProduct(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
34174
|
+
/**
|
|
34175
|
+
* Shares the same verification-key lookup as /viva/verification. Register this URL in Viva for the new flow.
|
|
34176
|
+
* @summary Viva webhook verification for the payment-session flow
|
|
34177
|
+
* @param {*} [options] Override http request option.
|
|
34178
|
+
* @throws {RequiredError}
|
|
34179
|
+
* @memberof WebhookApi
|
|
34180
|
+
*/
|
|
34181
|
+
verifyVivaSessionWebhook(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
33335
34182
|
/**
|
|
33336
34183
|
*
|
|
33337
34184
|
* @param {*} [options] Override http request option.
|