yellowgrid-api-ts 3.2.247-dev.0 → 3.2.249-dev.0

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
@@ -260,6 +260,10 @@ export interface AccountDetailedSummaryDTO {
260
260
  * Balance (£)
261
261
  */
262
262
  'balance'?: number | null;
263
+ /**
264
+ * First Order
265
+ */
266
+ 'firstOrder': boolean;
263
267
  }
264
268
  /**
265
269
  * Account Finance DTO
@@ -768,6 +772,10 @@ export interface AdminRmaDTO {
768
772
  */
769
773
  'approved': boolean;
770
774
  'address': AddressDTO;
775
+ /**
776
+ * Advance Replacement Order ID
777
+ */
778
+ 'advanceReplacementOrderId': number;
771
779
  /**
772
780
  * Customer ID
773
781
  */
@@ -818,7 +826,6 @@ export const AdminRmaDTOReasonEnum = {
818
826
  NUMBER_1: 1,
819
827
  NUMBER_2: 2,
820
828
  NUMBER_3: 3,
821
- NUMBER_4: 4,
822
829
  } as const;
823
830
 
824
831
  export type AdminRmaDTOReasonEnum = typeof AdminRmaDTOReasonEnum[keyof typeof AdminRmaDTOReasonEnum];
@@ -5731,8 +5738,10 @@ export const PostGetServicePlansRequestPlanGroupEnum = {
5731
5738
  Hosting: 'Hosting',
5732
5739
  Crm: 'CRM',
5733
5740
  StarterBundle: 'Starter Bundle',
5734
- Other: 'Other',
5735
5741
  RecurringCharges: 'Recurring Charges',
5742
+ Sms: 'SMS',
5743
+ Cfd: 'CFD',
5744
+ EdTechPro: 'EdTechPro',
5736
5745
  } as const;
5737
5746
 
5738
5747
  export type PostGetServicePlansRequestPlanGroupEnum = typeof PostGetServicePlansRequestPlanGroupEnum[keyof typeof PostGetServicePlansRequestPlanGroupEnum];
