@munchi_oy/core 1.9.95 → 1.9.96
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 +692 -42
- 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 +1098 -42
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -3851,12 +3851,6 @@ export interface CreateManualSessionDtoOrder {
|
|
|
3851
3851
|
* @memberof CreateManualSessionDtoOrder
|
|
3852
3852
|
*/
|
|
3853
3853
|
'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
3854
|
}
|
|
3861
3855
|
|
|
3862
3856
|
|
|
@@ -7143,6 +7137,12 @@ export interface InitiateVivaSessionDto {
|
|
|
7143
7137
|
* @memberof InitiateVivaSessionDto
|
|
7144
7138
|
*/
|
|
7145
7139
|
'splitContext'?: CreateManualSessionDtoSplitContext;
|
|
7140
|
+
/**
|
|
7141
|
+
* Paired Munchi Pay terminal id (from @munchi_oy/pay-terminal-protocol pairing) that should execute this app-to-app charge. Bound onto the session so the paired terminal is discoverable/auditable; the POS still owns polling as source of truth. Distinct from the Viva cloud-terminal hardware id.
|
|
7142
|
+
* @type {string}
|
|
7143
|
+
* @memberof InitiateVivaSessionDto
|
|
7144
|
+
*/
|
|
7145
|
+
'payTerminalId'?: string;
|
|
7146
7146
|
}
|
|
7147
7147
|
/**
|
|
7148
7148
|
*
|
|
@@ -12757,6 +12757,202 @@ export interface PairDisplayResponseDto {
|
|
|
12757
12757
|
*/
|
|
12758
12758
|
'displayId': string;
|
|
12759
12759
|
}
|
|
12760
|
+
/**
|
|
12761
|
+
*
|
|
12762
|
+
* @export
|
|
12763
|
+
* @interface PairPayTerminalBodyDto
|
|
12764
|
+
*/
|
|
12765
|
+
export interface PairPayTerminalBodyDto {
|
|
12766
|
+
/**
|
|
12767
|
+
* Stable POS device identifier.
|
|
12768
|
+
* @type {string}
|
|
12769
|
+
* @memberof PairPayTerminalBodyDto
|
|
12770
|
+
*/
|
|
12771
|
+
'posDeviceId': string;
|
|
12772
|
+
/**
|
|
12773
|
+
* Pairing code entered on the POS.
|
|
12774
|
+
* @type {string}
|
|
12775
|
+
* @memberof PairPayTerminalBodyDto
|
|
12776
|
+
*/
|
|
12777
|
+
'code'?: string;
|
|
12778
|
+
/**
|
|
12779
|
+
* Terminal id (nonce path, with nonce).
|
|
12780
|
+
* @type {string}
|
|
12781
|
+
* @memberof PairPayTerminalBodyDto
|
|
12782
|
+
*/
|
|
12783
|
+
'terminalId'?: string;
|
|
12784
|
+
/**
|
|
12785
|
+
* One-time nonce (nonce path).
|
|
12786
|
+
* @type {string}
|
|
12787
|
+
* @memberof PairPayTerminalBodyDto
|
|
12788
|
+
*/
|
|
12789
|
+
'nonce'?: string;
|
|
12790
|
+
/**
|
|
12791
|
+
* Business to pair to; must be in the caller\'s scope.
|
|
12792
|
+
* @type {number}
|
|
12793
|
+
* @memberof PairPayTerminalBodyDto
|
|
12794
|
+
*/
|
|
12795
|
+
'businessId'?: number;
|
|
12796
|
+
}
|
|
12797
|
+
/**
|
|
12798
|
+
*
|
|
12799
|
+
* @export
|
|
12800
|
+
* @interface PairPayTerminalResponseDto
|
|
12801
|
+
*/
|
|
12802
|
+
export interface PairPayTerminalResponseDto {
|
|
12803
|
+
/**
|
|
12804
|
+
*
|
|
12805
|
+
* @type {string}
|
|
12806
|
+
* @memberof PairPayTerminalResponseDto
|
|
12807
|
+
*/
|
|
12808
|
+
'sessionId': string;
|
|
12809
|
+
/**
|
|
12810
|
+
*
|
|
12811
|
+
* @type {string}
|
|
12812
|
+
* @memberof PairPayTerminalResponseDto
|
|
12813
|
+
*/
|
|
12814
|
+
'sessionChannel': string;
|
|
12815
|
+
/**
|
|
12816
|
+
*
|
|
12817
|
+
* @type {string}
|
|
12818
|
+
* @memberof PairPayTerminalResponseDto
|
|
12819
|
+
*/
|
|
12820
|
+
'terminalId': string;
|
|
12821
|
+
/**
|
|
12822
|
+
*
|
|
12823
|
+
* @type {string}
|
|
12824
|
+
* @memberof PairPayTerminalResponseDto
|
|
12825
|
+
*/
|
|
12826
|
+
'terminalName'?: string | null;
|
|
12827
|
+
}
|
|
12828
|
+
/**
|
|
12829
|
+
*
|
|
12830
|
+
* @export
|
|
12831
|
+
* @interface PayTerminalInitBodyDto
|
|
12832
|
+
*/
|
|
12833
|
+
export interface PayTerminalInitBodyDto {
|
|
12834
|
+
/**
|
|
12835
|
+
* Stable hardware identifier of the pay-terminal device.
|
|
12836
|
+
* @type {string}
|
|
12837
|
+
* @memberof PayTerminalInitBodyDto
|
|
12838
|
+
*/
|
|
12839
|
+
'deviceHardwareId': string;
|
|
12840
|
+
/**
|
|
12841
|
+
* Optional human-readable label for the pay-terminal device.
|
|
12842
|
+
* @type {string}
|
|
12843
|
+
* @memberof PayTerminalInitBodyDto
|
|
12844
|
+
*/
|
|
12845
|
+
'terminalName'?: string | null;
|
|
12846
|
+
}
|
|
12847
|
+
/**
|
|
12848
|
+
*
|
|
12849
|
+
* @export
|
|
12850
|
+
* @interface PayTerminalInitResponseDto
|
|
12851
|
+
*/
|
|
12852
|
+
export interface PayTerminalInitResponseDto {
|
|
12853
|
+
/**
|
|
12854
|
+
* Server-issued pay-terminal identity.
|
|
12855
|
+
* @type {string}
|
|
12856
|
+
* @memberof PayTerminalInitResponseDto
|
|
12857
|
+
*/
|
|
12858
|
+
'terminalId': string;
|
|
12859
|
+
/**
|
|
12860
|
+
* Short pairing code shown on the terminal.
|
|
12861
|
+
* @type {string}
|
|
12862
|
+
* @memberof PayTerminalInitResponseDto
|
|
12863
|
+
*/
|
|
12864
|
+
'code': string;
|
|
12865
|
+
/**
|
|
12866
|
+
* One-time nonce carried in the pairing QR.
|
|
12867
|
+
* @type {string}
|
|
12868
|
+
* @memberof PayTerminalInitResponseDto
|
|
12869
|
+
*/
|
|
12870
|
+
'nonce': string;
|
|
12871
|
+
/**
|
|
12872
|
+
* Ably channel the terminal subscribes to for the ack.
|
|
12873
|
+
* @type {string}
|
|
12874
|
+
* @memberof PayTerminalInitResponseDto
|
|
12875
|
+
*/
|
|
12876
|
+
'pairingChannel': string;
|
|
12877
|
+
/**
|
|
12878
|
+
* Epoch ms when the code/nonce expires.
|
|
12879
|
+
* @type {number}
|
|
12880
|
+
* @memberof PayTerminalInitResponseDto
|
|
12881
|
+
*/
|
|
12882
|
+
'expiresAt': number;
|
|
12883
|
+
/**
|
|
12884
|
+
* Ably TokenRequest scoped to the pairing channel.
|
|
12885
|
+
* @type {object}
|
|
12886
|
+
* @memberof PayTerminalInitResponseDto
|
|
12887
|
+
*/
|
|
12888
|
+
'ablyTokenRequest': object;
|
|
12889
|
+
}
|
|
12890
|
+
/**
|
|
12891
|
+
*
|
|
12892
|
+
* @export
|
|
12893
|
+
* @enum {string}
|
|
12894
|
+
*/
|
|
12895
|
+
|
|
12896
|
+
export const PayTerminalSessionRole = {
|
|
12897
|
+
Pos: 'pos',
|
|
12898
|
+
Terminal: 'terminal'
|
|
12899
|
+
} as const;
|
|
12900
|
+
|
|
12901
|
+
export type PayTerminalSessionRole = typeof PayTerminalSessionRole[keyof typeof PayTerminalSessionRole];
|
|
12902
|
+
|
|
12903
|
+
|
|
12904
|
+
/**
|
|
12905
|
+
*
|
|
12906
|
+
* @export
|
|
12907
|
+
* @interface PayTerminalSessionTokenBodyDto
|
|
12908
|
+
*/
|
|
12909
|
+
export interface PayTerminalSessionTokenBodyDto {
|
|
12910
|
+
/**
|
|
12911
|
+
*
|
|
12912
|
+
* @type {string}
|
|
12913
|
+
* @memberof PayTerminalSessionTokenBodyDto
|
|
12914
|
+
*/
|
|
12915
|
+
'sessionId': string;
|
|
12916
|
+
/**
|
|
12917
|
+
*
|
|
12918
|
+
* @type {PayTerminalSessionRole}
|
|
12919
|
+
* @memberof PayTerminalSessionTokenBodyDto
|
|
12920
|
+
*/
|
|
12921
|
+
'role': PayTerminalSessionRole;
|
|
12922
|
+
/**
|
|
12923
|
+
* Requesting device id (posDeviceId or terminalId).
|
|
12924
|
+
* @type {string}
|
|
12925
|
+
* @memberof PayTerminalSessionTokenBodyDto
|
|
12926
|
+
*/
|
|
12927
|
+
'deviceId': string;
|
|
12928
|
+
}
|
|
12929
|
+
|
|
12930
|
+
|
|
12931
|
+
/**
|
|
12932
|
+
*
|
|
12933
|
+
* @export
|
|
12934
|
+
* @interface PayTerminalSessionTokenResponseDto
|
|
12935
|
+
*/
|
|
12936
|
+
export interface PayTerminalSessionTokenResponseDto {
|
|
12937
|
+
/**
|
|
12938
|
+
* Ably TokenRequest scoped to the session channel.
|
|
12939
|
+
* @type {object}
|
|
12940
|
+
* @memberof PayTerminalSessionTokenResponseDto
|
|
12941
|
+
*/
|
|
12942
|
+
'ablyTokenRequest': object;
|
|
12943
|
+
/**
|
|
12944
|
+
*
|
|
12945
|
+
* @type {string}
|
|
12946
|
+
* @memberof PayTerminalSessionTokenResponseDto
|
|
12947
|
+
*/
|
|
12948
|
+
'sessionChannel': string;
|
|
12949
|
+
/**
|
|
12950
|
+
*
|
|
12951
|
+
* @type {string}
|
|
12952
|
+
* @memberof PayTerminalSessionTokenResponseDto
|
|
12953
|
+
*/
|
|
12954
|
+
'terminalName'?: string | null;
|
|
12955
|
+
}
|
|
12760
12956
|
/**
|
|
12761
12957
|
*
|
|
12762
12958
|
* @export
|
|
@@ -16018,12 +16214,6 @@ export interface PosOrderDto {
|
|
|
16018
16214
|
* @memberof PosOrderDto
|
|
16019
16215
|
*/
|
|
16020
16216
|
'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
16217
|
}
|
|
16028
16218
|
|
|
16029
16219
|
|
|
@@ -16846,12 +17036,6 @@ export interface PosOrderPayloadDtoOrder {
|
|
|
16846
17036
|
* @memberof PosOrderPayloadDtoOrder
|
|
16847
17037
|
*/
|
|
16848
17038
|
'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
17039
|
}
|
|
16856
17040
|
|
|
16857
17041
|
|
|
@@ -17792,12 +17976,6 @@ export interface ProcessOrderActionsResponseDtoOrder {
|
|
|
17792
17976
|
* @memberof ProcessOrderActionsResponseDtoOrder
|
|
17793
17977
|
*/
|
|
17794
17978
|
'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
17979
|
}
|
|
17802
17980
|
|
|
17803
17981
|
|
|
@@ -19097,12 +19275,6 @@ export interface RecordManualPaymentResultDtoOrder {
|
|
|
19097
19275
|
* @memberof RecordManualPaymentResultDtoOrder
|
|
19098
19276
|
*/
|
|
19099
19277
|
'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
19278
|
}
|
|
19107
19279
|
|
|
19108
19280
|
|
|
@@ -21400,12 +21572,6 @@ export interface SyncKioskOrderDtoOrder {
|
|
|
21400
21572
|
* @memberof SyncKioskOrderDtoOrder
|
|
21401
21573
|
*/
|
|
21402
21574
|
'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
21575
|
}
|
|
21410
21576
|
|
|
21411
21577
|
|
|
@@ -21693,12 +21859,6 @@ export interface SyncPosOrderDtoOrder {
|
|
|
21693
21859
|
* @memberof SyncPosOrderDtoOrder
|
|
21694
21860
|
*/
|
|
21695
21861
|
'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
21862
|
}
|
|
21703
21863
|
|
|
21704
21864
|
|
|
@@ -23813,6 +23973,46 @@ export interface UnlockTerminalDto {
|
|
|
23813
23973
|
*/
|
|
23814
23974
|
'employeeId': string;
|
|
23815
23975
|
}
|
|
23976
|
+
/**
|
|
23977
|
+
*
|
|
23978
|
+
* @export
|
|
23979
|
+
* @interface UnpairPayTerminalBodyDto
|
|
23980
|
+
*/
|
|
23981
|
+
export interface UnpairPayTerminalBodyDto {
|
|
23982
|
+
/**
|
|
23983
|
+
* Session id of the binding to tear down.
|
|
23984
|
+
* @type {string}
|
|
23985
|
+
* @memberof UnpairPayTerminalBodyDto
|
|
23986
|
+
*/
|
|
23987
|
+
'sessionId': string;
|
|
23988
|
+
/**
|
|
23989
|
+
*
|
|
23990
|
+
* @type {PayTerminalSessionRole}
|
|
23991
|
+
* @memberof UnpairPayTerminalBodyDto
|
|
23992
|
+
*/
|
|
23993
|
+
'role': PayTerminalSessionRole;
|
|
23994
|
+
/**
|
|
23995
|
+
* Requesting device id (posDeviceId or terminalId).
|
|
23996
|
+
* @type {string}
|
|
23997
|
+
* @memberof UnpairPayTerminalBodyDto
|
|
23998
|
+
*/
|
|
23999
|
+
'deviceId': string;
|
|
24000
|
+
}
|
|
24001
|
+
|
|
24002
|
+
|
|
24003
|
+
/**
|
|
24004
|
+
*
|
|
24005
|
+
* @export
|
|
24006
|
+
* @interface UnpairPayTerminalResponseDto
|
|
24007
|
+
*/
|
|
24008
|
+
export interface UnpairPayTerminalResponseDto {
|
|
24009
|
+
/**
|
|
24010
|
+
* True once the binding is cleared (or already gone).
|
|
24011
|
+
* @type {boolean}
|
|
24012
|
+
* @memberof UnpairPayTerminalResponseDto
|
|
24013
|
+
*/
|
|
24014
|
+
'success': boolean;
|
|
24015
|
+
}
|
|
23816
24016
|
/**
|
|
23817
24017
|
*
|
|
23818
24018
|
* @export
|
|
@@ -41529,6 +41729,368 @@ export class POSSessionApi extends BaseAPI implements POSSessionApiInterface {
|
|
|
41529
41729
|
}
|
|
41530
41730
|
|
|
41531
41731
|
|
|
41732
|
+
/**
|
|
41733
|
+
* PayTerminalApi - axios parameter creator
|
|
41734
|
+
* @export
|
|
41735
|
+
*/
|
|
41736
|
+
export const PayTerminalApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
41737
|
+
return {
|
|
41738
|
+
/**
|
|
41739
|
+
*
|
|
41740
|
+
* @summary Register a pay terminal and mint a pairing token + code.
|
|
41741
|
+
* @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
|
|
41742
|
+
* @param {*} [options] Override http request option.
|
|
41743
|
+
* @throws {RequiredError}
|
|
41744
|
+
*/
|
|
41745
|
+
payTerminalInit: async (payTerminalInitBodyDto: PayTerminalInitBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41746
|
+
// verify required parameter 'payTerminalInitBodyDto' is not null or undefined
|
|
41747
|
+
assertParamExists('payTerminalInit', 'payTerminalInitBodyDto', payTerminalInitBodyDto)
|
|
41748
|
+
const localVarPath = `/api/v1/pay-terminal/init`;
|
|
41749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41751
|
+
let baseOptions;
|
|
41752
|
+
if (configuration) {
|
|
41753
|
+
baseOptions = configuration.baseOptions;
|
|
41754
|
+
}
|
|
41755
|
+
|
|
41756
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41757
|
+
const localVarHeaderParameter = {} as any;
|
|
41758
|
+
const localVarQueryParameter = {} as any;
|
|
41759
|
+
|
|
41760
|
+
|
|
41761
|
+
|
|
41762
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41763
|
+
|
|
41764
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41765
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41766
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41767
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payTerminalInitBodyDto, localVarRequestOptions, configuration)
|
|
41768
|
+
|
|
41769
|
+
return {
|
|
41770
|
+
url: toPathString(localVarUrlObj),
|
|
41771
|
+
options: localVarRequestOptions,
|
|
41772
|
+
};
|
|
41773
|
+
},
|
|
41774
|
+
/**
|
|
41775
|
+
*
|
|
41776
|
+
* @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
|
|
41777
|
+
* @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
|
|
41778
|
+
* @param {*} [options] Override http request option.
|
|
41779
|
+
* @throws {RequiredError}
|
|
41780
|
+
*/
|
|
41781
|
+
payTerminalPair: async (pairPayTerminalBodyDto: PairPayTerminalBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41782
|
+
// verify required parameter 'pairPayTerminalBodyDto' is not null or undefined
|
|
41783
|
+
assertParamExists('payTerminalPair', 'pairPayTerminalBodyDto', pairPayTerminalBodyDto)
|
|
41784
|
+
const localVarPath = `/api/v1/pay-terminal/pair`;
|
|
41785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41786
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41787
|
+
let baseOptions;
|
|
41788
|
+
if (configuration) {
|
|
41789
|
+
baseOptions = configuration.baseOptions;
|
|
41790
|
+
}
|
|
41791
|
+
|
|
41792
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41793
|
+
const localVarHeaderParameter = {} as any;
|
|
41794
|
+
const localVarQueryParameter = {} as any;
|
|
41795
|
+
|
|
41796
|
+
|
|
41797
|
+
|
|
41798
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41799
|
+
|
|
41800
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41801
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41802
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41803
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pairPayTerminalBodyDto, localVarRequestOptions, configuration)
|
|
41804
|
+
|
|
41805
|
+
return {
|
|
41806
|
+
url: toPathString(localVarUrlObj),
|
|
41807
|
+
options: localVarRequestOptions,
|
|
41808
|
+
};
|
|
41809
|
+
},
|
|
41810
|
+
/**
|
|
41811
|
+
*
|
|
41812
|
+
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
41813
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
41814
|
+
* @param {*} [options] Override http request option.
|
|
41815
|
+
* @throws {RequiredError}
|
|
41816
|
+
*/
|
|
41817
|
+
payTerminalSessionToken: async (payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41818
|
+
// verify required parameter 'payTerminalSessionTokenBodyDto' is not null or undefined
|
|
41819
|
+
assertParamExists('payTerminalSessionToken', 'payTerminalSessionTokenBodyDto', payTerminalSessionTokenBodyDto)
|
|
41820
|
+
const localVarPath = `/api/v1/pay-terminal/session-token`;
|
|
41821
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41822
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41823
|
+
let baseOptions;
|
|
41824
|
+
if (configuration) {
|
|
41825
|
+
baseOptions = configuration.baseOptions;
|
|
41826
|
+
}
|
|
41827
|
+
|
|
41828
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41829
|
+
const localVarHeaderParameter = {} as any;
|
|
41830
|
+
const localVarQueryParameter = {} as any;
|
|
41831
|
+
|
|
41832
|
+
|
|
41833
|
+
|
|
41834
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41835
|
+
|
|
41836
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41837
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41838
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41839
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payTerminalSessionTokenBodyDto, localVarRequestOptions, configuration)
|
|
41840
|
+
|
|
41841
|
+
return {
|
|
41842
|
+
url: toPathString(localVarUrlObj),
|
|
41843
|
+
options: localVarRequestOptions,
|
|
41844
|
+
};
|
|
41845
|
+
},
|
|
41846
|
+
/**
|
|
41847
|
+
*
|
|
41848
|
+
* @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
|
|
41849
|
+
* @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
|
|
41850
|
+
* @param {*} [options] Override http request option.
|
|
41851
|
+
* @throws {RequiredError}
|
|
41852
|
+
*/
|
|
41853
|
+
payTerminalUnpair: async (unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41854
|
+
// verify required parameter 'unpairPayTerminalBodyDto' is not null or undefined
|
|
41855
|
+
assertParamExists('payTerminalUnpair', 'unpairPayTerminalBodyDto', unpairPayTerminalBodyDto)
|
|
41856
|
+
const localVarPath = `/api/v1/pay-terminal/unpair`;
|
|
41857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41858
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41859
|
+
let baseOptions;
|
|
41860
|
+
if (configuration) {
|
|
41861
|
+
baseOptions = configuration.baseOptions;
|
|
41862
|
+
}
|
|
41863
|
+
|
|
41864
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
41865
|
+
const localVarHeaderParameter = {} as any;
|
|
41866
|
+
const localVarQueryParameter = {} as any;
|
|
41867
|
+
|
|
41868
|
+
|
|
41869
|
+
|
|
41870
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41871
|
+
|
|
41872
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41873
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41874
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41875
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unpairPayTerminalBodyDto, localVarRequestOptions, configuration)
|
|
41876
|
+
|
|
41877
|
+
return {
|
|
41878
|
+
url: toPathString(localVarUrlObj),
|
|
41879
|
+
options: localVarRequestOptions,
|
|
41880
|
+
};
|
|
41881
|
+
},
|
|
41882
|
+
}
|
|
41883
|
+
};
|
|
41884
|
+
|
|
41885
|
+
/**
|
|
41886
|
+
* PayTerminalApi - functional programming interface
|
|
41887
|
+
* @export
|
|
41888
|
+
*/
|
|
41889
|
+
export const PayTerminalApiFp = function(configuration?: Configuration) {
|
|
41890
|
+
const localVarAxiosParamCreator = PayTerminalApiAxiosParamCreator(configuration)
|
|
41891
|
+
return {
|
|
41892
|
+
/**
|
|
41893
|
+
*
|
|
41894
|
+
* @summary Register a pay terminal and mint a pairing token + code.
|
|
41895
|
+
* @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
|
|
41896
|
+
* @param {*} [options] Override http request option.
|
|
41897
|
+
* @throws {RequiredError}
|
|
41898
|
+
*/
|
|
41899
|
+
async payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalInitResponseDto>> {
|
|
41900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalInit(payTerminalInitBodyDto, options);
|
|
41901
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41902
|
+
},
|
|
41903
|
+
/**
|
|
41904
|
+
*
|
|
41905
|
+
* @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
|
|
41906
|
+
* @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
|
|
41907
|
+
* @param {*} [options] Override http request option.
|
|
41908
|
+
* @throws {RequiredError}
|
|
41909
|
+
*/
|
|
41910
|
+
async payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PairPayTerminalResponseDto>> {
|
|
41911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalPair(pairPayTerminalBodyDto, options);
|
|
41912
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41913
|
+
},
|
|
41914
|
+
/**
|
|
41915
|
+
*
|
|
41916
|
+
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
41917
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
41918
|
+
* @param {*} [options] Override http request option.
|
|
41919
|
+
* @throws {RequiredError}
|
|
41920
|
+
*/
|
|
41921
|
+
async payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayTerminalSessionTokenResponseDto>> {
|
|
41922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalSessionToken(payTerminalSessionTokenBodyDto, options);
|
|
41923
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41924
|
+
},
|
|
41925
|
+
/**
|
|
41926
|
+
*
|
|
41927
|
+
* @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
|
|
41928
|
+
* @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
|
|
41929
|
+
* @param {*} [options] Override http request option.
|
|
41930
|
+
* @throws {RequiredError}
|
|
41931
|
+
*/
|
|
41932
|
+
async payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnpairPayTerminalResponseDto>> {
|
|
41933
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.payTerminalUnpair(unpairPayTerminalBodyDto, options);
|
|
41934
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
41935
|
+
},
|
|
41936
|
+
}
|
|
41937
|
+
};
|
|
41938
|
+
|
|
41939
|
+
/**
|
|
41940
|
+
* PayTerminalApi - factory interface
|
|
41941
|
+
* @export
|
|
41942
|
+
*/
|
|
41943
|
+
export const PayTerminalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
41944
|
+
const localVarFp = PayTerminalApiFp(configuration)
|
|
41945
|
+
return {
|
|
41946
|
+
/**
|
|
41947
|
+
*
|
|
41948
|
+
* @summary Register a pay terminal and mint a pairing token + code.
|
|
41949
|
+
* @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
|
|
41950
|
+
* @param {*} [options] Override http request option.
|
|
41951
|
+
* @throws {RequiredError}
|
|
41952
|
+
*/
|
|
41953
|
+
payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: any): AxiosPromise<PayTerminalInitResponseDto> {
|
|
41954
|
+
return localVarFp.payTerminalInit(payTerminalInitBodyDto, options).then((request) => request(axios, basePath));
|
|
41955
|
+
},
|
|
41956
|
+
/**
|
|
41957
|
+
*
|
|
41958
|
+
* @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
|
|
41959
|
+
* @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
|
|
41960
|
+
* @param {*} [options] Override http request option.
|
|
41961
|
+
* @throws {RequiredError}
|
|
41962
|
+
*/
|
|
41963
|
+
payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: any): AxiosPromise<PairPayTerminalResponseDto> {
|
|
41964
|
+
return localVarFp.payTerminalPair(pairPayTerminalBodyDto, options).then((request) => request(axios, basePath));
|
|
41965
|
+
},
|
|
41966
|
+
/**
|
|
41967
|
+
*
|
|
41968
|
+
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
41969
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
41970
|
+
* @param {*} [options] Override http request option.
|
|
41971
|
+
* @throws {RequiredError}
|
|
41972
|
+
*/
|
|
41973
|
+
payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: any): AxiosPromise<PayTerminalSessionTokenResponseDto> {
|
|
41974
|
+
return localVarFp.payTerminalSessionToken(payTerminalSessionTokenBodyDto, options).then((request) => request(axios, basePath));
|
|
41975
|
+
},
|
|
41976
|
+
/**
|
|
41977
|
+
*
|
|
41978
|
+
* @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
|
|
41979
|
+
* @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
|
|
41980
|
+
* @param {*} [options] Override http request option.
|
|
41981
|
+
* @throws {RequiredError}
|
|
41982
|
+
*/
|
|
41983
|
+
payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: any): AxiosPromise<UnpairPayTerminalResponseDto> {
|
|
41984
|
+
return localVarFp.payTerminalUnpair(unpairPayTerminalBodyDto, options).then((request) => request(axios, basePath));
|
|
41985
|
+
},
|
|
41986
|
+
};
|
|
41987
|
+
};
|
|
41988
|
+
|
|
41989
|
+
/**
|
|
41990
|
+
* PayTerminalApi - interface
|
|
41991
|
+
* @export
|
|
41992
|
+
* @interface PayTerminalApi
|
|
41993
|
+
*/
|
|
41994
|
+
export interface PayTerminalApiInterface {
|
|
41995
|
+
/**
|
|
41996
|
+
*
|
|
41997
|
+
* @summary Register a pay terminal and mint a pairing token + code.
|
|
41998
|
+
* @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
|
|
41999
|
+
* @param {*} [options] Override http request option.
|
|
42000
|
+
* @throws {RequiredError}
|
|
42001
|
+
* @memberof PayTerminalApiInterface
|
|
42002
|
+
*/
|
|
42003
|
+
payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalInitResponseDto>;
|
|
42004
|
+
|
|
42005
|
+
/**
|
|
42006
|
+
*
|
|
42007
|
+
* @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
|
|
42008
|
+
* @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
|
|
42009
|
+
* @param {*} [options] Override http request option.
|
|
42010
|
+
* @throws {RequiredError}
|
|
42011
|
+
* @memberof PayTerminalApiInterface
|
|
42012
|
+
*/
|
|
42013
|
+
payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig): AxiosPromise<PairPayTerminalResponseDto>;
|
|
42014
|
+
|
|
42015
|
+
/**
|
|
42016
|
+
*
|
|
42017
|
+
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
42018
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
42019
|
+
* @param {*} [options] Override http request option.
|
|
42020
|
+
* @throws {RequiredError}
|
|
42021
|
+
* @memberof PayTerminalApiInterface
|
|
42022
|
+
*/
|
|
42023
|
+
payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig): AxiosPromise<PayTerminalSessionTokenResponseDto>;
|
|
42024
|
+
|
|
42025
|
+
/**
|
|
42026
|
+
*
|
|
42027
|
+
* @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
|
|
42028
|
+
* @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
|
|
42029
|
+
* @param {*} [options] Override http request option.
|
|
42030
|
+
* @throws {RequiredError}
|
|
42031
|
+
* @memberof PayTerminalApiInterface
|
|
42032
|
+
*/
|
|
42033
|
+
payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: AxiosRequestConfig): AxiosPromise<UnpairPayTerminalResponseDto>;
|
|
42034
|
+
|
|
42035
|
+
}
|
|
42036
|
+
|
|
42037
|
+
/**
|
|
42038
|
+
* PayTerminalApi - object-oriented interface
|
|
42039
|
+
* @export
|
|
42040
|
+
* @class PayTerminalApi
|
|
42041
|
+
* @extends {BaseAPI}
|
|
42042
|
+
*/
|
|
42043
|
+
export class PayTerminalApi extends BaseAPI implements PayTerminalApiInterface {
|
|
42044
|
+
/**
|
|
42045
|
+
*
|
|
42046
|
+
* @summary Register a pay terminal and mint a pairing token + code.
|
|
42047
|
+
* @param {PayTerminalInitBodyDto} payTerminalInitBodyDto
|
|
42048
|
+
* @param {*} [options] Override http request option.
|
|
42049
|
+
* @throws {RequiredError}
|
|
42050
|
+
* @memberof PayTerminalApi
|
|
42051
|
+
*/
|
|
42052
|
+
public payTerminalInit(payTerminalInitBodyDto: PayTerminalInitBodyDto, options?: AxiosRequestConfig) {
|
|
42053
|
+
return PayTerminalApiFp(this.configuration).payTerminalInit(payTerminalInitBodyDto, options).then((request) => request(this.axios, this.basePath));
|
|
42054
|
+
}
|
|
42055
|
+
|
|
42056
|
+
/**
|
|
42057
|
+
*
|
|
42058
|
+
* @summary Pair a terminal with the POS using its code or nonce (strict 1:1).
|
|
42059
|
+
* @param {PairPayTerminalBodyDto} pairPayTerminalBodyDto
|
|
42060
|
+
* @param {*} [options] Override http request option.
|
|
42061
|
+
* @throws {RequiredError}
|
|
42062
|
+
* @memberof PayTerminalApi
|
|
42063
|
+
*/
|
|
42064
|
+
public payTerminalPair(pairPayTerminalBodyDto: PairPayTerminalBodyDto, options?: AxiosRequestConfig) {
|
|
42065
|
+
return PayTerminalApiFp(this.configuration).payTerminalPair(pairPayTerminalBodyDto, options).then((request) => request(this.axios, this.basePath));
|
|
42066
|
+
}
|
|
42067
|
+
|
|
42068
|
+
/**
|
|
42069
|
+
*
|
|
42070
|
+
* @summary Mint a session-channel Ably token scoped to the device role.
|
|
42071
|
+
* @param {PayTerminalSessionTokenBodyDto} payTerminalSessionTokenBodyDto
|
|
42072
|
+
* @param {*} [options] Override http request option.
|
|
42073
|
+
* @throws {RequiredError}
|
|
42074
|
+
* @memberof PayTerminalApi
|
|
42075
|
+
*/
|
|
42076
|
+
public payTerminalSessionToken(payTerminalSessionTokenBodyDto: PayTerminalSessionTokenBodyDto, options?: AxiosRequestConfig) {
|
|
42077
|
+
return PayTerminalApiFp(this.configuration).payTerminalSessionToken(payTerminalSessionTokenBodyDto, options).then((request) => request(this.axios, this.basePath));
|
|
42078
|
+
}
|
|
42079
|
+
|
|
42080
|
+
/**
|
|
42081
|
+
*
|
|
42082
|
+
* @summary Tear down the 1:1 binding; callable by either paired side (idempotent).
|
|
42083
|
+
* @param {UnpairPayTerminalBodyDto} unpairPayTerminalBodyDto
|
|
42084
|
+
* @param {*} [options] Override http request option.
|
|
42085
|
+
* @throws {RequiredError}
|
|
42086
|
+
* @memberof PayTerminalApi
|
|
42087
|
+
*/
|
|
42088
|
+
public payTerminalUnpair(unpairPayTerminalBodyDto: UnpairPayTerminalBodyDto, options?: AxiosRequestConfig) {
|
|
42089
|
+
return PayTerminalApiFp(this.configuration).payTerminalUnpair(unpairPayTerminalBodyDto, options).then((request) => request(this.axios, this.basePath));
|
|
42090
|
+
}
|
|
42091
|
+
}
|
|
42092
|
+
|
|
42093
|
+
|
|
41532
42094
|
/**
|
|
41533
42095
|
* PaymentApi - axios parameter creator
|
|
41534
42096
|
* @export
|
|
@@ -45717,6 +46279,82 @@ export class ProductApi extends BaseAPI implements ProductApiInterface {
|
|
|
45717
46279
|
*/
|
|
45718
46280
|
export const ProviderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45719
46281
|
return {
|
|
46282
|
+
/**
|
|
46283
|
+
*
|
|
46284
|
+
* @param {any} channel
|
|
46285
|
+
* @param {object} body
|
|
46286
|
+
* @param {*} [options] Override http request option.
|
|
46287
|
+
* @throws {RequiredError}
|
|
46288
|
+
*/
|
|
46289
|
+
createOnboardingSession: async (channel: any, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46290
|
+
// verify required parameter 'channel' is not null or undefined
|
|
46291
|
+
assertParamExists('createOnboardingSession', 'channel', channel)
|
|
46292
|
+
// verify required parameter 'body' is not null or undefined
|
|
46293
|
+
assertParamExists('createOnboardingSession', 'body', body)
|
|
46294
|
+
const localVarPath = `/api/v1/provider/onboarding/{channel}/sessions`
|
|
46295
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
46296
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46297
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46298
|
+
let baseOptions;
|
|
46299
|
+
if (configuration) {
|
|
46300
|
+
baseOptions = configuration.baseOptions;
|
|
46301
|
+
}
|
|
46302
|
+
|
|
46303
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
46304
|
+
const localVarHeaderParameter = {} as any;
|
|
46305
|
+
const localVarQueryParameter = {} as any;
|
|
46306
|
+
|
|
46307
|
+
|
|
46308
|
+
|
|
46309
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
46310
|
+
|
|
46311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46313
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46314
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
46315
|
+
|
|
46316
|
+
return {
|
|
46317
|
+
url: toPathString(localVarUrlObj),
|
|
46318
|
+
options: localVarRequestOptions,
|
|
46319
|
+
};
|
|
46320
|
+
},
|
|
46321
|
+
/**
|
|
46322
|
+
*
|
|
46323
|
+
* @param {any} channel
|
|
46324
|
+
* @param {number} businessId
|
|
46325
|
+
* @param {*} [options] Override http request option.
|
|
46326
|
+
* @throws {RequiredError}
|
|
46327
|
+
*/
|
|
46328
|
+
disconnectOnboarding: async (channel: any, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46329
|
+
// verify required parameter 'channel' is not null or undefined
|
|
46330
|
+
assertParamExists('disconnectOnboarding', 'channel', channel)
|
|
46331
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
46332
|
+
assertParamExists('disconnectOnboarding', 'businessId', businessId)
|
|
46333
|
+
const localVarPath = `/api/v1/provider/onboarding/{channel}/{businessId}`
|
|
46334
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
46335
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
46336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46337
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46338
|
+
let baseOptions;
|
|
46339
|
+
if (configuration) {
|
|
46340
|
+
baseOptions = configuration.baseOptions;
|
|
46341
|
+
}
|
|
46342
|
+
|
|
46343
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
46344
|
+
const localVarHeaderParameter = {} as any;
|
|
46345
|
+
const localVarQueryParameter = {} as any;
|
|
46346
|
+
|
|
46347
|
+
|
|
46348
|
+
|
|
46349
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46351
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46352
|
+
|
|
46353
|
+
return {
|
|
46354
|
+
url: toPathString(localVarUrlObj),
|
|
46355
|
+
options: localVarRequestOptions,
|
|
46356
|
+
};
|
|
46357
|
+
},
|
|
45720
46358
|
/**
|
|
45721
46359
|
*
|
|
45722
46360
|
* @summary Get provider integrations (MENU) for a business
|
|
@@ -45742,6 +46380,43 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
45742
46380
|
|
|
45743
46381
|
|
|
45744
46382
|
|
|
46383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46385
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46386
|
+
|
|
46387
|
+
return {
|
|
46388
|
+
url: toPathString(localVarUrlObj),
|
|
46389
|
+
options: localVarRequestOptions,
|
|
46390
|
+
};
|
|
46391
|
+
},
|
|
46392
|
+
/**
|
|
46393
|
+
*
|
|
46394
|
+
* @param {any} channel
|
|
46395
|
+
* @param {number} businessId
|
|
46396
|
+
* @param {*} [options] Override http request option.
|
|
46397
|
+
* @throws {RequiredError}
|
|
46398
|
+
*/
|
|
46399
|
+
getOnboardingStatus: async (channel: any, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46400
|
+
// verify required parameter 'channel' is not null or undefined
|
|
46401
|
+
assertParamExists('getOnboardingStatus', 'channel', channel)
|
|
46402
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
46403
|
+
assertParamExists('getOnboardingStatus', 'businessId', businessId)
|
|
46404
|
+
const localVarPath = `/api/v1/provider/onboarding/{channel}/status/{businessId}`
|
|
46405
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
46406
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
46407
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46408
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46409
|
+
let baseOptions;
|
|
46410
|
+
if (configuration) {
|
|
46411
|
+
baseOptions = configuration.baseOptions;
|
|
46412
|
+
}
|
|
46413
|
+
|
|
46414
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
46415
|
+
const localVarHeaderParameter = {} as any;
|
|
46416
|
+
const localVarQueryParameter = {} as any;
|
|
46417
|
+
|
|
46418
|
+
|
|
46419
|
+
|
|
45745
46420
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45746
46421
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45747
46422
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -45785,6 +46460,86 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
45785
46460
|
options: localVarRequestOptions,
|
|
45786
46461
|
};
|
|
45787
46462
|
},
|
|
46463
|
+
/**
|
|
46464
|
+
*
|
|
46465
|
+
* @param {any} channel
|
|
46466
|
+
* @param {string} state
|
|
46467
|
+
* @param {*} [options] Override http request option.
|
|
46468
|
+
* @throws {RequiredError}
|
|
46469
|
+
*/
|
|
46470
|
+
listOnboardingStores: async (channel: any, state: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46471
|
+
// verify required parameter 'channel' is not null or undefined
|
|
46472
|
+
assertParamExists('listOnboardingStores', 'channel', channel)
|
|
46473
|
+
// verify required parameter 'state' is not null or undefined
|
|
46474
|
+
assertParamExists('listOnboardingStores', 'state', state)
|
|
46475
|
+
const localVarPath = `/api/v1/provider/onboarding/{channel}/{state}/stores`
|
|
46476
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
46477
|
+
.replace(`{${"state"}}`, encodeURIComponent(String(state)));
|
|
46478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46480
|
+
let baseOptions;
|
|
46481
|
+
if (configuration) {
|
|
46482
|
+
baseOptions = configuration.baseOptions;
|
|
46483
|
+
}
|
|
46484
|
+
|
|
46485
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
46486
|
+
const localVarHeaderParameter = {} as any;
|
|
46487
|
+
const localVarQueryParameter = {} as any;
|
|
46488
|
+
|
|
46489
|
+
|
|
46490
|
+
|
|
46491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46493
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46494
|
+
|
|
46495
|
+
return {
|
|
46496
|
+
url: toPathString(localVarUrlObj),
|
|
46497
|
+
options: localVarRequestOptions,
|
|
46498
|
+
};
|
|
46499
|
+
},
|
|
46500
|
+
/**
|
|
46501
|
+
*
|
|
46502
|
+
* @param {any} channel
|
|
46503
|
+
* @param {string} state
|
|
46504
|
+
* @param {object} body
|
|
46505
|
+
* @param {*} [options] Override http request option.
|
|
46506
|
+
* @throws {RequiredError}
|
|
46507
|
+
*/
|
|
46508
|
+
provisionOnboardingStore: async (channel: any, state: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46509
|
+
// verify required parameter 'channel' is not null or undefined
|
|
46510
|
+
assertParamExists('provisionOnboardingStore', 'channel', channel)
|
|
46511
|
+
// verify required parameter 'state' is not null or undefined
|
|
46512
|
+
assertParamExists('provisionOnboardingStore', 'state', state)
|
|
46513
|
+
// verify required parameter 'body' is not null or undefined
|
|
46514
|
+
assertParamExists('provisionOnboardingStore', 'body', body)
|
|
46515
|
+
const localVarPath = `/api/v1/provider/onboarding/{channel}/{state}/provision`
|
|
46516
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
46517
|
+
.replace(`{${"state"}}`, encodeURIComponent(String(state)));
|
|
46518
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46519
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46520
|
+
let baseOptions;
|
|
46521
|
+
if (configuration) {
|
|
46522
|
+
baseOptions = configuration.baseOptions;
|
|
46523
|
+
}
|
|
46524
|
+
|
|
46525
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
46526
|
+
const localVarHeaderParameter = {} as any;
|
|
46527
|
+
const localVarQueryParameter = {} as any;
|
|
46528
|
+
|
|
46529
|
+
|
|
46530
|
+
|
|
46531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
46532
|
+
|
|
46533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46535
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
46537
|
+
|
|
46538
|
+
return {
|
|
46539
|
+
url: toPathString(localVarUrlObj),
|
|
46540
|
+
options: localVarRequestOptions,
|
|
46541
|
+
};
|
|
46542
|
+
},
|
|
45788
46543
|
/**
|
|
45789
46544
|
*
|
|
45790
46545
|
* @param {object} body
|
|
@@ -45843,6 +46598,45 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
45843
46598
|
|
|
45844
46599
|
|
|
45845
46600
|
|
|
46601
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
46602
|
+
|
|
46603
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46605
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
46606
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
46607
|
+
|
|
46608
|
+
return {
|
|
46609
|
+
url: toPathString(localVarUrlObj),
|
|
46610
|
+
options: localVarRequestOptions,
|
|
46611
|
+
};
|
|
46612
|
+
},
|
|
46613
|
+
/**
|
|
46614
|
+
*
|
|
46615
|
+
* @param {number} businessId
|
|
46616
|
+
* @param {object} body
|
|
46617
|
+
* @param {*} [options] Override http request option.
|
|
46618
|
+
* @throws {RequiredError}
|
|
46619
|
+
*/
|
|
46620
|
+
updateProviderSettings: async (businessId: number, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46621
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
46622
|
+
assertParamExists('updateProviderSettings', 'businessId', businessId)
|
|
46623
|
+
// verify required parameter 'body' is not null or undefined
|
|
46624
|
+
assertParamExists('updateProviderSettings', 'body', body)
|
|
46625
|
+
const localVarPath = `/api/v1/provider/{businessId}/settings`
|
|
46626
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
46627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46629
|
+
let baseOptions;
|
|
46630
|
+
if (configuration) {
|
|
46631
|
+
baseOptions = configuration.baseOptions;
|
|
46632
|
+
}
|
|
46633
|
+
|
|
46634
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
46635
|
+
const localVarHeaderParameter = {} as any;
|
|
46636
|
+
const localVarQueryParameter = {} as any;
|
|
46637
|
+
|
|
46638
|
+
|
|
46639
|
+
|
|
45846
46640
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
45847
46641
|
|
|
45848
46642
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -45865,6 +46659,28 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
45865
46659
|
export const ProviderApiFp = function(configuration?: Configuration) {
|
|
45866
46660
|
const localVarAxiosParamCreator = ProviderApiAxiosParamCreator(configuration)
|
|
45867
46661
|
return {
|
|
46662
|
+
/**
|
|
46663
|
+
*
|
|
46664
|
+
* @param {any} channel
|
|
46665
|
+
* @param {object} body
|
|
46666
|
+
* @param {*} [options] Override http request option.
|
|
46667
|
+
* @throws {RequiredError}
|
|
46668
|
+
*/
|
|
46669
|
+
async createOnboardingSession(channel: any, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOnboardingSession(channel, body, options);
|
|
46671
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46672
|
+
},
|
|
46673
|
+
/**
|
|
46674
|
+
*
|
|
46675
|
+
* @param {any} channel
|
|
46676
|
+
* @param {number} businessId
|
|
46677
|
+
* @param {*} [options] Override http request option.
|
|
46678
|
+
* @throws {RequiredError}
|
|
46679
|
+
*/
|
|
46680
|
+
async disconnectOnboarding(channel: any, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46681
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectOnboarding(channel, businessId, options);
|
|
46682
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46683
|
+
},
|
|
45868
46684
|
/**
|
|
45869
46685
|
*
|
|
45870
46686
|
* @summary Get provider integrations (MENU) for a business
|
|
@@ -45876,6 +46692,17 @@ export const ProviderApiFp = function(configuration?: Configuration) {
|
|
|
45876
46692
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getMenuIntegrations(businessId, options);
|
|
45877
46693
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
45878
46694
|
},
|
|
46695
|
+
/**
|
|
46696
|
+
*
|
|
46697
|
+
* @param {any} channel
|
|
46698
|
+
* @param {number} businessId
|
|
46699
|
+
* @param {*} [options] Override http request option.
|
|
46700
|
+
* @throws {RequiredError}
|
|
46701
|
+
*/
|
|
46702
|
+
async getOnboardingStatus(channel: any, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOnboardingStatus(channel, businessId, options);
|
|
46704
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46705
|
+
},
|
|
45879
46706
|
/**
|
|
45880
46707
|
*
|
|
45881
46708
|
* @summary Get supported channels for a business
|
|
@@ -45887,6 +46714,29 @@ export const ProviderApiFp = function(configuration?: Configuration) {
|
|
|
45887
46714
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedChannels(businessId, options);
|
|
45888
46715
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
45889
46716
|
},
|
|
46717
|
+
/**
|
|
46718
|
+
*
|
|
46719
|
+
* @param {any} channel
|
|
46720
|
+
* @param {string} state
|
|
46721
|
+
* @param {*} [options] Override http request option.
|
|
46722
|
+
* @throws {RequiredError}
|
|
46723
|
+
*/
|
|
46724
|
+
async listOnboardingStores(channel: any, state: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46725
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOnboardingStores(channel, state, options);
|
|
46726
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46727
|
+
},
|
|
46728
|
+
/**
|
|
46729
|
+
*
|
|
46730
|
+
* @param {any} channel
|
|
46731
|
+
* @param {string} state
|
|
46732
|
+
* @param {object} body
|
|
46733
|
+
* @param {*} [options] Override http request option.
|
|
46734
|
+
* @throws {RequiredError}
|
|
46735
|
+
*/
|
|
46736
|
+
async provisionOnboardingStore(channel: any, state: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46737
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provisionOnboardingStore(channel, state, body, options);
|
|
46738
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46739
|
+
},
|
|
45890
46740
|
/**
|
|
45891
46741
|
*
|
|
45892
46742
|
* @param {object} body
|
|
@@ -45907,6 +46757,17 @@ export const ProviderApiFp = function(configuration?: Configuration) {
|
|
|
45907
46757
|
const localVarAxiosArgs = await localVarAxiosParamCreator.registerProvider(body, options);
|
|
45908
46758
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
45909
46759
|
},
|
|
46760
|
+
/**
|
|
46761
|
+
*
|
|
46762
|
+
* @param {number} businessId
|
|
46763
|
+
* @param {object} body
|
|
46764
|
+
* @param {*} [options] Override http request option.
|
|
46765
|
+
* @throws {RequiredError}
|
|
46766
|
+
*/
|
|
46767
|
+
async updateProviderSettings(businessId: number, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
46768
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProviderSettings(businessId, body, options);
|
|
46769
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
46770
|
+
},
|
|
45910
46771
|
}
|
|
45911
46772
|
};
|
|
45912
46773
|
|
|
@@ -45917,6 +46778,26 @@ export const ProviderApiFp = function(configuration?: Configuration) {
|
|
|
45917
46778
|
export const ProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
45918
46779
|
const localVarFp = ProviderApiFp(configuration)
|
|
45919
46780
|
return {
|
|
46781
|
+
/**
|
|
46782
|
+
*
|
|
46783
|
+
* @param {any} channel
|
|
46784
|
+
* @param {object} body
|
|
46785
|
+
* @param {*} [options] Override http request option.
|
|
46786
|
+
* @throws {RequiredError}
|
|
46787
|
+
*/
|
|
46788
|
+
createOnboardingSession(channel: any, body: object, options?: any): AxiosPromise<void> {
|
|
46789
|
+
return localVarFp.createOnboardingSession(channel, body, options).then((request) => request(axios, basePath));
|
|
46790
|
+
},
|
|
46791
|
+
/**
|
|
46792
|
+
*
|
|
46793
|
+
* @param {any} channel
|
|
46794
|
+
* @param {number} businessId
|
|
46795
|
+
* @param {*} [options] Override http request option.
|
|
46796
|
+
* @throws {RequiredError}
|
|
46797
|
+
*/
|
|
46798
|
+
disconnectOnboarding(channel: any, businessId: number, options?: any): AxiosPromise<void> {
|
|
46799
|
+
return localVarFp.disconnectOnboarding(channel, businessId, options).then((request) => request(axios, basePath));
|
|
46800
|
+
},
|
|
45920
46801
|
/**
|
|
45921
46802
|
*
|
|
45922
46803
|
* @summary Get provider integrations (MENU) for a business
|
|
@@ -45927,6 +46808,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
|
|
|
45927
46808
|
getMenuIntegrations(businessId: number, options?: any): AxiosPromise<Array<ProviderIntegrationDto>> {
|
|
45928
46809
|
return localVarFp.getMenuIntegrations(businessId, options).then((request) => request(axios, basePath));
|
|
45929
46810
|
},
|
|
46811
|
+
/**
|
|
46812
|
+
*
|
|
46813
|
+
* @param {any} channel
|
|
46814
|
+
* @param {number} businessId
|
|
46815
|
+
* @param {*} [options] Override http request option.
|
|
46816
|
+
* @throws {RequiredError}
|
|
46817
|
+
*/
|
|
46818
|
+
getOnboardingStatus(channel: any, businessId: number, options?: any): AxiosPromise<void> {
|
|
46819
|
+
return localVarFp.getOnboardingStatus(channel, businessId, options).then((request) => request(axios, basePath));
|
|
46820
|
+
},
|
|
45930
46821
|
/**
|
|
45931
46822
|
*
|
|
45932
46823
|
* @summary Get supported channels for a business
|
|
@@ -45937,6 +46828,27 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
|
|
|
45937
46828
|
getSupportedChannels(businessId: number, options?: any): AxiosPromise<GetSupportedChannelsResponseDto> {
|
|
45938
46829
|
return localVarFp.getSupportedChannels(businessId, options).then((request) => request(axios, basePath));
|
|
45939
46830
|
},
|
|
46831
|
+
/**
|
|
46832
|
+
*
|
|
46833
|
+
* @param {any} channel
|
|
46834
|
+
* @param {string} state
|
|
46835
|
+
* @param {*} [options] Override http request option.
|
|
46836
|
+
* @throws {RequiredError}
|
|
46837
|
+
*/
|
|
46838
|
+
listOnboardingStores(channel: any, state: string, options?: any): AxiosPromise<void> {
|
|
46839
|
+
return localVarFp.listOnboardingStores(channel, state, options).then((request) => request(axios, basePath));
|
|
46840
|
+
},
|
|
46841
|
+
/**
|
|
46842
|
+
*
|
|
46843
|
+
* @param {any} channel
|
|
46844
|
+
* @param {string} state
|
|
46845
|
+
* @param {object} body
|
|
46846
|
+
* @param {*} [options] Override http request option.
|
|
46847
|
+
* @throws {RequiredError}
|
|
46848
|
+
*/
|
|
46849
|
+
provisionOnboardingStore(channel: any, state: string, body: object, options?: any): AxiosPromise<void> {
|
|
46850
|
+
return localVarFp.provisionOnboardingStore(channel, state, body, options).then((request) => request(axios, basePath));
|
|
46851
|
+
},
|
|
45940
46852
|
/**
|
|
45941
46853
|
*
|
|
45942
46854
|
* @param {object} body
|
|
@@ -45955,6 +46867,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
|
|
|
45955
46867
|
registerProvider(body: object, options?: any): AxiosPromise<void> {
|
|
45956
46868
|
return localVarFp.registerProvider(body, options).then((request) => request(axios, basePath));
|
|
45957
46869
|
},
|
|
46870
|
+
/**
|
|
46871
|
+
*
|
|
46872
|
+
* @param {number} businessId
|
|
46873
|
+
* @param {object} body
|
|
46874
|
+
* @param {*} [options] Override http request option.
|
|
46875
|
+
* @throws {RequiredError}
|
|
46876
|
+
*/
|
|
46877
|
+
updateProviderSettings(businessId: number, body: object, options?: any): AxiosPromise<void> {
|
|
46878
|
+
return localVarFp.updateProviderSettings(businessId, body, options).then((request) => request(axios, basePath));
|
|
46879
|
+
},
|
|
45958
46880
|
};
|
|
45959
46881
|
};
|
|
45960
46882
|
|
|
@@ -45964,6 +46886,26 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
|
|
|
45964
46886
|
* @interface ProviderApi
|
|
45965
46887
|
*/
|
|
45966
46888
|
export interface ProviderApiInterface {
|
|
46889
|
+
/**
|
|
46890
|
+
*
|
|
46891
|
+
* @param {any} channel
|
|
46892
|
+
* @param {object} body
|
|
46893
|
+
* @param {*} [options] Override http request option.
|
|
46894
|
+
* @throws {RequiredError}
|
|
46895
|
+
* @memberof ProviderApiInterface
|
|
46896
|
+
*/
|
|
46897
|
+
createOnboardingSession(channel: any, body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46898
|
+
|
|
46899
|
+
/**
|
|
46900
|
+
*
|
|
46901
|
+
* @param {any} channel
|
|
46902
|
+
* @param {number} businessId
|
|
46903
|
+
* @param {*} [options] Override http request option.
|
|
46904
|
+
* @throws {RequiredError}
|
|
46905
|
+
* @memberof ProviderApiInterface
|
|
46906
|
+
*/
|
|
46907
|
+
disconnectOnboarding(channel: any, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46908
|
+
|
|
45967
46909
|
/**
|
|
45968
46910
|
*
|
|
45969
46911
|
* @summary Get provider integrations (MENU) for a business
|
|
@@ -45974,6 +46916,16 @@ export interface ProviderApiInterface {
|
|
|
45974
46916
|
*/
|
|
45975
46917
|
getMenuIntegrations(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<ProviderIntegrationDto>>;
|
|
45976
46918
|
|
|
46919
|
+
/**
|
|
46920
|
+
*
|
|
46921
|
+
* @param {any} channel
|
|
46922
|
+
* @param {number} businessId
|
|
46923
|
+
* @param {*} [options] Override http request option.
|
|
46924
|
+
* @throws {RequiredError}
|
|
46925
|
+
* @memberof ProviderApiInterface
|
|
46926
|
+
*/
|
|
46927
|
+
getOnboardingStatus(channel: any, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46928
|
+
|
|
45977
46929
|
/**
|
|
45978
46930
|
*
|
|
45979
46931
|
* @summary Get supported channels for a business
|
|
@@ -45984,6 +46936,27 @@ export interface ProviderApiInterface {
|
|
|
45984
46936
|
*/
|
|
45985
46937
|
getSupportedChannels(businessId: number, options?: AxiosRequestConfig): AxiosPromise<GetSupportedChannelsResponseDto>;
|
|
45986
46938
|
|
|
46939
|
+
/**
|
|
46940
|
+
*
|
|
46941
|
+
* @param {any} channel
|
|
46942
|
+
* @param {string} state
|
|
46943
|
+
* @param {*} [options] Override http request option.
|
|
46944
|
+
* @throws {RequiredError}
|
|
46945
|
+
* @memberof ProviderApiInterface
|
|
46946
|
+
*/
|
|
46947
|
+
listOnboardingStores(channel: any, state: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46948
|
+
|
|
46949
|
+
/**
|
|
46950
|
+
*
|
|
46951
|
+
* @param {any} channel
|
|
46952
|
+
* @param {string} state
|
|
46953
|
+
* @param {object} body
|
|
46954
|
+
* @param {*} [options] Override http request option.
|
|
46955
|
+
* @throws {RequiredError}
|
|
46956
|
+
* @memberof ProviderApiInterface
|
|
46957
|
+
*/
|
|
46958
|
+
provisionOnboardingStore(channel: any, state: string, body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46959
|
+
|
|
45987
46960
|
/**
|
|
45988
46961
|
*
|
|
45989
46962
|
* @param {object} body
|
|
@@ -46002,6 +46975,16 @@ export interface ProviderApiInterface {
|
|
|
46002
46975
|
*/
|
|
46003
46976
|
registerProvider(body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46004
46977
|
|
|
46978
|
+
/**
|
|
46979
|
+
*
|
|
46980
|
+
* @param {number} businessId
|
|
46981
|
+
* @param {object} body
|
|
46982
|
+
* @param {*} [options] Override http request option.
|
|
46983
|
+
* @throws {RequiredError}
|
|
46984
|
+
* @memberof ProviderApiInterface
|
|
46985
|
+
*/
|
|
46986
|
+
updateProviderSettings(businessId: number, body: object, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
46987
|
+
|
|
46005
46988
|
}
|
|
46006
46989
|
|
|
46007
46990
|
/**
|
|
@@ -46011,6 +46994,30 @@ export interface ProviderApiInterface {
|
|
|
46011
46994
|
* @extends {BaseAPI}
|
|
46012
46995
|
*/
|
|
46013
46996
|
export class ProviderApi extends BaseAPI implements ProviderApiInterface {
|
|
46997
|
+
/**
|
|
46998
|
+
*
|
|
46999
|
+
* @param {any} channel
|
|
47000
|
+
* @param {object} body
|
|
47001
|
+
* @param {*} [options] Override http request option.
|
|
47002
|
+
* @throws {RequiredError}
|
|
47003
|
+
* @memberof ProviderApi
|
|
47004
|
+
*/
|
|
47005
|
+
public createOnboardingSession(channel: any, body: object, options?: AxiosRequestConfig) {
|
|
47006
|
+
return ProviderApiFp(this.configuration).createOnboardingSession(channel, body, options).then((request) => request(this.axios, this.basePath));
|
|
47007
|
+
}
|
|
47008
|
+
|
|
47009
|
+
/**
|
|
47010
|
+
*
|
|
47011
|
+
* @param {any} channel
|
|
47012
|
+
* @param {number} businessId
|
|
47013
|
+
* @param {*} [options] Override http request option.
|
|
47014
|
+
* @throws {RequiredError}
|
|
47015
|
+
* @memberof ProviderApi
|
|
47016
|
+
*/
|
|
47017
|
+
public disconnectOnboarding(channel: any, businessId: number, options?: AxiosRequestConfig) {
|
|
47018
|
+
return ProviderApiFp(this.configuration).disconnectOnboarding(channel, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
47019
|
+
}
|
|
47020
|
+
|
|
46014
47021
|
/**
|
|
46015
47022
|
*
|
|
46016
47023
|
* @summary Get provider integrations (MENU) for a business
|
|
@@ -46023,6 +47030,18 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
|
|
|
46023
47030
|
return ProviderApiFp(this.configuration).getMenuIntegrations(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
46024
47031
|
}
|
|
46025
47032
|
|
|
47033
|
+
/**
|
|
47034
|
+
*
|
|
47035
|
+
* @param {any} channel
|
|
47036
|
+
* @param {number} businessId
|
|
47037
|
+
* @param {*} [options] Override http request option.
|
|
47038
|
+
* @throws {RequiredError}
|
|
47039
|
+
* @memberof ProviderApi
|
|
47040
|
+
*/
|
|
47041
|
+
public getOnboardingStatus(channel: any, businessId: number, options?: AxiosRequestConfig) {
|
|
47042
|
+
return ProviderApiFp(this.configuration).getOnboardingStatus(channel, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
47043
|
+
}
|
|
47044
|
+
|
|
46026
47045
|
/**
|
|
46027
47046
|
*
|
|
46028
47047
|
* @summary Get supported channels for a business
|
|
@@ -46035,6 +47054,31 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
|
|
|
46035
47054
|
return ProviderApiFp(this.configuration).getSupportedChannels(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
46036
47055
|
}
|
|
46037
47056
|
|
|
47057
|
+
/**
|
|
47058
|
+
*
|
|
47059
|
+
* @param {any} channel
|
|
47060
|
+
* @param {string} state
|
|
47061
|
+
* @param {*} [options] Override http request option.
|
|
47062
|
+
* @throws {RequiredError}
|
|
47063
|
+
* @memberof ProviderApi
|
|
47064
|
+
*/
|
|
47065
|
+
public listOnboardingStores(channel: any, state: string, options?: AxiosRequestConfig) {
|
|
47066
|
+
return ProviderApiFp(this.configuration).listOnboardingStores(channel, state, options).then((request) => request(this.axios, this.basePath));
|
|
47067
|
+
}
|
|
47068
|
+
|
|
47069
|
+
/**
|
|
47070
|
+
*
|
|
47071
|
+
* @param {any} channel
|
|
47072
|
+
* @param {string} state
|
|
47073
|
+
* @param {object} body
|
|
47074
|
+
* @param {*} [options] Override http request option.
|
|
47075
|
+
* @throws {RequiredError}
|
|
47076
|
+
* @memberof ProviderApi
|
|
47077
|
+
*/
|
|
47078
|
+
public provisionOnboardingStore(channel: any, state: string, body: object, options?: AxiosRequestConfig) {
|
|
47079
|
+
return ProviderApiFp(this.configuration).provisionOnboardingStore(channel, state, body, options).then((request) => request(this.axios, this.basePath));
|
|
47080
|
+
}
|
|
47081
|
+
|
|
46038
47082
|
/**
|
|
46039
47083
|
*
|
|
46040
47084
|
* @param {object} body
|
|
@@ -46056,6 +47100,18 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
|
|
|
46056
47100
|
public registerProvider(body: object, options?: AxiosRequestConfig) {
|
|
46057
47101
|
return ProviderApiFp(this.configuration).registerProvider(body, options).then((request) => request(this.axios, this.basePath));
|
|
46058
47102
|
}
|
|
47103
|
+
|
|
47104
|
+
/**
|
|
47105
|
+
*
|
|
47106
|
+
* @param {number} businessId
|
|
47107
|
+
* @param {object} body
|
|
47108
|
+
* @param {*} [options] Override http request option.
|
|
47109
|
+
* @throws {RequiredError}
|
|
47110
|
+
* @memberof ProviderApi
|
|
47111
|
+
*/
|
|
47112
|
+
public updateProviderSettings(businessId: number, body: object, options?: AxiosRequestConfig) {
|
|
47113
|
+
return ProviderApiFp(this.configuration).updateProviderSettings(businessId, body, options).then((request) => request(this.axios, this.basePath));
|
|
47114
|
+
}
|
|
46059
47115
|
}
|
|
46060
47116
|
|
|
46061
47117
|
|