flexinet-api 0.0.259-prerelease0 → 0.0.260-prerelease0

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/api.ts CHANGED
@@ -144,12 +144,6 @@ export interface Balance {
144
144
  * @memberof Balance
145
145
  */
146
146
  'id': string;
147
- /**
148
- *
149
- * @type {string}
150
- * @memberof Balance
151
- */
152
- 'kind': string;
153
147
  /**
154
148
  *
155
149
  * @type {number}
@@ -158,10 +152,10 @@ export interface Balance {
158
152
  'amount': number;
159
153
  /**
160
154
  *
161
- * @type {string}
155
+ * @type {Beneficiary}
162
156
  * @memberof Balance
163
157
  */
164
- 'receiver': string;
158
+ 'beneficiary': Beneficiary;
165
159
  }
166
160
  /**
167
161
  *
@@ -177,10 +171,31 @@ export interface BalanceUpdateRequest {
177
171
  'amount': number;
178
172
  /**
179
173
  *
180
- * @type {ReceiverKind}
174
+ * @type {BeneficiaryKind}
181
175
  * @memberof BalanceUpdateRequest
182
176
  */
183
- 'receiverKind': ReceiverKind;
177
+ 'beneficiaryKind': BeneficiaryKind;
178
+ }
179
+
180
+
181
+ /**
182
+ *
183
+ * @export
184
+ * @interface Beneficiary
185
+ */
186
+ export interface Beneficiary {
187
+ /**
188
+ *
189
+ * @type {string}
190
+ * @memberof Beneficiary
191
+ */
192
+ 'value': string;
193
+ /**
194
+ *
195
+ * @type {BeneficiaryKind}
196
+ * @memberof Beneficiary
197
+ */
198
+ 'kind': BeneficiaryKind;
184
199
  }
185
200
 
186
201
 
@@ -190,12 +205,12 @@ export interface BalanceUpdateRequest {
190
205
  * @enum {string}
191
206
  */
192
207
 
193
- export const Beneficiary = {
208
+ export const BeneficiaryKind = {
194
209
  User: 'user',
195
210
  Client: 'client'
196
211
  } as const;
197
212
 
198
- export type Beneficiary = typeof Beneficiary[keyof typeof Beneficiary];
213
+ export type BeneficiaryKind = typeof BeneficiaryKind[keyof typeof BeneficiaryKind];
199
214
 
200
215
 
201
216
  /**
@@ -252,6 +267,31 @@ export interface BulkNotificationsReadRequest {
252
267
  */
253
268
  'notificationIds': Array<string>;
254
269
  }
270
+ /**
271
+ *
272
+ * @export
273
+ * @interface CallbackOrder
274
+ */
275
+ export interface CallbackOrder {
276
+ /**
277
+ *
278
+ * @type {Order}
279
+ * @memberof CallbackOrder
280
+ */
281
+ 'order'?: Order;
282
+ /**
283
+ *
284
+ * @type {string}
285
+ * @memberof CallbackOrder
286
+ */
287
+ 'id'?: string;
288
+ /**
289
+ *
290
+ * @type {string}
291
+ * @memberof CallbackOrder
292
+ */
293
+ 'status'?: string;
294
+ }
255
295
  /**
256
296
  *
257
297
  * @export
@@ -360,6 +400,19 @@ export const Condition = {
360
400
  export type Condition = typeof Condition[keyof typeof Condition];
361
401
 
362
402
 
403
+ /**
404
+ *
405
+ * @export
406
+ * @interface CreateOrderRequest
407
+ */
408
+ export interface CreateOrderRequest {
409
+ /**
410
+ *
411
+ * @type {OrderCreationRequest}
412
+ * @memberof CreateOrderRequest
413
+ */
414
+ 'tag'?: OrderCreationRequest;
415
+ }
363
416
  /**
364
417
  *
365
418
  * @export
@@ -561,6 +614,25 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
561
614
  */
562
615
  export type EventCreationRequestDetails = object;
563
616
 
617
+ /**
618
+ *
619
+ * @export
620
+ * @interface Item
621
+ */
622
+ export interface Item {
623
+ /**
624
+ *
625
+ * @type {number}
626
+ * @memberof Item
627
+ */
628
+ 'qty': number;
629
+ /**
630
+ *
631
+ * @type {Product}
632
+ * @memberof Item
633
+ */
634
+ 'product': Product;
635
+ }
564
636
  /**
565
637
  *
566
638
  * @export
@@ -777,6 +849,114 @@ export const NotificationStatus = {
777
849
  export type NotificationStatus = typeof NotificationStatus[keyof typeof NotificationStatus];
778
850
 
779
851
 
852
+ /**
853
+ *
854
+ * @export
855
+ * @interface Order
856
+ */
857
+ export interface Order {
858
+ /**
859
+ *
860
+ * @type {Balance}
861
+ * @memberof Order
862
+ */
863
+ 'balance': Balance;
864
+ /**
865
+ *
866
+ * @type {Array<Item>}
867
+ * @memberof Order
868
+ */
869
+ 'items': Array<Item>;
870
+ /**
871
+ *
872
+ * @type {string}
873
+ * @memberof Order
874
+ */
875
+ 'id'?: string;
876
+ /**
877
+ *
878
+ * @type {string}
879
+ * @memberof Order
880
+ */
881
+ 'createdAt'?: string;
882
+ /**
883
+ *
884
+ * @type {string}
885
+ * @memberof Order
886
+ */
887
+ 'kind'?: OrderKindEnum;
888
+ /**
889
+ *
890
+ * @type {string}
891
+ * @memberof Order
892
+ */
893
+ 'source'?: string;
894
+ }
895
+
896
+ export const OrderKindEnum = {
897
+ Webshop: 'webshop',
898
+ Promotions: 'promotions'
899
+ } as const;
900
+
901
+ export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
902
+
903
+ /**
904
+ *
905
+ * @export
906
+ * @interface OrderCreationRequest
907
+ */
908
+ export interface OrderCreationRequest {
909
+ /**
910
+ *
911
+ * @type {string}
912
+ * @memberof OrderCreationRequest
913
+ */
914
+ 'balanceID': string;
915
+ /**
916
+ *
917
+ * @type {Array<OrderItemCreationRequest>}
918
+ * @memberof OrderCreationRequest
919
+ */
920
+ 'items': Array<OrderItemCreationRequest>;
921
+ }
922
+ /**
923
+ *
924
+ * @export
925
+ * @interface OrderItemCreationRequest
926
+ */
927
+ export interface OrderItemCreationRequest {
928
+ /**
929
+ *
930
+ * @type {number}
931
+ * @memberof OrderItemCreationRequest
932
+ */
933
+ 'qty': number;
934
+ /**
935
+ *
936
+ * @type {string}
937
+ * @memberof OrderItemCreationRequest
938
+ */
939
+ 'productId': string;
940
+ }
941
+ /**
942
+ *
943
+ * @export
944
+ * @interface OrderListResponse
945
+ */
946
+ export interface OrderListResponse {
947
+ /**
948
+ *
949
+ * @type {Array<Order>}
950
+ * @memberof OrderListResponse
951
+ */
952
+ 'orders': Array<Order>;
953
+ /**
954
+ * This is the pagination token
955
+ * @type {string}
956
+ * @memberof OrderListResponse
957
+ */
958
+ 'nextToken'?: string;
959
+ }
780
960
  /**
781
961
  *
782
962
  * @export
@@ -864,10 +1044,10 @@ export interface Product {
864
1044
  'source': string;
865
1045
  /**
866
1046
  *
867
- * @type {Array<string>}
1047
+ * @type {Array<Segment>}
868
1048
  * @memberof Product
869
1049
  */
870
- 'segments': Array<string>;
1050
+ 'segments': Array<Segment>;
871
1051
  /**
872
1052
  *
873
1053
  * @type {ProductKind}
@@ -996,10 +1176,10 @@ export interface ProductCreationRequest {
996
1176
  'source': string;
997
1177
  /**
998
1178
  *
999
- * @type {Array<string>}
1179
+ * @type {Array<Segment>}
1000
1180
  * @memberof ProductCreationRequest
1001
1181
  */
1002
- 'segments': Array<string>;
1182
+ 'segments': Array<Segment>;
1003
1183
  /**
1004
1184
  *
1005
1185
  * @type {ProductKind}
@@ -1282,10 +1462,10 @@ export interface Progress {
1282
1462
  'state': ProgressState;
1283
1463
  /**
1284
1464
  *
1285
- * @type {string}
1465
+ * @type {Beneficiary}
1286
1466
  * @memberof Progress
1287
1467
  */
1288
- 'beneficiary': string;
1468
+ 'beneficiary': Beneficiary;
1289
1469
  /**
1290
1470
  *
1291
1471
  * @type {number}
@@ -1354,10 +1534,10 @@ export interface Promotion {
1354
1534
  'description': string;
1355
1535
  /**
1356
1536
  *
1357
- * @type {Beneficiary}
1537
+ * @type {BeneficiaryKind}
1358
1538
  * @memberof Promotion
1359
1539
  */
1360
- 'beneficiary': Beneficiary;
1540
+ 'beneficiaryKind'?: BeneficiaryKind;
1361
1541
  /**
1362
1542
  *
1363
1543
  * @type {Array<string>}
@@ -1475,6 +1655,19 @@ export interface Promotion {
1475
1655
  }
1476
1656
 
1477
1657
 
1658
+ /**
1659
+ *
1660
+ * @export
1661
+ * @interface PromotionClaimRequest
1662
+ */
1663
+ export interface PromotionClaimRequest {
1664
+ /**
1665
+ *
1666
+ * @type {string}
1667
+ * @memberof PromotionClaimRequest
1668
+ */
1669
+ 'userId': string;
1670
+ }
1478
1671
  /**
1479
1672
  *
1480
1673
  * @export
@@ -1495,10 +1688,10 @@ export interface PromotionRequest {
1495
1688
  'description': string;
1496
1689
  /**
1497
1690
  *
1498
- * @type {Beneficiary}
1691
+ * @type {BeneficiaryKind}
1499
1692
  * @memberof PromotionRequest
1500
1693
  */
1501
- 'beneficiary': Beneficiary;
1694
+ 'beneficiaryKind': BeneficiaryKind;
1502
1695
  /**
1503
1696
  *
1504
1697
  * @type {Target}
@@ -1607,20 +1800,6 @@ export interface PromotionsResponse {
1607
1800
  */
1608
1801
  'nextToken'?: string;
1609
1802
  }