@@ -6087,7 +6096,7 @@ export interface PromoCodesEntity {
6087
6096
  /**
6088
6097
  * id
6089
6098
  */
6090
- 'id': number;
6099
+ 'id'?: number | null;
6091
6100
  /**
6092
6101
  * code
6093
6102
  */
@@ -6096,18 +6105,14 @@ export interface PromoCodesEntity {
6096
6105
  * description
6097
6106
  */
6098
6107
  'description': string;
6099
- /**
6100
- * banner
6101
- */
6102
- 'banner': string;
6103
6108
  /**
6104
6109
  * start
6105
6110
  */
6106
- 'start': string;
6111
+ 'startDate'?: string | null;
6107
6112
  /**
6108
6113
  * expiry
6109
6114
  */
6110
- 'expiry': string;
6115
+ 'endDate'?: string | null;
6111
6116
  /**
6112
6117
  * customerLimit
6113
6118
  */
@@ -6119,19 +6124,60 @@ export interface PromoCodesEntity {
6119
6124
  /**
6120
6125
  * orderRestrictions
6121
6126
  */
6122
- 'orderRestrictions': string;
6127
+ 'orderRestrictions': Array<string>;
6123
6128
  /**
6124
6129
  * includeDistribution
6125
6130
  */
6126
- 'includeDistribution': number;
6131
+ 'includeDistribution': boolean;
6127
6132
  /**
6128
6133
  * distributionOnly
6129
6134
  */
6130
- 'distributionOnly': number;
6135
+ 'distributionOnly': boolean;
6136
+ /**
6137
+ * nfr
6138
+ */
6139
+ 'nfr': boolean;
6131
6140
  /**
6132
6141
  * note
6133
6142
  */
6134
- 'note': string;
6143
+ 'note'?: string | null;
6144
+ }
6145
+ /**
6146
+ * Promo Item
6147
+ */
6148
+ export interface PromoItemModel {
6149
+ /**
6150
+ * id
6151
+ */
6152
+ 'id': number;
6153
+ /**
6154
+ * promoId
6155
+ */
6156
+ 'promoId': number;
6157
+ /**
6158
+ * price
6159
+ */
6160
+ 'price': number;
6161
+ /**
6162
+ * discount
6163
+ */
6164
+ 'discount': number;
6165
+ /**
6166
+ * sku
6167
+ */
6168
+ 'sku': string;
6169
+ /**
6170
+ * quantity
6171
+ */
6172
+ 'quantity': number;
6173
+ /**
6174
+ * bulkQuantity
6175
+ */
6176
+ 'bulkQuantity': number;
6177
+ /**
6178
+ * bulkAdd
6179
+ */
6180
+ 'bulkAdd': number;
6135
6181
  }
6136
6182
  /**
6137
6183
  * PromoItemsEntity
@@ -6170,6 +6216,113 @@ export interface PromoItemsEntity {
6170
6216
  */
6171
6217
  'bulkAdd': number;
6172
6218
  }
6219
+ /**
6220
+ * Promotion
6221
+ */
6222
+ export interface PromoModel {
6223
+ /**
6224
+ * id
6225
+ */
6226
+ 'id'?: number | null;
6227
+ /**
6228
+ * code
6229
+ */
6230
+ 'code': string;
6231
+ /**
6232
+ * description
6233
+ */
6234
+ 'description': string;
6235
+ /**
6236
+ * start
6237
+ */
6238
+ 'startDate'?: string | null;
6239
+ /**
6240
+ * expiry
6241
+ */
6242
+ 'endDate'?: string | null;
6243
+ /**
6244
+ * customerLimit
6245
+ */
6246
+ 'customerLimit': number;
6247
+ /**
6248
+ * globalLimit
6249
+ */
6250
+ 'globalLimit': number;
6251
+ /**
6252
+ * orderRestrictions
6253
+ */
6254
+ 'orderRestrictions': Array<string>;
6255
+ /**
6256
+ * includeDistribution
6257
+ */
6258
+ 'includeDistribution': boolean;
6259
+ /**
6260
+ * distributionOnly
6261
+ */
6262
+ 'distributionOnly': boolean;
6263
+ /**
6264
+ * nfr
6265
+ */
6266
+ 'nfr': boolean;
6267
+ /**
6268
+ * note
6269
+ */
6270
+ 'note'?: string | null;
6271
+ /**
6272
+ * Items
6273
+ */
6274
+ 'items'?: Array<PromoItemModel>;
6275
+ }
6276
+ /**
6277
+ * Promotions
6278
+ */
6279
+ export interface PromoSummariesModel {
6280
+ /**
6281
+ * Results
6282
+ */
6283
+ 'results': Array<PromoSummaryDTO>;
6284
+ /**
6285
+ * Page
6286
+ */
6287
+ 'page': number;
6288
+ /**
6289
+ * Per Page
6290
+ */
6291
+ 'perPage': number;
6292
+ /**
6293
+ * Total Results
6294
+ */
6295
+ 'totalResults': number;
6296
+ }
6297
+ /**
6298
+ * Promo Summary
6299
+ */
6300
+ export interface PromoSummaryDTO {
6301
+ /**
6302
+ * ID
6303
+ */
6304
+ 'id'?: number | null;
6305
+ /**
6306
+ * Description
6307
+ */
6308
+ 'description': string;
6309
+ /**
6310
+ * Promo Code
6311
+ */
6312
+ 'code': string;
6313
+ /**
6314
+ * Start Date
6315
+ */
6316
+ 'startDate'?: string | null;
6317
+ /**
6318
+ * End Date
6319
+ */
6320
+ 'endDate'?: string | null;
6321
+ /**
6322
+ * Orders
6323
+ */
6324
+ 'orders': number;
6325
+ }
6173
6326
  /**
6174
6327
  * Prospect
6175
6328
  */
@@ -6389,7 +6542,6 @@ export const ReasonRequestModelReasonEnum = {
6389
6542
  NUMBER_1: 1,
6390
6543
  NUMBER_2: 2,
6391
6544
  NUMBER_3: 3,
6392
- NUMBER_4: 4,
6393
6545
  } as const;
6394
6546
 
6395
6547
  export type ReasonRequestModelReasonEnum = typeof ReasonRequestModelReasonEnum[keyof typeof ReasonRequestModelReasonEnum];
@@ -6663,6 +6815,10 @@ export interface RmaDTO {
6663
6815
  */
6664
6816
  'approved': boolean;
6665
6817
  'address': AddressDTO;
6818
+ /**
6819
+ * Advance Replacement Order ID
6820
+ */
6821
+ 'advanceReplacementOrderId': number;
6666
6822
  /**
6667
6823
  * RMA Items
6668
6824
  */
@@ -6673,7 +6829,6 @@ export const RmaDTOReasonEnum = {
6673
6829
  NUMBER_1: 1,
6674
6830
  NUMBER_2: 2,
6675
6831
  NUMBER_3: 3,
6676
- NUMBER_4: 4,
6677
6832
  } as const;
6678
6833
 
6679
6834
  export type RmaDTOReasonEnum = typeof RmaDTOReasonEnum[keyof typeof RmaDTOReasonEnum];
@@ -6777,10 +6932,15 @@ export interface RmaOrderDTO {
6777
6932
  * Warranty Expired
6778
6933
  */
6779
6934
  'warrantyExpired'?: boolean;
6935
+ /**
6936
+ * Allowed Credit
6937
+ */
6938
+ 'allowedCredit'?: boolean;
6780
6939
  /**
6781
6940
  * RMA Order Items
6782
6941
  */
6783
6942
  'items'?: Array<RmaOrderItemDTO>;
6943
+ 'address'?: AddressDTO;
6784
6944
  }
6785
6945
  /**
6786
6946
  * RMA Order Item
@@ -6889,13 +7049,16 @@ export interface RmaRequestDTO {
6889
7049
  */
6890
7050
  'items': Array<RmaItemRequestDTO>;
6891
7051
  'address': AddressDTO;
7052
+ /**
7053
+ * Advance Replacement Order ID
7054
+ */
7055
+ 'advanceReplacementOrderId': number;
6892
7056
  }
6893
7057
 
6894
7058
  export const RmaRequestDTOReasonEnum = {
6895
7059
  NUMBER_1: 1,
6896
7060
  NUMBER_2: 2,
6897
7061
  NUMBER_3: 3,
6898
- NUMBER_4: 4,
6899
7062
  } as const;
6900
7063
 
6901
7064
  export type RmaRequestDTOReasonEnum = typeof RmaRequestDTOReasonEnum[keyof typeof RmaRequestDTOReasonEnum];
@@ -11230,6 +11393,35 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
11230
11393
  options: localVarRequestOptions,
11231
11394
  };
11232
11395
  },
