@munchi_oy/core 1.9.95 → 1.9.97

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/generated/api.ts CHANGED
@@ -2771,6 +2771,48 @@ export interface ChargeDtoPaymentMethodDetails {
2771
2771
  */
2772
2772
  'affirmDetails'?: PaymentMethodDetailsDtoAffirmDetails;
2773
2773
  }
2774
+ /**
2775
+ *
2776
+ * @export
2777
+ * @enum {string}
2778
+ */
2779
+
2780
+ export const ChargeStatusEnum = {
2781
+ Pending: 'pending',
2782
+ Success: 'success',
2783
+ Failure: 'failure'
2784
+ } as const;
2785
+
2786
+ export type ChargeStatusEnum = typeof ChargeStatusEnum[keyof typeof ChargeStatusEnum];
2787
+
2788
+
2789
+ /**
2790
+ *
2791
+ * @export
2792
+ * @interface ChargeStatusResponseDto
2793
+ */
2794
+ export interface ChargeStatusResponseDto {
2795
+ /**
2796
+ *
2797
+ * @type {ChargeStatusEnum}
2798
+ * @memberof ChargeStatusResponseDto
2799
+ */
2800
+ 'status': ChargeStatusEnum;
2801
+ /**
2802
+ *
2803
+ * @type {string}
2804
+ * @memberof ChargeStatusResponseDto
2805
+ */
2806
+ 'transactionId'?: string | null;
2807
+ /**
2808
+ *
2809
+ * @type {string}
2810
+ * @memberof ChargeStatusResponseDto
2811
+ */
2812
+ 'errorCode'?: string | null;
2813
+ }
2814
+
2815
+
2774
2816
  /**
2775
2817
  *
2776
2818
  * @export
@@ -3851,12 +3893,6 @@ export interface CreateManualSessionDtoOrder {
3851
3893
  * @memberof CreateManualSessionDtoOrder
3852
3894
  */
3853
3895
  'tableGroupId'?: string | null;
3854
- /**
3855
- * ID of the reservation this order was seated from, if any
3856
- * @type {string}
3857
- * @memberof CreateManualSessionDtoOrder
3858
- */
3859
- 'reservationId'?: string | null;
3860
3896
  }
3861
3897
 
3862
3898
 
@@ -12757,6 +12793,202 @@ export interface PairDisplayResponseDto {
12757
12793
  */
12758
12794
  'displayId': string;
12759
12795
  }
12796
+ /**
12797
+ *
12798
+ * @export
12799
+ * @interface PairPayTerminalBodyDto
12800
+ */
12801
+ export interface PairPayTerminalBodyDto {
12802
+ /**
12803
+ * Stable POS device identifier.
12804
+ * @type {string}
12805
+ * @memberof PairPayTerminalBodyDto
12806
+ */
12807
+ 'posDeviceId': string;
12808
+ /**
12809
+ * Pairing code entered on the POS.
12810
+ * @type {string}
12811
+ * @memberof PairPayTerminalBodyDto
12812
+ */
12813
+ 'code'?: string;
12814
+ /**
12815
+ * Terminal id (nonce path, with nonce).
12816
+ * @type {string}
12817
+ * @memberof PairPayTerminalBodyDto
12818
+ */
12819
+ 'terminalId'?: string;
12820
+ /**
12821
+ * One-time nonce (nonce path).
12822
+ * @type {string}
12823
+ * @memberof PairPayTerminalBodyDto
12824
+ */
12825
+ 'nonce'?: string;
12826
+ /**
12827
+ * Business to pair to; must be in the caller\'s scope.
12828
+ * @type {number}
12829
+ * @memberof PairPayTerminalBodyDto
12830
+ */
12831
+ 'businessId'?: number;
12832
+ }
12833
+ /**
12834
+ *
12835
+ * @export
12836
+ * @interface PairPayTerminalResponseDto
12837
+ */
12838
+ export interface PairPayTerminalResponseDto {
12839
+ /**
12840
+ *
12841
+ * @type {string}
12842
+ * @memberof PairPayTerminalResponseDto
12843
+ */
12844
+ 'sessionId': string;
12845
+ /**
12846
+ *
12847
+ * @type {string}
12848
+ * @memberof PairPayTerminalResponseDto
12849
+ */
12850
+ 'sessionChannel': string;
12851
+ /**
12852
+ *
12853
+ * @type {string}
12854
+ * @memberof PairPayTerminalResponseDto
12855
+ */
12856
+ 'terminalId': string;
12857
+ /**
12858
+ *
12859
+ * @type {string}
12860
+ * @memberof PairPayTerminalResponseDto
12861
+ */
12862
+ 'terminalName'?: string | null;
12863
+ }
12864
+ /**
12865
+ *
12866
+ * @export
12867
+ * @interface PayTerminalInitBodyDto
12868
+ */
12869
+ export interface PayTerminalInitBodyDto {
12870
+ /**
12871
+ * Stable hardware identifier of the pay-terminal device.
12872
+ * @type {string}
12873
+ * @memberof PayTerminalInitBodyDto
12874
+ */
12875
+ 'deviceHardwareId': string;
12876
+ /**
12877
+ * Optional human-readable label for the pay-terminal device.
12878
+ * @type {string}
12879
+ * @memberof PayTerminalInitBodyDto
12880
+ */
12881
+ 'terminalName'?: string | null;
12882
+ }
12883
+ /**
12884
+ *
12885
+ * @export
12886
+ * @interface PayTerminalInitResponseDto
12887
+ */
12888
+ export interface PayTerminalInitResponseDto {
12889
+ /**
12890
+ * Server-issued pay-terminal identity.
12891
+ * @type {string}
12892
+ * @memberof PayTerminalInitResponseDto
12893
+ */
12894
+ 'terminalId': string;
12895
+ /**
12896
+ * Short pairing code shown on the terminal.
12897
+ * @type {string}
12898
+ * @memberof PayTerminalInitResponseDto
12899
+ */
12900
+ 'code': string;
12901
+ /**
12902
+ * One-time nonce carried in the pairing QR.
12903
+ * @type {string}
12904
+ * @memberof PayTerminalInitResponseDto
12905
+ */
12906
+ 'nonce': string;
12907
+ /**
12908
+ * Ably channel the terminal subscribes to for the ack.
12909
+ * @type {string}
12910
+ * @memberof PayTerminalInitResponseDto
12911
+ */
12912
+ 'pairingChannel': string;
12913
+ /**
12914
+ * Epoch ms when the code/nonce expires.
12915
+ * @type {number}
12916
+ * @memberof PayTerminalInitResponseDto
12917
+ */
12918
+ 'expiresAt': number;
12919
+ /**
12920
+ * Ably TokenRequest scoped to the pairing channel.
12921
+ * @type {object}
12922
+ * @memberof PayTerminalInitResponseDto
12923
+ */
12924
+ 'ablyTokenRequest': object;
12925
+ }
12926
+ /**
12927
+ *
12928
+ * @export
12929
+ * @enum {string}
12930
+ */
12931
+
12932
+ export const PayTerminalSessionRole = {
12933
+ Pos: 'pos',
12934
+ Terminal: 'terminal'
12935
+ } as const;
12936
+
12937
+ export type PayTerminalSessionRole = typeof PayTerminalSessionRole[keyof typeof PayTerminalSessionRole];
12938
+
12939
+
12940
+ /**
12941
+ *
12942
+ * @export
12943
+ * @interface PayTerminalSessionTokenBodyDto
12944
+ */
12945
+ export interface PayTerminalSessionTokenBodyDto {
12946
+ /**
12947
+ *
12948
+ * @type {string}
12949
+ * @memberof PayTerminalSessionTokenBodyDto
12950
+ */
12951
+ 'sessionId': string;
12952
+ /**
12953
+ *
12954
+ * @type {PayTerminalSessionRole}
12955
+ * @memberof PayTerminalSessionTokenBodyDto
12956
+ */
12957
+ 'role': PayTerminalSessionRole;
12958
+ /**
12959
+ * Requesting device id (posDeviceId or terminalId).
12960
+ * @type {string}
12961
+ * @memberof PayTerminalSessionTokenBodyDto
12962
+ */
12963
+ 'deviceId': string;
12964
+ }
12965
+
12966
+
12967
+ /**
12968
+ *
12969
+ * @export
12970
+ * @interface PayTerminalSessionTokenResponseDto
12971
+ */
12972
+ export interface PayTerminalSessionTokenResponseDto {
12973
+ /**
12974
+ * Ably TokenRequest scoped to the session channel.
12975
+ * @type {object}
12976
+ * @memberof PayTerminalSessionTokenResponseDto
12977
+ */
12978
+ 'ablyTokenRequest': object;
12979
+ /**
12980
+ *
12981
+ * @type {string}
12982
+ * @memberof PayTerminalSessionTokenResponseDto
12983
+ */
12984
+ 'sessionChannel': string;
12985
+ /**
12986
+ *
12987
+ * @type {string}
12988
+ * @memberof PayTerminalSessionTokenResponseDto
12989
+ */
12990
+ 'terminalName'?: string | null;
12991
+ }
12760
12992
  /**
12761
12993
  *
12762
12994
  * @export
@@ -16018,12 +16250,6 @@ export interface PosOrderDto {
16018
16250
  * @memberof PosOrderDto
16019
16251
  */