1610
- /**
1611
- *
1612
- * @export
1613
- * @enum {string}
1614
- */
1615
-
1616
- export const ReceiverKind = {
1617
- User: 'user',
1618
- Client: 'client'
1619
- } as const;
1620
-
1621
- export type ReceiverKind = typeof ReceiverKind[keyof typeof ReceiverKind];
1622
-
1623
-
1624
1803
  /**
1625
1804
  *
1626
1805
  * @export
@@ -2257,10 +2436,10 @@ export interface Transaction {
2257
2436
  'amount': number;
2258
2437
  /**
2259
2438
  *
2260
- * @type {string}
2439
+ * @type {Beneficiary}
2261
2440
  * @memberof Transaction
2262
2441
  */
2263
- 'receiver': string;
2442
+ 'beneficiary': Beneficiary;
2264
2443
  /**
2265
2444
  *
2266
2445
  * @type {string}
@@ -2296,12 +2475,6 @@ export interface TransactionsResponse {
2296
2475
  * @memberof TransactionsResponse
2297
2476
  */
2298
2477
  'transactions': Array<Transaction>;
2299
- /**
2300
- * This is the previous pagination token
2301
- * @type {string}
2302
- * @memberof TransactionsResponse
2303
- */
2304
- 'previousToken'?: string;
2305
2478
  /**
2306
2479
  * This is the pagination token
2307
2480
  * @type {string}
@@ -2571,7 +2744,7 @@ export interface Webhook {
2571
2744
  */
2572
2745
 
2573
2746
  export const WebhookKind = {
2574
- Product: 'product'
2747
+ Order: 'order'
2575
2748
  } as const;
2576
2749
 
2577
2750
  export type WebhookKind = typeof WebhookKind[keyof typeof WebhookKind];
@@ -2802,13 +2975,16 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
2802
2975
  /**
2803
2976
  * Get balance
2804
2977
  * @summary Get balance
2805
- * @param {string} receiver This is the receiver
2978
+ * @param {string} beneficiaryValue This is the beneficiary value
2979
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
2806
2980
  * @param {*} [options] Override http request option.
2807
2981
  * @throws {RequiredError}
2808
2982
  */
