@munchi_oy/core 1.9.72 → 1.9.74
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 +702 -31
- 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 +939 -38
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -176,6 +176,25 @@ export interface ActionPasscodeResponseDto {
|
|
|
176
176
|
*/
|
|
177
177
|
'permissionRules': Array<PermissionRuleResponseDto>;
|
|
178
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @export
|
|
182
|
+
* @enum {string}
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
export const ActionsEnum = {
|
|
186
|
+
Ticketing: 'Ticketing',
|
|
187
|
+
OrderChange: 'OrderChange',
|
|
188
|
+
NewOrder: 'NewOrder',
|
|
189
|
+
Printing: 'Printing',
|
|
190
|
+
PosOrderChange: 'PosOrderChange',
|
|
191
|
+
UpdateLoyaltyPoints: 'UpdateLoyaltyPoints',
|
|
192
|
+
CourseFire: 'CourseFire'
|
|
193
|
+
} as const;
|
|
194
|
+
|
|
195
|
+
export type ActionsEnum = typeof ActionsEnum[keyof typeof ActionsEnum];
|
|
196
|
+
|
|
197
|
+
|
|
179
198
|
/**
|
|
180
199
|
*
|
|
181
200
|
* @export
|
|
@@ -6658,6 +6677,56 @@ export interface ImageBackgroundConfig {
|
|
|
6658
6677
|
}
|
|
6659
6678
|
|
|
6660
6679
|
|
|
6680
|
+
/**
|
|
6681
|
+
*
|
|
6682
|
+
* @export
|
|
6683
|
+
* @interface InitiateNetsSessionDto
|
|
6684
|
+
*/
|
|
6685
|
+
export interface InitiateNetsSessionDto {
|
|
6686
|
+
/**
|
|
6687
|
+
* The internal business ID.
|
|
6688
|
+
* @type {number}
|
|
6689
|
+
* @memberof InitiateNetsSessionDto
|
|
6690
|
+
*/
|
|
6691
|
+
'businessId': number;
|
|
6692
|
+
/**
|
|
6693
|
+
* The POS order ID this payment session is for.
|
|
6694
|
+
* @type {string}
|
|
6695
|
+
* @memberof InitiateNetsSessionDto
|
|
6696
|
+
*/
|
|
6697
|
+
'orderId': string;
|
|
6698
|
+
/**
|
|
6699
|
+
* Amount to charge in smallest currency unit (cents).
|
|
6700
|
+
* @type {number}
|
|
6701
|
+
* @memberof InitiateNetsSessionDto
|
|
6702
|
+
*/
|
|
6703
|
+
'amount': number;
|
|
6704
|
+
/**
|
|
6705
|
+
*
|
|
6706
|
+
* @type {InitiateVivaSessionDtoSplitContext}
|
|
6707
|
+
* @memberof InitiateNetsSessionDto
|
|
6708
|
+
*/
|
|
6709
|
+
'splitContext'?: InitiateVivaSessionDtoSplitContext;
|
|
6710
|
+
}
|
|
6711
|
+
/**
|
|
6712
|
+
*
|
|
6713
|
+
* @export
|
|
6714
|
+
* @interface InitiateNetsSessionResponseDto
|
|
6715
|
+
*/
|
|
6716
|
+
export interface InitiateNetsSessionResponseDto {
|
|
6717
|
+
/**
|
|
6718
|
+
* Opaque token returned to the client. Used by the client to poll/sync the session. Never sent to Nets.
|
|
6719
|
+
* @type {string}
|
|
6720
|
+
* @memberof InitiateNetsSessionResponseDto
|
|
6721
|
+
*/
|
|
6722
|
+
'clientToken': string;
|
|
6723
|
+
/**
|
|
6724
|
+
* Internal session ID — the Nets ConnectCloud request id the webhook resolves against.
|
|
6725
|
+
* @type {string}
|
|
6726
|
+
* @memberof InitiateNetsSessionResponseDto
|
|
6727
|
+
*/
|
|
6728
|
+
'sessionId': string;
|
|
6729
|
+
}
|
|
6661
6730
|
/**
|
|
6662
6731
|
*
|
|
6663
6732
|
* @export
|
|
@@ -10128,6 +10197,65 @@ export interface NetsPaymentMessageDtoData {
|
|
|
10128
10197
|
*/
|
|
10129
10198
|
'storeboxToken'?: string;
|
|
10130
10199
|
}
|
|
10200
|
+
/**
|
|
10201
|
+
*
|
|
10202
|
+
* @export
|
|
10203
|
+
* @enum {string}
|
|
10204
|
+
*/
|
|
10205
|
+
|
|
10206
|
+
export const NetsRevertMethod = {
|
|
10207
|
+
Reversal: 'REVERSAL',
|
|
10208
|
+
Refund: 'REFUND'
|
|
10209
|
+
} as const;
|
|
10210
|
+
|
|
10211
|
+
export type NetsRevertMethod = typeof NetsRevertMethod[keyof typeof NetsRevertMethod];
|
|
10212
|
+
|
|
10213
|
+
|
|
10214
|
+
/**
|
|
10215
|
+
*
|
|
10216
|
+
* @export
|
|
10217
|
+
* @interface NetsRevertResponseDto
|
|
10218
|
+
*/
|
|
10219
|
+
export interface NetsRevertResponseDto {
|
|
10220
|
+
/**
|
|
10221
|
+
*
|
|
10222
|
+
* @type {NetsRevertMethod}
|
|
10223
|
+
* @memberof NetsRevertResponseDto
|
|
10224
|
+
*/
|
|
10225
|
+
'method': NetsRevertMethod;
|
|
10226
|
+
/**
|
|
10227
|
+
* True when the customer must tap their card to complete (REFUND); false for a REVERSAL, which settles without a tap.
|
|
10228
|
+
* @type {boolean}
|
|
10229
|
+
* @memberof NetsRevertResponseDto
|
|
10230
|
+
*/
|
|
10231
|
+
'requiresCardTap': boolean;
|
|
10232
|
+
/**
|
|
10233
|
+
* Opaque token to poll GET /payment-session/:clientToken for the final outcome.
|
|
10234
|
+
* @type {string}
|
|
10235
|
+
* @memberof NetsRevertResponseDto
|
|
10236
|
+
*/
|
|
10237
|
+
'clientToken': string;
|
|
10238
|
+
/**
|
|
10239
|
+
* Internal session id — the Nets connectcloud-request-id the webhook resolves against.
|
|
10240
|
+
* @type {string}
|
|
10241
|
+
* @memberof NetsRevertResponseDto
|
|
10242
|
+
*/
|
|
10243
|
+
'sessionId': string;
|
|
10244
|
+
/**
|
|
10245
|
+
* Amount being reverted, in the smallest currency unit (cents).
|
|
10246
|
+
* @type {number}
|
|
10247
|
+
* @memberof NetsRevertResponseDto
|
|
10248
|
+
*/
|
|
10249
|
+
'amount': number;
|
|
10250
|
+
/**
|
|
10251
|
+
*
|
|
10252
|
+
* @type {PaymentSessionStatus}
|
|
10253
|
+
* @memberof NetsRevertResponseDto
|
|
10254
|
+
*/
|
|
10255
|
+
'status': PaymentSessionStatus;
|
|
10256
|
+
}
|
|
10257
|
+
|
|
10258
|
+
|
|
10131
10259
|
/**
|
|
10132
10260
|
*
|
|
10133
10261
|
* @export
|
|
@@ -16286,7 +16414,7 @@ export type PrinterTypeEnum = typeof PrinterTypeEnum[keyof typeof PrinterTypeEnu
|
|
|
16286
16414
|
export interface ProcessOrderActionsDto {
|
|
16287
16415
|
/**
|
|
16288
16416
|
* Array of actions to process
|
|
16289
|
-
* @type {Array<
|
|
16417
|
+
* @type {Array<ActionsEnum>}
|
|
16290
16418
|
* @memberof ProcessOrderActionsDto
|
|
16291
16419
|
*/
|
|
16292
16420
|
'actions': Array<ActionsEnum>;
|
|
@@ -16297,19 +16425,6 @@ export interface ProcessOrderActionsDto {
|
|
|
16297
16425
|
*/
|
|
16298
16426
|
'data': ProcessOrderActionsDtoData;
|
|
16299
16427
|
}
|
|
16300
|
-
|
|
16301
|
-
export const ActionsEnum = {
|
|
16302
|
-
Ticketing: 'Ticketing',
|
|
16303
|
-
OrderChange: 'OrderChange',
|
|
16304
|
-
NewOrder: 'NewOrder',
|
|
16305
|
-
Printing: 'Printing',
|
|
16306
|
-
PosOrderChange: 'PosOrderChange',
|
|
16307
|
-
UpdateLoyaltyPoints: 'UpdateLoyaltyPoints',
|
|
16308
|
-
CourseFire: 'CourseFire'
|
|
16309
|
-
} as const;
|
|
16310
|
-
|
|
16311
|
-
export type ActionsEnum = typeof ActionsEnum[keyof typeof ActionsEnum];
|
|
16312
|
-
|
|
16313
16428
|
/**
|
|
16314
16429
|
* Action-specific data
|
|
16315
16430
|
* @export
|
|
@@ -16609,6 +16724,19 @@ export interface ProcessOrderActionsResponseDtoOrder {
|
|
|
16609
16724
|
}
|
|
16610
16725
|
|
|
16611
16726
|
|
|
16727
|
+
/**
|
|
16728
|
+
*
|
|
16729
|
+
* @export
|
|
16730
|
+
* @interface ProcessPosOrderActionsQueueDto
|
|
16731
|
+
*/
|
|
16732
|
+
export interface ProcessPosOrderActionsQueueDto {
|
|
16733
|
+
/**
|
|
16734
|
+
* qid of the enqueued order-actions job to process.
|
|
16735
|
+
* @type {string}
|
|
16736
|
+
* @memberof ProcessPosOrderActionsQueueDto
|
|
16737
|
+
*/
|
|
16738
|
+
'qid': string;
|
|
16739
|
+
}
|
|
16612
16740
|
/**
|
|
16613
16741
|
*
|
|
16614
16742
|
* @export
|
|
@@ -19718,6 +19846,306 @@ export interface SupportedChannelDto {
|
|
|
19718
19846
|
}
|
|
19719
19847
|
|
|
19720
19848
|
|
|
19849
|
+
/**
|
|
19850
|
+
*
|
|
19851
|
+
* @export
|
|
19852
|
+
* @interface SyncPosOrderDto
|
|
19853
|
+
*/
|
|
19854
|
+
export interface SyncPosOrderDto {
|
|
19855
|
+
/**
|
|
19856
|
+
*
|
|
19857
|
+
* @type {SyncPosOrderDtoOrder}
|
|
19858
|
+
* @memberof SyncPosOrderDto
|
|
19859
|
+
*/
|
|
19860
|
+
'order': SyncPosOrderDtoOrder;
|
|
19861
|
+
/**
|
|
19862
|
+
*
|
|
19863
|
+
* @type {SyncPosOrderDtoWorkflow}
|
|
19864
|
+
* @memberof SyncPosOrderDto
|
|
19865
|
+
*/
|
|
19866
|
+
'workflow'?: SyncPosOrderDtoWorkflow;
|
|
19867
|
+
}
|
|
19868
|
+
/**
|
|
19869
|
+
* POS order snapshot to persist. paymentEvents are ignored (server-owned).
|
|
19870
|
+
* @export
|
|
19871
|
+
* @interface SyncPosOrderDtoOrder
|
|
19872
|
+
*/
|
|
19873
|
+
export interface SyncPosOrderDtoOrder {
|
|
19874
|
+
/**
|
|
19875
|
+
*
|
|
19876
|
+
* @type {string}
|
|
19877
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19878
|
+
*/
|
|
19879
|
+
'id': string;
|
|
19880
|
+
/**
|
|
19881
|
+
*
|
|
19882
|
+
* @type {string}
|
|
19883
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19884
|
+
*/
|
|
19885
|
+
'businessId': string;
|
|
19886
|
+
/**
|
|
19887
|
+
*
|
|
19888
|
+
* @type {ProviderEnum}
|
|
19889
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19890
|
+
*/
|
|
19891
|
+
'provider': ProviderEnum;
|
|
19892
|
+
/**
|
|
19893
|
+
*
|
|
19894
|
+
* @type {CurrencyCode}
|
|
19895
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19896
|
+
*/
|
|
19897
|
+
'currency': CurrencyCode;
|
|
19898
|
+
/**
|
|
19899
|
+
*
|
|
19900
|
+
* @type {PosBusinessDto}
|
|
19901
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19902
|
+
*/
|
|
19903
|
+
'business': PosBusinessDto;
|
|
19904
|
+
/**
|
|
19905
|
+
*
|
|
19906
|
+
* @type {string}
|
|
19907
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19908
|
+
*/
|
|
19909
|
+
'createdAt': string;
|
|
19910
|
+
/**
|
|
19911
|
+
*
|
|
19912
|
+
* @type {OrderStatusEnum}
|
|
19913
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19914
|
+
*/
|
|
19915
|
+
'status': OrderStatusEnum;
|
|
19916
|
+
/**
|
|
19917
|
+
*
|
|
19918
|
+
* @type {string}
|
|
19919
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19920
|
+
*/
|
|
19921
|
+
'updatedAt': string;
|
|
19922
|
+
/**
|
|
19923
|
+
*
|
|
19924
|
+
* @type {string}
|
|
19925
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19926
|
+
*/
|
|
19927
|
+
'completedAt'?: string;
|
|
19928
|
+
/**
|
|
19929
|
+
*
|
|
19930
|
+
* @type {string}
|
|
19931
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19932
|
+
*/
|
|
19933
|
+
'orderNumber': string;
|
|
19934
|
+
/**
|
|
19935
|
+
*
|
|
19936
|
+
* @type {CheckoutModelEnum}
|
|
19937
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19938
|
+
*/
|
|
19939
|
+
'checkoutModel': CheckoutModelEnum;
|
|
19940
|
+
/**
|
|
19941
|
+
*
|
|
19942
|
+
* @type {OrderTypePOS}
|
|
19943
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19944
|
+
*/
|
|
19945
|
+
'orderType': OrderTypePOS;
|
|
19946
|
+
/**
|
|
19947
|
+
*
|
|
19948
|
+
* @type {string}
|
|
19949
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19950
|
+
*/
|
|
19951
|
+
'spotNumber': string | null;
|
|
19952
|
+
/**
|
|
19953
|
+
* ID of the floor plan dining table linked to this order
|
|
19954
|
+
* @type {string}
|
|
19955
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19956
|
+
*/
|
|
19957
|
+
'tableId'?: string | null;
|
|
19958
|
+
/**
|
|
19959
|
+
*
|
|
19960
|
+
* @type {string}
|
|
19961
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19962
|
+
*/
|
|
19963
|
+
'comments': string | null;
|
|
19964
|
+
/**
|
|
19965
|
+
*
|
|
19966
|
+
* @type {PosOrderDtoTableService}
|
|
19967
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19968
|
+
*/
|
|
19969
|
+
'tableService'?: PosOrderDtoTableService | null;
|
|
19970
|
+
/**
|
|
19971
|
+
*
|
|
19972
|
+
* @type {PosOrderDtoEqualSplitState}
|
|
19973
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19974
|
+
*/
|
|
19975
|
+
'equalSplitState'?: PosOrderDtoEqualSplitState | null;
|
|
19976
|
+
/**
|
|
19977
|
+
* Id of the staff in shift
|
|
19978
|
+
* @type {string}
|
|
19979
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19980
|
+
*/
|
|
19981
|
+
'staffId': string | null;
|
|
19982
|
+
/**
|
|
19983
|
+
* Id of the shift
|
|
19984
|
+
* @type {string}
|
|
19985
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19986
|
+
*/
|
|
19987
|
+
'shiftId': string | null;
|
|
19988
|
+
/**
|
|
19989
|
+
*
|
|
19990
|
+
* @type {OrderRefundStatus}
|
|
19991
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19992
|
+
*/
|
|
19993
|
+
'orderRefundStatus': OrderRefundStatus;
|
|
19994
|
+
/**
|
|
19995
|
+
*
|
|
19996
|
+
* @type {LocatorType}
|
|
19997
|
+
* @memberof SyncPosOrderDtoOrder
|
|
19998
|
+
*/
|
|
19999
|
+
'locatorType': LocatorType;
|
|
20000
|
+
/**
|
|
20001
|
+
*
|
|
20002
|
+
* @type {PosOrderPriceDto}
|
|
20003
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20004
|
+
*/
|
|
20005
|
+
'basketPrice': PosOrderPriceDto;
|
|
20006
|
+
/**
|
|
20007
|
+
*
|
|
20008
|
+
* @type {Array<PosOrderItemDto>}
|
|
20009
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20010
|
+
*/
|
|
20011
|
+
'items': Array<PosOrderItemDto>;
|
|
20012
|
+
/**
|
|
20013
|
+
*
|
|
20014
|
+
* @type {Array<PosDiscountDto>}
|
|
20015
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20016
|
+
*/
|
|
20017
|
+
'discounts': Array<PosDiscountDto>;
|
|
20018
|
+
/**
|
|
20019
|
+
*
|
|
20020
|
+
* @type {PosCustomerDto}
|
|
20021
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20022
|
+
*/
|
|
20023
|
+
'customer': PosCustomerDto | null;
|
|
20024
|
+
/**
|
|
20025
|
+
*
|
|
20026
|
+
* @type {Array<TransactionDto>}
|
|
20027
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20028
|
+
*/
|
|
20029
|
+
'paymentEvents': Array<TransactionDto>;
|
|
20030
|
+
/**
|
|
20031
|
+
*
|
|
20032
|
+
* @type {Array<PaymentRefundDto>}
|
|
20033
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20034
|
+
*/
|
|
20035
|
+
'refunds'?: Array<PaymentRefundDto>;
|
|
20036
|
+
/**
|
|
20037
|
+
* Data version code
|
|
20038
|
+
* @type {string}
|
|
20039
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20040
|
+
*/
|
|
20041
|
+
'version': string;
|
|
20042
|
+
/**
|
|
20043
|
+
*
|
|
20044
|
+
* @type {OrderFormat}
|
|
20045
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20046
|
+
*/
|
|
20047
|
+
'orderFormat'?: OrderFormat;
|
|
20048
|
+
/**
|
|
20049
|
+
* The ID of the loyalty program active during this order.
|
|
20050
|
+
* @type {string}
|
|
20051
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20052
|
+
*/
|
|
20053
|
+
'loyaltyProgramId': string | null;
|
|
20054
|
+
/**
|
|
20055
|
+
* An array of loyalty transaction IDs related to this order.
|
|
20056
|
+
* @type {Array<string>}
|
|
20057
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20058
|
+
*/
|
|
20059
|
+
'loyaltyTransactionIds': Array<string>;
|
|
20060
|
+
/**
|
|
20061
|
+
*
|
|
20062
|
+
* @type {PosOrderDtoTaxSummary}
|
|
20063
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20064
|
+
*/
|
|
20065
|
+
'taxSummary'?: PosOrderDtoTaxSummary;
|
|
20066
|
+
/**
|
|
20067
|
+
* Name of staff member who created the order
|
|
20068
|
+
* @type {string}
|
|
20069
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20070
|
+
*/
|
|
20071
|
+
'staffName'?: string | null;
|
|
20072
|
+
/**
|
|
20073
|
+
*
|
|
20074
|
+
* @type {PosOrderDtoInvoiceCompany}
|
|
20075
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20076
|
+
*/
|
|
20077
|
+
'invoiceCompany'?: PosOrderDtoInvoiceCompany | null;
|
|
20078
|
+
/**
|
|
20079
|
+
*
|
|
20080
|
+
* @type {object}
|
|
20081
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20082
|
+
*/
|
|
20083
|
+
'lastPaymentError'?: object;
|
|
20084
|
+
/**
|
|
20085
|
+
*
|
|
20086
|
+
* @type {Array<OrderFeeDto>}
|
|
20087
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20088
|
+
*/
|
|
20089
|
+
'fees'?: Array<OrderFeeDto> | null;
|
|
20090
|
+
/**
|
|
20091
|
+
* Loyalty user ID associated with this order
|
|
20092
|
+
* @type {number}
|
|
20093
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20094
|
+
*/
|
|
20095
|
+
'targetUserId'?: number;
|
|
20096
|
+
/**
|
|
20097
|
+
* ID of the table group this order belongs to
|
|
20098
|
+
* @type {string}
|
|
20099
|
+
* @memberof SyncPosOrderDtoOrder
|
|
20100
|
+
*/
|
|
20101
|
+
'tableGroupId'?: string | null;
|
|
20102
|
+
}
|
|
20103
|
+
|
|
20104
|
+
|
|
20105
|
+
/**
|
|
20106
|
+
* POS order actions to run in the background after persist (same shape as /pos/actions). Omit to only sync the order.
|
|
20107
|
+
* @export
|
|
20108
|
+
* @interface SyncPosOrderDtoWorkflow
|
|
20109
|
+
*/
|
|
20110
|
+
export interface SyncPosOrderDtoWorkflow {
|
|
20111
|
+
/**
|
|
20112
|
+
* Array of actions to process
|
|
20113
|
+
* @type {Array<ActionsEnum>}
|
|
20114
|
+
* @memberof SyncPosOrderDtoWorkflow
|
|
20115
|
+
*/
|
|
20116
|
+
'actions': Array<ActionsEnum>;
|
|
20117
|
+
/**
|
|
20118
|
+
*
|
|
20119
|
+
* @type {ProcessOrderActionsDtoData}
|
|
20120
|
+
* @memberof SyncPosOrderDtoWorkflow
|
|
20121
|
+
*/
|
|
20122
|
+
'data': ProcessOrderActionsDtoData;
|
|
20123
|
+
}
|
|
20124
|
+
/**
|
|
20125
|
+
*
|
|
20126
|
+
* @export
|
|
20127
|
+
* @interface SyncPosOrderResponseDto
|
|
20128
|
+
*/
|
|
20129
|
+
export interface SyncPosOrderResponseDto {
|
|
20130
|
+
/**
|
|
20131
|
+
* Whether the order snapshot was persisted.
|
|
20132
|
+
* @type {boolean}
|
|
20133
|
+
* @memberof SyncPosOrderResponseDto
|
|
20134
|
+
*/
|
|
20135
|
+
'synced': boolean;
|
|
20136
|
+
/**
|
|
20137
|
+
* Id of the synced order.
|
|
20138
|
+
* @type {string}
|
|
20139
|
+
* @memberof SyncPosOrderResponseDto
|
|
20140
|
+
*/
|
|
20141
|
+
'orderId': string;
|
|
20142
|
+
/**
|
|
20143
|
+
* Enqueued order-actions job id, or null when no workflow was provided.
|
|
20144
|
+
* @type {string}
|
|
20145
|
+
* @memberof SyncPosOrderResponseDto
|
|
20146
|
+
*/
|
|
20147
|
+
'jobId': string | null;
|
|
20148
|
+
}
|
|
19721
20149
|
/**
|
|
19722
20150
|
*
|
|
19723
20151
|
* @export
|
|
@@ -37643,6 +38071,42 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
37643
38071
|
options: localVarRequestOptions,
|
|
37644
38072
|
};
|
|
37645
38073
|
},
|
|
38074
|
+
/**
|
|
38075
|
+
*
|
|
38076
|
+
* @summary Sync a POS order and enqueue background order actions
|
|
38077
|
+
* @param {SyncPosOrderDto} syncPosOrderDto
|
|
38078
|
+
* @param {*} [options] Override http request option.
|
|
38079
|
+
* @throws {RequiredError}
|
|
38080
|
+
*/
|
|
38081
|
+
syncPosOrder: async (syncPosOrderDto: SyncPosOrderDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38082
|
+
// verify required parameter 'syncPosOrderDto' is not null or undefined
|
|
38083
|
+
assertParamExists('syncPosOrder', 'syncPosOrderDto', syncPosOrderDto)
|
|
38084
|
+
const localVarPath = `/api/v1/orders/pos/sync`;
|
|
38085
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38086
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38087
|
+
let baseOptions;
|
|
38088
|
+
if (configuration) {
|
|
38089
|
+
baseOptions = configuration.baseOptions;
|
|
38090
|
+
}
|
|
38091
|
+
|
|
38092
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
38093
|
+
const localVarHeaderParameter = {} as any;
|
|
38094
|
+
const localVarQueryParameter = {} as any;
|
|
38095
|
+
|
|
38096
|
+
|
|
38097
|
+
|
|
38098
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
38099
|
+
|
|
38100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38102
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38103
|
+
localVarRequestOptions.data = serializeDataIfNeeded(syncPosOrderDto, localVarRequestOptions, configuration)
|
|
38104
|
+
|
|
38105
|
+
return {
|
|
38106
|
+
url: toPathString(localVarUrlObj),
|
|
38107
|
+
options: localVarRequestOptions,
|
|
38108
|
+
};
|
|
38109
|
+
},
|
|
37646
38110
|
/**
|
|
37647
38111
|
*
|
|
37648
38112
|
* @summary Update a POS order status
|
|
@@ -37824,6 +38288,17 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
37824
38288
|
const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOrder(rejectOrderDto, options);
|
|
37825
38289
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37826
38290
|
},
|
|
38291
|
+
/**
|
|
38292
|
+
*
|
|
38293
|
+
* @summary Sync a POS order and enqueue background order actions
|
|
38294
|
+
* @param {SyncPosOrderDto} syncPosOrderDto
|
|
38295
|
+
* @param {*} [options] Override http request option.
|
|
38296
|
+
* @throws {RequiredError}
|
|
38297
|
+
*/
|
|
38298
|
+
async syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncPosOrderResponseDto>> {
|
|
38299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.syncPosOrder(syncPosOrderDto, options);
|
|
38300
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38301
|
+
},
|
|
37827
38302
|
/**
|
|
37828
38303
|
*
|
|
37829
38304
|
* @summary Update a POS order status
|
|
@@ -37968,6 +38443,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
37968
38443
|
rejectOrder(rejectOrderDto: RejectOrderDto, options?: any): AxiosPromise<OrderStatusResponseDto> {
|
|
37969
38444
|
return localVarFp.rejectOrder(rejectOrderDto, options).then((request) => request(axios, basePath));
|
|
37970
38445
|
},
|
|
38446
|
+
/**
|
|
38447
|
+
*
|
|
38448
|
+
* @summary Sync a POS order and enqueue background order actions
|
|
38449
|
+
* @param {SyncPosOrderDto} syncPosOrderDto
|
|
38450
|
+
* @param {*} [options] Override http request option.
|
|
38451
|
+
* @throws {RequiredError}
|
|
38452
|
+
*/
|
|
38453
|
+
syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: any): AxiosPromise<SyncPosOrderResponseDto> {
|
|
38454
|
+
return localVarFp.syncPosOrder(syncPosOrderDto, options).then((request) => request(axios, basePath));
|
|
38455
|
+
},
|
|
37971
38456
|
/**
|
|
37972
38457
|
*
|
|
37973
38458
|
* @summary Update a POS order status
|
|
@@ -38110,6 +38595,16 @@ export interface OrdersApiInterface {
|
|
|
38110
38595
|
*/
|
|
38111
38596
|
rejectOrder(rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
|
|
38112
38597
|
|
|
38598
|
+
/**
|
|
38599
|
+
*
|
|
38600
|
+
* @summary Sync a POS order and enqueue background order actions
|
|
38601
|
+
* @param {SyncPosOrderDto} syncPosOrderDto
|
|
38602
|
+
* @param {*} [options] Override http request option.
|
|
38603
|
+
* @throws {RequiredError}
|
|
38604
|
+
* @memberof OrdersApiInterface
|
|
38605
|
+
*/
|
|
38606
|
+
syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig): AxiosPromise<SyncPosOrderResponseDto>;
|
|
38607
|
+
|
|
38113
38608
|
/**
|
|
38114
38609
|
*
|
|
38115
38610
|
* @summary Update a POS order status
|
|
@@ -38276,6 +38771,18 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
|
|
|
38276
38771
|
return OrdersApiFp(this.configuration).rejectOrder(rejectOrderDto, options).then((request) => request(this.axios, this.basePath));
|
|
38277
38772
|
}
|
|
38278
38773
|
|
|
38774
|
+
/**
|
|
38775
|
+
*
|
|
38776
|
+
* @summary Sync a POS order and enqueue background order actions
|
|
38777
|
+
* @param {SyncPosOrderDto} syncPosOrderDto
|
|
38778
|
+
* @param {*} [options] Override http request option.
|
|
38779
|
+
* @throws {RequiredError}
|
|
38780
|
+
* @memberof OrdersApi
|
|
38781
|
+
*/
|
|
38782
|
+
public syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig) {
|
|
38783
|
+
return OrdersApiFp(this.configuration).syncPosOrder(syncPosOrderDto, options).then((request) => request(this.axios, this.basePath));
|
|
38784
|
+
}
|
|
38785
|
+
|
|
38279
38786
|
/**
|
|
38280
38787
|
*
|
|
38281
38788
|
* @summary Update a POS order status
|
|
@@ -40371,15 +40878,15 @@ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInter
|
|
|
40371
40878
|
export const PaymentSessionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40372
40879
|
return {
|
|
40373
40880
|
/**
|
|
40374
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
40375
|
-
* @summary Cancel an in-flight
|
|
40881
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
40882
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
40376
40883
|
* @param {string} clientToken
|
|
40377
40884
|
* @param {*} [options] Override http request option.
|
|
40378
40885
|
* @throws {RequiredError}
|
|
40379
40886
|
*/
|
|
40380
|
-
|
|
40887
|
+
cancelSession: async (clientToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40381
40888
|
// verify required parameter 'clientToken' is not null or undefined
|
|
40382
|
-
assertParamExists('
|
|
40889
|
+
assertParamExists('cancelSession', 'clientToken', clientToken)
|
|
40383
40890
|
const localVarPath = `/api/v1/payment-session/{clientToken}/cancel`
|
|
40384
40891
|
.replace(`{${"clientToken"}}`, encodeURIComponent(String(clientToken)));
|
|
40385
40892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -40438,6 +40945,47 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40438
40945
|
options: localVarRequestOptions,
|
|
40439
40946
|
};
|
|
40440
40947
|
},
|
|
40948
|
+
/**
|
|
40949
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
40950
|
+
* @summary Initiate a Nets terminal payment session
|
|
40951
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
40952
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
40953
|
+
* @param {*} [options] Override http request option.
|
|
40954
|
+
* @throws {RequiredError}
|
|
40955
|
+
*/
|
|
40956
|
+
initiateNetsSession: async (initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40957
|
+
// verify required parameter 'initiateNetsSessionDto' is not null or undefined
|
|
40958
|
+
assertParamExists('initiateNetsSession', 'initiateNetsSessionDto', initiateNetsSessionDto)
|
|
40959
|
+
const localVarPath = `/api/v1/payment-session/nets/initiate`;
|
|
40960
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40961
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40962
|
+
let baseOptions;
|
|
40963
|
+
if (configuration) {
|
|
40964
|
+
baseOptions = configuration.baseOptions;
|
|
40965
|
+
}
|
|
40966
|
+
|
|
40967
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40968
|
+
const localVarHeaderParameter = {} as any;
|
|
40969
|
+
const localVarQueryParameter = {} as any;
|
|
40970
|
+
|
|
40971
|
+
if (xIdempotencyKey != null) {
|
|
40972
|
+
localVarHeaderParameter['X-Idempotency-Key'] = String(xIdempotencyKey);
|
|
40973
|
+
}
|
|
40974
|
+
|
|
40975
|
+
|
|
40976
|
+
|
|
40977
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40978
|
+
|
|
40979
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40980
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40981
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40982
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateNetsSessionDto, localVarRequestOptions, configuration)
|
|
40983
|
+
|
|
40984
|
+
return {
|
|
40985
|
+
url: toPathString(localVarUrlObj),
|
|
40986
|
+
options: localVarRequestOptions,
|
|
40987
|
+
};
|
|
40988
|
+
},
|
|
40441
40989
|
/**
|
|
40442
40990
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
40443
40991
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -40587,6 +41135,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40587
41135
|
options: localVarRequestOptions,
|
|
40588
41136
|
};
|
|
40589
41137
|
},
|
|
41138
|
+
/**
|
|
41139
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41140
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41141
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41142
|
+
* @param {*} [options] Override http request option.
|
|
41143
|
+
* @throws {RequiredError}
|
|
41144
|
+
*/
|
|
41145
|
+
refundNetsSession: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41146
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
41147
|
+
assertParamExists('refundNetsSession', 'reverseSessionDto', reverseSessionDto)
|
|
41148
|
+
const localVarPath = `/api/v1/payment-session/nets/refund`;
|
|
41149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41151
|
+
let baseOptions;
|
|
41152
|
+
if (configuration) {
|
|
41153
|
+
baseOptions = configuration.baseOptions;
|
|
41154
|
+
}
|
|
41155
|
+
|
|
41156
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41157
|
+
const localVarHeaderParameter = {} as any;
|
|
41158
|
+
const localVarQueryParameter = {} as any;
|
|
41159
|
+
|
|
41160
|
+
|
|
41161
|
+
|
|
41162
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41163
|
+
|
|
41164
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41166
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41167
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
41168
|
+
|
|
41169
|
+
return {
|
|
41170
|
+
url: toPathString(localVarUrlObj),
|
|
41171
|
+
options: localVarRequestOptions,
|
|
41172
|
+
};
|
|
41173
|
+
},
|
|
40590
41174
|
/**
|
|
40591
41175
|
* 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.
|
|
40592
41176
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -40611,6 +41195,42 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40611
41195
|
|
|
40612
41196
|
|
|
40613
41197
|
|
|
41198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41199
|
+
|
|
41200
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41202
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41203
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reverseSessionDto, localVarRequestOptions, configuration)
|
|
41204
|
+
|
|
41205
|
+
return {
|
|
41206
|
+
url: toPathString(localVarUrlObj),
|
|
41207
|
+
options: localVarRequestOptions,
|
|
41208
|
+
};
|
|
41209
|
+
},
|
|
41210
|
+
/**
|
|
41211
|
+
* 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.
|
|
41212
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41213
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41214
|
+
* @param {*} [options] Override http request option.
|
|
41215
|
+
* @throws {RequiredError}
|
|
41216
|
+
*/
|
|
41217
|
+
revertNetsSession: async (reverseSessionDto: ReverseSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41218
|
+
// verify required parameter 'reverseSessionDto' is not null or undefined
|
|
41219
|
+
assertParamExists('revertNetsSession', 'reverseSessionDto', reverseSessionDto)
|
|
41220
|
+
const localVarPath = `/api/v1/payment-session/nets/revert`;
|
|
41221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41223
|
+
let baseOptions;
|
|
41224
|
+
if (configuration) {
|
|
41225
|
+
baseOptions = configuration.baseOptions;
|
|
41226
|
+
}
|
|
41227
|
+
|
|
41228
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41229
|
+
const localVarHeaderParameter = {} as any;
|
|
41230
|
+
const localVarQueryParameter = {} as any;
|
|
41231
|
+
|
|
41232
|
+
|
|
41233
|
+
|
|
40614
41234
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40615
41235
|
|
|
40616
41236
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -40706,14 +41326,14 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
40706
41326
|
const localVarAxiosParamCreator = PaymentSessionApiAxiosParamCreator(configuration)
|
|
40707
41327
|
return {
|
|
40708
41328
|
/**
|
|
40709
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
40710
|
-
* @summary Cancel an in-flight
|
|
41329
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41330
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
40711
41331
|
* @param {string} clientToken
|
|
40712
41332
|
* @param {*} [options] Override http request option.
|
|
40713
41333
|
* @throws {RequiredError}
|
|
40714
41334
|
*/
|
|
40715
|
-
async
|
|
40716
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
41335
|
+
async cancelSession(clientToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
41336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSession(clientToken, options);
|
|
40717
41337
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40718
41338
|
},
|
|
40719
41339
|
/**
|
|
@@ -40727,6 +41347,18 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
40727
41347
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentSession(clientToken, options);
|
|
40728
41348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40729
41349
|
},
|
|
41350
|
+
/**
|
|
41351
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41352
|
+
* @summary Initiate a Nets terminal payment session
|
|
41353
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41354
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41355
|
+
* @param {*} [options] Override http request option.
|
|
41356
|
+
* @throws {RequiredError}
|
|
41357
|
+
*/
|
|
41358
|
+
async initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateNetsSessionResponseDto>> {
|
|
41359
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateNetsSession(initiateNetsSessionDto, xIdempotencyKey, options);
|
|
41360
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41361
|
+
},
|
|
40730
41362
|
/**
|
|
40731
41363
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
40732
41364
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -40772,6 +41404,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
40772
41404
|
const localVarAxiosArgs = await localVarAxiosParamCreator.recordManualPayment(createManualSessionDto, options);
|
|
40773
41405
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40774
41406
|
},
|
|
41407
|
+
/**
|
|
41408
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41409
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41410
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41411
|
+
* @param {*} [options] Override http request option.
|
|
41412
|
+
* @throws {RequiredError}
|
|
41413
|
+
*/
|
|
41414
|
+
async refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>> {
|
|
41415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refundNetsSession(reverseSessionDto, options);
|
|
41416
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41417
|
+
},
|
|
40775
41418
|
/**
|
|
40776
41419
|
* 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.
|
|
40777
41420
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -40783,6 +41426,17 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
|
|
|
40783
41426
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaSession(reverseSessionDto, options);
|
|
40784
41427
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40785
41428
|
},
|
|
41429
|
+
/**
|
|
41430
|
+
* 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.
|
|
41431
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41432
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41433
|
+
* @param {*} [options] Override http request option.
|
|
41434
|
+
* @throws {RequiredError}
|
|
41435
|
+
*/
|
|
41436
|
+
async revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NetsRevertResponseDto>> {
|
|
41437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revertNetsSession(reverseSessionDto, options);
|
|
41438
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41439
|
+
},
|
|
40786
41440
|
/**
|
|
40787
41441
|
* 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.
|
|
40788
41442
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -40816,14 +41470,14 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
40816
41470
|
const localVarFp = PaymentSessionApiFp(configuration)
|
|
40817
41471
|
return {
|
|
40818
41472
|
/**
|
|
40819
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
40820
|
-
* @summary Cancel an in-flight
|
|
41473
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41474
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
40821
41475
|
* @param {string} clientToken
|
|
40822
41476
|
* @param {*} [options] Override http request option.
|
|
40823
41477
|
* @throws {RequiredError}
|
|
40824
41478
|
*/
|
|
40825
|
-
|
|
40826
|
-
return localVarFp.
|
|
41479
|
+
cancelSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
41480
|
+
return localVarFp.cancelSession(clientToken, options).then((request) => request(axios, basePath));
|
|
40827
41481
|
},
|
|
40828
41482
|
/**
|
|
40829
41483
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
@@ -40835,6 +41489,17 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
40835
41489
|
getPaymentSession(clientToken: string, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
40836
41490
|
return localVarFp.getPaymentSession(clientToken, options).then((request) => request(axios, basePath));
|
|
40837
41491
|
},
|
|
41492
|
+
/**
|
|
41493
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41494
|
+
* @summary Initiate a Nets terminal payment session
|
|
41495
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41496
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41497
|
+
* @param {*} [options] Override http request option.
|
|
41498
|
+
* @throws {RequiredError}
|
|
41499
|
+
*/
|
|
41500
|
+
initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateNetsSessionResponseDto> {
|
|
41501
|
+
return localVarFp.initiateNetsSession(initiateNetsSessionDto, xIdempotencyKey, options).then((request) => request(axios, basePath));
|
|
41502
|
+
},
|
|
40838
41503
|
/**
|
|
40839
41504
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
40840
41505
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -40876,6 +41541,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
40876
41541
|
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<RecordManualPaymentResultDto> {
|
|
40877
41542
|
return localVarFp.recordManualPayment(createManualSessionDto, options).then((request) => request(axios, basePath));
|
|
40878
41543
|
},
|
|
41544
|
+
/**
|
|
41545
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41546
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41547
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41548
|
+
* @param {*} [options] Override http request option.
|
|
41549
|
+
* @throws {RequiredError}
|
|
41550
|
+
*/
|
|
41551
|
+
refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
41552
|
+
return localVarFp.refundNetsSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
41553
|
+
},
|
|
40879
41554
|
/**
|
|
40880
41555
|
* 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.
|
|
40881
41556
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -40886,6 +41561,16 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
40886
41561
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto> {
|
|
40887
41562
|
return localVarFp.refundVivaSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
40888
41563
|
},
|
|
41564
|
+
/**
|
|
41565
|
+
* 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.
|
|
41566
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41567
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41568
|
+
* @param {*} [options] Override http request option.
|
|
41569
|
+
* @throws {RequiredError}
|
|
41570
|
+
*/
|
|
41571
|
+
revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<NetsRevertResponseDto> {
|
|
41572
|
+
return localVarFp.revertNetsSession(reverseSessionDto, options).then((request) => request(axios, basePath));
|
|
41573
|
+
},
|
|
40889
41574
|
/**
|
|
40890
41575
|
* 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.
|
|
40891
41576
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -40916,14 +41601,14 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
|
|
|
40916
41601
|
*/
|
|
40917
41602
|
export interface PaymentSessionApiInterface {
|
|
40918
41603
|
/**
|
|
40919
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
40920
|
-
* @summary Cancel an in-flight
|
|
41604
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41605
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
40921
41606
|
* @param {string} clientToken
|
|
40922
41607
|
* @param {*} [options] Override http request option.
|
|
40923
41608
|
* @throws {RequiredError}
|
|
40924
41609
|
* @memberof PaymentSessionApiInterface
|
|
40925
41610
|
*/
|
|
40926
|
-
|
|
41611
|
+
cancelSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
40927
41612
|
|
|
40928
41613
|
/**
|
|
40929
41614
|
* Reads PaymentSession from Postgres. Use this to poll session lifecycle without hitting the Viva API.
|
|
@@ -40935,6 +41620,17 @@ export interface PaymentSessionApiInterface {
|
|
|
40935
41620
|
*/
|
|
40936
41621
|
getPaymentSession(clientToken: string, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
40937
41622
|
|
|
41623
|
+
/**
|
|
41624
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41625
|
+
* @summary Initiate a Nets terminal payment session
|
|
41626
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41627
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41628
|
+
* @param {*} [options] Override http request option.
|
|
41629
|
+
* @throws {RequiredError}
|
|
41630
|
+
* @memberof PaymentSessionApiInterface
|
|
41631
|
+
*/
|
|
41632
|
+
initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateNetsSessionResponseDto>;
|
|
41633
|
+
|
|
40938
41634
|
/**
|
|
40939
41635
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
40940
41636
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -40976,6 +41672,16 @@ export interface PaymentSessionApiInterface {
|
|
|
40976
41672
|
*/
|
|
40977
41673
|
recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<RecordManualPaymentResultDto>;
|
|
40978
41674
|
|
|
41675
|
+
/**
|
|
41676
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41677
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41678
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41679
|
+
* @param {*} [options] Override http request option.
|
|
41680
|
+
* @throws {RequiredError}
|
|
41681
|
+
* @memberof PaymentSessionApiInterface
|
|
41682
|
+
*/
|
|
41683
|
+
refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
41684
|
+
|
|
40979
41685
|
/**
|
|
40980
41686
|
* 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.
|
|
40981
41687
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -40986,6 +41692,16 @@ export interface PaymentSessionApiInterface {
|
|
|
40986
41692
|
*/
|
|
40987
41693
|
refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
|
|
40988
41694
|
|
|
41695
|
+
/**
|
|
41696
|
+
* 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.
|
|
41697
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41698
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41699
|
+
* @param {*} [options] Override http request option.
|
|
41700
|
+
* @throws {RequiredError}
|
|
41701
|
+
* @memberof PaymentSessionApiInterface
|
|
41702
|
+
*/
|
|
41703
|
+
revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<NetsRevertResponseDto>;
|
|
41704
|
+
|
|
40989
41705
|
/**
|
|
40990
41706
|
* 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.
|
|
40991
41707
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -41016,15 +41732,15 @@ export interface PaymentSessionApiInterface {
|
|
|
41016
41732
|
*/
|
|
41017
41733
|
export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInterface {
|
|
41018
41734
|
/**
|
|
41019
|
-
* Arms cancelRequestedAt + aborts the Viva terminal session. Does not flip status — the webhook/sweep resolves the real outcome
|
|
41020
|
-
* @summary Cancel an in-flight
|
|
41735
|
+
* Arms cancelRequestedAt + aborts at the gateway (Viva session abort / Nets terminal cancelAction, dispatched on the session\'s provider). Does not flip status — the webhook/sweep resolves the real outcome; a late success parks at VOID_PENDING with a dev alert. Card sessions only.
|
|
41736
|
+
* @summary Cancel an in-flight card payment session (Viva or Nets)
|
|
41021
41737
|
* @param {string} clientToken
|
|
41022
41738
|
* @param {*} [options] Override http request option.
|
|
41023
41739
|
* @throws {RequiredError}
|
|
41024
41740
|
* @memberof PaymentSessionApi
|
|
41025
41741
|
*/
|
|
41026
|
-
public
|
|
41027
|
-
return PaymentSessionApiFp(this.configuration).
|
|
41742
|
+
public cancelSession(clientToken: string, options?: AxiosRequestConfig) {
|
|
41743
|
+
return PaymentSessionApiFp(this.configuration).cancelSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
41028
41744
|
}
|
|
41029
41745
|
|
|
41030
41746
|
/**
|
|
@@ -41039,6 +41755,19 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41039
41755
|
return PaymentSessionApiFp(this.configuration).getPaymentSession(clientToken, options).then((request) => request(this.axios, this.basePath));
|
|
41040
41756
|
}
|
|
41041
41757
|
|
|
41758
|
+
/**
|
|
41759
|
+
* Creates a PaymentSession row, pushes the transaction to the station\'s Nets terminal (async — the result arrives via the Nets webhook), returns a client-facing token to poll. Idempotent via X-Idempotency-Key header.
|
|
41760
|
+
* @summary Initiate a Nets terminal payment session
|
|
41761
|
+
* @param {InitiateNetsSessionDto} initiateNetsSessionDto
|
|
41762
|
+
* @param {string} [xIdempotencyKey] Client-generated UUID. If a session already exists for this key, the existing session is returned.
|
|
41763
|
+
* @param {*} [options] Override http request option.
|
|
41764
|
+
* @throws {RequiredError}
|
|
41765
|
+
* @memberof PaymentSessionApi
|
|
41766
|
+
*/
|
|
41767
|
+
public initiateNetsSession(initiateNetsSessionDto: InitiateNetsSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) {
|
|
41768
|
+
return PaymentSessionApiFp(this.configuration).initiateNetsSession(initiateNetsSessionDto, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
41769
|
+
}
|
|
41770
|
+
|
|
41042
41771
|
/**
|
|
41043
41772
|
* Builds the Viva app-to-app launch params (same as the legacy viva/a2a/create-payment) and persists a PaymentSession keyed by the Viva clientTransactionId, so the webhook + reconciliation own the order mutation. Returns the launch params plus a clientToken to poll the session.
|
|
41044
41773
|
* @summary Initiate a Viva app-to-app payment session
|
|
@@ -41088,6 +41817,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41088
41817
|
return PaymentSessionApiFp(this.configuration).recordManualPayment(createManualSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41089
41818
|
}
|
|
41090
41819
|
|
|
41820
|
+
/**
|
|
41821
|
+
* Starts a terminal-present ReturnOfGoods on the station\'s Nets terminal for the given sessionId, refunding the payload `amount` (defaults to the full session amount). Returns a PENDING refund session (status INITIATED) — the customer must tap their card; poll GET /:clientToken until REFUNDED/FAILED/CANCELLED. Does NOT write a reversal paymentEvent to the order.
|
|
41822
|
+
* @summary Refund a settled Nets payment session (gateway only, async)
|
|
41823
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41824
|
+
* @param {*} [options] Override http request option.
|
|
41825
|
+
* @throws {RequiredError}
|
|
41826
|
+
* @memberof PaymentSessionApi
|
|
41827
|
+
*/
|
|
41828
|
+
public refundNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
41829
|
+
return PaymentSessionApiFp(this.configuration).refundNetsSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41830
|
+
}
|
|
41831
|
+
|
|
41091
41832
|
/**
|
|
41092
41833
|
* 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.
|
|
41093
41834
|
* @summary Refund a settled Viva payment session (gateway only)
|
|
@@ -41100,6 +41841,18 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
|
|
|
41100
41841
|
return PaymentSessionApiFp(this.configuration).refundVivaSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41101
41842
|
}
|
|
41102
41843
|
|
|
41844
|
+
/**
|
|
41845
|
+
* 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.
|
|
41846
|
+
* @summary Revert (fully reverse) a settled Nets payment session (async)
|
|
41847
|
+
* @param {ReverseSessionDto} reverseSessionDto
|
|
41848
|
+
* @param {*} [options] Override http request option.
|
|
41849
|
+
* @throws {RequiredError}
|
|
41850
|
+
* @memberof PaymentSessionApi
|
|
41851
|
+
*/
|
|
41852
|
+
public revertNetsSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) {
|
|
41853
|
+
return PaymentSessionApiFp(this.configuration).revertNetsSession(reverseSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
41854
|
+
}
|
|
41855
|
+
|
|
41103
41856
|
/**
|
|
41104
41857
|
* 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.
|
|
41105
41858
|
* @summary Revert (fully reverse) a settled Viva payment session
|
|
@@ -46268,6 +47021,36 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46268
47021
|
|
|
46269
47022
|
|
|
46270
47023
|
|
|
47024
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47025
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47026
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
47027
|
+
|
|
47028
|
+
return {
|
|
47029
|
+
url: toPathString(localVarUrlObj),
|
|
47030
|
+
options: localVarRequestOptions,
|
|
47031
|
+
};
|
|
47032
|
+
},
|
|
47033
|
+
/**
|
|
47034
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47035
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47036
|
+
* @param {*} [options] Override http request option.
|
|
47037
|
+
* @throws {RequiredError}
|
|
47038
|
+
*/
|
|
47039
|
+
handleNetsSessionEvents: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47040
|
+
const localVarPath = `/api/webhook/nets/payments`;
|
|
47041
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47042
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47043
|
+
let baseOptions;
|
|
47044
|
+
if (configuration) {
|
|
47045
|
+
baseOptions = configuration.baseOptions;
|
|
47046
|
+
}
|
|
47047
|
+
|
|
47048
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
47049
|
+
const localVarHeaderParameter = {} as any;
|
|
47050
|
+
const localVarQueryParameter = {} as any;
|
|
47051
|
+
|
|
47052
|
+
|
|
47053
|
+
|
|
46271
47054
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46272
47055
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46273
47056
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -46408,7 +47191,7 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46408
47191
|
};
|
|
46409
47192
|
},
|
|
46410
47193
|
/**
|
|
46411
|
-
*
|
|
47194
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
46412
47195
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
46413
47196
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
46414
47197
|
* @param {*} [options] Override http request option.
|
|
@@ -46563,6 +47346,42 @@ export const WebhookApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
46563
47346
|
options: localVarRequestOptions,
|
|
46564
47347
|
};
|
|
46565
47348
|
},
|
|
47349
|
+
/**
|
|
47350
|
+
*
|
|
47351
|
+
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
47352
|
+
* @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
|
|
47353
|
+
* @param {*} [options] Override http request option.
|
|
47354
|
+
* @throws {RequiredError}
|
|
47355
|
+
*/
|
|
47356
|
+
processPosOrderActionsQueue: async (processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47357
|
+
// verify required parameter 'processPosOrderActionsQueueDto' is not null or undefined
|
|
47358
|
+
assertParamExists('processPosOrderActionsQueue', 'processPosOrderActionsQueueDto', processPosOrderActionsQueueDto)
|
|
47359
|
+
const localVarPath = `/api/webhook/pos/order-actions/process`;
|
|
47360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47361
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47362
|
+
let baseOptions;
|
|
47363
|
+
if (configuration) {
|
|
47364
|
+
baseOptions = configuration.baseOptions;
|
|
47365
|
+
}
|
|
47366
|
+
|
|
47367
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
47368
|
+
const localVarHeaderParameter = {} as any;
|
|
47369
|
+
const localVarQueryParameter = {} as any;
|
|
47370
|
+
|
|
47371
|
+
|
|
47372
|
+
|
|
47373
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
47374
|
+
|
|
47375
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47377
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
47378
|
+
localVarRequestOptions.data = serializeDataIfNeeded(processPosOrderActionsQueueDto, localVarRequestOptions, configuration)
|
|
47379
|
+
|
|
47380
|
+
return {
|
|
47381
|
+
url: toPathString(localVarUrlObj),
|
|
47382
|
+
options: localVarRequestOptions,
|
|
47383
|
+
};
|
|
47384
|
+
},
|
|
46566
47385
|
/**
|
|
46567
47386
|
*
|
|
46568
47387
|
* @param {*} [options] Override http request option.
|
|
@@ -46717,6 +47536,16 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
46717
47536
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleNetsEventsV2(options);
|
|
46718
47537
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46719
47538
|
},
|
|
47539
|
+
/**
|
|
47540
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47541
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47542
|
+
* @param {*} [options] Override http request option.
|
|
47543
|
+
* @throws {RequiredError}
|
|
47544
|
+
*/
|
|
47545
|
+
async handleNetsSessionEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
47546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleNetsSessionEvents(options);
|
|
47547
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47548
|
+
},
|
|
46720
47549
|
/**
|
|
46721
47550
|
*
|
|
46722
47551
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -46758,7 +47587,7 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
46758
47587
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46759
47588
|
},
|
|
46760
47589
|
/**
|
|
46761
|
-
*
|
|
47590
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
46762
47591
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
46763
47592
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
46764
47593
|
* @param {*} [options] Override http request option.
|
|
@@ -46805,6 +47634,17 @@ export const WebhookApiFp = function(configuration?: Configuration) {
|
|
|
46805
47634
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleWorldlineEvents(options);
|
|
46806
47635
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46807
47636
|
},
|
|
47637
|
+
/**
|
|
47638
|
+
*
|
|
47639
|
+
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
47640
|
+
* @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
|
|
47641
|
+
* @param {*} [options] Override http request option.
|
|
47642
|
+
* @throws {RequiredError}
|
|
47643
|
+
*/
|
|
47644
|
+
async processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
47645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.processPosOrderActionsQueue(processPosOrderActionsQueueDto, options);
|
|
47646
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47647
|
+
},
|
|
46808
47648
|
/**
|
|
46809
47649
|
*
|
|
46810
47650
|
* @param {*} [options] Override http request option.
|
|
@@ -46893,6 +47733,15 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
46893
47733
|
handleNetsEventsV2(options?: any): AxiosPromise<void> {
|
|
46894
47734
|
return localVarFp.handleNetsEventsV2(options).then((request) => request(axios, basePath));
|
|
46895
47735
|
},
|
|
47736
|
+
/**
|
|
47737
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47738
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47739
|
+
* @param {*} [options] Override http request option.
|
|
47740
|
+
* @throws {RequiredError}
|
|
47741
|
+
*/
|
|
47742
|
+
handleNetsSessionEvents(options?: any): AxiosPromise<void> {
|
|
47743
|
+
return localVarFp.handleNetsSessionEvents(options).then((request) => request(axios, basePath));
|
|
47744
|
+
},
|
|
46896
47745
|
/**
|
|
46897
47746
|
*
|
|
46898
47747
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -46930,7 +47779,7 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
46930
47779
|
return localVarFp.handleVivaEvents(vivaWebhookPayloadDto, options).then((request) => request(axios, basePath));
|
|
46931
47780
|
},
|
|
46932
47781
|
/**
|
|
46933
|
-
*
|
|
47782
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
46934
47783
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
46935
47784
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
46936
47785
|
* @param {*} [options] Override http request option.
|
|
@@ -46972,6 +47821,16 @@ export const WebhookApiFactory = function (configuration?: Configuration, basePa
|
|
|
46972
47821
|
handleWorldlineEvents(options?: any): AxiosPromise<void> {
|
|
46973
47822
|
return localVarFp.handleWorldlineEvents(options).then((request) => request(axios, basePath));
|
|
46974
47823
|
},
|
|
47824
|
+
/**
|
|
47825
|
+
*
|
|
47826
|
+
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
47827
|
+
* @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
|
|
47828
|
+
* @param {*} [options] Override http request option.
|
|
47829
|
+
* @throws {RequiredError}
|
|
47830
|
+
*/
|
|
47831
|
+
processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: any): AxiosPromise<void> {
|
|
47832
|
+
return localVarFp.processPosOrderActionsQueue(processPosOrderActionsQueueDto, options).then((request) => request(axios, basePath));
|
|
47833
|
+
},
|
|
46975
47834
|
/**
|
|
46976
47835
|
*
|
|
46977
47836
|
* @param {*} [options] Override http request option.
|
|
@@ -47056,6 +47915,15 @@ export interface WebhookApiInterface {
|
|
|
47056
47915
|
*/
|
|
47057
47916
|
handleNetsEventsV2(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47058
47917
|
|
|
47918
|
+
/**
|
|
47919
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
47920
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
47921
|
+
* @param {*} [options] Override http request option.
|
|
47922
|
+
* @throws {RequiredError}
|
|
47923
|
+
* @memberof WebhookApiInterface
|
|
47924
|
+
*/
|
|
47925
|
+
handleNetsSessionEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47926
|
+
|
|
47059
47927
|
/**
|
|
47060
47928
|
*
|
|
47061
47929
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47093,7 +47961,7 @@ export interface WebhookApiInterface {
|
|
|
47093
47961
|
handleVivaEvents(vivaWebhookPayloadDto: VivaWebhookPayloadDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47094
47962
|
|
|
47095
47963
|
/**
|
|
47096
|
-
*
|
|
47964
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
47097
47965
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
47098
47966
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
47099
47967
|
* @param {*} [options] Override http request option.
|
|
@@ -47135,6 +48003,16 @@ export interface WebhookApiInterface {
|
|
|
47135
48003
|
*/
|
|
47136
48004
|
handleWorldlineEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
47137
48005
|
|
|
48006
|
+
/**
|
|
48007
|
+
*
|
|
48008
|
+
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
48009
|
+
* @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
|
|
48010
|
+
* @param {*} [options] Override http request option.
|
|
48011
|
+
* @throws {RequiredError}
|
|
48012
|
+
* @memberof WebhookApiInterface
|
|
48013
|
+
*/
|
|
48014
|
+
processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
48015
|
+
|
|
47138
48016
|
/**
|
|
47139
48017
|
*
|
|
47140
48018
|
* @param {*} [options] Override http request option.
|
|
@@ -47231,6 +48109,17 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47231
48109
|
return WebhookApiFp(this.configuration).handleNetsEventsV2(options).then((request) => request(this.axios, this.basePath));
|
|
47232
48110
|
}
|
|
47233
48111
|
|
|
48112
|
+
/**
|
|
48113
|
+
* Per-transaction callback registered at initiate (ConnectCloud-Webhook-Address). Finalizes the PaymentSession to SUCCESS/FAILED/CANCELLED and triggers order reconciliation. Legacy /nets and /v2/nets stay untouched.
|
|
48114
|
+
* @summary Handle Nets webhook events for the payment-session flow
|
|
48115
|
+
* @param {*} [options] Override http request option.
|
|
48116
|
+
* @throws {RequiredError}
|
|
48117
|
+
* @memberof WebhookApi
|
|
48118
|
+
*/
|
|
48119
|
+
public handleNetsSessionEvents(options?: AxiosRequestConfig) {
|
|
48120
|
+
return WebhookApiFp(this.configuration).handleNetsSessionEvents(options).then((request) => request(this.axios, this.basePath));
|
|
48121
|
+
}
|
|
48122
|
+
|
|
47234
48123
|
/**
|
|
47235
48124
|
*
|
|
47236
48125
|
* @summary Handle preorder reminder (triggered by scheduler)
|
|
@@ -47276,7 +48165,7 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47276
48165
|
}
|
|
47277
48166
|
|
|
47278
48167
|
/**
|
|
47279
|
-
*
|
|
48168
|
+
* Shared dispatcher: session-backed Viva events -> PaymentSession update + reconciliation, others -> legacy flow. Both /viva/verification and /viva/payments resolve to the same dispatcher so Viva may deliver to either URL.
|
|
47280
48169
|
* @summary Handle Viva webhook events for the payment-session flow
|
|
47281
48170
|
* @param {VivaWebhookPayloadDto} vivaWebhookPayloadDto
|
|
47282
48171
|
* @param {*} [options] Override http request option.
|
|
@@ -47328,6 +48217,18 @@ export class WebhookApi extends BaseAPI implements WebhookApiInterface {
|
|
|
47328
48217
|
return WebhookApiFp(this.configuration).handleWorldlineEvents(options).then((request) => request(this.axios, this.basePath));
|
|
47329
48218
|
}
|
|
47330
48219
|
|
|
48220
|
+
/**
|
|
48221
|
+
*
|
|
48222
|
+
* @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
|
|
48223
|
+
* @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
|
|
48224
|
+
* @param {*} [options] Override http request option.
|
|
48225
|
+
* @throws {RequiredError}
|
|
48226
|
+
* @memberof WebhookApi
|
|
48227
|
+
*/
|
|
48228
|
+
public processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig) {
|
|
48229
|
+
return WebhookApiFp(this.configuration).processPosOrderActionsQueue(processPosOrderActionsQueueDto, options).then((request) => request(this.axios, this.basePath));
|
|
48230
|
+
}
|
|
48231
|
+
|
|
47331
48232
|
/**
|
|
47332
48233
|
*
|
|
47333
48234
|
* @param {*} [options] Override http request option.
|