16020
16252
  'tableGroupId'?: string | null;
16021
- /**
16022
- * ID of the reservation this order was seated from, if any
16023
- * @type {string}
16024
- * @memberof PosOrderDto
16025
- */
16026
- 'reservationId'?: string | null;
16027
16253
  }
16028
16254
 
16029
16255
 
@@ -16846,12 +17072,6 @@ export interface PosOrderPayloadDtoOrder {
16846
17072
  * @memberof PosOrderPayloadDtoOrder
16847
17073
  */
16848
17074
  'tableGroupId'?: string | null;
16849
- /**
16850
- * ID of the reservation this order was seated from, if any
16851
- * @type {string}
16852
- * @memberof PosOrderPayloadDtoOrder
16853
- */
16854
- 'reservationId'?: string | null;
16855
17075
  }
16856
17076
 
16857
17077
 
@@ -17792,12 +18012,6 @@ export interface ProcessOrderActionsResponseDtoOrder {
17792
18012
  * @memberof ProcessOrderActionsResponseDtoOrder
17793
18013
  */
17794
18014
  'tableGroupId'?: string | null;
17795
- /**
17796
- * ID of the reservation this order was seated from, if any
17797
- * @type {string}
17798
- * @memberof ProcessOrderActionsResponseDtoOrder
17799
- */
17800
- 'reservationId'?: string | null;
17801
18015
  }
17802
18016
 
17803
18017
 
@@ -19097,12 +19311,6 @@ export interface RecordManualPaymentResultDtoOrder {
19097
19311
  * @memberof RecordManualPaymentResultDtoOrder
19098
19312
  */
19099
19313
  'tableGroupId'?: string | null;
19100
- /**
19101
- * ID of the reservation this order was seated from, if any
19102
- * @type {string}
19103
- * @memberof RecordManualPaymentResultDtoOrder
19104
- */
19105
- 'reservationId'?: string | null;
19106
19314
  }
19107
19315
 
19108
19316
 
@@ -19628,6 +19836,31 @@ export interface RefundedItemDto {
19628
19836
  */
19629
19837
  'amount': number;
19630
19838
  }
19839
+ /**
19840
+ *
19841
+ * @export
19842
+ * @interface RegisterChargeMappingDto
19843
+ */
19844
+ export interface RegisterChargeMappingDto {
19845
+ /**
19846
+ * POS-generated id for this charge attempt (from the pay-terminal Ably relay).
19847
+ * @type {string}
19848
+ * @memberof RegisterChargeMappingDto
19849
+ */
19850
+ 'chargeId': string;
19851
+ /**
19852
+ * The order this charge belongs to (matches the Viva session\'s referenceId).
19853
+ * @type {string}
19854
+ * @memberof RegisterChargeMappingDto
19855
+ */
19856
+ 'orderId': string;
19857
+ /**
19858
+ * The business the order belongs to.
19859
+ * @type {number}
19860
+ * @memberof RegisterChargeMappingDto
19861
+ */
19862
+ 'businessId': number;
19863
+ }
19631
19864
  /**
19632
19865
  *
19633
19866
  * @export
@@ -21400,12 +21633,6 @@ export interface SyncKioskOrderDtoOrder {
21400
21633
  * @memberof SyncKioskOrderDtoOrder
21401
21634
  */
21402
21635
  'tableGroupId'?: string | null;
21403
- /**
21404
- * ID of the reservation this order was seated from, if any
21405
- * @type {string}
21406
- * @memberof SyncKioskOrderDtoOrder
21407
- */
21408
- 'reservationId'?: string | null;
21409
21636
  }
21410
21637
 
21411
21638
 
@@ -21693,12 +21920,6 @@ export interface SyncPosOrderDtoOrder {
21693
21920
  * @memberof SyncPosOrderDtoOrder
21694
21921
  */
21695
21922
  'tableGroupId'?: string | null;
21696
- /**
21697
- * ID of the reservation this order was seated from, if any
21698
- * @type {string}
21699
- * @memberof SyncPosOrderDtoOrder
21700
- */
21701
- 'reservationId'?: string | null;
21702
21923
  }
21703
21924
 
21704
21925
 
@@ -23813,6 +24034,46 @@ export interface UnlockTerminalDto {
23813
24034
  */
23814
24035
  'employeeId': string;
23815
24036
  }