2809
- getBalance: async (receiver: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2810
- // verify required parameter 'receiver' is not null or undefined
2811
- assertParamExists('getBalance', 'receiver', receiver)
2983
+ getBalance: async (beneficiaryValue: string, kind: BeneficiaryKind, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2984
+ // verify required parameter 'beneficiaryValue' is not null or undefined
2985
+ assertParamExists('getBalance', 'beneficiaryValue', beneficiaryValue)
2986
+ // verify required parameter 'kind' is not null or undefined
2987
+ assertParamExists('getBalance', 'kind', kind)
2812
2988
  const localVarPath = `/balances`;
2813
2989
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2814
2990
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2825,8 +3001,12 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
2825
3001
  // http bearer authentication required
2826
3002
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
2827
3003
 
2828
- if (receiver !== undefined) {
2829
- localVarQueryParameter['receiver'] = receiver;
3004
+ if (beneficiaryValue !== undefined) {
3005
+ localVarQueryParameter['beneficiaryValue'] = beneficiaryValue;
3006
+ }
3007
+
3008
+ if (kind !== undefined) {
3009
+ localVarQueryParameter['kind'] = kind;
2830
3010
  }
2831
3011
 
2832
3012
 
@@ -2843,16 +3023,16 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
2843
3023
  /**
2844
3024
  * Transfer balance
2845
3025
  * @summary Transfer balance
2846
- * @param {string} receiverID ID of the receiver where we want to update balance.
3026
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
2847
3027
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
2848
3028
  * @param {*} [options] Override http request option.
2849
3029
  * @throws {RequiredError}
2850
3030
  */
2851
- transferBalance: async (receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2852
- // verify required parameter 'receiverID' is not null or undefined
2853
- assertParamExists('transferBalance', 'receiverID', receiverID)
2854
- const localVarPath = `/balances/{receiverID}/transfer`
2855
- .replace(`{${"receiverID"}}`, encodeURIComponent(String(receiverID)));
3031
+ transferBalance: async (beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3032
+ // verify required parameter 'beneficiaryValue' is not null or undefined
3033
+ assertParamExists('transferBalance', 'beneficiaryValue', beneficiaryValue)
3034
+ const localVarPath = `/balances/{beneficiaryValue}/transfer`
3035
+ .replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
2856
3036
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2857
3037
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2858
3038
  let baseOptions;
@@ -2881,16 +3061,16 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
2881
3061
  /**
2882
3062
  * Manually update balance. Used as manual compensation for out of stock products.
2883
3063
  * @summary Manually update balance
2884
- * @param {string} receiverID ID of the receiver where we want to update balance.
3064
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
2885
3065
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
2886
3066
  * @param {*} [options] Override http request option.
2887
3067
  * @throws {RequiredError}
2888
3068
  */
2889
- updateBalance: async (receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2890
- // verify required parameter 'receiverID' is not null or undefined
2891
- assertParamExists('updateBalance', 'receiverID', receiverID)
2892
- const localVarPath = `/balances/{receiverID}`
2893
- .replace(`{${"receiverID"}}`, encodeURIComponent(String(receiverID)));
3069
+ updateBalance: async (beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3070
+ // verify required parameter 'beneficiaryValue' is not null or undefined
3071
+ assertParamExists('updateBalance', 'beneficiaryValue', beneficiaryValue)
3072
+ const localVarPath = `/balances/{beneficiaryValue}`
3073
+ .replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
2894
3074
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2895
3075
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2896
3076
  let baseOptions;
@@ -2929,36 +3109,37 @@ export const BalanceApiFp = function(configuration?: Configuration) {
2929
3109
  /**
2930
3110
  * Get balance
2931
3111
  * @summary Get balance
2932
- * @param {string} receiver This is the receiver
3112
+ * @param {string} beneficiaryValue This is the beneficiary value
3113
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
2933
3114
  * @param {*} [options] Override http request option.
2934
3115
  * @throws {RequiredError}
2935
3116
  */
2936
- async getBalance(receiver: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>> {
2937
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(receiver, options);
3117
+ async getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>> {
3118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(beneficiaryValue, kind, options);
2938
3119
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2939
3120
  },
2940
3121
  /**
2941
3122
  * Transfer balance
2942
3123
  * @summary Transfer balance
2943
- * @param {string} receiverID ID of the receiver where we want to update balance.
3124
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
2944
3125
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
2945
3126
  * @param {*} [options] Override http request option.
2946
3127
  * @throws {RequiredError}
2947
3128
  */
2948
- async transferBalance(receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2949
- const localVarAxiosArgs = await localVarAxiosParamCreator.transferBalance(receiverID, balanceUpdateRequest, options);
3129
+ async transferBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3130
+ const localVarAxiosArgs = await localVarAxiosParamCreator.transferBalance(beneficiaryValue, balanceUpdateRequest, options);
2950
3131
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2951
3132
  },
2952
3133
  /**
2953
3134
  * Manually update balance. Used as manual compensation for out of stock products.
2954
3135
  * @summary Manually update balance
2955
- * @param {string} receiverID ID of the receiver where we want to update balance.
3136
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
2956
3137
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
2957
3138
  * @param {*} [options] Override http request option.
2958
3139
  * @throws {RequiredError}
2959
3140
  */
2960
- async updateBalance(receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2961
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBalance(receiverID, balanceUpdateRequest, options);
3141
+ async updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBalance(beneficiaryValue, balanceUpdateRequest, options);
2962
3143
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2963
3144
  },
2964
3145
  }
@@ -2974,34 +3155,35 @@ export const BalanceApiFactory = function (configuration?: Configuration, basePa
2974
3155
  /**
2975
3156
  * Get balance
2976
3157
  * @summary Get balance
2977
- * @param {string} receiver This is the receiver
3158
+ * @param {string} beneficiaryValue This is the beneficiary value
3159
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
2978
3160
  * @param {*} [options] Override http request option.
2979
3161
  * @throws {RequiredError}
2980
3162
  */
2981
- getBalance(receiver: string, options?: any): AxiosPromise<Balance> {
2982
- return localVarFp.getBalance(receiver, options).then((request) => request(axios, basePath));
3163
+ getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: any): AxiosPromise<Balance> {
3164
+ return localVarFp.getBalance(beneficiaryValue, kind, options).then((request) => request(axios, basePath));
2983
3165
  },
2984
3166
  /**
2985
3167
  * Transfer balance
2986
3168
  * @summary Transfer balance
2987
- * @param {string} receiverID ID of the receiver where we want to update balance.
3169
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
2988
3170
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
2989
3171
  * @param {*} [options] Override http request option.
2990
3172
  * @throws {RequiredError}
2991
3173
  */
2992
- transferBalance(receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: any): AxiosPromise<void> {
2993
- return localVarFp.transferBalance(receiverID, balanceUpdateRequest, options).then((request) => request(axios, basePath));
3174
+ transferBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: any): AxiosPromise<void> {
3175
+ return localVarFp.transferBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(axios, basePath));
2994
3176
  },
2995
3177
  /**
2996
3178
  * Manually update balance. Used as manual compensation for out of stock products.
2997
3179
  * @summary Manually update balance
2998
- * @param {string} receiverID ID of the receiver where we want to update balance.
3180
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
2999
3181
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
3000
3182
  * @param {*} [options] Override http request option.
3001
3183
  * @throws {RequiredError}
3002
3184
  */
3003
- updateBalance(receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: any): AxiosPromise<void> {
3004
- return localVarFp.updateBalance(receiverID, balanceUpdateRequest, options).then((request) => request(axios, basePath));
3185
+ updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: any): AxiosPromise<void> {
3186
+ return localVarFp.updateBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(axios, basePath));
3005
3187
  },
3006
3188
  };
3007
3189
  };
@@ -3016,39 +3198,40 @@ export class BalanceApi extends BaseAPI {
3016
3198
  /**
3017
3199
  * Get balance
3018
3200
  * @summary Get balance
3019
- * @param {string} receiver This is the receiver
3201
+ * @param {string} beneficiaryValue This is the beneficiary value
3202
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
3020
3203
  * @param {*} [options] Override http request option.
3021
3204
  * @throws {RequiredError}
3022
3205
  * @memberof BalanceApi
3023
3206
  */
3024
- public getBalance(receiver: string, options?: AxiosRequestConfig) {
3025
- return BalanceApiFp(this.configuration).getBalance(receiver, options).then((request) => request(this.axios, this.basePath));
3207
+ public getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: AxiosRequestConfig) {
3208
+ return BalanceApiFp(this.configuration).getBalance(beneficiaryValue, kind, options).then((request) => request(this.axios, this.basePath));
3026
3209
  }
3027
3210
 
3028
3211
  /**
3029
3212
  * Transfer balance
3030
3213
  * @summary Transfer balance
3031
- * @param {string} receiverID ID of the receiver where we want to update balance.
3214
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
3032
3215
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
3033
3216
  * @param {*} [options] Override http request option.
3034
3217
  * @throws {RequiredError}
3035
3218
  * @memberof BalanceApi
3036
3219
  */
3037
- public transferBalance(receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig) {
3038
- return BalanceApiFp(this.configuration).transferBalance(receiverID, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3220
+ public transferBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig) {
3221
+ return BalanceApiFp(this.configuration).transferBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3039
3222
  }
3040
3223
 
3041
3224
  /**
3042
3225
  * Manually update balance. Used as manual compensation for out of stock products.
3043
3226
  * @summary Manually update balance
3044
- * @param {string} receiverID ID of the receiver where we want to update balance.
3227
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
3045
3228
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
3046
3229
  * @param {*} [options] Override http request option.
3047
3230
  * @throws {RequiredError}
3048
3231
  * @memberof BalanceApi
3049
3232
  */
3050
- public updateBalance(receiverID: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig) {
3051
- return BalanceApiFp(this.configuration).updateBalance(receiverID, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3233
+ public updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig) {
3234
+ return BalanceApiFp(this.configuration).updateBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3052
3235
  }
3053
3236
  }
3054
3237
 
@@ -4372,24 +4555,20 @@ export class NotificationApi extends BaseAPI {
4372
4555
 
4373
4556
 
4374
4557
  /**
4375
- * ProductApi - axios parameter creator
4558
+ * OrderApi - axios parameter creator
4376
4559
  * @export
4377
4560
  */
4378
- export const ProductApiAxiosParamCreator = function (configuration?: Configuration) {
4561
+ export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
4379
4562
  return {
4380
4563
  /**
4381
- * Accept or reject a product by id
4382
- * @summary Accept or reject a product by id
4383
- * @param {string} id The product id
4384
- * @param {ProductRequestApprovalRequest} [productRequestApprovalRequest]
4564
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
4565
+ * @summary Create an order for a product
4566
+ * @param {CreateOrderRequest} [createOrderRequest]
4385
4567
  * @param {*} [options] Override http request option.
4386
4568
  * @throws {RequiredError}
4387
4569
  */
4388
- approveProduct: async (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4389
- // verify required parameter 'id' is not null or undefined
4390
- assertParamExists('approveProduct', 'id', id)
4391
- const localVarPath = `/products/requests/{id}`
4392
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4570
+ createOrder: async (createOrderRequest?: CreateOrderRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4571
+ const localVarPath = `/users/orders`;
4393
4572
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4394
4573
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4395
4574
  let baseOptions;
@@ -4397,14 +4576,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
4397
4576
  baseOptions = configuration.baseOptions;
4398
4577
  }
4399
4578
 
4400
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4579
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4401
4580
  const localVarHeaderParameter = {} as any;
4402
4581
  const localVarQueryParameter = {} as any;
4403
4582
 
4404
- // authentication jwt required
4405
- // http bearer authentication required
4406
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
4407
-
4408
4583
 
4409
4584
 
4410
4585
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -4412,7 +4587,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
4412
4587
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4413
4588
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4414
4589
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4415
- localVarRequestOptions.data = serializeDataIfNeeded(productRequestApprovalRequest, localVarRequestOptions, configuration)
4590
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrderRequest, localVarRequestOptions, configuration)
4416
4591
 
4417
4592
  return {
4418
4593
  url: toPathString(localVarUrlObj),
@@ -4420,14 +4595,17 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
4420
4595
  };
4421
4596
  },
4422
4597
  /**
4423
- * Create a new product
4424
- * @summary Create a new product
4425
- * @param {ProductCreationRequest | null} [productCreationRequest]
4598
+ * Get order details
4599
+ * @summary Get order details
4600
+ * @param {string} id Order id
4426
4601
  * @param {*} [options] Override http request option.
4427
4602
  * @throws {RequiredError}
4428
4603
  */
4429
- createProduct: async (productCreationRequest?: ProductCreationRequest | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4430
- const localVarPath = `/products`;
4604
+ getOrder: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4605
+ // verify required parameter 'id' is not null or undefined
4606
+ assertParamExists('getOrder', 'id', id)
4607
+ const localVarPath = `/orders/{id}`
4608
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4431
4609
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4432
4610
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4433
4611
  let baseOptions;
@@ -4435,22 +4613,15 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
4435
4613
  baseOptions = configuration.baseOptions;
4436
4614
  }
4437
4615
 
4438
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4616
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4439
4617
  const localVarHeaderParameter = {} as any;
4440
4618
  const localVarQueryParameter = {} as any;
4441
4619
 
4442
- // authentication jwt required
4443
- // http bearer authentication required
4444
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
4445
-
4446
4620
 
4447
4621
 
4448
- localVarHeaderParameter['Content-Type'] = 'application/json';
4449
-
4450
4622
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4451
4623
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4452
4624
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4453
- localVarRequestOptions.data = serializeDataIfNeeded(productCreationRequest, localVarRequestOptions, configuration)
4454
4625
 
4455
4626
  return {
4456
4627
  url: toPathString(localVarUrlObj),
@@ -4458,14 +4629,19 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
4458
4629
  };
4459
4630
  },
4460
4631
  /**
4461
- * Create a new product request
4462
- * @summary Create a new product request
4463
- * @param {ProductRequestCreationRequest} [productRequestCreationRequest]
4632
+ * List existing orders
4633
+ * @summary List existing orders
4634
+ * @param {string} [paginationToken] This is the pagination token
4635
+ * @param {string} [search] Search for product or order
4636
+ * @param {string} [productId] Filter by token
4637
+ * @param {string} [balanceId] Filter by balance
4638
+ * @param {string} [createdAfter] Filter orders created after the specified date
4639
+ * @param {string} [createdBefore] Filter orders created before the specified date
4464
4640
  * @param {*} [options] Override http request option.
4465
4641
  * @throws {RequiredError}
4466
4642
  */
4467
- createProductRequest: async (productRequestCreationRequest?: ProductRequestCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4468
- const localVarPath = `/products/requests`;
4643
+ listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4644
+ const localVarPath = `/users/orders`;
4469
4645
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4470
4646
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4471
4647
  let baseOptions;
@@ -4473,39 +4649,331 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
4473
4649
  baseOptions = configuration.baseOptions;
4474
4650
  }
4475
4651
 
4476
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4652
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4477
4653
  const localVarHeaderParameter = {} as any;
4478
4654
  const localVarQueryParameter = {} as any;
4479
4655
 
4480
- // authentication jwt required
4481
- // http bearer authentication required
4482
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
4656
+ if (paginationToken !== undefined) {
4657
+ localVarQueryParameter['paginationToken'] = paginationToken;
4658
+ }
4483
4659
 
4660
+ if (search !== undefined) {
4661
+ localVarQueryParameter['search'] = search;
4662
+ }
4663
+
4664
+ if (productId !== undefined) {
4665
+ localVarQueryParameter['productId'] = productId;
4666
+ }
4667
+
4668
+ if (balanceId !== undefined) {
4669
+ localVarQueryParameter['balanceId'] = balanceId;
4670
+ }
4671
+
4672
+ if (createdAfter !== undefined) {
4673
+ localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
4674
+ (createdAfter as any).toISOString() :
4675
+ createdAfter;
4676
+ }
4677
+
4678
+ if (createdBefore !== undefined) {
4679
+ localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
4680
+ (createdBefore as any).toISOString() :
4681
+ createdBefore;
4682
+ }
4484
4683
 
4485
-
4486
- localVarHeaderParameter['Content-Type'] = 'application/json';
4487
4684
 
4685
+
4488
4686
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4489
4687
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4490
4688
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4491
- localVarRequestOptions.data = serializeDataIfNeeded(productRequestCreationRequest, localVarRequestOptions, configuration)
4492
4689
 
4493
4690
  return {
4494
4691
  url: toPathString(localVarUrlObj),
4495
4692
  options: localVarRequestOptions,
4496
4693
  };
4497
4694
  },
4695
+ }
4696
+ };
4697
+
4698
+ /**
4699
+ * OrderApi - functional programming interface
4700
+ * @export
4701
+ */
4702
+ export const OrderApiFp = function(configuration?: Configuration) {
4703
+ const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
4704
+ return {
4498
4705
  /**
4499
- * Get a product by id
4500
- * @summary Get a product by id
4501
- * @param {string} id The product id
4706
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
4707
+ * @summary Create an order for a product
4708
+ * @param {CreateOrderRequest} [createOrderRequest]
4502
4709
  * @param {*} [options] Override http request option.
4503
4710
  * @throws {RequiredError}
4504
4711
  */
4505
- getProductById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4506
- // verify required parameter 'id' is not null or undefined
4507
- assertParamExists('getProductById', 'id', id)
4508
- const localVarPath = `/products/{id}`
4712
+ async createOrder(createOrderRequest?: CreateOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
4713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(createOrderRequest, options);
4714
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4715
+ },
4716
+ /**
4717
+ * Get order details
4718
+ * @summary Get order details
4719
+ * @param {string} id Order id
4720
+ * @param {*} [options] Override http request option.
4721
+ * @throws {RequiredError}
4722
+ */
4723
+ async getOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
4724
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(id, options);
4725
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4726
+ },
4727
+ /**
4728
+ * List existing orders
4729
+ * @summary List existing orders
4730
+ * @param {string} [paginationToken] This is the pagination token
4731
+ * @param {string} [search] Search for product or order
4732
+ * @param {string} [productId] Filter by token
4733
+ * @param {string} [balanceId] Filter by balance
4734
+ * @param {string} [createdAfter] Filter orders created after the specified date
4735
+ * @param {string} [createdBefore] Filter orders created before the specified date
4736
+ * @param {*} [options] Override http request option.
4737
+ * @throws {RequiredError}
4738
+ */
4739
+ async listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
4740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
4741
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4742
+ },
4743
+ }
4744
+ };
4745
+
4746
+ /**
4747
+ * OrderApi - factory interface
4748
+ * @export
4749
+ */
4750
+ export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4751
+ const localVarFp = OrderApiFp(configuration)
4752
+ return {
4753
+ /**
4754
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
4755
+ * @summary Create an order for a product
4756
+ * @param {CreateOrderRequest} [createOrderRequest]
4757
+ * @param {*} [options] Override http request option.
4758
+ * @throws {RequiredError}
4759
+ */
4760
+ createOrder(createOrderRequest?: CreateOrderRequest, options?: any): AxiosPromise<Order> {
4761
+ return localVarFp.createOrder(createOrderRequest, options).then((request) => request(axios, basePath));
4762
+ },
4763
+ /**
4764
+ * Get order details
4765
+ * @summary Get order details
4766
+ * @param {string} id Order id
4767
+ * @param {*} [options] Override http request option.
4768
+ * @throws {RequiredError}
4769
+ */
4770
+ getOrder(id: string, options?: any): AxiosPromise<Order> {
4771
+ return localVarFp.getOrder(id, options).then((request) => request(axios, basePath));
4772
+ },
4773
+ /**
4774
+ * List existing orders
4775
+ * @summary List existing orders
4776
+ * @param {string} [paginationToken] This is the pagination token
4777
+ * @param {string} [search] Search for product or order
4778
+ * @param {string} [productId] Filter by token
4779
+ * @param {string} [balanceId] Filter by balance
4780
+ * @param {string} [createdAfter] Filter orders created after the specified date
4781
+ * @param {string} [createdBefore] Filter orders created before the specified date
4782
+ * @param {*} [options] Override http request option.
4783
+ * @throws {RequiredError}
4784
+ */
4785
+ listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
4786
+ return localVarFp.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
4787
+ },
4788
+ };
4789
+ };
4790
+
4791
+ /**
4792
+ * OrderApi - object-oriented interface
4793
+ * @export
4794
+ * @class OrderApi
4795
+ * @extends {BaseAPI}
4796
+ */
4797
+ export class OrderApi extends BaseAPI {
4798
+ /**
4799
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
4800
+ * @summary Create an order for a product
4801
+ * @param {CreateOrderRequest} [createOrderRequest]
4802
+ * @param {*} [options] Override http request option.
4803
+ * @throws {RequiredError}
4804
+ * @memberof OrderApi
4805
+ */
4806
+ public createOrder(createOrderRequest?: CreateOrderRequest, options?: AxiosRequestConfig) {
4807
+ return OrderApiFp(this.configuration).createOrder(createOrderRequest, options).then((request) => request(this.axios, this.basePath));
4808
+ }
4809
+
4810
+ /**
4811
+ * Get order details
4812
+ * @summary Get order details
4813
+ * @param {string} id Order id
4814
+ * @param {*} [options] Override http request option.
4815
+ * @throws {RequiredError}
4816
+ * @memberof OrderApi
4817
+ */
4818
+ public getOrder(id: string, options?: AxiosRequestConfig) {
4819
+ return OrderApiFp(this.configuration).getOrder(id, options).then((request) => request(this.axios, this.basePath));
4820
+ }
4821
+
4822
+ /**
4823
+ * List existing orders
4824
+ * @summary List existing orders
4825
+ * @param {string} [paginationToken] This is the pagination token
4826
+ * @param {string} [search] Search for product or order
4827
+ * @param {string} [productId] Filter by token
4828
+ * @param {string} [balanceId] Filter by balance
4829
+ * @param {string} [createdAfter] Filter orders created after the specified date
4830
+ * @param {string} [createdBefore] Filter orders created before the specified date
4831
+ * @param {*} [options] Override http request option.
4832
+ * @throws {RequiredError}
4833
+ * @memberof OrderApi
4834
+ */
4835
+ public listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
4836
+ return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
4837
+ }
4838
+ }
4839
+
4840
+
4841
+
4842
+ /**
4843
+ * ProductApi - axios parameter creator
4844
+ * @export
4845
+ */
4846
+ export const ProductApiAxiosParamCreator = function (configuration?: Configuration) {
4847
+ return {
4848
+ /**
4849
+ * Accept or reject a product by id
4850
+ * @summary Accept or reject a product by id
4851
+ * @param {string} id The product id
4852
+ * @param {ProductRequestApprovalRequest} [productRequestApprovalRequest]
4853
+ * @param {*} [options] Override http request option.
4854
+ * @throws {RequiredError}
4855
+ */
4856
+ approveProduct: async (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4857
+ // verify required parameter 'id' is not null or undefined
4858
+ assertParamExists('approveProduct', 'id', id)
4859
+ const localVarPath = `/products/requests/{id}`
4860
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4863
+ let baseOptions;
4864
+ if (configuration) {
4865
+ baseOptions = configuration.baseOptions;
4866
+ }
4867
+
4868
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4869
+ const localVarHeaderParameter = {} as any;
4870
+ const localVarQueryParameter = {} as any;
4871
+
4872
+ // authentication jwt required
4873
+ // http bearer authentication required
4874
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4875
+
4876
+
4877
+
4878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4879
+
4880
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4881
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4882
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4883
+ localVarRequestOptions.data = serializeDataIfNeeded(productRequestApprovalRequest, localVarRequestOptions, configuration)
4884
+
4885
+ return {
4886
+ url: toPathString(localVarUrlObj),
4887
+ options: localVarRequestOptions,
4888
+ };
4889
+ },
4890
+ /**
4891
+ * Create a new product
4892
+ * @summary Create a new product
4893
+ * @param {ProductCreationRequest | null} [productCreationRequest]
4894
+ * @param {*} [options] Override http request option.
4895
+ * @throws {RequiredError}
4896
+ */
4897
+ createProduct: async (productCreationRequest?: ProductCreationRequest | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4898
+ const localVarPath = `/products`;
4899
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4901
+ let baseOptions;
4902
+ if (configuration) {
4903
+ baseOptions = configuration.baseOptions;
4904
+ }
4905
+
4906
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4907
+ const localVarHeaderParameter = {} as any;
4908
+ const localVarQueryParameter = {} as any;
4909
+
4910
+ // authentication jwt required
4911
+ // http bearer authentication required
4912
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4913
+
4914
+
4915
+
4916
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4917
+
4918
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4919
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4920
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4921
+ localVarRequestOptions.data = serializeDataIfNeeded(productCreationRequest, localVarRequestOptions, configuration)
4922
+
4923
+ return {
4924
+ url: toPathString(localVarUrlObj),
4925
+ options: localVarRequestOptions,
4926
+ };
4927
+ },
4928
+ /**
4929
+ * Create a new product request
4930
+ * @summary Create a new product request
4931
+ * @param {ProductRequestCreationRequest} [productRequestCreationRequest]
4932
+ * @param {*} [options] Override http request option.
4933
+ * @throws {RequiredError}
4934
+ */
4935
+ createProductRequest: async (productRequestCreationRequest?: ProductRequestCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4936
+ const localVarPath = `/products/requests`;
4937
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4938
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4939
+ let baseOptions;
4940
+ if (configuration) {
4941
+ baseOptions = configuration.baseOptions;
4942
+ }
4943
+
4944
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4945
+ const localVarHeaderParameter = {} as any;
4946
+ const localVarQueryParameter = {} as any;
4947
+
4948
+ // authentication jwt required
4949
+ // http bearer authentication required
4950
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4951
+
4952
+
4953
+
4954
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4955
+
4956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4958
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4959
+ localVarRequestOptions.data = serializeDataIfNeeded(productRequestCreationRequest, localVarRequestOptions, configuration)
4960
+
4961
+ return {
4962
+ url: toPathString(localVarUrlObj),
4963
+ options: localVarRequestOptions,
4964
+ };
4965
+ },
4966
+ /**
4967
+ * Get a product by id
4968
+ * @summary Get a product by id
4969
+ * @param {string} id The product id
4970
+ * @param {*} [options] Override http request option.
4971
+ * @throws {RequiredError}
4972
+ */
4973
+ getProductById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4974
+ // verify required parameter 'id' is not null or undefined
4975
+ assertParamExists('getProductById', 'id', id)
4976
+ const localVarPath = `/products/{id}`
4509
4977
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4510
4978
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4511
4979
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5096,6 +5564,154 @@ export type ListProgressIntervalEnum = typeof ListProgressIntervalEnum[keyof typ
5096
5564
  */
5097
5565
  export const PromotionApiAxiosParamCreator = function (configuration?: Configuration) {
5098
5566
  return {
5567
+ /**
5568
+ * Claim a promotion by admins
5569
+ * @summary Claim a promotion
5570
+ * @param {string} id Promotion ID
5571
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
5572
+ * @param {*} [options] Override http request option.
5573
+ * @throws {RequiredError}
5574
+ */
5575
+ claimPromotion: async (id: string, promotionClaimRequest?: PromotionClaimRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5576
+ // verify required parameter 'id' is not null or undefined
5577
+ assertParamExists('claimPromotion', 'id', id)
5578
+ const localVarPath = `/promotions/{id}/claims`
5579
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5580
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5581
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5582
+ let baseOptions;
5583
+ if (configuration) {
5584
+ baseOptions = configuration.baseOptions;
5585
+ }
5586
+
5587
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5588
+ const localVarHeaderParameter = {} as any;
5589
+ const localVarQueryParameter = {} as any;
5590
+
5591
+
5592
+
5593
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5594
+
5595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5597
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5598
+ localVarRequestOptions.data = serializeDataIfNeeded(promotionClaimRequest, localVarRequestOptions, configuration)
5599
+
5600
+ return {
5601
+ url: toPathString(localVarUrlObj),
5602
+ options: localVarRequestOptions,
5603
+ };
5604
+ },
5605
+ /**
5606
+ * Claim a promotion by admins
5607
+ * @summary Claim a promotion
5608
+ * @param {string} id Promotion ID
5609
+ * @param {string} progressID Promotion Progress ID
5610
+ * @param {*} [options] Override http request option.
5611
+ * @throws {RequiredError}
5612
+ */
5613
+ claimPromotionProgress: async (id: string, progressID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5614
+ // verify required parameter 'id' is not null or undefined
5615
+ assertParamExists('claimPromotionProgress', 'id', id)
5616
+ // verify required parameter 'progressID' is not null or undefined
5617
+ assertParamExists('claimPromotionProgress', 'progressID', progressID)
5618
+ const localVarPath = `/promotions/{id}/progress/{progressID}/claims`
5619
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
5620
+ .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
5621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5622
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5623
+ let baseOptions;
5624
+ if (configuration) {
5625
+ baseOptions = configuration.baseOptions;
5626
+ }
5627
+
5628
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5629
+ const localVarHeaderParameter = {} as any;
5630
+ const localVarQueryParameter = {} as any;
5631
+
5632
+
5633
+
5634
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5635
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5636
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5637
+
5638
+ return {
5639
+ url: toPathString(localVarUrlObj),
5640
+ options: localVarRequestOptions,
5641
+ };
5642
+ },
5643
+ /**
5644
+ * Claim a promotion
5645
+ * @summary Claim a promotion
5646
+ * @param {string} id Promotion ID
5647
+ * @param {string} progressID Promotion Progress ID
5648
+ * @param {*} [options] Override http request option.
5649
+ * @throws {RequiredError}
5650
+ */
5651
+ claimPromotionUser: async (id: string, progressID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5652
+ // verify required parameter 'id' is not null or undefined
5653
+ assertParamExists('claimPromotionUser', 'id', id)
5654
+ // verify required parameter 'progressID' is not null or undefined
5655
+ assertParamExists('claimPromotionUser', 'progressID', progressID)
5656
+ const localVarPath = `/users/promotions/{id}/progress/{progressID}/claims`
5657
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
5658
+ .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
5659
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5660
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5661
+ let baseOptions;
5662
+ if (configuration) {
5663
+ baseOptions = configuration.baseOptions;
5664
+ }
5665
+
5666
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5667
+ const localVarHeaderParameter = {} as any;
5668
+ const localVarQueryParameter = {} as any;
5669
+
5670
+
5671
+
5672
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5674
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5675
+
5676
+ return {
5677
+ url: toPathString(localVarUrlObj),
5678
+ options: localVarRequestOptions,
5679
+ };
5680
+ },
5681
+ /**
5682
+ * Claim a promotion for all periods
5683
+ * @summary Claim a promotion
5684
+ * @param {string} id Promotion ID
5685
+ * @param {*} [options] Override http request option.
5686
+ * @throws {RequiredError}
5687
+ */
5688
+ claimPromotionUserAll: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5689
+ // verify required parameter 'id' is not null or undefined
5690
+ assertParamExists('claimPromotionUserAll', 'id', id)
5691
+ const localVarPath = `/users/promotions/{id}/claims`
5692
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5693
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5694
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5695
+ let baseOptions;
5696
+ if (configuration) {
5697
+ baseOptions = configuration.baseOptions;
5698
+ }
5699
+
5700
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5701
+ const localVarHeaderParameter = {} as any;
5702
+ const localVarQueryParameter = {} as any;
5703
+
5704
+
5705
+
5706
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5708
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5709
+
5710
+ return {
5711
+ url: toPathString(localVarUrlObj),
5712
+ options: localVarRequestOptions,
5713
+ };
5714
+ },
5099
5715
  /**
5100
5716
  * Configure a promotion
5101
5717
  * @summary Create promotion
@@ -5349,6 +5965,53 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
5349
5965
  export const PromotionApiFp = function(configuration?: Configuration) {
5350
5966
  const localVarAxiosParamCreator = PromotionApiAxiosParamCreator(configuration)
5351
5967
  return {
5968
+ /**
5969
+ * Claim a promotion by admins
5970
+ * @summary Claim a promotion
5971
+ * @param {string} id Promotion ID
5972
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
5973
+ * @param {*} [options] Override http request option.
5974
+ * @throws {RequiredError}
5975
+ */
5976
+ async claimPromotion(id: string, promotionClaimRequest?: PromotionClaimRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5977
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimPromotion(id, promotionClaimRequest, options);
5978
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5979
+ },
5980
+ /**
5981
+ * Claim a promotion by admins
5982
+ * @summary Claim a promotion
5983
+ * @param {string} id Promotion ID
5984
+ * @param {string} progressID Promotion Progress ID
5985
+ * @param {*} [options] Override http request option.
5986
+ * @throws {RequiredError}
5987
+ */
5988
+ async claimPromotionProgress(id: string, progressID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5989
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimPromotionProgress(id, progressID, options);
5990
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5991
+ },
5992
+ /**
5993
+ * Claim a promotion
5994
+ * @summary Claim a promotion
5995
+ * @param {string} id Promotion ID
5996
+ * @param {string} progressID Promotion Progress ID
5997
+ * @param {*} [options] Override http request option.
5998
+ * @throws {RequiredError}
5999
+ */
6000
+ async claimPromotionUser(id: string, progressID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6001
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimPromotionUser(id, progressID, options);
6002
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6003
+ },
6004
+ /**
6005
+ * Claim a promotion for all periods
6006
+ * @summary Claim a promotion
6007
+ * @param {string} id Promotion ID
6008
+ * @param {*} [options] Override http request option.
6009
+ * @throws {RequiredError}
6010
+ */
6011
+ async claimPromotionUserAll(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6012
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimPromotionUserAll(id, options);
6013
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6014
+ },
5352
6015
  /**
5353
6016
  * Configure a promotion
5354
6017
  * @summary Create promotion
@@ -5423,6 +6086,49 @@ export const PromotionApiFp = function(configuration?: Configuration) {
5423
6086
  export const PromotionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5424
6087
  const localVarFp = PromotionApiFp(configuration)
5425
6088
  return {
6089
+ /**
6090
+ * Claim a promotion by admins
6091
+ * @summary Claim a promotion
6092
+ * @param {string} id Promotion ID
6093
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
6094
+ * @param {*} [options] Override http request option.
6095
+ * @throws {RequiredError}
6096
+ */
6097
+ claimPromotion(id: string, promotionClaimRequest?: PromotionClaimRequest, options?: any): AxiosPromise<void> {
6098
+ return localVarFp.claimPromotion(id, promotionClaimRequest, options).then((request) => request(axios, basePath));
6099
+ },
6100
+ /**
6101
+ * Claim a promotion by admins
6102
+ * @summary Claim a promotion
6103
+ * @param {string} id Promotion ID
6104
+ * @param {string} progressID Promotion Progress ID
6105
+ * @param {*} [options] Override http request option.
6106
+ * @throws {RequiredError}
6107
+ */
6108
+ claimPromotionProgress(id: string, progressID: string, options?: any): AxiosPromise<void> {
6109
+ return localVarFp.claimPromotionProgress(id, progressID, options).then((request) => request(axios, basePath));
6110
+ },
6111
+ /**
6112
+ * Claim a promotion
6113
+ * @summary Claim a promotion
6114
+ * @param {string} id Promotion ID
6115
+ * @param {string} progressID Promotion Progress ID
6116
+ * @param {*} [options] Override http request option.
6117
+ * @throws {RequiredError}
6118
+ */
6119
+ claimPromotionUser(id: string, progressID: string, options?: any): AxiosPromise<void> {
6120
+ return localVarFp.claimPromotionUser(id, progressID, options).then((request) => request(axios, basePath));
6121
+ },
6122
+ /**
6123
+ * Claim a promotion for all periods
6124
+ * @summary Claim a promotion
6125
+ * @param {string} id Promotion ID
6126
+ * @param {*} [options] Override http request option.
6127
+ * @throws {RequiredError}
6128
+ */
6129
+ claimPromotionUserAll(id: string, options?: any): AxiosPromise<void> {
6130
+ return localVarFp.claimPromotionUserAll(id, options).then((request) => request(axios, basePath));
6131
+ },
5426
6132
  /**
5427
6133
  * Configure a promotion
5428
6134
  * @summary Create promotion
@@ -5492,6 +6198,57 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
5492
6198
  * @extends {BaseAPI}
5493
6199
  */
5494
6200
  export class PromotionApi extends BaseAPI {
6201
+ /**
6202
+ * Claim a promotion by admins
6203
+ * @summary Claim a promotion
6204
+ * @param {string} id Promotion ID
6205
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
6206
+ * @param {*} [options] Override http request option.
6207
+ * @throws {RequiredError}
6208
+ * @memberof PromotionApi
6209
+ */
6210
+ public claimPromotion(id: string, promotionClaimRequest?: PromotionClaimRequest, options?: AxiosRequestConfig) {
6211
+ return PromotionApiFp(this.configuration).claimPromotion(id, promotionClaimRequest, options).then((request) => request(this.axios, this.basePath));
6212
+ }
6213
+
6214
+ /**
6215
+ * Claim a promotion by admins
6216
+ * @summary Claim a promotion
6217
+ * @param {string} id Promotion ID
6218
+ * @param {string} progressID Promotion Progress ID
6219
+ * @param {*} [options] Override http request option.
6220
+ * @throws {RequiredError}
6221
+ * @memberof PromotionApi
6222
+ */
6223
+ public claimPromotionProgress(id: string, progressID: string, options?: AxiosRequestConfig) {
6224
+ return PromotionApiFp(this.configuration).claimPromotionProgress(id, progressID, options).then((request) => request(this.axios, this.basePath));
6225
+ }
6226
+
6227
+ /**
6228
+ * Claim a promotion
6229
+ * @summary Claim a promotion
6230
+ * @param {string} id Promotion ID
6231
+ * @param {string} progressID Promotion Progress ID
6232
+ * @param {*} [options] Override http request option.
6233
+ * @throws {RequiredError}
6234
+ * @memberof PromotionApi
6235
+ */
6236
+ public claimPromotionUser(id: string, progressID: string, options?: AxiosRequestConfig) {
6237
+ return PromotionApiFp(this.configuration).claimPromotionUser(id, progressID, options).then((request) => request(this.axios, this.basePath));
6238
+ }
6239
+
6240
+ /**
6241
+ * Claim a promotion for all periods
6242
+ * @summary Claim a promotion
6243
+ * @param {string} id Promotion ID
6244
+ * @param {*} [options] Override http request option.
6245
+ * @throws {RequiredError}
6246
+ * @memberof PromotionApi
6247
+ */
6248
+ public claimPromotionUserAll(id: string, options?: AxiosRequestConfig) {
6249
+ return PromotionApiFp(this.configuration).claimPromotionUserAll(id, options).then((request) => request(this.axios, this.basePath));
6250
+ }
6251
+
5495
6252
  /**
5496
6253
  * Configure a promotion
5497
6254
  * @summary Create promotion
@@ -6455,14 +7212,12 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
6455
7212
  /**
6456
7213
  * List existing transactions
6457
7214
  * @summary List existing transactions
6458
- * @param {string} clientID This is the client ID
6459
7215
  * @param {string} [paginationToken] This is the pagination token
7216
+ * @param {string} [clientID] This is the client ID
6460
7217
  * @param {*} [options] Override http request option.
6461
7218
  * @throws {RequiredError}
6462
7219
  */
6463
- listTransactions: async (clientID: string, paginationToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6464
- // verify required parameter 'clientID' is not null or undefined
6465
- assertParamExists('listTransactions', 'clientID', clientID)
7220
+ listTransactions: async (paginationToken?: string, clientID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6466
7221
  const localVarPath = `/transactions`;
6467
7222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6468
7223
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6511,13 +7266,13 @@ export const TransactionApiFp = function(configuration?: Configuration) {
6511
7266
  /**
6512
7267
  * List existing transactions
6513
7268
  * @summary List existing transactions
6514
- * @param {string} clientID This is the client ID
6515
7269
  * @param {string} [paginationToken] This is the pagination token
7270
+ * @param {string} [clientID] This is the client ID
6516
7271
  * @param {*} [options] Override http request option.
6517
7272
  * @throws {RequiredError}
6518
7273
  */
6519
- async listTransactions(clientID: string, paginationToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>> {
6520
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(clientID, paginationToken, options);
7274
+ async listTransactions(paginationToken?: string, clientID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>> {
7275
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(paginationToken, clientID, options);
6521
7276
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6522
7277
  },
6523
7278
  }
@@ -6533,13 +7288,13 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba
6533
7288
  /**
6534
7289
  * List existing transactions
6535
7290
  * @summary List existing transactions
6536
- * @param {string} clientID This is the client ID
6537
7291
  * @param {string} [paginationToken] This is the pagination token
7292
+ * @param {string} [clientID] This is the client ID
6538
7293
  * @param {*} [options] Override http request option.
6539
7294
  * @throws {RequiredError}
6540
7295
  */
6541
- listTransactions(clientID: string, paginationToken?: string, options?: any): AxiosPromise<TransactionsResponse> {
6542
- return localVarFp.listTransactions(clientID, paginationToken, options).then((request) => request(axios, basePath));
7296
+ listTransactions(paginationToken?: string, clientID?: string, options?: any): AxiosPromise<TransactionsResponse> {
7297
+ return localVarFp.listTransactions(paginationToken, clientID, options).then((request) => request(axios, basePath));
6543
7298
  },
6544
7299
  };
6545
7300
  };
@@ -6554,14 +7309,14 @@ export class TransactionApi extends BaseAPI {
6554
7309
  /**
6555
7310
  * List existing transactions
6556
7311
  * @summary List existing transactions
6557
- * @param {string} clientID This is the client ID
6558
7312
  * @param {string} [paginationToken] This is the pagination token
7313
+ * @param {string} [clientID] This is the client ID
6559
7314
  * @param {*} [options] Override http request option.
6560
7315
  * @throws {RequiredError}
6561
7316
  * @memberof TransactionApi
6562
7317
  */
6563
- public listTransactions(clientID: string, paginationToken?: string, options?: AxiosRequestConfig) {
6564
- return TransactionApiFp(this.configuration).listTransactions(clientID, paginationToken, options).then((request) => request(this.axios, this.basePath));
7318
+ public listTransactions(paginationToken?: string, clientID?: string, options?: AxiosRequestConfig) {
7319
+ return TransactionApiFp(this.configuration).listTransactions(paginationToken, clientID, options).then((request) => request(this.axios, this.basePath));
6565
7320
  }
6566
7321
  }
6567
7322