11396
+ /**
11397
+ * Get account delivery addresses
11398
+ * @param {*} [options] Override http request option.
11399
+ * @throws {RequiredError}
11400
+ */
11401
+ getGetDeliveryAddresses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11402
+ const localVarPath = `/accounts/addresses/delivery`;
11403
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11404
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11405
+ let baseOptions;
11406
+ if (configuration) {
11407
+ baseOptions = configuration.baseOptions;
11408
+ }
11409
+
11410
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11411
+ const localVarHeaderParameter = {} as any;
11412
+ const localVarQueryParameter = {} as any;
11413
+
11414
+ localVarHeaderParameter['Accept'] = 'application/json';
11415
+
11416
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11417
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11418
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11419
+
11420
+ return {
11421
+ url: toPathString(localVarUrlObj),
11422
+ options: localVarRequestOptions,
11423
+ };
11424
+ },
11233
11425
  /**
11234
11426
  * Get Account Finance
11235
11427
  * @param {string} id Account Xero ID
@@ -12609,6 +12801,17 @@ export const AccountsApiFp = function(configuration?: Configuration) {
12609
12801
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerMap']?.[localVarOperationServerIndex]?.url;
12610
12802
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12611
12803
  },
12804
+ /**
12805
+ * Get account delivery addresses
12806
+ * @param {*} [options] Override http request option.
12807
+ * @throws {RequiredError}
12808
+ */
12809
+ async getGetDeliveryAddresses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AddressModel>>> {
12810
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetDeliveryAddresses(options);
12811
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12812
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetDeliveryAddresses']?.[localVarOperationServerIndex]?.url;
12813
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12814
+ },
12612
12815
  /**
12613
12816
  * Get Account Finance
12614
12817
  * @param {string} id Account Xero ID
@@ -13193,6 +13396,14 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
13193
13396
  getGetCustomerMap(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerCoordinatesDTO>> {
13194
13397
  return localVarFp.getGetCustomerMap(options).then((request) => request(axios, basePath));
13195
13398
  },
13399
+ /**
13400
+ * Get account delivery addresses
13401
+ * @param {*} [options] Override http request option.
13402
+ * @throws {RequiredError}
13403
+ */
13404
+ getGetDeliveryAddresses(options?: RawAxiosRequestConfig): AxiosPromise<Array<AddressModel>> {
13405
+ return localVarFp.getGetDeliveryAddresses(options).then((request) => request(axios, basePath));
13406
+ },
13196
13407
  /**
13197
13408
  * Get Account Finance
13198
13409
  * @param {string} id Account Xero ID
@@ -13687,6 +13898,15 @@ export class AccountsApi extends BaseAPI {
13687
13898
  return AccountsApiFp(this.configuration).getGetCustomerMap(options).then((request) => request(this.axios, this.basePath));
13688
13899
  }
13689
13900
 
13901
+ /**
13902
+ * Get account delivery addresses
13903
+ * @param {*} [options] Override http request option.
13904
+ * @throws {RequiredError}
13905
+ */
13906
+ public getGetDeliveryAddresses(options?: RawAxiosRequestConfig) {
13907
+ return AccountsApiFp(this.configuration).getGetDeliveryAddresses(options).then((request) => request(this.axios, this.basePath));
13908
+ }
13909
+
13690
13910
  /**
13691
13911
  * Get Account Finance
13692
13912
  * @param {string} id Account Xero ID
@@ -14243,6 +14463,39 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
14243
14463
  options: localVarRequestOptions,
14244
14464
  };
14245
14465
  },
14466
+ /**
14467
+ * Delete Call Tariff By ID
14468
+ * @param {number} id Call Tariff ID
14469
+ * @param {*} [options] Override http request option.
14470
+ * @throws {RequiredError}
14471
+ */
14472
+ deleteDeleteCallTariffId: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14473
+ // verify required parameter 'id' is not null or undefined
14474
+ assertParamExists('deleteDeleteCallTariffId', 'id', id)
14475
+ const localVarPath = `/billing/admin/callTariffPlan/callTariff/{id}`
14476
+ .replace('{id}', encodeURIComponent(String(id)));
14477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14478
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14479
+ let baseOptions;
14480
+ if (configuration) {
14481
+ baseOptions = configuration.baseOptions;
14482
+ }
14483
+
14484
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14485
+ const localVarHeaderParameter = {} as any;
14486
+ const localVarQueryParameter = {} as any;
14487
+
14488
+ localVarHeaderParameter['Accept'] = 'application/json';
14489
+
14490
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14491
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14492
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14493
+
14494
+ return {
14495
+ url: toPathString(localVarUrlObj),
14496
+ options: localVarRequestOptions,
14497
+ };
14498
+ },
14246
14499
  /**
14247
14500
  * Delete Base Service
14248
14501
  * @param {number} baseServiceId Base Service Plan ID
@@ -14661,11 +14914,11 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
14661
14914
  },
14662
14915
  /**
14663
14916
  * Get Customer
14664
- * @param {number} [billCustomerId] Customer ID
14917
+ * @param {string} [billCustomerId] Customer ID
14665
14918
  * @param {*} [options] Override http request option.
14666
14919
  * @throws {RequiredError}
14667
14920
  */
14668
- getGetBillingCustomerDetails: async (billCustomerId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14921
+ getGetBillingCustomerDetails: async (billCustomerId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14669
14922
  const localVarPath = `/billing/customer/details`;
14670
14923
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14671
14924
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -16521,6 +16774,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
16521
16774
  const localVarOperationServerBasePath = operationServerMap['BillingApi.deleteCloseAccount']?.[localVarOperationServerIndex]?.url;
16522
16775
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16523
16776
  },
16777
+ /**
16778
+ * Delete Call Tariff By ID
16779
+ * @param {number} id Call Tariff ID
16780
+ * @param {*} [options] Override http request option.
16781
+ * @throws {RequiredError}
16782
+ */
16783
+ async deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
16784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteCallTariffId(id, options);
16785
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16786
+ const localVarOperationServerBasePath = operationServerMap['BillingApi.deleteDeleteCallTariffId']?.[localVarOperationServerIndex]?.url;
16787
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16788
+ },
16524
16789
  /**
16525
16790
  * Delete Base Service
16526
16791
  * @param {number} baseServiceId Base Service Plan ID
@@ -16667,11 +16932,11 @@ export const BillingApiFp = function(configuration?: Configuration) {
16667
16932
  },
16668
16933
  /**
16669
16934
  * Get Customer
16670
- * @param {number} [billCustomerId] Customer ID
16935
+ * @param {string} [billCustomerId] Customer ID
16671
16936
  * @param {*} [options] Override http request option.
16672
16937
  * @throws {RequiredError}
16673
16938
  */