24037
+ /**
24038
+ *
24039
+ * @export
24040
+ * @interface UnpairPayTerminalBodyDto
24041
+ */
24042
+ export interface UnpairPayTerminalBodyDto {
24043
+ /**
24044
+ * Session id of the binding to tear down.
24045
+ * @type {string}
24046
+ * @memberof UnpairPayTerminalBodyDto
24047
+ */
24048
+ 'sessionId': string;
24049
+ /**
24050
+ *
24051
+ * @type {PayTerminalSessionRole}
24052
+ * @memberof UnpairPayTerminalBodyDto
24053
+ */
24054
+ 'role': PayTerminalSessionRole;
24055
+ /**
24056
+ * Requesting device id (posDeviceId or terminalId).
24057
+ * @type {string}
24058
+ * @memberof UnpairPayTerminalBodyDto
24059
+ */
24060
+ 'deviceId': string;
24061
+ }
24062
+
24063
+
24064
+ /**
24065
+ *
24066
+ * @export
24067
+ * @interface UnpairPayTerminalResponseDto
24068
+ */
24069
+ export interface UnpairPayTerminalResponseDto {
24070
+ /**
24071
+ * True once the binding is cleared (or already gone).
24072
+ * @type {boolean}
24073
+ * @memberof UnpairPayTerminalResponseDto
24074
+ */
24075
+ 'success': boolean;
24076
+ }
23816
24077
  /**
23817
24078
  *
23818
24079
  * @export
@@ -41529,6 +41790,368 @@ export class POSSessionApi extends BaseAPI implements POSSessionApiInterface {
41529
41790
  }
41530
41791
 
41531
41792
 
41793
+ /**
41794
+ * PayTerminalApi - axios parameter creator
41795
+ * @export
41796
+ */
41797
+ export const PayTerminalApiAxiosParamCreator = function (configuration?: Configuration) {
41798
+ return {
41799
+ /**
41800
+ *
41801
+ * @summary Register a pay terminal and mint a pairing token + code.
41802
+ * @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
41803
+ * @param {*} [options] Override http request option.
41804
+ * @throws {RequiredError}
41805
+ */
41806
+ payTerminalInit: async (payTerminalInitBodyDto: PayTerminalInitBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41807
+ // verify required parameter 'payTerminalInitBodyDto' is not null or undefined
41808
+ assertParamExists('payTerminalInit', 'payTerminalInitBodyDto', payTerminalInitBodyDto)
41809
+ const localVarPath = `/api/v1/pay-terminal/init`;
41810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41811
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41812
+ let baseOptions;
41813
+ if (configuration) {
41814
+ baseOptions = configuration.baseOptions;
41815
+ }
41816
+
41817
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41818
+ const localVarHeaderParameter = {} as any;
41819
+ const localVarQueryParameter = {} as any;
41820
+
41821
+
41822
+
41823
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41824
+
41825
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41826
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41827
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41828
+ localVarRequestOptions.data = serializeDataIfNeeded(payTerminalInitBodyDto, localVarRequestOptions, configuration)
41829
+
41830
+ return {
41831
+ url: toPathString(localVarUrlObj),
41832
+ options: localVarRequestOptions,
41833
+ };
41834
+ },
41835
+ /**
41836
+ *
41837
+ * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
41838
+ * @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
41839
+ * @param {*} [options] Override http request option.
41840
+ * @throws {RequiredError}
41841
+ */
41842
+ payTerminalPair: async (pairPayTerminalBodyDto: PairPayTerminalBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41843
+ // verify required parameter 'pairPayTerminalBodyDto' is not null or undefined
41844
+ assertParamExists('payTerminalPair', 'pairPayTerminalBodyDto', pairPayTerminalBodyDto)
41845
+ const localVarPath = `/api/v1/pay-terminal/pair`;
41846
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41847
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41848
+ let baseOptions;
41849
+ if (configuration) {
41850
+ baseOptions = configuration.baseOptions;
41851
+ }
41852
+
41853
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41854
+ const localVarHeaderParameter = {} as any;
41855
+ const localVarQueryParameter = {} as any;
41856
+
41857
+
41858
+
41859
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41860
+
41861
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41862
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41863
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41864
+ localVarRequestOptions.data = serializeDataIfNeeded(pairPayTerminalBodyDto, localVarRequestOptions, configuration)
41865
+
41866
+ return {
41867
+ url: toPathString(localVarUrlObj),
41868
+ options: localVarRequestOptions,
41869
+ };
41870
+ },
41871
+ /**
41872
+ *
41873
+ * @summary Mint a session-channel Ably token scoped to the device role.
41874
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
41875
+ * @param {*} [options] Override http request option.
41876
+ * @throws {RequiredError}
41877
+ */
41878
+ payTerminalSessionToken: async (payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41879
+ // verify required parameter 'payTerminalSessionTokenBodyDto' is not null or undefined
41880
+ assertParamExists('payTerminalSessionToken', 'payTerminalSessionTokenBodyDto', payTerminalSessionTokenBodyDto)
41881
+ const localVarPath = `/api/v1/pay-terminal/session-token`;
41882
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41883
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41884
+ let baseOptions;
41885
+ if (configuration) {
41886
+ baseOptions = configuration.baseOptions;
41887
+ }
41888
+
41889
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41890
+ const localVarHeaderParameter = {} as any;
41891
+ const localVarQueryParameter = {} as any;
41892
+
41893
+
41894
+
41895
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41896
+
41897
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41898
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41899
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41900
+ localVarRequestOptions.data = serializeDataIfNeeded(payTerminalSessionTokenBodyDto, localVarRequestOptions, configuration)
41901
+
41902
+ return {
41903
+ url: toPathString(localVarUrlObj),
41904
+ options: localVarRequestOptions,
41905
+ };
41906
+ },
41907
+ /**
41908
+ *
41909
+ * @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
41910
+ * @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
41911
+ * @param {*} [options] Override http request option.
41912
+ * @throws {RequiredError}
41913
+ */
41914
+ payTerminalUnpair: async (unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
41915
+ // verify required parameter 'unpairPayTerminalBodyDto' is not null or undefined
41916
+ assertParamExists('payTerminalUnpair', 'unpairPayTerminalBodyDto', unpairPayTerminalBodyDto)
41917
+ const localVarPath = `/api/v1/pay-terminal/unpair`;
41918
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41919
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41920
+ let baseOptions;
41921
+ if (configuration) {
41922
+ baseOptions = configuration.baseOptions;
41923
+ }
41924
+
41925
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
41926
+ const localVarHeaderParameter = {} as any;
41927
+ const localVarQueryParameter = {} as any;
41928
+
41929
+
41930
+
41931
+ localVarHeaderParameter['Content-Type'] = 'application/json';
41932
+
41933
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
41934
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
41935
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
41936
+ localVarRequestOptions.data = serializeDataIfNeeded(unpairPayTerminalBodyDto, localVarRequestOptions, configuration)
41937
+
41938
+ return {
41939
+ url: toPathString(localVarUrlObj),
41940
+ options: localVarRequestOptions,
41941
+ };
41942
+ },
41943
+ }
41944
+ };
41945
+
41946
+ /**
41947
+ * PayTerminalApi - functional programming interface
41948
+ * @export
41949
+ */
41950
+ export const PayTerminalApiFp = function(configuration?: Configuration) {
41951
+ const localVarAxiosParamCreator = PayTerminalApiAxiosParamCreator(configuration)
41952
+ return {
41953
+ /**
41954
+ *
41955
+ * @summary Register a pay terminal and mint a pairing token + code.
41956
+ * @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
41957
+ * @param {*} [options] Override http request option.
41958
+ * @throws {RequiredError}
41959
+ */
41960
+ async payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalInitResponseDto>> {
41961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalInit(payTerminalInitBodyDto, options);
41962
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41963
+ },
41964
+ /**
41965
+ *
41966
+ * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
41967
+ * @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
41968
+ * @param {*} [options] Override http request option.
41969
+ * @throws {RequiredError}
41970
+ */
41971
+ async payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PairPayTerminalResponseDto>> {
41972
+ const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalPair(pairPayTerminalBodyDto, options);
41973
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41974
+ },
41975
+ /**
41976
+ *
41977
+ * @summary Mint a session-channel Ably token scoped to the device role.
41978
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
41979
+ * @param {*} [options] Override http request option.
41980
+ * @throws {RequiredError}
41981
+ */
41982
+ async payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalSessionTokenResponseDto>> {
41983
+ const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalSessionToken(payTerminalSessionTokenBodyDto, options);
41984
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41985
+ },
41986
+ /**
41987
+ *
41988
+ * @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
41989
+ * @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
41990
+ * @param {*} [options] Override http request option.
41991
+ * @throws {RequiredError}
41992
+ */
41993
+ async payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnpairPayTerminalResponseDto>> {
41994
+ const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalUnpair(unpairPayTerminalBodyDto, options);
41995
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41996
+ },
41997
+ }
41998
+ };
41999
+
42000
+ /**
42001
+ * PayTerminalApi - factory interface
42002
+ * @export
42003
+ */
42004
+ export const PayTerminalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
42005
+ const localVarFp = PayTerminalApiFp(configuration)
42006
+ return {
42007
+ /**
42008
+ *
42009
+ * @summary Register a pay terminal and mint a pairing token + code.
42010
+ * @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
42011
+ * @param {*} [options] Override http request option.
42012
+ * @throws {RequiredError}
42013
+ */
42014
+ payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: any): AxiosPromise<PayTerminalInitResponseDto> {
42015
+ return localVarFp.payTerminalInit(payTerminalInitBodyDto, options).then((request) => request(axios, basePath));
42016
+ },
42017
+ /**
42018
+ *
42019
+ * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
42020
+ * @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
42021
+ * @param {*} [options] Override http request option.
42022
+ * @throws {RequiredError}
42023
+ */
42024
+ payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: any): AxiosPromise<PairPayTerminalResponseDto> {
42025
+ return localVarFp.payTerminalPair(pairPayTerminalBodyDto, options).then((request) => request(axios, basePath));
42026
+ },
42027
+ /**
42028
+ *
42029
+ * @summary Mint a session-channel Ably token scoped to the device role.
42030
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
42031
+ * @param {*} [options] Override http request option.
42032
+ * @throws {RequiredError}
42033
+ */
42034
+ payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: any): AxiosPromise<PayTerminalSessionTokenResponseDto> {
42035
+ return localVarFp.payTerminalSessionToken(payTerminalSessionTokenBodyDto, options).then((request) => request(axios, basePath));
42036
+ },
42037
+ /**
42038
+ *
42039
+ * @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
42040
+ * @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
42041
+ * @param {*} [options] Override http request option.
42042
+ * @throws {RequiredError}
42043
+ */
42044
+ payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: any): AxiosPromise<UnpairPayTerminalResponseDto> {
42045
+ return localVarFp.payTerminalUnpair(unpairPayTerminalBodyDto, options).then((request) => request(axios, basePath));
42046
+ },
42047
+ };
42048
+ };
42049
+
42050
+ /**
42051
+ * PayTerminalApi - interface
42052
+ * @export
42053
+ * @interface PayTerminalApi
42054
+ */
42055
+ export interface PayTerminalApiInterface {
42056
+ /**
42057
+ *
42058
+ * @summary Register a pay terminal and mint a pairing token + code.
42059
+ * @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
42060
+ * @param {*} [options] Override http request option.
42061
+ * @throws {RequiredError}
42062
+ * @memberof PayTerminalApiInterface
42063
+ */
42064
+ payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalInitResponseDto>;
42065
+
42066
+ /**
42067
+ *
42068
+ * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
42069
+ * @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
42070
+ * @param {*} [options] Override http request option.
42071
+ * @throws {RequiredError}
42072
+ * @memberof PayTerminalApiInterface
42073
+ */
42074
+ payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): AxiosPromise<PairPayTerminalResponseDto>;
42075
+
42076
+ /**
42077
+ *
42078
+ * @summary Mint a session-channel Ably token scoped to the device role.
42079
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
42080
+ * @param {*} [options] Override http request option.
42081
+ * @throws {RequiredError}
42082
+ * @memberof PayTerminalApiInterface
42083
+ */
42084
+ payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalSessionTokenResponseDto>;
42085
+
42086
+ /**
42087
+ *
42088
+ * @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
42089
+ * @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
42090
+ * @param {*} [options] Override http request option.
42091
+ * @throws {RequiredError}
42092
+ * @memberof PayTerminalApiInterface
42093
+ */
42094
+ payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: AxiosRequestConfig): AxiosPromise<UnpairPayTerminalResponseDto>;
42095
+
42096
+ }
42097
+
42098
+ /**
42099
+ * PayTerminalApi - object-oriented interface
42100
+ * @export
42101
+ * @class PayTerminalApi
42102
+ * @extends {BaseAPI}
42103
+ */
42104
+ export class PayTerminalApi extends BaseAPI implements PayTerminalApiInterface {
42105
+ /**
42106
+ *
42107
+ * @summary Register a pay terminal and mint a pairing token + code.
42108
+ * @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
42109
+ * @param {*} [options] Override http request option.
42110
+ * @throws {RequiredError}
42111
+ * @memberof PayTerminalApi
42112
+ */
42113
+ public payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig) {
42114
+ return PayTerminalApiFp(this.configuration).payTerminalInit(payTerminalInitBodyDto, options).then((request) => request(this.axios, this.basePath));
42115
+ }
42116
+
42117
+ /**
42118
+ *
42119
+ * @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
42120
+ * @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
42121
+ * @param {*} [options] Override http request option.
42122
+ * @throws {RequiredError}
42123
+ * @memberof PayTerminalApi
42124
+ */
42125
+ public payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig) {
42126
+ return PayTerminalApiFp(this.configuration).payTerminalPair(pairPayTerminalBodyDto, options).then((request) => request(this.axios, this.basePath));
42127
+ }
42128
+
42129
+ /**
42130
+ *
42131
+ * @summary Mint a session-channel Ably token scoped to the device role.
42132
+ * @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
42133
+ * @param {*} [options] Override http request option.
42134
+ * @throws {RequiredError}
42135
+ * @memberof PayTerminalApi
42136
+ */
42137
+ public payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig) {
42138
+ return PayTerminalApiFp(this.configuration).payTerminalSessionToken(payTerminalSessionTokenBodyDto, options).then((request) => request(this.axios, this.basePath));
42139
+ }
42140
+
42141
+ /**
42142
+ *
42143
+ * @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
42144
+ * @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
42145
+ * @param {*} [options] Override http request option.
42146
+ * @throws {RequiredError}
42147
+ * @memberof PayTerminalApi
42148
+ */
42149
+ public payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: AxiosRequestConfig) {
42150
+ return PayTerminalApiFp(this.configuration).payTerminalUnpair(unpairPayTerminalBodyDto, options).then((request) => request(this.axios, this.basePath));
42151
+ }
42152
+ }
42153
+
42154
+
41532
42155
  /**
41533
42156
  * PaymentApi - axios parameter creator
41534
42157
  * @export
@@ -43288,6 +43911,76 @@ export const PaymentSessionApiAxiosParamCreator = function (configuration?: Conf
43288
43911
  options: localVarRequestOptions,
43289
43912
  };
43290
43913
  },
43914
+ /**
43915
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
43916
+ * @summary Poll a charge\'s outcome by chargeId.
43917
+ * @param {string} chargeId
43918
+ * @param {*} [options] Override http request option.
43919
+ * @throws {RequiredError}
43920
+ */
43921
+ paymentSessionGetChargeStatus: async (chargeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43922
+ // verify required parameter 'chargeId' is not null or undefined
43923
+ assertParamExists('paymentSessionGetChargeStatus', 'chargeId', chargeId)
43924
+ const localVarPath = `/api/v1/payment-session/charge-status/{chargeId}`
43925
+ .replace(`{${"chargeId"}}`, encodeURIComponent(String(chargeId)));
43926
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43927
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43928
+ let baseOptions;
43929
+ if (configuration) {
43930
+ baseOptions = configuration.baseOptions;
43931
+ }
43932
+
43933
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
43934
+ const localVarHeaderParameter = {} as any;
43935
+ const localVarQueryParameter = {} as any;
43936
+
43937
+
43938
+
43939
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43940
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43941
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43942
+
43943
+ return {
43944
+ url: toPathString(localVarUrlObj),
43945
+ options: localVarRequestOptions,
43946
+ };
43947
+ },
43948
+ /**
43949
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
43950
+ * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
43951
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
43952
+ * @param {*} [options] Override http request option.
43953
+ * @throws {RequiredError}
43954
+ */
43955
+ paymentSessionRegisterChargeMapping: async (registerChargeMappingDto: RegisterChargeMappingDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43956
+ // verify required parameter 'registerChargeMappingDto' is not null or undefined
43957
+ assertParamExists('paymentSessionRegisterChargeMapping', 'registerChargeMappingDto', registerChargeMappingDto)
43958
+ const localVarPath = `/api/v1/payment-session/charge-status/register`;
43959
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43960
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43961
+ let baseOptions;
43962
+ if (configuration) {
43963
+ baseOptions = configuration.baseOptions;
43964
+ }
43965
+
43966
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43967
+ const localVarHeaderParameter = {} as any;
43968
+ const localVarQueryParameter = {} as any;
43969
+
43970
+
43971
+
43972
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43973
+
43974
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43975
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43976
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43977
+ localVarRequestOptions.data = serializeDataIfNeeded(registerChargeMappingDto, localVarRequestOptions, configuration)
43978
+
43979
+ return {
43980
+ url: toPathString(localVarUrlObj),
43981
+ options: localVarRequestOptions,
43982
+ };
43983
+ },
43291
43984
  /**
43292
43985
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
43293
43986
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -43740,6 +44433,28 @@ export const PaymentSessionApiFp = function(configuration?: Configuration) {
43740
44433
  const localVarAxiosArgs = await localVarAxiosParamCreator.initiateWorldlineSession(initiateWorldlineSessionDto, xIdempotencyKey, options);
43741
44434
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43742
44435
  },
44436
+ /**
44437
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
44438
+ * @summary Poll a charge\'s outcome by chargeId.
44439
+ * @param {string} chargeId
44440
+ * @param {*} [options] Override http request option.
44441
+ * @throws {RequiredError}
44442
+ */
44443
+ async paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargeStatusResponseDto>> {
44444
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentSessionGetChargeStatus(chargeId, options);
44445
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44446
+ },
44447
+ /**
44448
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
44449
+ * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
44450
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
44451
+ * @param {*} [options] Override http request option.
44452
+ * @throws {RequiredError}
44453
+ */
44454
+ async paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
44455
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentSessionRegisterChargeMapping(registerChargeMappingDto, options);
44456
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44457
+ },
43743
44458
  /**
43744
44459
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
43745
44460
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -43935,6 +44650,26 @@ export const PaymentSessionApiFactory = function (configuration?: Configuration,
43935
44650
  initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateWorldlineSessionResponseDto> {
43936
44651
  return localVarFp.initiateWorldlineSession(initiateWorldlineSessionDto, xIdempotencyKey, options).then((request) => request(axios, basePath));
43937
44652
  },
44653
+ /**
44654
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
44655
+ * @summary Poll a charge\'s outcome by chargeId.
44656
+ * @param {string} chargeId
44657
+ * @param {*} [options] Override http request option.
44658
+ * @throws {RequiredError}
44659
+ */
44660
+ paymentSessionGetChargeStatus(chargeId: string, options?: any): AxiosPromise<ChargeStatusResponseDto> {
44661
+ return localVarFp.paymentSessionGetChargeStatus(chargeId, options).then((request) => request(axios, basePath));
44662
+ },
44663
+ /**
44664
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
44665
+ * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
44666
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
44667
+ * @param {*} [options] Override http request option.
44668
+ * @throws {RequiredError}
44669
+ */
44670
+ paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: any): AxiosPromise<void> {
44671
+ return localVarFp.paymentSessionRegisterChargeMapping(registerChargeMappingDto, options).then((request) => request(axios, basePath));
44672
+ },
43938
44673
  /**
43939
44674
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
43940
44675
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -44119,6 +44854,26 @@ export interface PaymentSessionApiInterface {
44119
44854
  */
