flexinet-api 0.0.259-prerelease0 → 0.0.263-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/dist/api.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.ReceiverKind = exports.PromotionType = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.Beneficiary = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.RewardApi = exports.RewardApiFactory = exports.RewardApiFp = exports.RewardApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = void 0;
25
+ exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -47,7 +47,7 @@ exports.AuditLogObjectType = {
47
47
  * @export
48
48
  * @enum {string}
49
49
  */
50
- exports.Beneficiary = {
50
+ exports.BeneficiaryKind = {
51
51
  User: 'user',
52
52
  Client: 'client'
53
53
  };
@@ -100,6 +100,10 @@ exports.NotificationStatus = {
100
100
  Unread: 'unread',
101
101
  Read: 'read'
102
102
  };
103
+ exports.OrderKindEnum = {
104
+ Webshop: 'webshop',
105
+ Promotions: 'promotions'
106
+ };
103
107
  /**
104
108
  *
105
109
  * @export
@@ -168,15 +172,6 @@ exports.PromotionType = {
168
172
  Regular: 'regular',
169
173
  CustomDeal: 'custom_deal'
170
174
  };
171
- /**
172
- *
173
- * @export
174
- * @enum {string}
175
- */
176
- exports.ReceiverKind = {
177
- User: 'user',
178
- Client: 'client'
179
- };
180
175
  /**
181
176
  *
182
177
  * @export
@@ -282,7 +277,7 @@ exports.UserSource = {
282
277
  * @enum {string}
283
278
  */
284
279
  exports.WebhookKind = {
285
- Product: 'product'
280
+ Order: 'order'
286
281
  };
287
282
  /**
288
283
  * AuditApi - axios parameter creator
@@ -477,13 +472,16 @@ const BalanceApiAxiosParamCreator = function (configuration) {
477
472
  /**
478
473
  * Get balance
479
474
  * @summary Get balance
480
- * @param {string} receiver This is the receiver
475
+ * @param {string} beneficiaryValue This is the beneficiary value
476
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
481
477
  * @param {*} [options] Override http request option.
482
478
  * @throws {RequiredError}
483
479
  */
484
- getBalance: (receiver, options = {}) => __awaiter(this, void 0, void 0, function* () {
485
- // verify required parameter 'receiver' is not null or undefined
486
- (0, common_1.assertParamExists)('getBalance', 'receiver', receiver);
480
+ getBalance: (beneficiaryValue, kind, options = {}) => __awaiter(this, void 0, void 0, function* () {
481
+ // verify required parameter 'beneficiaryValue' is not null or undefined
482
+ (0, common_1.assertParamExists)('getBalance', 'beneficiaryValue', beneficiaryValue);
483
+ // verify required parameter 'kind' is not null or undefined
484
+ (0, common_1.assertParamExists)('getBalance', 'kind', kind);
487
485
  const localVarPath = `/balances`;
488
486
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
489
487
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -497,8 +495,11 @@ const BalanceApiAxiosParamCreator = function (configuration) {
497
495
  // authentication jwt required
498
496
  // http bearer authentication required
499
497
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
500
- if (receiver !== undefined) {
501
- localVarQueryParameter['receiver'] = receiver;
498
+ if (beneficiaryValue !== undefined) {
499
+ localVarQueryParameter['beneficiaryValue'] = beneficiaryValue;
500
+ }
501
+ if (kind !== undefined) {
502
+ localVarQueryParameter['kind'] = kind;
502
503
  }
503
504
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
504
505
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -511,16 +512,16 @@ const BalanceApiAxiosParamCreator = function (configuration) {
511
512
  /**
512
513
  * Transfer balance
513
514
  * @summary Transfer balance
514
- * @param {string} receiverID ID of the receiver where we want to update balance.
515
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
515
516
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
516
517
  * @param {*} [options] Override http request option.
517
518
  * @throws {RequiredError}
518
519
  */
519
- transferBalance: (receiverID, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
520
- // verify required parameter 'receiverID' is not null or undefined
521
- (0, common_1.assertParamExists)('transferBalance', 'receiverID', receiverID);
522
- const localVarPath = `/balances/{receiverID}/transfer`
523
- .replace(`{${"receiverID"}}`, encodeURIComponent(String(receiverID)));
520
+ transferBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
521
+ // verify required parameter 'beneficiaryValue' is not null or undefined
522
+ (0, common_1.assertParamExists)('transferBalance', 'beneficiaryValue', beneficiaryValue);
523
+ const localVarPath = `/balances/{beneficiaryValue}/transfer`
524
+ .replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
524
525
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
525
526
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
526
527
  let baseOptions;
@@ -543,16 +544,16 @@ const BalanceApiAxiosParamCreator = function (configuration) {
543
544
  /**
544
545
  * Manually update balance. Used as manual compensation for out of stock products.
545
546
  * @summary Manually update balance
546
- * @param {string} receiverID ID of the receiver where we want to update balance.
547
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
547
548
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
548
549
  * @param {*} [options] Override http request option.
549
550
  * @throws {RequiredError}
550
551
  */
551
- updateBalance: (receiverID, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
552
- // verify required parameter 'receiverID' is not null or undefined
553
- (0, common_1.assertParamExists)('updateBalance', 'receiverID', receiverID);
554
- const localVarPath = `/balances/{receiverID}`
555
- .replace(`{${"receiverID"}}`, encodeURIComponent(String(receiverID)));
552
+ updateBalance: (beneficiaryValue, balanceUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
553
+ // verify required parameter 'beneficiaryValue' is not null or undefined
554
+ (0, common_1.assertParamExists)('updateBalance', 'beneficiaryValue', beneficiaryValue);
555
+ const localVarPath = `/balances/{beneficiaryValue}`
556
+ .replace(`{${"beneficiaryValue"}}`, encodeURIComponent(String(beneficiaryValue)));
556
557
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
557
558
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
558
559
  let baseOptions;
@@ -585,41 +586,42 @@ const BalanceApiFp = function (configuration) {
585
586
  /**
586
587
  * Get balance
587
588
  * @summary Get balance
588
- * @param {string} receiver This is the receiver
589
+ * @param {string} beneficiaryValue This is the beneficiary value
590
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
589
591
  * @param {*} [options] Override http request option.
590
592
  * @throws {RequiredError}
591
593
  */
592
- getBalance(receiver, options) {
594
+ getBalance(beneficiaryValue, kind, options) {
593
595
  return __awaiter(this, void 0, void 0, function* () {
594
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(receiver, options);
596
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBalance(beneficiaryValue, kind, options);
595
597
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
596
598
  });
597
599
  },
598
600
  /**
599
601
  * Transfer balance
600
602
  * @summary Transfer balance
601
- * @param {string} receiverID ID of the receiver where we want to update balance.
603
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
602
604
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
603
605
  * @param {*} [options] Override http request option.
604
606
  * @throws {RequiredError}
605
607
  */
606
- transferBalance(receiverID, balanceUpdateRequest, options) {
608
+ transferBalance(beneficiaryValue, balanceUpdateRequest, options) {
607
609
  return __awaiter(this, void 0, void 0, function* () {
608
- const localVarAxiosArgs = yield localVarAxiosParamCreator.transferBalance(receiverID, balanceUpdateRequest, options);
610
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.transferBalance(beneficiaryValue, balanceUpdateRequest, options);
609
611
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
610
612
  });
611
613
  },
612
614
  /**
613
615
  * Manually update balance. Used as manual compensation for out of stock products.
614
616
  * @summary Manually update balance
615
- * @param {string} receiverID ID of the receiver where we want to update balance.
617
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
616
618
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
617
619
  * @param {*} [options] Override http request option.
618
620
  * @throws {RequiredError}
619
621
  */
620
- updateBalance(receiverID, balanceUpdateRequest, options) {
622
+ updateBalance(beneficiaryValue, balanceUpdateRequest, options) {
621
623
  return __awaiter(this, void 0, void 0, function* () {
622
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBalance(receiverID, balanceUpdateRequest, options);
624
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBalance(beneficiaryValue, balanceUpdateRequest, options);
623
625
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
624
626
  });
625
627
  },
@@ -636,34 +638,35 @@ const BalanceApiFactory = function (configuration, basePath, axios) {
636
638
  /**
637
639
  * Get balance
638
640
  * @summary Get balance
639
- * @param {string} receiver This is the receiver
641
+ * @param {string} beneficiaryValue This is the beneficiary value
642
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
640
643
  * @param {*} [options] Override http request option.
641
644
  * @throws {RequiredError}
642
645
  */
643
- getBalance(receiver, options) {
644
- return localVarFp.getBalance(receiver, options).then((request) => request(axios, basePath));
646
+ getBalance(beneficiaryValue, kind, options) {
647
+ return localVarFp.getBalance(beneficiaryValue, kind, options).then((request) => request(axios, basePath));
645
648
  },
646
649
  /**
647
650
  * Transfer balance
648
651
  * @summary Transfer balance
649
- * @param {string} receiverID ID of the receiver where we want to update balance.
652
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
650
653
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
651
654
  * @param {*} [options] Override http request option.
652
655
  * @throws {RequiredError}
653
656
  */
654
- transferBalance(receiverID, balanceUpdateRequest, options) {
655
- return localVarFp.transferBalance(receiverID, balanceUpdateRequest, options).then((request) => request(axios, basePath));
657
+ transferBalance(beneficiaryValue, balanceUpdateRequest, options) {
658
+ return localVarFp.transferBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(axios, basePath));
656
659
  },
657
660
  /**
658
661
  * Manually update balance. Used as manual compensation for out of stock products.
659
662
  * @summary Manually update balance
660
- * @param {string} receiverID ID of the receiver where we want to update balance.
663
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
661
664
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
662
665
  * @param {*} [options] Override http request option.
663
666
  * @throws {RequiredError}
664
667
  */
665
- updateBalance(receiverID, balanceUpdateRequest, options) {
666
- return localVarFp.updateBalance(receiverID, balanceUpdateRequest, options).then((request) => request(axios, basePath));
668
+ updateBalance(beneficiaryValue, balanceUpdateRequest, options) {
669
+ return localVarFp.updateBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(axios, basePath));
667
670
  },
668
671
  };
669
672
  };
@@ -678,37 +681,38 @@ class BalanceApi extends base_1.BaseAPI {
678
681
  /**
679
682
  * Get balance
680
683
  * @summary Get balance
681
- * @param {string} receiver This is the receiver
684
+ * @param {string} beneficiaryValue This is the beneficiary value
685
+ * @param {BeneficiaryKind} kind This is the beneficiary kind
682
686
  * @param {*} [options] Override http request option.
683
687
  * @throws {RequiredError}
684
688
  * @memberof BalanceApi
685
689
  */
686
- getBalance(receiver, options) {
687
- return (0, exports.BalanceApiFp)(this.configuration).getBalance(receiver, options).then((request) => request(this.axios, this.basePath));
690
+ getBalance(beneficiaryValue, kind, options) {
691
+ return (0, exports.BalanceApiFp)(this.configuration).getBalance(beneficiaryValue, kind, options).then((request) => request(this.axios, this.basePath));
688
692
  }
689
693
  /**
690
694
  * Transfer balance
691
695
  * @summary Transfer balance
692
- * @param {string} receiverID ID of the receiver where we want to update balance.
696
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
693
697
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
694
698
  * @param {*} [options] Override http request option.
695
699
  * @throws {RequiredError}
696
700
  * @memberof BalanceApi
697
701
  */
698
- transferBalance(receiverID, balanceUpdateRequest, options) {
699
- return (0, exports.BalanceApiFp)(this.configuration).transferBalance(receiverID, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
702
+ transferBalance(beneficiaryValue, balanceUpdateRequest, options) {
703
+ return (0, exports.BalanceApiFp)(this.configuration).transferBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
700
704
  }
701
705
  /**
702
706
  * Manually update balance. Used as manual compensation for out of stock products.
703
707
  * @summary Manually update balance
704
- * @param {string} receiverID ID of the receiver where we want to update balance.
708
+ * @param {string} beneficiaryValue ID of the beneficiary where we want to update balance.
705
709
  * @param {BalanceUpdateRequest} [balanceUpdateRequest]
706
710
  * @param {*} [options] Override http request option.
707
711
  * @throws {RequiredError}
708
712
  * @memberof BalanceApi
709
713
  */
710
- updateBalance(receiverID, balanceUpdateRequest, options) {
711
- return (0, exports.BalanceApiFp)(this.configuration).updateBalance(receiverID, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
714
+ updateBalance(beneficiaryValue, balanceUpdateRequest, options) {
715
+ return (0, exports.BalanceApiFp)(this.configuration).updateBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
712
716
  }
713
717
  }
714
718
  exports.BalanceApi = BalanceApi;
@@ -1938,6 +1942,271 @@ class NotificationApi extends base_1.BaseAPI {
1938
1942
  }
1939
1943
  }
1940
1944
  exports.NotificationApi = NotificationApi;
1945
+ /**
1946
+ * OrderApi - axios parameter creator
1947
+ * @export
1948
+ */
1949
+ const OrderApiAxiosParamCreator = function (configuration) {
1950
+ return {
1951
+ /**
1952
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
1953
+ * @summary Create an order for a product
1954
+ * @param {CreateOrderRequest} [createOrderRequest]
1955
+ * @param {*} [options] Override http request option.
1956
+ * @throws {RequiredError}
1957
+ */
1958
+ createOrder: (createOrderRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1959
+ const localVarPath = `/users/orders`;
1960
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1961
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1962
+ let baseOptions;
1963
+ if (configuration) {
1964
+ baseOptions = configuration.baseOptions;
1965
+ }
1966
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1967
+ const localVarHeaderParameter = {};
1968
+ const localVarQueryParameter = {};
1969
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1970
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1971
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1972
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1973
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrderRequest, localVarRequestOptions, configuration);
1974
+ return {
1975
+ url: (0, common_1.toPathString)(localVarUrlObj),
1976
+ options: localVarRequestOptions,
1977
+ };
1978
+ }),
1979
+ /**
1980
+ * Get order details
1981
+ * @summary Get order details
1982
+ * @param {string} id Order id
1983
+ * @param {*} [options] Override http request option.
1984
+ * @throws {RequiredError}
1985
+ */
1986
+ getOrder: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1987
+ // verify required parameter 'id' is not null or undefined
1988
+ (0, common_1.assertParamExists)('getOrder', 'id', id);
1989
+ const localVarPath = `/orders/{id}`
1990
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1991
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1992
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1993
+ let baseOptions;
1994
+ if (configuration) {
1995
+ baseOptions = configuration.baseOptions;
1996
+ }
1997
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1998
+ const localVarHeaderParameter = {};
1999
+ const localVarQueryParameter = {};
2000
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2002
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2003
+ return {
2004
+ url: (0, common_1.toPathString)(localVarUrlObj),
2005
+ options: localVarRequestOptions,
2006
+ };
2007
+ }),
2008
+ /**
2009
+ * List existing orders
2010
+ * @summary List existing orders
2011
+ * @param {string} [paginationToken] This is the pagination token
2012
+ * @param {string} [search] Search for product or order
2013
+ * @param {string} [productId] Filter by token
2014
+ * @param {string} [balanceId] Filter by balance
2015
+ * @param {string} [createdAfter] Filter orders created after the specified date
2016
+ * @param {string} [createdBefore] Filter orders created before the specified date
2017
+ * @param {*} [options] Override http request option.
2018
+ * @throws {RequiredError}
2019
+ */
2020
+ listOrders: (paginationToken, search, productId, balanceId, createdAfter, createdBefore, options = {}) => __awaiter(this, void 0, void 0, function* () {
2021
+ const localVarPath = `/users/orders`;
2022
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2023
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2024
+ let baseOptions;
2025
+ if (configuration) {
2026
+ baseOptions = configuration.baseOptions;
2027
+ }
2028
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2029
+ const localVarHeaderParameter = {};
2030
+ const localVarQueryParameter = {};
2031
+ if (paginationToken !== undefined) {
2032
+ localVarQueryParameter['paginationToken'] = paginationToken;
2033
+ }
2034
+ if (search !== undefined) {
2035
+ localVarQueryParameter['search'] = search;
2036
+ }
2037
+ if (productId !== undefined) {
2038
+ localVarQueryParameter['productId'] = productId;
2039
+ }
2040
+ if (balanceId !== undefined) {
2041
+ localVarQueryParameter['balanceId'] = balanceId;
2042
+ }
2043
+ if (createdAfter !== undefined) {
2044
+ localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
2045
+ createdAfter.toISOString() :
2046
+ createdAfter;
2047
+ }
2048
+ if (createdBefore !== undefined) {
2049
+ localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
2050
+ createdBefore.toISOString() :
2051
+ createdBefore;
2052
+ }
2053
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2055
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2056
+ return {
2057
+ url: (0, common_1.toPathString)(localVarUrlObj),
2058
+ options: localVarRequestOptions,
2059
+ };
2060
+ }),
2061
+ };
2062
+ };
2063
+ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
2064
+ /**
2065
+ * OrderApi - functional programming interface
2066
+ * @export
2067
+ */
2068
+ const OrderApiFp = function (configuration) {
2069
+ const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
2070
+ return {
2071
+ /**
2072
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
2073
+ * @summary Create an order for a product
2074
+ * @param {CreateOrderRequest} [createOrderRequest]
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ */
2078
+ createOrder(createOrderRequest, options) {
2079
+ return __awaiter(this, void 0, void 0, function* () {
2080
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(createOrderRequest, options);
2081
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2082
+ });
2083
+ },
2084
+ /**
2085
+ * Get order details
2086
+ * @summary Get order details
2087
+ * @param {string} id Order id
2088
+ * @param {*} [options] Override http request option.
2089
+ * @throws {RequiredError}
2090
+ */
2091
+ getOrder(id, options) {
2092
+ return __awaiter(this, void 0, void 0, function* () {
2093
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(id, options);
2094
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2095
+ });
2096
+ },
2097
+ /**
2098
+ * List existing orders
2099
+ * @summary List existing orders
2100
+ * @param {string} [paginationToken] This is the pagination token
2101
+ * @param {string} [search] Search for product or order
2102
+ * @param {string} [productId] Filter by token
2103
+ * @param {string} [balanceId] Filter by balance
2104
+ * @param {string} [createdAfter] Filter orders created after the specified date
2105
+ * @param {string} [createdBefore] Filter orders created before the specified date
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
2110
+ return __awaiter(this, void 0, void 0, function* () {
2111
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
2112
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2113
+ });
2114
+ },
2115
+ };
2116
+ };
2117
+ exports.OrderApiFp = OrderApiFp;
2118
+ /**
2119
+ * OrderApi - factory interface
2120
+ * @export
2121
+ */
2122
+ const OrderApiFactory = function (configuration, basePath, axios) {
2123
+ const localVarFp = (0, exports.OrderApiFp)(configuration);
2124
+ return {
2125
+ /**
2126
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
2127
+ * @summary Create an order for a product
2128
+ * @param {CreateOrderRequest} [createOrderRequest]
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ */
2132
+ createOrder(createOrderRequest, options) {
2133
+ return localVarFp.createOrder(createOrderRequest, options).then((request) => request(axios, basePath));
2134
+ },
2135
+ /**
2136
+ * Get order details
2137
+ * @summary Get order details
2138
+ * @param {string} id Order id
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ getOrder(id, options) {
2143
+ return localVarFp.getOrder(id, options).then((request) => request(axios, basePath));
2144
+ },
2145
+ /**
2146
+ * List existing orders
2147
+ * @summary List existing orders
2148
+ * @param {string} [paginationToken] This is the pagination token
2149
+ * @param {string} [search] Search for product or order
2150
+ * @param {string} [productId] Filter by token
2151
+ * @param {string} [balanceId] Filter by balance
2152
+ * @param {string} [createdAfter] Filter orders created after the specified date
2153
+ * @param {string} [createdBefore] Filter orders created before the specified date
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ */
2157
+ listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
2158
+ return localVarFp.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
2159
+ },
2160
+ };
2161
+ };
2162
+ exports.OrderApiFactory = OrderApiFactory;
2163
+ /**
2164
+ * OrderApi - object-oriented interface
2165
+ * @export
2166
+ * @class OrderApi
2167
+ * @extends {BaseAPI}
2168
+ */
2169
+ class OrderApi extends base_1.BaseAPI {
2170
+ /**
2171
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
2172
+ * @summary Create an order for a product
2173
+ * @param {CreateOrderRequest} [createOrderRequest]
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ * @memberof OrderApi
2177
+ */
2178
+ createOrder(createOrderRequest, options) {
2179
+ return (0, exports.OrderApiFp)(this.configuration).createOrder(createOrderRequest, options).then((request) => request(this.axios, this.basePath));
2180
+ }
2181
+ /**
2182
+ * Get order details
2183
+ * @summary Get order details
2184
+ * @param {string} id Order id
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ * @memberof OrderApi
2188
+ */
2189
+ getOrder(id, options) {
2190
+ return (0, exports.OrderApiFp)(this.configuration).getOrder(id, options).then((request) => request(this.axios, this.basePath));
2191
+ }
2192
+ /**
2193
+ * List existing orders
2194
+ * @summary List existing orders
2195
+ * @param {string} [paginationToken] This is the pagination token
2196
+ * @param {string} [search] Search for product or order
2197
+ * @param {string} [productId] Filter by token
2198
+ * @param {string} [balanceId] Filter by balance
2199
+ * @param {string} [createdAfter] Filter orders created after the specified date
2200
+ * @param {string} [createdBefore] Filter orders created before the specified date
2201
+ * @param {*} [options] Override http request option.
2202
+ * @throws {RequiredError}
2203
+ * @memberof OrderApi
2204
+ */
2205
+ listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
2206
+ return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
2207
+ }
2208
+ }
2209
+ exports.OrderApi = OrderApi;
1941
2210
  /**
1942
2211
  * ProductApi - axios parameter creator
1943
2212
  * @export
@@ -2041,6 +2310,31 @@ const ProductApiAxiosParamCreator = function (configuration) {
2041
2310
  options: localVarRequestOptions,
2042
2311
  };
2043
2312
  }),
2313
+ /**
2314
+ * Create upload URL for product
2315
+ * @summary Create upload URL for product
2316
+ * @param {*} [options] Override http request option.
2317
+ * @throws {RequiredError}
2318
+ */
2319
+ createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2320
+ const localVarPath = `/products/upload-urls`;
2321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2322
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2323
+ let baseOptions;
2324
+ if (configuration) {
2325
+ baseOptions = configuration.baseOptions;
2326
+ }
2327
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2328
+ const localVarHeaderParameter = {};
2329
+ const localVarQueryParameter = {};
2330
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2332
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2333
+ return {
2334
+ url: (0, common_1.toPathString)(localVarUrlObj),
2335
+ options: localVarRequestOptions,
2336
+ };
2337
+ }),
2044
2338
  /**
2045
2339
  * Get a product by id
2046
2340
  * @summary Get a product by id
@@ -2141,6 +2435,62 @@ const ProductApiAxiosParamCreator = function (configuration) {
2141
2435
  options: localVarRequestOptions,
2142
2436
  };
2143
2437
  }),
2438
+ /**
2439
+ * List existing products
2440
+ * @summary List existing products
2441
+ * @param {ProductKind} [kind] The product kind
2442
+ * @param {string} [search] search string
2443
+ * @param {ProductUsage} [usage] The product usage
2444
+ * @param {ProductStatus} [status] The product status
2445
+ * @param {ProductAvailability} [availability] The product availability
2446
+ * @param {string} [segmentID] The segment ID
2447
+ * @param {string} [nextToken] This is the pagination token
2448
+ * @param {*} [options] Override http request option.
2449
+ * @throws {RequiredError}
2450
+ */
2451
+ listProducts: (kind, search, usage, status, availability, segmentID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
2452
+ const localVarPath = `/products`;
2453
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2454
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2455
+ let baseOptions;
2456
+ if (configuration) {
2457
+ baseOptions = configuration.baseOptions;
2458
+ }
2459
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2460
+ const localVarHeaderParameter = {};
2461
+ const localVarQueryParameter = {};
2462
+ // authentication jwt required
2463
+ // http bearer authentication required
2464
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2465
+ if (kind !== undefined) {
2466
+ localVarQueryParameter['kind'] = kind;
2467
+ }
2468
+ if (search !== undefined) {
2469
+ localVarQueryParameter['search'] = search;
2470
+ }
2471
+ if (usage !== undefined) {
2472
+ localVarQueryParameter['usage'] = usage;
2473
+ }
2474
+ if (status !== undefined) {
2475
+ localVarQueryParameter['status'] = status;
2476
+ }
2477
+ if (availability !== undefined) {
2478
+ localVarQueryParameter['availability'] = availability;
2479
+ }
2480
+ if (segmentID !== undefined) {
2481
+ localVarQueryParameter['segmentID'] = segmentID;
2482
+ }
2483
+ if (nextToken !== undefined) {
2484
+ localVarQueryParameter['nextToken'] = nextToken;
2485
+ }
2486
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2488
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2489
+ return {
2490
+ url: (0, common_1.toPathString)(localVarUrlObj),
2491
+ options: localVarRequestOptions,
2492
+ };
2493
+ }),
2144
2494
  /**
2145
2495
  * Update a product by id
2146
2496
  * @summary Update a product by id
@@ -2227,15 +2577,27 @@ const ProductApiFp = function (configuration) {
2227
2577
  });
2228
2578
  },
2229
2579
  /**
2230
- * Get a product by id
2231
- * @summary Get a product by id
2232
- * @param {string} id The product id
2580
+ * Create upload URL for product
2581
+ * @summary Create upload URL for product
2233
2582
  * @param {*} [options] Override http request option.
2234
2583
  * @throws {RequiredError}
2235
2584
  */
2236
- getProductById(id, options) {
2585
+ createUploadURL(options) {
2237
2586
  return __awaiter(this, void 0, void 0, function* () {
2238
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductById(id, options);
2587
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadURL(options);
2588
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2589
+ });
2590
+ },
2591
+ /**
2592
+ * Get a product by id
2593
+ * @summary Get a product by id
2594
+ * @param {string} id The product id
2595
+ * @param {*} [options] Override http request option.
2596
+ * @throws {RequiredError}
2597
+ */
2598
+ getProductById(id, options) {
2599
+ return __awaiter(this, void 0, void 0, function* () {
2600
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProductById(id, options);
2239
2601
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2240
2602
  });
2241
2603
  },
@@ -2266,6 +2628,25 @@ const ProductApiFp = function (configuration) {
2266
2628
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2267
2629
  });
2268
2630
  },
2631
+ /**
2632
+ * List existing products
2633
+ * @summary List existing products
2634
+ * @param {ProductKind} [kind] The product kind
2635
+ * @param {string} [search] search string
2636
+ * @param {ProductUsage} [usage] The product usage
2637
+ * @param {ProductStatus} [status] The product status
2638
+ * @param {ProductAvailability} [availability] The product availability
2639
+ * @param {string} [segmentID] The segment ID
2640
+ * @param {string} [nextToken] This is the pagination token
2641
+ * @param {*} [options] Override http request option.
2642
+ * @throws {RequiredError}
2643
+ */
2644
+ listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
2645
+ return __awaiter(this, void 0, void 0, function* () {
2646
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
2647
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2648
+ });
2649
+ },
2269
2650
  /**
2270
2651
  * Update a product by id
2271
2652
  * @summary Update a product by id
@@ -2321,6 +2702,15 @@ const ProductApiFactory = function (configuration, basePath, axios) {
2321
2702
  createProductRequest(productRequestCreationRequest, options) {
2322
2703
  return localVarFp.createProductRequest(productRequestCreationRequest, options).then((request) => request(axios, basePath));
2323
2704
  },
2705
+ /**
2706
+ * Create upload URL for product
2707
+ * @summary Create upload URL for product
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ */
2711
+ createUploadURL(options) {
2712
+ return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
2713
+ },
2324
2714
  /**
2325
2715
  * Get a product by id
2326
2716
  * @summary Get a product by id
@@ -2352,6 +2742,22 @@ const ProductApiFactory = function (configuration, basePath, axios) {
2352
2742
  listProductRequests(status, nextToken, options) {
2353
2743
  return localVarFp.listProductRequests(status, nextToken, options).then((request) => request(axios, basePath));
2354
2744
  },
2745
+ /**
2746
+ * List existing products
2747
+ * @summary List existing products
2748
+ * @param {ProductKind} [kind] The product kind
2749
+ * @param {string} [search] search string
2750
+ * @param {ProductUsage} [usage] The product usage
2751
+ * @param {ProductStatus} [status] The product status
2752
+ * @param {ProductAvailability} [availability] The product availability
2753
+ * @param {string} [segmentID] The segment ID
2754
+ * @param {string} [nextToken] This is the pagination token
2755
+ * @param {*} [options] Override http request option.
2756
+ * @throws {RequiredError}
2757
+ */
2758
+ listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
2759
+ return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
2760
+ },
2355
2761
  /**
2356
2762
  * Update a product by id
2357
2763
  * @summary Update a product by id
@@ -2407,6 +2813,16 @@ class ProductApi extends base_1.BaseAPI {
2407
2813
  createProductRequest(productRequestCreationRequest, options) {
2408
2814
  return (0, exports.ProductApiFp)(this.configuration).createProductRequest(productRequestCreationRequest, options).then((request) => request(this.axios, this.basePath));
2409
2815
  }
2816
+ /**
2817
+ * Create upload URL for product
2818
+ * @summary Create upload URL for product
2819
+ * @param {*} [options] Override http request option.
2820
+ * @throws {RequiredError}
2821
+ * @memberof ProductApi
2822
+ */
2823
+ createUploadURL(options) {
2824
+ return (0, exports.ProductApiFp)(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
2825
+ }
2410
2826
  /**
2411
2827
  * Get a product by id
2412
2828
  * @summary Get a product by id
@@ -2441,6 +2857,23 @@ class ProductApi extends base_1.BaseAPI {
2441
2857
  listProductRequests(status, nextToken, options) {
2442
2858
  return (0, exports.ProductApiFp)(this.configuration).listProductRequests(status, nextToken, options).then((request) => request(this.axios, this.basePath));
2443
2859
  }
2860
+ /**
2861
+ * List existing products
2862
+ * @summary List existing products
2863
+ * @param {ProductKind} [kind] The product kind
2864
+ * @param {string} [search] search string
2865
+ * @param {ProductUsage} [usage] The product usage
2866
+ * @param {ProductStatus} [status] The product status
2867
+ * @param {ProductAvailability} [availability] The product availability
2868
+ * @param {string} [segmentID] The segment ID
2869
+ * @param {string} [nextToken] This is the pagination token
2870
+ * @param {*} [options] Override http request option.
2871
+ * @throws {RequiredError}
2872
+ * @memberof ProductApi
2873
+ */
2874
+ listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
2875
+ return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
2876
+ }
2444
2877
  /**
2445
2878
  * Update a product by id
2446
2879
  * @summary Update a product by id
@@ -2609,6 +3042,133 @@ exports.ListProgressIntervalEnum = {
2609
3042
  */
2610
3043
  const PromotionApiAxiosParamCreator = function (configuration) {
2611
3044
  return {
3045
+ /**
3046
+ * Claim a promotion by admins
3047
+ * @summary Claim a promotion
3048
+ * @param {string} id Promotion ID
3049
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
3050
+ * @param {*} [options] Override http request option.
3051
+ * @throws {RequiredError}
3052
+ */
3053
+ claimPromotion: (id, promotionClaimRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
3054
+ // verify required parameter 'id' is not null or undefined
3055
+ (0, common_1.assertParamExists)('claimPromotion', 'id', id);
3056
+ const localVarPath = `/promotions/{id}/claims`
3057
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3058
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3059
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3060
+ let baseOptions;
3061
+ if (configuration) {
3062
+ baseOptions = configuration.baseOptions;
3063
+ }
3064
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3065
+ const localVarHeaderParameter = {};
3066
+ const localVarQueryParameter = {};
3067
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3068
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3069
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3070
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3071
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(promotionClaimRequest, localVarRequestOptions, configuration);
3072
+ return {
3073
+ url: (0, common_1.toPathString)(localVarUrlObj),
3074
+ options: localVarRequestOptions,
3075
+ };
3076
+ }),
3077
+ /**
3078
+ * Claim a promotion by admins
3079
+ * @summary Claim a promotion
3080
+ * @param {string} id Promotion ID
3081
+ * @param {string} progressID Promotion Progress ID
3082
+ * @param {*} [options] Override http request option.
3083
+ * @throws {RequiredError}
3084
+ */
3085
+ claimPromotionProgress: (id, progressID, options = {}) => __awaiter(this, void 0, void 0, function* () {
3086
+ // verify required parameter 'id' is not null or undefined
3087
+ (0, common_1.assertParamExists)('claimPromotionProgress', 'id', id);
3088
+ // verify required parameter 'progressID' is not null or undefined
3089
+ (0, common_1.assertParamExists)('claimPromotionProgress', 'progressID', progressID);
3090
+ const localVarPath = `/promotions/{id}/progress/{progressID}/claims`
3091
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3092
+ .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
3093
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3094
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3095
+ let baseOptions;
3096
+ if (configuration) {
3097
+ baseOptions = configuration.baseOptions;
3098
+ }
3099
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3100
+ const localVarHeaderParameter = {};
3101
+ const localVarQueryParameter = {};
3102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3105
+ return {
3106
+ url: (0, common_1.toPathString)(localVarUrlObj),
3107
+ options: localVarRequestOptions,
3108
+ };
3109
+ }),
3110
+ /**
3111
+ * Claim a promotion
3112
+ * @summary Claim a promotion
3113
+ * @param {string} id Promotion ID
3114
+ * @param {string} progressID Promotion Progress ID
3115
+ * @param {*} [options] Override http request option.
3116
+ * @throws {RequiredError}
3117
+ */
3118
+ claimPromotionUser: (id, progressID, options = {}) => __awaiter(this, void 0, void 0, function* () {
3119
+ // verify required parameter 'id' is not null or undefined
3120
+ (0, common_1.assertParamExists)('claimPromotionUser', 'id', id);
3121
+ // verify required parameter 'progressID' is not null or undefined
3122
+ (0, common_1.assertParamExists)('claimPromotionUser', 'progressID', progressID);
3123
+ const localVarPath = `/users/promotions/{id}/progress/{progressID}/claims`
3124
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3125
+ .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
3126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3127
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3128
+ let baseOptions;
3129
+ if (configuration) {
3130
+ baseOptions = configuration.baseOptions;
3131
+ }
3132
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3133
+ const localVarHeaderParameter = {};
3134
+ const localVarQueryParameter = {};
3135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3138
+ return {
3139
+ url: (0, common_1.toPathString)(localVarUrlObj),
3140
+ options: localVarRequestOptions,
3141
+ };
3142
+ }),
3143
+ /**
3144
+ * Claim a promotion for all periods
3145
+ * @summary Claim a promotion
3146
+ * @param {string} id Promotion ID
3147
+ * @param {*} [options] Override http request option.
3148
+ * @throws {RequiredError}
3149
+ */
3150
+ claimPromotionUserAll: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
3151
+ // verify required parameter 'id' is not null or undefined
3152
+ (0, common_1.assertParamExists)('claimPromotionUserAll', 'id', id);
3153
+ const localVarPath = `/users/promotions/{id}/claims`
3154
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3156
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3157
+ let baseOptions;
3158
+ if (configuration) {
3159
+ baseOptions = configuration.baseOptions;
3160
+ }
3161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3162
+ const localVarHeaderParameter = {};
3163
+ const localVarQueryParameter = {};
3164
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3167
+ return {
3168
+ url: (0, common_1.toPathString)(localVarUrlObj),
3169
+ options: localVarRequestOptions,
3170
+ };
3171
+ }),
2612
3172
  /**
2613
3173
  * Configure a promotion
2614
3174
  * @summary Create promotion
@@ -2821,6 +3381,61 @@ exports.PromotionApiAxiosParamCreator = PromotionApiAxiosParamCreator;
2821
3381
  const PromotionApiFp = function (configuration) {
2822
3382
  const localVarAxiosParamCreator = (0, exports.PromotionApiAxiosParamCreator)(configuration);
2823
3383
  return {
3384
+ /**
3385
+ * Claim a promotion by admins
3386
+ * @summary Claim a promotion
3387
+ * @param {string} id Promotion ID
3388
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
3389
+ * @param {*} [options] Override http request option.
3390
+ * @throws {RequiredError}
3391
+ */
3392
+ claimPromotion(id, promotionClaimRequest, options) {
3393
+ return __awaiter(this, void 0, void 0, function* () {
3394
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimPromotion(id, promotionClaimRequest, options);
3395
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3396
+ });
3397
+ },
3398
+ /**
3399
+ * Claim a promotion by admins
3400
+ * @summary Claim a promotion
3401
+ * @param {string} id Promotion ID
3402
+ * @param {string} progressID Promotion Progress ID
3403
+ * @param {*} [options] Override http request option.
3404
+ * @throws {RequiredError}
3405
+ */
3406
+ claimPromotionProgress(id, progressID, options) {
3407
+ return __awaiter(this, void 0, void 0, function* () {
3408
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimPromotionProgress(id, progressID, options);
3409
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3410
+ });
3411
+ },
3412
+ /**
3413
+ * Claim a promotion
3414
+ * @summary Claim a promotion
3415
+ * @param {string} id Promotion ID
3416
+ * @param {string} progressID Promotion Progress ID
3417
+ * @param {*} [options] Override http request option.
3418
+ * @throws {RequiredError}
3419
+ */
3420
+ claimPromotionUser(id, progressID, options) {
3421
+ return __awaiter(this, void 0, void 0, function* () {
3422
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimPromotionUser(id, progressID, options);
3423
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3424
+ });
3425
+ },
3426
+ /**
3427
+ * Claim a promotion for all periods
3428
+ * @summary Claim a promotion
3429
+ * @param {string} id Promotion ID
3430
+ * @param {*} [options] Override http request option.
3431
+ * @throws {RequiredError}
3432
+ */
3433
+ claimPromotionUserAll(id, options) {
3434
+ return __awaiter(this, void 0, void 0, function* () {
3435
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimPromotionUserAll(id, options);
3436
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3437
+ });
3438
+ },
2824
3439
  /**
2825
3440
  * Configure a promotion
2826
3441
  * @summary Create promotion
@@ -2905,6 +3520,49 @@ exports.PromotionApiFp = PromotionApiFp;
2905
3520
  const PromotionApiFactory = function (configuration, basePath, axios) {
2906
3521
  const localVarFp = (0, exports.PromotionApiFp)(configuration);
2907
3522
  return {
3523
+ /**
3524
+ * Claim a promotion by admins
3525
+ * @summary Claim a promotion
3526
+ * @param {string} id Promotion ID
3527
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
3528
+ * @param {*} [options] Override http request option.
3529
+ * @throws {RequiredError}
3530
+ */
3531
+ claimPromotion(id, promotionClaimRequest, options) {
3532
+ return localVarFp.claimPromotion(id, promotionClaimRequest, options).then((request) => request(axios, basePath));
3533
+ },
3534
+ /**
3535
+ * Claim a promotion by admins
3536
+ * @summary Claim a promotion
3537
+ * @param {string} id Promotion ID
3538
+ * @param {string} progressID Promotion Progress ID
3539
+ * @param {*} [options] Override http request option.
3540
+ * @throws {RequiredError}
3541
+ */
3542
+ claimPromotionProgress(id, progressID, options) {
3543
+ return localVarFp.claimPromotionProgress(id, progressID, options).then((request) => request(axios, basePath));
3544
+ },
3545
+ /**
3546
+ * Claim a promotion
3547
+ * @summary Claim a promotion
3548
+ * @param {string} id Promotion ID
3549
+ * @param {string} progressID Promotion Progress ID
3550
+ * @param {*} [options] Override http request option.
3551
+ * @throws {RequiredError}
3552
+ */
3553
+ claimPromotionUser(id, progressID, options) {
3554
+ return localVarFp.claimPromotionUser(id, progressID, options).then((request) => request(axios, basePath));
3555
+ },
3556
+ /**
3557
+ * Claim a promotion for all periods
3558
+ * @summary Claim a promotion
3559
+ * @param {string} id Promotion ID
3560
+ * @param {*} [options] Override http request option.
3561
+ * @throws {RequiredError}
3562
+ */
3563
+ claimPromotionUserAll(id, options) {
3564
+ return localVarFp.claimPromotionUserAll(id, options).then((request) => request(axios, basePath));
3565
+ },
2908
3566
  /**
2909
3567
  * Configure a promotion
2910
3568
  * @summary Create promotion
@@ -2974,6 +3632,53 @@ exports.PromotionApiFactory = PromotionApiFactory;
2974
3632
  * @extends {BaseAPI}
2975
3633
  */
2976
3634
  class PromotionApi extends base_1.BaseAPI {
3635
+ /**
3636
+ * Claim a promotion by admins
3637
+ * @summary Claim a promotion
3638
+ * @param {string} id Promotion ID
3639
+ * @param {PromotionClaimRequest} [promotionClaimRequest]
3640
+ * @param {*} [options] Override http request option.
3641
+ * @throws {RequiredError}
3642
+ * @memberof PromotionApi
3643
+ */
3644
+ claimPromotion(id, promotionClaimRequest, options) {
3645
+ return (0, exports.PromotionApiFp)(this.configuration).claimPromotion(id, promotionClaimRequest, options).then((request) => request(this.axios, this.basePath));
3646
+ }
3647
+ /**
3648
+ * Claim a promotion by admins
3649
+ * @summary Claim a promotion
3650
+ * @param {string} id Promotion ID
3651
+ * @param {string} progressID Promotion Progress ID
3652
+ * @param {*} [options] Override http request option.
3653
+ * @throws {RequiredError}
3654
+ * @memberof PromotionApi
3655
+ */
3656
+ claimPromotionProgress(id, progressID, options) {
3657
+ return (0, exports.PromotionApiFp)(this.configuration).claimPromotionProgress(id, progressID, options).then((request) => request(this.axios, this.basePath));
3658
+ }
3659
+ /**
3660
+ * Claim a promotion
3661
+ * @summary Claim a promotion
3662
+ * @param {string} id Promotion ID
3663
+ * @param {string} progressID Promotion Progress ID
3664
+ * @param {*} [options] Override http request option.
3665
+ * @throws {RequiredError}
3666
+ * @memberof PromotionApi
3667
+ */
3668
+ claimPromotionUser(id, progressID, options) {
3669
+ return (0, exports.PromotionApiFp)(this.configuration).claimPromotionUser(id, progressID, options).then((request) => request(this.axios, this.basePath));
3670
+ }
3671
+ /**
3672
+ * Claim a promotion for all periods
3673
+ * @summary Claim a promotion
3674
+ * @param {string} id Promotion ID
3675
+ * @param {*} [options] Override http request option.
3676
+ * @throws {RequiredError}
3677
+ * @memberof PromotionApi
3678
+ */
3679
+ claimPromotionUserAll(id, options) {
3680
+ return (0, exports.PromotionApiFp)(this.configuration).claimPromotionUserAll(id, options).then((request) => request(this.axios, this.basePath));
3681
+ }
2977
3682
  /**
2978
3683
  * Configure a promotion
2979
3684
  * @summary Create promotion
@@ -3040,208 +3745,6 @@ class PromotionApi extends base_1.BaseAPI {
3040
3745
  }
3041
3746
  }
3042
3747
  exports.PromotionApi = PromotionApi;
3043
- /**
3044
- * RewardApi - axios parameter creator
3045
- * @export
3046
- */
3047
- const RewardApiAxiosParamCreator = function (configuration) {
3048
- return {
3049
- /**
3050
- * Create upload URL for reward
3051
- * @summary Create upload URL for reward
3052
- * @param {*} [options] Override http request option.
3053
- * @throws {RequiredError}
3054
- */
3055
- createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3056
- const localVarPath = `/products/upload-urls`;
3057
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3058
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3059
- let baseOptions;
3060
- if (configuration) {
3061
- baseOptions = configuration.baseOptions;
3062
- }
3063
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3064
- const localVarHeaderParameter = {};
3065
- const localVarQueryParameter = {};
3066
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3067
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3068
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3069
- return {
3070
- url: (0, common_1.toPathString)(localVarUrlObj),
3071
- options: localVarRequestOptions,
3072
- };
3073
- }),
3074
- /**
3075
- * List existing products
3076
- * @summary List existing products
3077
- * @param {ProductKind} [kind] The product kind
3078
- * @param {string} [search] search string
3079
- * @param {ProductUsage} [usage] The product usage
3080
- * @param {ProductStatus} [status] The product status
3081
- * @param {ProductAvailability} [availability] The product availability
3082
- * @param {string} [segmentID] The segment ID
3083
- * @param {string} [nextToken] This is the pagination token
3084
- * @param {*} [options] Override http request option.
3085
- * @throws {RequiredError}
3086
- */
3087
- listProducts: (kind, search, usage, status, availability, segmentID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3088
- const localVarPath = `/products`;
3089
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3090
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3091
- let baseOptions;
3092
- if (configuration) {
3093
- baseOptions = configuration.baseOptions;
3094
- }
3095
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3096
- const localVarHeaderParameter = {};
3097
- const localVarQueryParameter = {};
3098
- // authentication jwt required
3099
- // http bearer authentication required
3100
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3101
- if (kind !== undefined) {
3102
- localVarQueryParameter['kind'] = kind;
3103
- }
3104
- if (search !== undefined) {
3105
- localVarQueryParameter['search'] = search;
3106
- }
3107
- if (usage !== undefined) {
3108
- localVarQueryParameter['usage'] = usage;
3109
- }
3110
- if (status !== undefined) {
3111
- localVarQueryParameter['status'] = status;
3112
- }
3113
- if (availability !== undefined) {
3114
- localVarQueryParameter['availability'] = availability;
3115
- }
3116
- if (segmentID !== undefined) {
3117
- localVarQueryParameter['segmentID'] = segmentID;
3118
- }
3119
- if (nextToken !== undefined) {
3120
- localVarQueryParameter['nextToken'] = nextToken;
3121
- }
3122
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3123
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3124
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3125
- return {
3126
- url: (0, common_1.toPathString)(localVarUrlObj),
3127
- options: localVarRequestOptions,
3128
- };
3129
- }),
3130
- };
3131
- };
3132
- exports.RewardApiAxiosParamCreator = RewardApiAxiosParamCreator;
3133
- /**
3134
- * RewardApi - functional programming interface
3135
- * @export
3136
- */
3137
- const RewardApiFp = function (configuration) {
3138
- const localVarAxiosParamCreator = (0, exports.RewardApiAxiosParamCreator)(configuration);
3139
- return {
3140
- /**
3141
- * Create upload URL for reward
3142
- * @summary Create upload URL for reward
3143
- * @param {*} [options] Override http request option.
3144
- * @throws {RequiredError}
3145
- */
3146
- createUploadURL(options) {
3147
- return __awaiter(this, void 0, void 0, function* () {
3148
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadURL(options);
3149
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3150
- });
3151
- },
3152
- /**
3153
- * List existing products
3154
- * @summary List existing products
3155
- * @param {ProductKind} [kind] The product kind
3156
- * @param {string} [search] search string
3157
- * @param {ProductUsage} [usage] The product usage
3158
- * @param {ProductStatus} [status] The product status
3159
- * @param {ProductAvailability} [availability] The product availability
3160
- * @param {string} [segmentID] The segment ID
3161
- * @param {string} [nextToken] This is the pagination token
3162
- * @param {*} [options] Override http request option.
3163
- * @throws {RequiredError}
3164
- */
3165
- listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
3166
- return __awaiter(this, void 0, void 0, function* () {
3167
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
3168
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3169
- });
3170
- },
3171
- };
3172
- };
3173
- exports.RewardApiFp = RewardApiFp;
3174
- /**
3175
- * RewardApi - factory interface
3176
- * @export
3177
- */
3178
- const RewardApiFactory = function (configuration, basePath, axios) {
3179
- const localVarFp = (0, exports.RewardApiFp)(configuration);
3180
- return {
3181
- /**
3182
- * Create upload URL for reward
3183
- * @summary Create upload URL for reward
3184
- * @param {*} [options] Override http request option.
3185
- * @throws {RequiredError}
3186
- */
3187
- createUploadURL(options) {
3188
- return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
3189
- },
3190
- /**
3191
- * List existing products
3192
- * @summary List existing products
3193
- * @param {ProductKind} [kind] The product kind
3194
- * @param {string} [search] search string
3195
- * @param {ProductUsage} [usage] The product usage
3196
- * @param {ProductStatus} [status] The product status
3197
- * @param {ProductAvailability} [availability] The product availability
3198
- * @param {string} [segmentID] The segment ID
3199
- * @param {string} [nextToken] This is the pagination token
3200
- * @param {*} [options] Override http request option.
3201
- * @throws {RequiredError}
3202
- */
3203
- listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
3204
- return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
3205
- },
3206
- };
3207
- };
3208
- exports.RewardApiFactory = RewardApiFactory;
3209
- /**
3210
- * RewardApi - object-oriented interface
3211
- * @export
3212
- * @class RewardApi
3213
- * @extends {BaseAPI}
3214
- */
3215
- class RewardApi extends base_1.BaseAPI {
3216
- /**
3217
- * Create upload URL for reward
3218
- * @summary Create upload URL for reward
3219
- * @param {*} [options] Override http request option.
3220
- * @throws {RequiredError}
3221
- * @memberof RewardApi
3222
- */
3223
- createUploadURL(options) {
3224
- return (0, exports.RewardApiFp)(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
3225
- }
3226
- /**
3227
- * List existing products
3228
- * @summary List existing products
3229
- * @param {ProductKind} [kind] The product kind
3230
- * @param {string} [search] search string
3231
- * @param {ProductUsage} [usage] The product usage
3232
- * @param {ProductStatus} [status] The product status
3233
- * @param {ProductAvailability} [availability] The product availability
3234
- * @param {string} [segmentID] The segment ID
3235
- * @param {string} [nextToken] This is the pagination token
3236
- * @param {*} [options] Override http request option.
3237
- * @throws {RequiredError}
3238
- * @memberof RewardApi
3239
- */
3240
- listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
3241
- return (0, exports.RewardApiFp)(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
3242
- }
3243
- }
3244
- exports.RewardApi = RewardApi;
3245
3748
  /**
3246
3749
  * SegmentApi - axios parameter creator
3247
3750
  * @export
@@ -3866,14 +4369,12 @@ const TransactionApiAxiosParamCreator = function (configuration) {
3866
4369
  /**
3867
4370
  * List existing transactions
3868
4371
  * @summary List existing transactions
3869
- * @param {string} clientID This is the client ID
3870
4372
  * @param {string} [paginationToken] This is the pagination token
4373
+ * @param {string} [clientID] This is the client ID
3871
4374
  * @param {*} [options] Override http request option.
3872
4375
  * @throws {RequiredError}
3873
4376
  */
3874
- listTransactions: (clientID, paginationToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3875
- // verify required parameter 'clientID' is not null or undefined
3876
- (0, common_1.assertParamExists)('listTransactions', 'clientID', clientID);
4377
+ listTransactions: (paginationToken, clientID, options = {}) => __awaiter(this, void 0, void 0, function* () {
3877
4378
  const localVarPath = `/transactions`;
3878
4379
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3879
4380
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3914,14 +4415,14 @@ const TransactionApiFp = function (configuration) {
3914
4415
  /**
3915
4416
  * List existing transactions
3916
4417
  * @summary List existing transactions
3917
- * @param {string} clientID This is the client ID
3918
4418
  * @param {string} [paginationToken] This is the pagination token
4419
+ * @param {string} [clientID] This is the client ID
3919
4420
  * @param {*} [options] Override http request option.
3920
4421
  * @throws {RequiredError}
3921
4422
  */
3922
- listTransactions(clientID, paginationToken, options) {
4423
+ listTransactions(paginationToken, clientID, options) {
3923
4424
  return __awaiter(this, void 0, void 0, function* () {
3924
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(clientID, paginationToken, options);
4425
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(paginationToken, clientID, options);
3925
4426
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3926
4427
  });
3927
4428
  },
@@ -3938,13 +4439,13 @@ const TransactionApiFactory = function (configuration, basePath, axios) {
3938
4439
  /**
3939
4440
  * List existing transactions
3940
4441
  * @summary List existing transactions
3941
- * @param {string} clientID This is the client ID
3942
4442
  * @param {string} [paginationToken] This is the pagination token
4443
+ * @param {string} [clientID] This is the client ID
3943
4444
  * @param {*} [options] Override http request option.
3944
4445
  * @throws {RequiredError}
3945
4446
  */
3946
- listTransactions(clientID, paginationToken, options) {
3947
- return localVarFp.listTransactions(clientID, paginationToken, options).then((request) => request(axios, basePath));
4447
+ listTransactions(paginationToken, clientID, options) {
4448
+ return localVarFp.listTransactions(paginationToken, clientID, options).then((request) => request(axios, basePath));
3948
4449
  },
3949
4450
  };
3950
4451
  };
@@ -3959,14 +4460,14 @@ class TransactionApi extends base_1.BaseAPI {
3959
4460
  /**
3960
4461
  * List existing transactions
3961
4462
  * @summary List existing transactions
3962
- * @param {string} clientID This is the client ID
3963
4463
  * @param {string} [paginationToken] This is the pagination token
4464
+ * @param {string} [clientID] This is the client ID
3964
4465
  * @param {*} [options] Override http request option.
3965
4466
  * @throws {RequiredError}
3966
4467
  * @memberof TransactionApi
3967
4468
  */
3968
- listTransactions(clientID, paginationToken, options) {
3969
- return (0, exports.TransactionApiFp)(this.configuration).listTransactions(clientID, paginationToken, options).then((request) => request(this.axios, this.basePath));
4469
+ listTransactions(paginationToken, clientID, options) {
4470
+ return (0, exports.TransactionApiFp)(this.configuration).listTransactions(paginationToken, clientID, options).then((request) => request(this.axios, this.basePath));
3970
4471
  }
3971
4472
  }
3972
4473
  exports.TransactionApi = TransactionApi;