16674
- async getGetBillingCustomerDetails(billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>> {
16939
+ async getGetBillingCustomerDetails(billCustomerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>> {
16675
16940
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetBillingCustomerDetails(billCustomerId, options);
16676
16941
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16677
16942
  const localVarOperationServerBasePath = operationServerMap['BillingApi.getGetBillingCustomerDetails']?.[localVarOperationServerIndex]?.url;
@@ -17330,6 +17595,15 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
17330
17595
  deleteCloseAccount(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<number> {
17331
17596
  return localVarFp.deleteCloseAccount(billCustomerId, options).then((request) => request(axios, basePath));
17332
17597
  },
17598
+ /**
17599
+ * Delete Call Tariff By ID
17600
+ * @param {number} id Call Tariff ID
17601
+ * @param {*} [options] Override http request option.
17602
+ * @throws {RequiredError}
17603
+ */
17604
+ deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
17605
+ return localVarFp.deleteDeleteCallTariffId(id, options).then((request) => request(axios, basePath));
17606
+ },
17333
17607
  /**
17334
17608
  * Delete Base Service
17335
17609
  * @param {number} baseServiceId Base Service Plan ID
@@ -17440,11 +17714,11 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
17440
17714
  },
17441
17715
  /**
17442
17716
  * Get Customer
17443
- * @param {number} [billCustomerId] Customer ID
17717
+ * @param {string} [billCustomerId] Customer ID
17444
17718
  * @param {*} [options] Override http request option.
17445
17719
  * @throws {RequiredError}
17446
17720
  */
17447
- getGetBillingCustomerDetails(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Customer> {
17721
+ getGetBillingCustomerDetails(billCustomerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Customer> {
17448
17722
  return localVarFp.getGetBillingCustomerDetails(billCustomerId, options).then((request) => request(axios, basePath));
17449
17723
  },
17450
17724
  /**
@@ -17955,6 +18229,16 @@ export class BillingApi extends BaseAPI {
17955
18229
  return BillingApiFp(this.configuration).deleteCloseAccount(billCustomerId, options).then((request) => request(this.axios, this.basePath));
17956
18230
  }
17957
18231
 
18232
+ /**
18233
+ * Delete Call Tariff By ID
18234
+ * @param {number} id Call Tariff ID
18235
+ * @param {*} [options] Override http request option.
18236
+ * @throws {RequiredError}
18237
+ */
18238
+ public deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig) {
18239
+ return BillingApiFp(this.configuration).deleteDeleteCallTariffId(id, options).then((request) => request(this.axios, this.basePath));
18240
+ }
18241
+
17958
18242
  /**
17959
18243
  * Delete Base Service
17960
18244
  * @param {number} baseServiceId Base Service Plan ID
@@ -18077,11 +18361,11 @@ export class BillingApi extends BaseAPI {
18077
18361
 
18078
18362
  /**
18079
18363
  * Get Customer
18080
- * @param {number} [billCustomerId] Customer ID
18364
+ * @param {string} [billCustomerId] Customer ID
18081
18365
  * @param {*} [options] Override http request option.
18082
18366
  * @throws {RequiredError}
18083
18367
  */
18084
- public getGetBillingCustomerDetails(billCustomerId?: number, options?: RawAxiosRequestConfig) {
18368
+ public getGetBillingCustomerDetails(billCustomerId?: string, options?: RawAxiosRequestConfig) {
18085
18369
  return BillingApiFp(this.configuration).getGetBillingCustomerDetails(billCustomerId, options).then((request) => request(this.axios, this.basePath));
18086
18370
  }
18087
18371
 
@@ -18605,8 +18889,10 @@ export const GetGetConnectionsTypeEnum = {
18605
18889
  Hosting: 'Hosting',
18606
18890
  Crm: 'CRM',
18607
18891
  StarterBundle: 'Starter Bundle',
18608
- Other: 'Other',
18609
18892
  RecurringCharges: 'Recurring Charges',
18893
+ Sms: 'SMS',
18894
+ Cfd: 'CFD',
18895
+ EdTechPro: 'EdTechPro',
18610
18896
  } as const;
18611
18897
  export type GetGetConnectionsTypeEnum = typeof GetGetConnectionsTypeEnum[keyof typeof GetGetConnectionsTypeEnum];
18612
18898
  export const GetGetServicesPlanDetailsTypeEnum = {
@@ -18620,8 +18906,10 @@ export const GetGetServicesPlanDetailsTypeEnum = {
18620
18906
  Hosting: 'Hosting',
18621
18907
  Crm: 'CRM',
18622
18908
  StarterBundle: 'Starter Bundle',
18623
- Other: 'Other',
18624
18909
  RecurringCharges: 'Recurring Charges',
18910
+ Sms: 'SMS',
18911
+ Cfd: 'CFD',
18912
+ EdTechPro: 'EdTechPro',
18625
18913
  } as const;
18626
18914
  export type GetGetServicesPlanDetailsTypeEnum = typeof GetGetServicesPlanDetailsTypeEnum[keyof typeof GetGetServicesPlanDetailsTypeEnum];
18627
18915
 
@@ -26640,16 +26928,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
26640
26928
  };
26641
26929
  },
26642
26930
  /**
26643
- * Get Editable Order (Beta)
26644
- * @summary Get Editable Order (Beta)
26931
+ * Get Order
26645
26932
  * @param {number} id Order ID
26646
26933
  * @param {*} [options] Override http request option.
26647
26934
  * @throws {RequiredError}
26648
26935
  */
26649
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26936
+ getGetCustomerOrderSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26650
26937
  // verify required parameter 'id' is not null or undefined
26651
- assertParamExists('getGetEditableOrder', 'id', id)
26652
- const localVarPath = `/orders/{id}/views/editable`
26938
+ assertParamExists('getGetCustomerOrderSummary', 'id', id)
26939
+ const localVarPath = `/orders/{id}/summary`
26653
26940
  .replace('{id}', encodeURIComponent(String(id)));
26654
26941
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26655
26942
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -26674,21 +26961,55 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
26674
26961
  };
26675
26962
  },
26676
26963
  /**
26677
- * Get Item Serial Info (Admin)
26678
- * @summary Get Item Serial Info (Admin)
26964
+ * Get Editable Order (Beta)
26965
+ * @summary Get Editable Order (Beta)
26679
26966
  * @param {number} id Order ID
26680
- * @param {number} itemId Shipment Item ID
26681
26967
  * @param {*} [options] Override http request option.
26682
26968
  * @throws {RequiredError}
26683
26969
  */
26684
- getGetItemSerialInfo: async (id: number, itemId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26970
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26685
26971
  // verify required parameter 'id' is not null or undefined
26686
- assertParamExists('getGetItemSerialInfo', 'id', id)
26687
- // verify required parameter 'itemId' is not null or undefined
26688
- assertParamExists('getGetItemSerialInfo', 'itemId', itemId)
26689
- const localVarPath = `/admin/orders/{id}/items/{item_id}/info`
26690
- .replace('{id}', encodeURIComponent(String(id)))
26691
- .replace('{item_id}', encodeURIComponent(String(itemId)));
26972
+ assertParamExists('getGetEditableOrder', 'id', id)
26973
+ const localVarPath = `/orders/{id}/views/editable`
26974
+ .replace('{id}', encodeURIComponent(String(id)));
26975
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26976
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26977
+ let baseOptions;
26978
+ if (configuration) {
26979
+ baseOptions = configuration.baseOptions;
26980
+ }
26981
+
26982
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26983
+ const localVarHeaderParameter = {} as any;
26984
+ const localVarQueryParameter = {} as any;
26985
+
26986
+ localVarHeaderParameter['Accept'] = 'application/json';
26987
+
26988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26990
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26991
+
26992
+ return {
26993
+ url: toPathString(localVarUrlObj),
26994
+ options: localVarRequestOptions,
26995
+ };
26996
+ },
26997
+ /**
26998
+ * Get Item Serial Info (Admin)
26999
+ * @summary Get Item Serial Info (Admin)
27000
+ * @param {number} id Order ID
27001
+ * @param {number} itemId Shipment Item ID
27002
+ * @param {*} [options] Override http request option.
27003
+ * @throws {RequiredError}
27004
+ */
27005
+ getGetItemSerialInfo: async (id: number, itemId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27006
+ // verify required parameter 'id' is not null or undefined
27007
+ assertParamExists('getGetItemSerialInfo', 'id', id)
27008
+ // verify required parameter 'itemId' is not null or undefined
27009
+ assertParamExists('getGetItemSerialInfo', 'itemId', itemId)
27010
+ const localVarPath = `/admin/orders/{id}/items/{item_id}/info`
27011
+ .replace('{id}', encodeURIComponent(String(id)))
27012
+ .replace('{item_id}', encodeURIComponent(String(itemId)));
26692
27013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26693
27014
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26694
27015
  let baseOptions;
@@ -27745,6 +28066,18 @@ export const OrdersApiFp = function(configuration?: Configuration) {
27745
28066
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetCommercialInvoice']?.[localVarOperationServerIndex]?.url;
27746
28067
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27747
28068
  },
28069
+ /**
28070
+ * Get Order
28071
+ * @param {number} id Order ID
28072
+ * @param {*} [options] Override http request option.
28073
+ * @throws {RequiredError}
28074
+ */
28075
+ async getGetCustomerOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
28076
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerOrderSummary(id, options);
28077
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28078
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetCustomerOrderSummary']?.[localVarOperationServerIndex]?.url;
28079
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28080
+ },
27748
28081
  /**
27749
28082
  * Get Editable Order (Beta)
27750
28083
  * @summary Get Editable Order (Beta)
@@ -28181,6 +28514,15 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
28181
28514
  getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
28182
28515
  return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
28183
28516
  },
28517
+ /**
28518
+ * Get Order
28519
+ * @param {number} id Order ID
28520
+ * @param {*} [options] Override http request option.
28521
+ * @throws {RequiredError}
28522
+ */
28523
+ getGetCustomerOrderSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
28524
+ return localVarFp.getGetCustomerOrderSummary(id, options).then((request) => request(axios, basePath));
28525
+ },
28184
28526
  /**
28185
28527
  * Get Editable Order (Beta)
28186
28528
  * @summary Get Editable Order (Beta)
@@ -28546,6 +28888,16 @@ export class OrdersApi extends BaseAPI {
28546
28888
  return OrdersApiFp(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
28547
28889
  }
28548
28890
 
28891
+ /**
28892
+ * Get Order
28893
+ * @param {number} id Order ID
28894
+ * @param {*} [options] Override http request option.
28895
+ * @throws {RequiredError}
28896
+ */
28897
+ public getGetCustomerOrderSummary(id: number, options?: RawAxiosRequestConfig) {
28898
+ return OrdersApiFp(this.configuration).getGetCustomerOrderSummary(id, options).then((request) => request(this.axios, this.basePath));
28899
+ }
28900
+
28549
28901
  /**
28550
28902
  * Get Editable Order (Beta)
28551
28903
  * @summary Get Editable Order (Beta)
@@ -29966,6 +30318,325 @@ export const GetGetLegacyStockListFormatEnum = {
29966
30318
  export type GetGetLegacyStockListFormatEnum = typeof GetGetLegacyStockListFormatEnum[keyof typeof GetGetLegacyStockListFormatEnum];
29967
30319
 
29968
30320
 
30321
+ /**
30322
+ * PromotionsApi - axios parameter creator
30323
+ */
30324
+ export const PromotionsApiAxiosParamCreator = function (configuration?: Configuration) {
30325
+ return {
30326
+ /**
30327
+ * Get a promotion
30328
+ * @param {number} id Promo ID
30329
+ * @param {*} [options] Override http request option.
30330
+ * @throws {RequiredError}
30331
+ */
30332
+ getGetPromo: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30333
+ // verify required parameter 'id' is not null or undefined
30334
+ assertParamExists('getGetPromo', 'id', id)
30335
+ const localVarPath = `/marketing/promos/{id}`
30336
+ .replace('{id}', encodeURIComponent(String(id)));
30337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30338
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30339
+ let baseOptions;
30340
+ if (configuration) {
30341
+ baseOptions = configuration.baseOptions;
30342
+ }
30343
+
30344
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30345
+ const localVarHeaderParameter = {} as any;
30346
+ const localVarQueryParameter = {} as any;
30347
+
30348
+ localVarHeaderParameter['Accept'] = 'application/json';
30349
+
30350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30352
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30353
+
30354
+ return {
30355
+ url: toPathString(localVarUrlObj),
30356
+ options: localVarRequestOptions,
30357
+ };
30358
+ },
30359
+ /**
30360
+ * Get Promos
30361
+ * @param {number} [pageSize] Number Of Results
30362
+ * @param {number} [page] Page Number
30363
+ * @param {string} [search] Search
30364
+ * @param {boolean} [expired] Expired
30365
+ * @param {*} [options] Override http request option.
30366
+ * @throws {RequiredError}
30367
+ */
30368
+ getGetPromos: async (pageSize?: number, page?: number, search?: string, expired?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30369
+ const localVarPath = `/marketing/promos`;
30370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30371
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30372
+ let baseOptions;
30373
+ if (configuration) {
30374
+ baseOptions = configuration.baseOptions;
30375
+ }
30376
+
30377
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30378
+ const localVarHeaderParameter = {} as any;
30379
+ const localVarQueryParameter = {} as any;
30380
+
30381
+ if (pageSize !== undefined) {
30382
+ localVarQueryParameter['pageSize'] = pageSize;
30383
+ }
30384
+
30385
+ if (page !== undefined) {
30386
+ localVarQueryParameter['page'] = page;
30387
+ }
30388
+
30389
+ if (search !== undefined) {
30390
+ localVarQueryParameter['search'] = search;
30391
+ }
30392
+
30393
+ if (expired !== undefined) {
30394
+ localVarQueryParameter['expired'] = expired;
30395
+ }
30396
+
30397
+ localVarHeaderParameter['Accept'] = 'application/json';
30398
+
30399
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30400
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30401
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30402
+
30403
+ return {
30404
+ url: toPathString(localVarUrlObj),
30405
+ options: localVarRequestOptions,
30406
+ };
30407
+ },
30408
+ /**
30409
+ * Create a promotion
30410
+ * @param {PromoModel} [promoModel] Promotion
30411
+ * @param {*} [options] Override http request option.
30412
+ * @throws {RequiredError}
30413
+ */
30414
+ postGetPromos: async (promoModel?: PromoModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30415
+ const localVarPath = `/marketing/promos`;
30416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30418
+ let baseOptions;
30419
+ if (configuration) {
30420
+ baseOptions = configuration.baseOptions;
30421
+ }
30422
+
30423
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30424
+ const localVarHeaderParameter = {} as any;
30425
+ const localVarQueryParameter = {} as any;
30426
+
30427
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30428
+ localVarHeaderParameter['Accept'] = 'application/json';
30429
+
30430
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30432
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30433
+ localVarRequestOptions.data = serializeDataIfNeeded(promoModel, localVarRequestOptions, configuration)
30434
+
30435
+ return {
30436
+ url: toPathString(localVarUrlObj),
30437
+ options: localVarRequestOptions,
30438
+ };
30439
+ },
30440
+ /**
30441
+ * Update a promotion
30442
+ * @param {number} id Promo ID
30443
+ * @param {PromoModel} [promoModel] Promotion
30444
+ * @param {*} [options] Override http request option.
30445
+ * @throws {RequiredError}
30446
+ */
30447
+ putGetPromo: async (id: number, promoModel?: PromoModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30448
+ // verify required parameter 'id' is not null or undefined
30449
+ assertParamExists('putGetPromo', 'id', id)
30450
+ const localVarPath = `/marketing/promos/{id}`
30451
+ .replace('{id}', encodeURIComponent(String(id)));
30452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30454
+ let baseOptions;
30455
+ if (configuration) {
30456
+ baseOptions = configuration.baseOptions;
30457
+ }
30458
+
30459
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
30460
+ const localVarHeaderParameter = {} as any;
30461
+ const localVarQueryParameter = {} as any;
30462
+
30463
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30464
+ localVarHeaderParameter['Accept'] = 'application/json';
30465
+
30466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30469
+ localVarRequestOptions.data = serializeDataIfNeeded(promoModel, localVarRequestOptions, configuration)
30470
+
30471
+ return {
30472
+ url: toPathString(localVarUrlObj),
30473
+ options: localVarRequestOptions,
30474
+ };
30475
+ },
30476
+ }
30477
+ };
30478
+
30479
+ /**
30480
+ * PromotionsApi - functional programming interface
30481
+ */
30482
+ export const PromotionsApiFp = function(configuration?: Configuration) {
30483
+ const localVarAxiosParamCreator = PromotionsApiAxiosParamCreator(configuration)
30484
+ return {
30485
+ /**
30486
+ * Get a promotion
30487
+ * @param {number} id Promo ID
30488
+ * @param {*} [options] Override http request option.
30489
+ * @throws {RequiredError}
30490
+ */
30491
+ async getGetPromo(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoModel>> {
30492
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPromo(id, options);
30493
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30494
+ const localVarOperationServerBasePath = operationServerMap['PromotionsApi.getGetPromo']?.[localVarOperationServerIndex]?.url;
30495
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30496
+ },
30497
+ /**
30498
+ * Get Promos
30499
+ * @param {number} [pageSize] Number Of Results
30500
+ * @param {number} [page] Page Number
30501
+ * @param {string} [search] Search
30502
+ * @param {boolean} [expired] Expired
30503
+ * @param {*} [options] Override http request option.
30504
+ * @throws {RequiredError}
30505
+ */
30506
+ async getGetPromos(pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoSummariesModel>> {
30507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPromos(pageSize, page, search, expired, options);
30508
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30509
+ const localVarOperationServerBasePath = operationServerMap['PromotionsApi.getGetPromos']?.[localVarOperationServerIndex]?.url;
30510
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30511
+ },
30512
+ /**
30513
+ * Create a promotion
30514
+ * @param {PromoModel} [promoModel] Promotion
30515
+ * @param {*} [options] Override http request option.
30516
+ * @throws {RequiredError}
30517
+ */
30518
+ async postGetPromos(promoModel?: PromoModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoModel>> {
30519
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetPromos(promoModel, options);
30520
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30521
+ const localVarOperationServerBasePath = operationServerMap['PromotionsApi.postGetPromos']?.[localVarOperationServerIndex]?.url;
30522
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30523
+ },
30524
+ /**
30525
+ * Update a promotion
30526
+ * @param {number} id Promo ID
30527
+ * @param {PromoModel} [promoModel] Promotion
30528
+ * @param {*} [options] Override http request option.
30529
+ * @throws {RequiredError}
30530
+ */
30531
+ async putGetPromo(id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoModel>> {
30532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putGetPromo(id, promoModel, options);
30533
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30534
+ const localVarOperationServerBasePath = operationServerMap['PromotionsApi.putGetPromo']?.[localVarOperationServerIndex]?.url;
30535
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30536
+ },
30537
+ }
30538
+ };
30539
+
30540
+ /**
30541
+ * PromotionsApi - factory interface
30542
+ */
30543
+ export const PromotionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30544
+ const localVarFp = PromotionsApiFp(configuration)
30545
+ return {
30546
+ /**
30547
+ * Get a promotion
30548
+ * @param {number} id Promo ID
30549
+ * @param {*} [options] Override http request option.
30550
+ * @throws {RequiredError}
30551
+ */
30552
+ getGetPromo(id: number, options?: RawAxiosRequestConfig): AxiosPromise<PromoModel> {
30553
+ return localVarFp.getGetPromo(id, options).then((request) => request(axios, basePath));
30554
+ },
30555
+ /**
30556
+ * Get Promos
30557
+ * @param {number} [pageSize] Number Of Results
30558
+ * @param {number} [page] Page Number
30559
+ * @param {string} [search] Search
30560
+ * @param {boolean} [expired] Expired
30561
+ * @param {*} [options] Override http request option.
30562
+ * @throws {RequiredError}
30563
+ */
30564
+ getGetPromos(pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<PromoSummariesModel> {
30565
+ return localVarFp.getGetPromos(pageSize, page, search, expired, options).then((request) => request(axios, basePath));
30566
+ },
30567
+ /**
30568
+ * Create a promotion
30569
+ * @param {PromoModel} [promoModel] Promotion
30570
+ * @param {*} [options] Override http request option.
30571
+ * @throws {RequiredError}
30572
+ */
30573
+ postGetPromos(promoModel?: PromoModel, options?: RawAxiosRequestConfig): AxiosPromise<PromoModel> {
30574
+ return localVarFp.postGetPromos(promoModel, options).then((request) => request(axios, basePath));
30575
+ },
30576
+ /**
30577
+ * Update a promotion
30578
+ * @param {number} id Promo ID
30579
+ * @param {PromoModel} [promoModel] Promotion
30580
+ * @param {*} [options] Override http request option.
30581
+ * @throws {RequiredError}
30582
+ */
30583
+ putGetPromo(id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig): AxiosPromise<PromoModel> {
30584
+ return localVarFp.putGetPromo(id, promoModel, options).then((request) => request(axios, basePath));
30585
+ },
30586
+ };
30587
+ };
30588
+
30589
+ /**
30590
+ * PromotionsApi - object-oriented interface
30591
+ */
30592
+ export class PromotionsApi extends BaseAPI {
30593
+ /**
30594
+ * Get a promotion
30595
+ * @param {number} id Promo ID
30596
+ * @param {*} [options] Override http request option.
30597
+ * @throws {RequiredError}
30598
+ */
30599
+ public getGetPromo(id: number, options?: RawAxiosRequestConfig) {
30600
+ return PromotionsApiFp(this.configuration).getGetPromo(id, options).then((request) => request(this.axios, this.basePath));
30601
+ }
30602
+
30603
+ /**
30604
+ * Get Promos
30605
+ * @param {number} [pageSize] Number Of Results
30606
+ * @param {number} [page] Page Number
30607
+ * @param {string} [search] Search
30608
+ * @param {boolean} [expired] Expired
30609
+ * @param {*} [options] Override http request option.
30610
+ * @throws {RequiredError}
30611
+ */
30612
+ public getGetPromos(pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig) {
30613
+ return PromotionsApiFp(this.configuration).getGetPromos(pageSize, page, search, expired, options).then((request) => request(this.axios, this.basePath));
30614
+ }
30615
+
30616
+ /**
30617
+ * Create a promotion
30618
+ * @param {PromoModel} [promoModel] Promotion
30619
+ * @param {*} [options] Override http request option.
30620
+ * @throws {RequiredError}
30621
+ */
30622
+ public postGetPromos(promoModel?: PromoModel, options?: RawAxiosRequestConfig) {
30623
+ return PromotionsApiFp(this.configuration).postGetPromos(promoModel, options).then((request) => request(this.axios, this.basePath));
30624
+ }
30625
+
30626
+ /**
30627
+ * Update a promotion
30628
+ * @param {number} id Promo ID
30629
+ * @param {PromoModel} [promoModel] Promotion
30630
+ * @param {*} [options] Override http request option.
30631
+ * @throws {RequiredError}
30632
+ */
30633
+ public putGetPromo(id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig) {
30634
+ return PromotionsApiFp(this.configuration).putGetPromo(id, promoModel, options).then((request) => request(this.axios, this.basePath));
30635
+ }
30636
+ }
30637
+
30638
+
30639
+
29969
30640
  /**
29970
30641
  * ProspectsApi - axios parameter creator
29971
30642
  */
@@ -31294,6 +31965,49 @@ export const RMAApiAxiosParamCreator = function (configuration?: Configuration)
31294
31965
  options: localVarRequestOptions,
31295
31966
  };
31296
31967
  },
31968
+ /**
31969
+ * Get suitable advance replacment orders
31970
+ * @param {string} sku Item SKU
31971
+ * @param {number} orderId Order ID
31972
+ * @param {*} [options] Override http request option.
31973
+ * @throws {RequiredError}
31974
+ */
31975
+ getSearchAdvanceReplacementOrders: async (sku: string, orderId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31976
+ // verify required parameter 'sku' is not null or undefined
31977
+ assertParamExists('getSearchAdvanceReplacementOrders', 'sku', sku)
31978
+ // verify required parameter 'orderId' is not null or undefined
31979
+ assertParamExists('getSearchAdvanceReplacementOrders', 'orderId', orderId)
31980
+ const localVarPath = `/rma/advance_replacement/orders`;
31981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31983
+ let baseOptions;
31984
+ if (configuration) {
31985
+ baseOptions = configuration.baseOptions;
31986
+ }
31987
+
31988
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31989
+ const localVarHeaderParameter = {} as any;
31990
+ const localVarQueryParameter = {} as any;
31991
+
31992
+ if (sku !== undefined) {
31993
+ localVarQueryParameter['sku'] = sku;
31994
+ }
31995
+
31996
+ if (orderId !== undefined) {
31997
+ localVarQueryParameter['orderId'] = orderId;
31998
+ }
31999
+
32000
+ localVarHeaderParameter['Accept'] = 'application/json';
32001
+
32002
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32003
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32004
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32005
+
32006
+ return {
32007
+ url: toPathString(localVarUrlObj),
32008
+ options: localVarRequestOptions,
32009
+ };
32010
+ },
31297
32011
  /**
31298
32012
  * Search for Orders to create an RMA
31299
32013
  * @param {string} [search] Search
@@ -32149,6 +32863,19 @@ export const RMAApiFp = function(configuration?: Configuration) {
32149
32863
  const localVarOperationServerBasePath = operationServerMap['RMAApi.getGetRmaOrder']?.[localVarOperationServerIndex]?.url;
32150
32864
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32151
32865
  },
32866
+ /**
32867
+ * Get suitable advance replacment orders
32868
+ * @param {string} sku Item SKU
32869
+ * @param {number} orderId Order ID
32870
+ * @param {*} [options] Override http request option.
32871
+ * @throws {RequiredError}
32872
+ */
32873
+ async getSearchAdvanceReplacementOrders(sku: string, orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RmaOrderSummaryDTO>>> {
32874
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchAdvanceReplacementOrders(sku, orderId, options);
32875
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32876
+ const localVarOperationServerBasePath = operationServerMap['RMAApi.getSearchAdvanceReplacementOrders']?.[localVarOperationServerIndex]?.url;
32877
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32878
+ },
32152
32879
  /**
32153
32880
  * Search for Orders to create an RMA
32154
32881
  * @param {string} [search] Search
@@ -32507,6 +33234,16 @@ export const RMAApiFactory = function (configuration?: Configuration, basePath?:
32507
33234
  getGetRmaOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RmaOrderDTO> {
32508
33235
  return localVarFp.getGetRmaOrder(id, options).then((request) => request(axios, basePath));
32509
33236
  },
33237
+ /**
33238
+ * Get suitable advance replacment orders
33239
+ * @param {string} sku Item SKU
33240
+ * @param {number} orderId Order ID
33241
+ * @param {*} [options] Override http request option.
33242
+ * @throws {RequiredError}
33243
+ */
33244
+ getSearchAdvanceReplacementOrders(sku: string, orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<RmaOrderSummaryDTO>> {
33245
+ return localVarFp.getSearchAdvanceReplacementOrders(sku, orderId, options).then((request) => request(axios, basePath));
33246
+ },
32510
33247
  /**
32511
33248
  * Search for Orders to create an RMA
32512
33249
  * @param {string} [search] Search
@@ -32808,6 +33545,17 @@ export class RMAApi extends BaseAPI {
32808
33545
  return RMAApiFp(this.configuration).getGetRmaOrder(id, options).then((request) => request(this.axios, this.basePath));
32809
33546
  }
32810
33547
 
33548
+ /**
33549
+ * Get suitable advance replacment orders
33550
+ * @param {string} sku Item SKU
33551
+ * @param {number} orderId Order ID
33552
+ * @param {*} [options] Override http request option.
33553
+ * @throws {RequiredError}
33554
+ */
33555
+ public getSearchAdvanceReplacementOrders(sku: string, orderId: number, options?: RawAxiosRequestConfig) {
33556
+ return RMAApiFp(this.configuration).getSearchAdvanceReplacementOrders(sku, orderId, options).then((request) => request(this.axios, this.basePath));
33557
+ }
33558
+
32811
33559
  /**
32812
33560
  * Search for Orders to create an RMA
32813
33561
  * @param {string} [search] Search