44120
44855
  initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateWorldlineSessionResponseDto>;
44121
44856
 
44857
+ /**
44858
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
44859
+ * @summary Poll a charge\'s outcome by chargeId.
44860
+ * @param {string} chargeId
44861
+ * @param {*} [options] Override http request option.
44862
+ * @throws {RequiredError}
44863
+ * @memberof PaymentSessionApiInterface
44864
+ */
44865
+ paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): AxiosPromise<ChargeStatusResponseDto>;
44866
+
44867
+ /**
44868
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
44869
+ * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
44870
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
44871
+ * @param {*} [options] Override http request option.
44872
+ * @throws {RequiredError}
44873
+ * @memberof PaymentSessionApiInterface
44874
+ */
44875
+ paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): AxiosPromise<void>;
44876
+
44122
44877
  /**
44123
44878
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
44124
44879
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -44317,6 +45072,30 @@ export class PaymentSessionApi extends BaseAPI implements PaymentSessionApiInter
44317
45072
  return PaymentSessionApiFp(this.configuration).initiateWorldlineSession(initiateWorldlineSessionDto, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
44318
45073
  }
44319
45074
 
45075
+ /**
45076
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
45077
+ * @summary Poll a charge\'s outcome by chargeId.
45078
+ * @param {string} chargeId
45079
+ * @param {*} [options] Override http request option.
45080
+ * @throws {RequiredError}
45081
+ * @memberof PaymentSessionApi
45082
+ */
45083
+ public paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig) {
45084
+ return PaymentSessionApiFp(this.configuration).paymentSessionGetChargeStatus(chargeId, options).then((request) => request(this.axios, this.basePath));
45085
+ }
45086
+
45087
+ /**
45088
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
45089
+ * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
45090
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
45091
+ * @param {*} [options] Override http request option.
45092
+ * @throws {RequiredError}
45093
+ * @memberof PaymentSessionApi
45094
+ */
45095
+ public paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig) {
45096
+ return PaymentSessionApiFp(this.configuration).paymentSessionRegisterChargeMapping(registerChargeMappingDto, options).then((request) => request(this.axios, this.basePath));
45097
+ }
45098
+
44320
45099
  /**
44321
45100
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
44322
45101
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -45717,6 +46496,82 @@ export class ProductApi extends BaseAPI implements ProductApiInterface {
45717
46496
  */
45718
46497
  export const ProviderApiAxiosParamCreator = function (configuration?: Configuration) {
45719
46498
  return {
46499
+ /**
46500
+ *
46501
+ * @param {any} channel
46502
+ * @param {object} body
46503
+ * @param {*} [options] Override http request option.
46504
+ * @throws {RequiredError}
46505
+ */
46506
+ createOnboardingSession: async (channel: any, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46507
+ // verify required parameter 'channel' is not null or undefined
46508
+ assertParamExists('createOnboardingSession', 'channel', channel)
46509
+ // verify required parameter 'body' is not null or undefined
46510
+ assertParamExists('createOnboardingSession', 'body', body)
46511
+ const localVarPath = `/api/v1/provider/onboarding/{channel}/sessions`
46512
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
46513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46514
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46515
+ let baseOptions;
46516
+ if (configuration) {
46517
+ baseOptions = configuration.baseOptions;
46518
+ }
46519
+
46520
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
46521
+ const localVarHeaderParameter = {} as any;
46522
+ const localVarQueryParameter = {} as any;
46523
+
46524
+
46525
+
46526
+ localVarHeaderParameter['Content-Type'] = 'application/json';
46527
+
46528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46530
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46531
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
46532
+
46533
+ return {
46534
+ url: toPathString(localVarUrlObj),
46535
+ options: localVarRequestOptions,
46536
+ };
46537
+ },
46538
+ /**
46539
+ *
46540
+ * @param {any} channel
46541
+ * @param {number} businessId
46542
+ * @param {*} [options] Override http request option.
46543
+ * @throws {RequiredError}
46544
+ */
46545
+ disconnectOnboarding: async (channel: any, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46546
+ // verify required parameter 'channel' is not null or undefined
46547
+ assertParamExists('disconnectOnboarding', 'channel', channel)
46548
+ // verify required parameter 'businessId' is not null or undefined
46549
+ assertParamExists('disconnectOnboarding', 'businessId', businessId)
46550
+ const localVarPath = `/api/v1/provider/onboarding/{channel}/{businessId}`
46551
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
46552
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
46553
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46554
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46555
+ let baseOptions;
46556
+ if (configuration) {
46557
+ baseOptions = configuration.baseOptions;
46558
+ }
46559
+
46560
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
46561
+ const localVarHeaderParameter = {} as any;
46562
+ const localVarQueryParameter = {} as any;
46563
+
46564
+
46565
+
46566
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46567
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46568
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46569
+
46570
+ return {
46571
+ url: toPathString(localVarUrlObj),
46572
+ options: localVarRequestOptions,
46573
+ };
46574
+ },
45720
46575
  /**
45721
46576
  *
45722
46577
  * @summary Get provider integrations (MENU) for a business
@@ -45742,6 +46597,43 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
45742
46597
 
45743
46598
 
45744
46599
 
46600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46602
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46603
+
46604
+ return {
46605
+ url: toPathString(localVarUrlObj),
46606
+ options: localVarRequestOptions,
46607
+ };
46608
+ },
46609
+ /**
46610
+ *
46611
+ * @param {any} channel
46612
+ * @param {number} businessId
46613
+ * @param {*} [options] Override http request option.
46614
+ * @throws {RequiredError}
46615
+ */
46616
+ getOnboardingStatus: async (channel: any, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46617
+ // verify required parameter 'channel' is not null or undefined
46618
+ assertParamExists('getOnboardingStatus', 'channel', channel)
46619
+ // verify required parameter 'businessId' is not null or undefined
46620
+ assertParamExists('getOnboardingStatus', 'businessId', businessId)
46621
+ const localVarPath = `/api/v1/provider/onboarding/{channel}/status/{businessId}`
46622
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
46623
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
46624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46625
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46626
+ let baseOptions;
46627
+ if (configuration) {
46628
+ baseOptions = configuration.baseOptions;
46629
+ }
46630
+
46631
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
46632
+ const localVarHeaderParameter = {} as any;
46633
+ const localVarQueryParameter = {} as any;
46634
+
46635
+
46636
+
45745
46637
  setSearchParams(localVarUrlObj, localVarQueryParameter);
45746
46638
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45747
46639
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -45785,6 +46677,86 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
45785
46677
  options: localVarRequestOptions,
45786
46678
  };
45787
46679
  },
46680
+ /**
46681
+ *
46682
+ * @param {any} channel
46683
+ * @param {string} state
46684
+ * @param {*} [options] Override http request option.
46685
+ * @throws {RequiredError}
46686
+ */
46687
+ listOnboardingStores: async (channel: any, state: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46688
+ // verify required parameter 'channel' is not null or undefined
46689
+ assertParamExists('listOnboardingStores', 'channel', channel)
46690
+ // verify required parameter 'state' is not null or undefined
46691
+ assertParamExists('listOnboardingStores', 'state', state)
46692
+ const localVarPath = `/api/v1/provider/onboarding/{channel}/{state}/stores`
46693
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
46694
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
46695
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46696
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46697
+ let baseOptions;
46698
+ if (configuration) {
46699
+ baseOptions = configuration.baseOptions;
46700
+ }
46701
+
46702
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
46703
+ const localVarHeaderParameter = {} as any;
46704
+ const localVarQueryParameter = {} as any;
46705
+
46706
+
46707
+
46708
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46709
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46710
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46711
+
46712
+ return {
46713
+ url: toPathString(localVarUrlObj),
46714
+ options: localVarRequestOptions,
46715
+ };
46716
+ },
46717
+ /**
46718
+ *
46719
+ * @param {any} channel
46720
+ * @param {string} state
46721
+ * @param {object} body
46722
+ * @param {*} [options] Override http request option.
46723
+ * @throws {RequiredError}
46724
+ */
46725
+ provisionOnboardingStore: async (channel: any, state: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46726
+ // verify required parameter 'channel' is not null or undefined
46727
+ assertParamExists('provisionOnboardingStore', 'channel', channel)
46728
+ // verify required parameter 'state' is not null or undefined
46729
+ assertParamExists('provisionOnboardingStore', 'state', state)
46730
+ // verify required parameter 'body' is not null or undefined
46731
+ assertParamExists('provisionOnboardingStore', 'body', body)
46732
+ const localVarPath = `/api/v1/provider/onboarding/{channel}/{state}/provision`
46733
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
46734
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
46735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46736
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46737
+ let baseOptions;
46738
+ if (configuration) {
46739
+ baseOptions = configuration.baseOptions;
46740
+ }
46741
+
46742
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
46743
+ const localVarHeaderParameter = {} as any;
46744
+ const localVarQueryParameter = {} as any;
46745
+
46746
+
46747
+
46748
+ localVarHeaderParameter['Content-Type'] = 'application/json';
46749
+
46750
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46752
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46753
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
46754
+
46755
+ return {
46756
+ url: toPathString(localVarUrlObj),
46757
+ options: localVarRequestOptions,
46758
+ };
46759
+ },
45788
46760
  /**
45789
46761
  *
45790
46762
  * @param {object} body
@@ -45843,6 +46815,45 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
45843
46815
 
45844
46816
 
45845
46817
 
46818
+ localVarHeaderParameter['Content-Type'] = 'application/json';
46819
+
46820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
46821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
46822
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
46823
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
46824
+
46825
+ return {
46826
+ url: toPathString(localVarUrlObj),
46827
+ options: localVarRequestOptions,
46828
+ };
46829
+ },
46830
+ /**
46831
+ *
46832
+ * @param {number} businessId
46833
+ * @param {object} body
46834
+ * @param {*} [options] Override http request option.
46835
+ * @throws {RequiredError}
46836
+ */
46837
+ updateProviderSettings: async (businessId: number, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46838
+ // verify required parameter 'businessId' is not null or undefined
46839
+ assertParamExists('updateProviderSettings', 'businessId', businessId)
46840
+ // verify required parameter 'body' is not null or undefined
46841
+ assertParamExists('updateProviderSettings', 'body', body)
46842
+ const localVarPath = `/api/v1/provider/{businessId}/settings`
46843
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
46844
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46845
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46846
+ let baseOptions;
46847
+ if (configuration) {
46848
+ baseOptions = configuration.baseOptions;
46849
+ }
46850
+
46851
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
46852
+ const localVarHeaderParameter = {} as any;
46853
+ const localVarQueryParameter = {} as any;
46854
+
46855
+
46856
+
45846
46857
  localVarHeaderParameter['Content-Type'] = 'application/json';
45847
46858
 
45848
46859
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -45865,6 +46876,28 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
45865
46876
  export const ProviderApiFp = function(configuration?: Configuration) {
45866
46877
  const localVarAxiosParamCreator = ProviderApiAxiosParamCreator(configuration)
45867
46878
  return {
46879
+ /**
46880
+ *
46881
+ * @param {any} channel
46882
+ * @param {object} body
46883
+ * @param {*} [options] Override http request option.
46884
+ * @throws {RequiredError}
46885
+ */
46886
+ async createOnboardingSession(channel: any, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46887
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOnboardingSession(channel, body, options);
46888
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46889
+ },
46890
+ /**
46891
+ *
46892
+ * @param {any} channel
46893
+ * @param {number} businessId
46894
+ * @param {*} [options] Override http request option.
46895
+ * @throws {RequiredError}
46896
+ */
46897
+ async disconnectOnboarding(channel: any, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46898
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectOnboarding(channel, businessId, options);
46899
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46900
+ },
45868
46901
  /**
45869
46902
  *
45870
46903
  * @summary Get provider integrations (MENU) for a business
@@ -45876,6 +46909,17 @@ export const ProviderApiFp = function(configuration?: Configuration) {
45876
46909
  const localVarAxiosArgs = await localVarAxiosParamCreator.getMenuIntegrations(businessId, options);
45877
46910
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45878
46911
  },
46912
+ /**
46913
+ *
46914
+ * @param {any} channel
46915
+ * @param {number} businessId
46916
+ * @param {*} [options] Override http request option.
46917
+ * @throws {RequiredError}
46918
+ */
46919
+ async getOnboardingStatus(channel: any, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46920
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOnboardingStatus(channel, businessId, options);
46921
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46922
+ },
45879
46923
  /**
45880
46924
  *
45881
46925
  * @summary Get supported channels for a business
@@ -45887,6 +46931,29 @@ export const ProviderApiFp = function(configuration?: Configuration) {
45887
46931
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedChannels(businessId, options);
45888
46932
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45889
46933
  },
46934
+ /**
46935
+ *
46936
+ * @param {any} channel
46937
+ * @param {string} state
46938
+ * @param {*} [options] Override http request option.
46939
+ * @throws {RequiredError}
46940
+ */
46941
+ async listOnboardingStores(channel: any, state: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOnboardingStores(channel, state, options);
46943
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46944
+ },
46945
+ /**
46946
+ *
46947
+ * @param {any} channel
46948
+ * @param {string} state
46949
+ * @param {object} body
46950
+ * @param {*} [options] Override http request option.
46951
+ * @throws {RequiredError}
46952
+ */
46953
+ async provisionOnboardingStore(channel: any, state: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46954
+ const localVarAxiosArgs = await localVarAxiosParamCreator.provisionOnboardingStore(channel, state, body, options);
46955
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46956
+ },
45890
46957
  /**
45891
46958
  *
45892
46959
  * @param {object} body
@@ -45907,6 +46974,17 @@ export const ProviderApiFp = function(configuration?: Configuration) {
45907
46974
  const localVarAxiosArgs = await localVarAxiosParamCreator.registerProvider(body, options);
45908
46975
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45909
46976
  },
46977
+ /**
46978
+ *
46979
+ * @param {number} businessId
46980
+ * @param {object} body
46981
+ * @param {*} [options] Override http request option.
46982
+ * @throws {RequiredError}
46983
+ */
46984
+ async updateProviderSettings(businessId: number, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
46985
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProviderSettings(businessId, body, options);
46986
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46987
+ },
45910
46988
  }
45911
46989
  };
45912
46990
 
@@ -45917,6 +46995,26 @@ export const ProviderApiFp = function(configuration?: Configuration) {
45917
46995
  export const ProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
45918
46996
  const localVarFp = ProviderApiFp(configuration)
45919
46997
  return {
46998
+ /**
46999
+ *
47000
+ * @param {any} channel
47001
+ * @param {object} body
47002
+ * @param {*} [options] Override http request option.
47003
+ * @throws {RequiredError}
47004
+ */
47005
+ createOnboardingSession(channel: any, body: object, options?: any): AxiosPromise<void> {
47006
+ return localVarFp.createOnboardingSession(channel, body, options).then((request) => request(axios, basePath));
47007
+ },
47008
+ /**
47009
+ *
47010
+ * @param {any} channel
47011
+ * @param {number} businessId
47012
+ * @param {*} [options] Override http request option.
47013
+ * @throws {RequiredError}
47014
+ */
47015
+ disconnectOnboarding(channel: any, businessId: number, options?: any): AxiosPromise<void> {
47016
+ return localVarFp.disconnectOnboarding(channel, businessId, options).then((request) => request(axios, basePath));
47017
+ },
45920
47018
  /**
45921
47019
  *
45922
47020
  * @summary Get provider integrations (MENU) for a business
@@ -45927,6 +47025,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
45927
47025
  getMenuIntegrations(businessId: number, options?: any): AxiosPromise<Array<ProviderIntegrationDto>> {
45928
47026
  return localVarFp.getMenuIntegrations(businessId, options).then((request) => request(axios, basePath));
45929
47027
  },
47028
+ /**
47029
+ *
47030
+ * @param {any} channel
47031
+ * @param {number} businessId
47032
+ * @param {*} [options] Override http request option.
47033
+ * @throws {RequiredError}
47034
+ */
47035
+ getOnboardingStatus(channel: any, businessId: number, options?: any): AxiosPromise<void> {
47036
+ return localVarFp.getOnboardingStatus(channel, businessId, options).then((request) => request(axios, basePath));
47037
+ },
45930
47038
  /**
45931
47039
  *
45932
47040
  * @summary Get supported channels for a business
@@ -45937,6 +47045,27 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
45937
47045
  getSupportedChannels(businessId: number, options?: any): AxiosPromise<GetSupportedChannelsResponseDto> {
45938
47046
  return localVarFp.getSupportedChannels(businessId, options).then((request) => request(axios, basePath));
45939
47047
  },
47048
+ /**
47049
+ *
47050
+ * @param {any} channel
47051
+ * @param {string} state
47052
+ * @param {*} [options] Override http request option.
47053
+ * @throws {RequiredError}
47054
+ */
47055
+ listOnboardingStores(channel: any, state: string, options?: any): AxiosPromise<void> {
47056
+ return localVarFp.listOnboardingStores(channel, state, options).then((request) => request(axios, basePath));
47057
+ },
47058
+ /**
47059
+ *
47060
+ * @param {any} channel
47061
+ * @param {string} state
47062
+ * @param {object} body
47063
+ * @param {*} [options] Override http request option.
47064
+ * @throws {RequiredError}
47065
+ */
47066
+ provisionOnboardingStore(channel: any, state: string, body: object, options?: any): AxiosPromise<void> {
47067
+ return localVarFp.provisionOnboardingStore(channel, state, body, options).then((request) => request(axios, basePath));
47068
+ },
45940
47069
  /**
45941
47070
  *
45942
47071
  * @param {object} body
@@ -45955,6 +47084,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
45955
47084
  registerProvider(body: object, options?: any): AxiosPromise<void> {
45956
47085
  return localVarFp.registerProvider(body, options).then((request) => request(axios, basePath));
45957
47086
  },
47087
+ /**
47088
+ *
47089
+ * @param {number} businessId
47090
+ * @param {object} body
47091
+ * @param {*} [options] Override http request option.
47092
+ * @throws {RequiredError}
47093
+ */
47094
+ updateProviderSettings(businessId: number, body: object, options?: any): AxiosPromise<void> {
47095
+ return localVarFp.updateProviderSettings(businessId, body, options).then((request) => request(axios, basePath));
47096
+ },
45958
47097
  };
45959
47098
  };
45960
47099
 
@@ -45964,6 +47103,26 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
45964
47103
  * @interface ProviderApi
45965
47104
  */
45966
47105
  export interface ProviderApiInterface {
47106
+ /**
47107
+ *
47108
+ * @param {any} channel
47109
+ * @param {object} body
47110
+ * @param {*} [options] Override http request option.
47111
+ * @throws {RequiredError}
47112
+ * @memberof ProviderApiInterface
47113
+ */
47114
+ createOnboardingSession(channel: any, body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
47115
+
47116
+ /**
47117
+ *
47118
+ * @param {any} channel
47119
+ * @param {number} businessId
47120
+ * @param {*} [options] Override http request option.
47121
+ * @throws {RequiredError}
47122
+ * @memberof ProviderApiInterface
47123
+ */
47124
+ disconnectOnboarding(channel: any, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
47125
+
45967
47126
  /**
45968
47127
  *
45969
47128
  * @summary Get provider integrations (MENU) for a business
@@ -45974,6 +47133,16 @@ export interface ProviderApiInterface {
45974
47133
  */
45975
47134
  getMenuIntegrations(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<ProviderIntegrationDto>>;
45976
47135
 
47136
+ /**
47137
+ *
47138
+ * @param {any} channel
47139
+ * @param {number} businessId
47140
+ * @param {*} [options] Override http request option.
47141
+ * @throws {RequiredError}
47142
+ * @memberof ProviderApiInterface
47143
+ */
47144
+ getOnboardingStatus(channel: any, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
47145
+
45977
47146
  /**
45978
47147
  *
45979
47148
  * @summary Get supported channels for a business
@@ -45984,6 +47153,27 @@ export interface ProviderApiInterface {
45984
47153
  */
45985
47154
  getSupportedChannels(businessId: number, options?: AxiosRequestConfig): AxiosPromise<GetSupportedChannelsResponseDto>;
45986
47155
 
47156
+ /**
47157
+ *
47158
+ * @param {any} channel
47159
+ * @param {string} state
47160
+ * @param {*} [options] Override http request option.
47161
+ * @throws {RequiredError}
47162
+ * @memberof ProviderApiInterface
47163
+ */
47164
+ listOnboardingStores(channel: any, state: string, options?: AxiosRequestConfig): AxiosPromise<void>;
47165
+
47166
+ /**
47167
+ *
47168
+ * @param {any} channel
47169
+ * @param {string} state
47170
+ * @param {object} body
47171
+ * @param {*} [options] Override http request option.
47172
+ * @throws {RequiredError}
47173
+ * @memberof ProviderApiInterface
47174
+ */
47175
+ provisionOnboardingStore(channel: any, state: string, body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
47176
+
45987
47177
  /**
45988
47178
  *
45989
47179
  * @param {object} body
@@ -46002,6 +47192,16 @@ export interface ProviderApiInterface {
46002
47192
  */
46003
47193
  registerProvider(body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
46004
47194
 
47195
+ /**
47196
+ *
47197
+ * @param {number} businessId
47198
+ * @param {object} body
47199
+ * @param {*} [options] Override http request option.
47200
+ * @throws {RequiredError}
47201
+ * @memberof ProviderApiInterface
47202
+ */
47203
+ updateProviderSettings(businessId: number, body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
47204
+
46005
47205
  }
46006
47206
 
46007
47207
  /**
@@ -46011,6 +47211,30 @@ export interface ProviderApiInterface {
46011
47211
  * @extends {BaseAPI}
46012
47212
  */
46013
47213
  export class ProviderApi extends BaseAPI implements ProviderApiInterface {
47214
+ /**
47215
+ *
47216
+ * @param {any} channel
47217
+ * @param {object} body
47218
+ * @param {*} [options] Override http request option.
47219
+ * @throws {RequiredError}
47220
+ * @memberof ProviderApi
47221
+ */
47222
+ public createOnboardingSession(channel: any, body: object, options?: AxiosRequestConfig) {
47223
+ return ProviderApiFp(this.configuration).createOnboardingSession(channel, body, options).then((request) => request(this.axios, this.basePath));
47224
+ }
47225
+
47226
+ /**
47227
+ *
47228
+ * @param {any} channel
47229
+ * @param {number} businessId
47230
+ * @param {*} [options] Override http request option.
47231
+ * @throws {RequiredError}
47232
+ * @memberof ProviderApi
47233
+ */
47234
+ public disconnectOnboarding(channel: any, businessId: number, options?: AxiosRequestConfig) {
47235
+ return ProviderApiFp(this.configuration).disconnectOnboarding(channel, businessId, options).then((request) => request(this.axios, this.basePath));
47236
+ }
47237
+
46014
47238
  /**
46015
47239
  *
46016
47240
  * @summary Get provider integrations (MENU) for a business
@@ -46023,6 +47247,18 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
46023
47247
  return ProviderApiFp(this.configuration).getMenuIntegrations(businessId, options).then((request) => request(this.axios, this.basePath));
46024
47248
  }
46025
47249
 
47250
+ /**
47251
+ *
47252
+ * @param {any} channel
47253
+ * @param {number} businessId
47254
+ * @param {*} [options] Override http request option.
47255
+ * @throws {RequiredError}
47256
+ * @memberof ProviderApi
47257
+ */
47258
+ public getOnboardingStatus(channel: any, businessId: number, options?: AxiosRequestConfig) {
47259
+ return ProviderApiFp(this.configuration).getOnboardingStatus(channel, businessId, options).then((request) => request(this.axios, this.basePath));
47260
+ }
47261
+
46026
47262
  /**
46027
47263
  *
46028
47264
  * @summary Get supported channels for a business
@@ -46035,6 +47271,31 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
46035
47271
  return ProviderApiFp(this.configuration).getSupportedChannels(businessId, options).then((request) => request(this.axios, this.basePath));
46036
47272
  }
46037
47273
 
47274
+ /**
47275
+ *
47276
+ * @param {any} channel
47277
+ * @param {string} state
47278
+ * @param {*} [options] Override http request option.
47279
+ * @throws {RequiredError}
47280
+ * @memberof ProviderApi
47281
+ */
47282
+ public listOnboardingStores(channel: any, state: string, options?: AxiosRequestConfig) {
47283
+ return ProviderApiFp(this.configuration).listOnboardingStores(channel, state, options).then((request) => request(this.axios, this.basePath));
47284
+ }
47285
+
47286
+ /**
47287
+ *
47288
+ * @param {any} channel
47289
+ * @param {string} state
47290
+ * @param {object} body
47291
+ * @param {*} [options] Override http request option.
47292
+ * @throws {RequiredError}
47293
+ * @memberof ProviderApi
47294
+ */
47295
+ public provisionOnboardingStore(channel: any, state: string, body: object, options?: AxiosRequestConfig) {
47296
+ return ProviderApiFp(this.configuration).provisionOnboardingStore(channel, state, body, options).then((request) => request(this.axios, this.basePath));
47297
+ }
47298
+
46038
47299
  /**
46039
47300
  *
46040
47301
  * @param {object} body
@@ -46056,6 +47317,18 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
46056
47317
  public registerProvider(body: object, options?: AxiosRequestConfig) {
46057
47318
  return ProviderApiFp(this.configuration).registerProvider(body, options).then((request) => request(this.axios, this.basePath));
46058
47319
  }
47320
+
47321
+ /**
47322
+ *
47323
+ * @param {number} businessId
47324
+ * @param {object} body
47325
+ * @param {*} [options] Override http request option.
47326
+ * @throws {RequiredError}
47327
+ * @memberof ProviderApi
47328
+ */
47329
+ public updateProviderSettings(businessId: number, body: object, options?: AxiosRequestConfig) {
47330
+ return ProviderApiFp(this.configuration).updateProviderSettings(businessId, body, options).then((request) => request(this.axios, this.basePath));
47331
+ }
46059
47332
  }
46060
47333
 
46061
47334