@munchi_oy/core 1.9.24 → 1.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/generated/api.ts CHANGED
@@ -3174,6 +3174,12 @@ export interface CourseDto {
3174
3174
  * @memberof CourseDto
3175
3175
  */
3176
3176
  'name': string;
3177
+ /**
3178
+ * Whether the course fires automatically to the kitchen
3179
+ * @type {boolean}
3180
+ * @memberof CourseDto
3181
+ */
3182
+ 'autoFire'?: boolean;
3177
3183
  }
3178
3184
  /**
3179
3185
  *
@@ -13372,6 +13378,12 @@ export interface PosOrderItemDto {
13372
13378
  * @memberof PosOrderItemDto
13373
13379
  */
13374
13380
  'printerType'?: PrinterTypeEnum;
13381
+ /**
13382
+ * Resolved target printer address; null/undefined means print on all kitchen printers
13383
+ * @type {string}
13384
+ * @memberof PosOrderItemDto
13385
+ */
13386
+ 'printerId'?: string | null;
13375
13387
  /**
13376
13388
  *
13377
13389
  * @type {Array<PosOrderOptionDto>}
@@ -13396,6 +13408,12 @@ export interface PosOrderItemDto {
13396
13408
  * @memberof PosOrderItemDto
13397
13409
  */
13398
13410
  'category_id': number | null;
13411
+ /**
13412
+ * Course ID override for this line item
13413
+ * @type {string}
13414
+ * @memberof PosOrderItemDto
13415
+ */
13416
+ 'courseId'?: string | null;
13399
13417
  }
13400
13418
 
13401
13419
 
@@ -14225,6 +14243,118 @@ export interface PriceSummaryDto {
14225
14243
  */
14226
14244
  'totalNet': number;
14227
14245
  }
14246
+ /**
14247
+ *
14248
+ * @export
14249
+ * @interface PrintPolicyDto
14250
+ */
14251
+ export interface PrintPolicyDto {
14252
+ /**
14253
+ *
14254
+ * @type {number}
14255
+ * @memberof PrintPolicyDto
14256
+ */
14257
+ 'id': number;
14258
+ /**
14259
+ *
14260
+ * @type {number}
14261
+ * @memberof PrintPolicyDto
14262
+ */
14263
+ 'business_id': number;
14264
+ /**
14265
+ *
14266
+ * @type {number}
14267
+ * @memberof PrintPolicyDto
14268
+ */
14269
+ 'printer_id': number;
14270
+ /**
14271
+ *
14272
+ * @type {number}
14273
+ * @memberof PrintPolicyDto
14274
+ */
14275
+ 'product_id'?: number;
14276
+ /**
14277
+ *
14278
+ * @type {number}
14279
+ * @memberof PrintPolicyDto
14280
+ */
14281
+ 'category_id'?: number;
14282
+ }
14283
+ /**
14284
+ *
14285
+ * @export
14286
+ * @enum {string}
14287
+ */
14288
+
14289
+ export const PrinterConnectionType = {
14290
+ Bluetooth: 'bluetooth',
14291
+ Network: 'network'
14292
+ } as const;
14293
+
14294
+ export type PrinterConnectionType = typeof PrinterConnectionType[keyof typeof PrinterConnectionType];
14295
+
14296
+
14297
+ /**
14298
+ *
14299
+ * @export
14300
+ * @interface PrinterDto
14301
+ */
14302
+ export interface PrinterDto {
14303
+ /**
14304
+ *
14305
+ * @type {number}
14306
+ * @memberof PrinterDto
14307
+ */
14308
+ 'id': number;
14309
+ /**
14310
+ *
14311
+ * @type {number}
14312
+ * @memberof PrinterDto
14313
+ */
14314
+ 'businessId': number;
14315
+ /**
14316
+ *
14317
+ * @type {PrinterConnectionType}
14318
+ * @memberof PrinterDto
14319
+ */
14320
+ 'type': PrinterConnectionType;
14321
+ /**
14322
+ *
14323
+ * @type {string}
14324
+ * @memberof PrinterDto
14325
+ */
14326
+ 'address': string;
14327
+ /**
14328
+ *
14329
+ * @type {PrinterModelType}
14330
+ * @memberof PrinterDto
14331
+ */
14332
+ 'model': PrinterModelType;
14333
+ /**
14334
+ *
14335
+ * @type {string}
14336
+ * @memberof PrinterDto
14337
+ */
14338
+ 'name': string;
14339
+ }
14340
+
14341
+
14342
+ /**
14343
+ *
14344
+ * @export
14345
+ * @enum {string}
14346
+ */
14347
+
14348
+ export const PrinterModelType = {
14349
+ Epson: 'epson',
14350
+ Star: 'star',
14351
+ Sunmi: 'sunmi',
14352
+ Label: 'label'
14353
+ } as const;
14354
+
14355
+ export type PrinterModelType = typeof PrinterModelType[keyof typeof PrinterModelType];
14356
+
14357
+
14228
14358
  /**
14229
14359
  *
14230
14360
  * @export
@@ -18665,6 +18795,12 @@ export interface UnifiedProductDto {
18665
18795
  * @memberof UnifiedProductDto
18666
18796
  */
18667
18797
  'comment'?: string | null;
18798
+ /**
18799
+ * Resolved target printer address; null/undefined means print on all kitchen printers
18800
+ * @type {string}
18801
+ * @memberof UnifiedProductDto
18802
+ */
18803
+ 'printerId'?: string | null;
18668
18804
  /**
18669
18805
  *
18670
18806
  * @type {KitchenItemStatus}
@@ -19110,6 +19246,31 @@ export interface UpsertBusinessDto {
19110
19246
  }
19111
19247
 
19112
19248
 
19249
+ /**
19250
+ *
19251
+ * @export
19252
+ * @interface UpsertCategoryPrintPolicyDto
19253
+ */
19254
+ export interface UpsertCategoryPrintPolicyDto {
19255
+ /**
19256
+ * Ordering business ID
19257
+ * @type {number}
19258
+ * @memberof UpsertCategoryPrintPolicyDto
19259
+ */
19260
+ 'businessId': number;
19261
+ /**
19262
+ * External category ID
19263
+ * @type {number}
19264
+ * @memberof UpsertCategoryPrintPolicyDto
19265
+ */
19266
+ 'categoryId': number;
19267
+ /**
19268
+ * Target printer row ID
19269
+ * @type {number}
19270
+ * @memberof UpsertCategoryPrintPolicyDto
19271
+ */
19272
+ 'printerId': number;
19273
+ }
19113
19274
  /**
19114
19275
  *
19115
19276
  * @export
@@ -19441,6 +19602,70 @@ export interface UpsertPaymentOptionsDto {
19441
19602
  */
19442
19603
  'options': Array<UpsertPaymentOptionDto>;
19443
19604
  }
19605
+ /**
19606
+ *
19607
+ * @export
19608
+ * @interface UpsertPrinterDto
19609
+ */
19610
+ export interface UpsertPrinterDto {
19611
+ /**
19612
+ * Ordering business ID
19613
+ * @type {number}
19614
+ * @memberof UpsertPrinterDto
19615
+ */
19616
+ 'businessId': number;
19617
+ /**
19618
+ *
19619
+ * @type {PrinterConnectionType}
19620
+ * @memberof UpsertPrinterDto
19621
+ */
19622
+ 'type': PrinterConnectionType;
19623
+ /**
19624
+ * Printer address (network host:port or bluetooth MAC)
19625
+ * @type {string}
19626
+ * @memberof UpsertPrinterDto
19627
+ */
19628
+ 'address': string;
19629
+ /**
19630
+ *
19631
+ * @type {PrinterModelType}
19632
+ * @memberof UpsertPrinterDto
19633
+ */
19634
+ 'model': PrinterModelType;
19635
+ /**
19636
+ * Display name
19637
+ * @type {string}
19638
+ * @memberof UpsertPrinterDto
19639
+ */
19640
+ 'name': string;
19641
+ }
19642
+
19643
+
19644
+ /**
19645
+ *
19646
+ * @export
19647
+ * @interface UpsertProductPrintPolicyDto
19648
+ */
19649
+ export interface UpsertProductPrintPolicyDto {
19650
+ /**
19651
+ * Ordering business ID
19652
+ * @type {number}
19653
+ * @memberof UpsertProductPrintPolicyDto
19654
+ */
19655
+ 'businessId': number;
19656
+ /**
19657
+ * External product ID
19658
+ * @type {number}
19659
+ * @memberof UpsertProductPrintPolicyDto
19660
+ */
19661
+ 'productId': number;
19662
+ /**
19663
+ * Target printer row ID
19664
+ * @type {number}
19665
+ * @memberof UpsertProductPrintPolicyDto
19666
+ */
19667
+ 'printerId': number;
19668
+ }
19444
19669
  /**
19445
19670
  *
19446
19671
  * @export
@@ -35310,6 +35535,840 @@ export class PluginApi extends BaseAPI implements PluginApiInterface {
35310
35535
  }
35311
35536
 
35312
35537
 
35538
+ /**
35539
+ * PrintersApi - axios parameter creator
35540
+ * @export
35541
+ */
35542
+ export const PrintersApiAxiosParamCreator = function (configuration?: Configuration) {
35543
+ return {
35544
+ /**
35545
+ *
35546
+ * @param {number} businessId
35547
+ * @param {number} categoryId
35548
+ * @param {*} [options] Override http request option.
35549
+ * @throws {RequiredError}
35550
+ */
35551
+ deleteCategoryPolicy: async (businessId: number, categoryId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35552
+ // verify required parameter 'businessId' is not null or undefined
35553
+ assertParamExists('deleteCategoryPolicy', 'businessId', businessId)
35554
+ // verify required parameter 'categoryId' is not null or undefined
35555
+ assertParamExists('deleteCategoryPolicy', 'categoryId', categoryId)
35556
+ const localVarPath = `/api/v1/printer/policies/category`;
35557
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35558
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35559
+ let baseOptions;
35560
+ if (configuration) {
35561
+ baseOptions = configuration.baseOptions;
35562
+ }
35563
+
35564
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
35565
+ const localVarHeaderParameter = {} as any;
35566
+ const localVarQueryParameter = {} as any;
35567
+
35568
+ if (businessId !== undefined) {
35569
+ localVarQueryParameter['businessId'] = businessId;
35570
+ }
35571
+
35572
+ if (categoryId !== undefined) {
35573
+ localVarQueryParameter['categoryId'] = categoryId;
35574
+ }
35575
+
35576
+
35577
+
35578
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35579
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35580
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35581
+
35582
+ return {
35583
+ url: toPathString(localVarUrlObj),
35584
+ options: localVarRequestOptions,
35585
+ };
35586
+ },
35587
+ /**
35588
+ *
35589
+ * @param {number} id
35590
+ * @param {number} businessId
35591
+ * @param {*} [options] Override http request option.
35592
+ * @throws {RequiredError}
35593
+ */
35594
+ deletePrinter: async (id: number, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35595
+ // verify required parameter 'id' is not null or undefined
35596
+ assertParamExists('deletePrinter', 'id', id)
35597
+ // verify required parameter 'businessId' is not null or undefined
35598
+ assertParamExists('deletePrinter', 'businessId', businessId)
35599
+ const localVarPath = `/api/v1/printer/{id}`
35600
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
35601
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35602
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35603
+ let baseOptions;
35604
+ if (configuration) {
35605
+ baseOptions = configuration.baseOptions;
35606
+ }
35607
+
35608
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
35609
+ const localVarHeaderParameter = {} as any;
35610
+ const localVarQueryParameter = {} as any;
35611
+
35612
+ if (businessId !== undefined) {
35613
+ localVarQueryParameter['businessId'] = businessId;
35614
+ }
35615
+
35616
+
35617
+
35618
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35619
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35620
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35621
+
35622
+ return {
35623
+ url: toPathString(localVarUrlObj),
35624
+ options: localVarRequestOptions,
35625
+ };
35626
+ },
35627
+ /**
35628
+ *
35629
+ * @param {number} businessId
35630
+ * @param {string} address
35631
+ * @param {*} [options] Override http request option.
35632
+ * @throws {RequiredError}
35633
+ */
35634
+ deletePrinterByAddress: async (businessId: number, address: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35635
+ // verify required parameter 'businessId' is not null or undefined
35636
+ assertParamExists('deletePrinterByAddress', 'businessId', businessId)
35637
+ // verify required parameter 'address' is not null or undefined
35638
+ assertParamExists('deletePrinterByAddress', 'address', address)
35639
+ const localVarPath = `/api/v1/printer`;
35640
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35641
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35642
+ let baseOptions;
35643
+ if (configuration) {
35644
+ baseOptions = configuration.baseOptions;
35645
+ }
35646
+
35647
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
35648
+ const localVarHeaderParameter = {} as any;
35649
+ const localVarQueryParameter = {} as any;
35650
+
35651
+ if (businessId !== undefined) {
35652
+ localVarQueryParameter['businessId'] = businessId;
35653
+ }
35654
+
35655
+ if (address !== undefined) {
35656
+ localVarQueryParameter['address'] = address;
35657
+ }
35658
+
35659
+
35660
+
35661
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35663
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35664
+
35665
+ return {
35666
+ url: toPathString(localVarUrlObj),
35667
+ options: localVarRequestOptions,
35668
+ };
35669
+ },
35670
+ /**
35671
+ *
35672
+ * @param {number} businessId
35673
+ * @param {number} productId
35674
+ * @param {*} [options] Override http request option.
35675
+ * @throws {RequiredError}
35676
+ */
35677
+ deleteProductPolicy: async (businessId: number, productId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35678
+ // verify required parameter 'businessId' is not null or undefined
35679
+ assertParamExists('deleteProductPolicy', 'businessId', businessId)
35680
+ // verify required parameter 'productId' is not null or undefined
35681
+ assertParamExists('deleteProductPolicy', 'productId', productId)
35682
+ const localVarPath = `/api/v1/printer/policies/product`;
35683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35684
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35685
+ let baseOptions;
35686
+ if (configuration) {
35687
+ baseOptions = configuration.baseOptions;
35688
+ }
35689
+
35690
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
35691
+ const localVarHeaderParameter = {} as any;
35692
+ const localVarQueryParameter = {} as any;
35693
+
35694
+ if (businessId !== undefined) {
35695
+ localVarQueryParameter['businessId'] = businessId;
35696
+ }
35697
+
35698
+ if (productId !== undefined) {
35699
+ localVarQueryParameter['productId'] = productId;
35700
+ }
35701
+
35702
+
35703
+
35704
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35706
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35707
+
35708
+ return {
35709
+ url: toPathString(localVarUrlObj),
35710
+ options: localVarRequestOptions,
35711
+ };
35712
+ },
35713
+ /**
35714
+ *
35715
+ * @param {number} businessId
35716
+ * @param {*} [options] Override http request option.
35717
+ * @throws {RequiredError}
35718
+ */
35719
+ listCategoryPolicies: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35720
+ // verify required parameter 'businessId' is not null or undefined
35721
+ assertParamExists('listCategoryPolicies', 'businessId', businessId)
35722
+ const localVarPath = `/api/v1/printer/policies/category`;
35723
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35724
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35725
+ let baseOptions;
35726
+ if (configuration) {
35727
+ baseOptions = configuration.baseOptions;
35728
+ }
35729
+
35730
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35731
+ const localVarHeaderParameter = {} as any;
35732
+ const localVarQueryParameter = {} as any;
35733
+
35734
+ if (businessId !== undefined) {
35735
+ localVarQueryParameter['businessId'] = businessId;
35736
+ }
35737
+
35738
+
35739
+
35740
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35741
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35742
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35743
+
35744
+ return {
35745
+ url: toPathString(localVarUrlObj),
35746
+ options: localVarRequestOptions,
35747
+ };
35748
+ },
35749
+ /**
35750
+ *
35751
+ * @param {number} businessId
35752
+ * @param {*} [options] Override http request option.
35753
+ * @throws {RequiredError}
35754
+ */
35755
+ listPrinters: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35756
+ // verify required parameter 'businessId' is not null or undefined
35757
+ assertParamExists('listPrinters', 'businessId', businessId)
35758
+ const localVarPath = `/api/v1/printer`;
35759
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35760
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35761
+ let baseOptions;
35762
+ if (configuration) {
35763
+ baseOptions = configuration.baseOptions;
35764
+ }
35765
+
35766
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35767
+ const localVarHeaderParameter = {} as any;
35768
+ const localVarQueryParameter = {} as any;
35769
+
35770
+ if (businessId !== undefined) {
35771
+ localVarQueryParameter['businessId'] = businessId;
35772
+ }
35773
+
35774
+
35775
+
35776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35778
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35779
+
35780
+ return {
35781
+ url: toPathString(localVarUrlObj),
35782
+ options: localVarRequestOptions,
35783
+ };
35784
+ },
35785
+ /**
35786
+ *
35787
+ * @param {number} businessId
35788
+ * @param {*} [options] Override http request option.
35789
+ * @throws {RequiredError}
35790
+ */
35791
+ listProductPolicies: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35792
+ // verify required parameter 'businessId' is not null or undefined
35793
+ assertParamExists('listProductPolicies', 'businessId', businessId)
35794
+ const localVarPath = `/api/v1/printer/policies/product`;
35795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35797
+ let baseOptions;
35798
+ if (configuration) {
35799
+ baseOptions = configuration.baseOptions;
35800
+ }
35801
+
35802
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35803
+ const localVarHeaderParameter = {} as any;
35804
+ const localVarQueryParameter = {} as any;
35805
+
35806
+ if (businessId !== undefined) {
35807
+ localVarQueryParameter['businessId'] = businessId;
35808
+ }
35809
+
35810
+
35811
+
35812
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35814
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35815
+
35816
+ return {
35817
+ url: toPathString(localVarUrlObj),
35818
+ options: localVarRequestOptions,
35819
+ };
35820
+ },
35821
+ /**
35822
+ *
35823
+ * @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
35824
+ * @param {*} [options] Override http request option.
35825
+ * @throws {RequiredError}
35826
+ */
35827
+ upsertCategoryPolicy: async (upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35828
+ // verify required parameter 'upsertCategoryPrintPolicyDto' is not null or undefined
35829
+ assertParamExists('upsertCategoryPolicy', 'upsertCategoryPrintPolicyDto', upsertCategoryPrintPolicyDto)
35830
+ const localVarPath = `/api/v1/printer/policies/category`;
35831
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35832
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35833
+ let baseOptions;
35834
+ if (configuration) {
35835
+ baseOptions = configuration.baseOptions;
35836
+ }
35837
+
35838
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
35839
+ const localVarHeaderParameter = {} as any;
35840
+ const localVarQueryParameter = {} as any;
35841
+
35842
+
35843
+
35844
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35845
+
35846
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35847
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35848
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35849
+ localVarRequestOptions.data = serializeDataIfNeeded(upsertCategoryPrintPolicyDto, localVarRequestOptions, configuration)
35850
+
35851
+ return {
35852
+ url: toPathString(localVarUrlObj),
35853
+ options: localVarRequestOptions,
35854
+ };
35855
+ },
35856
+ /**
35857
+ *
35858
+ * @param {UpsertPrinterDto} upsertPrinterDto
35859
+ * @param {*} [options] Override http request option.
35860
+ * @throws {RequiredError}
35861
+ */
35862
+ upsertPrinter: async (upsertPrinterDto: UpsertPrinterDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35863
+ // verify required parameter 'upsertPrinterDto' is not null or undefined
35864
+ assertParamExists('upsertPrinter', 'upsertPrinterDto', upsertPrinterDto)
35865
+ const localVarPath = `/api/v1/printer`;
35866
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35867
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35868
+ let baseOptions;
35869
+ if (configuration) {
35870
+ baseOptions = configuration.baseOptions;
35871
+ }
35872
+
35873
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
35874
+ const localVarHeaderParameter = {} as any;
35875
+ const localVarQueryParameter = {} as any;
35876
+
35877
+
35878
+
35879
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35880
+
35881
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35882
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35883
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35884
+ localVarRequestOptions.data = serializeDataIfNeeded(upsertPrinterDto, localVarRequestOptions, configuration)
35885
+
35886
+ return {
35887
+ url: toPathString(localVarUrlObj),
35888
+ options: localVarRequestOptions,
35889
+ };
35890
+ },
35891
+ /**
35892
+ *
35893
+ * @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
35894
+ * @param {*} [options] Override http request option.
35895
+ * @throws {RequiredError}
35896
+ */
35897
+ upsertProductPolicy: async (upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35898
+ // verify required parameter 'upsertProductPrintPolicyDto' is not null or undefined
35899
+ assertParamExists('upsertProductPolicy', 'upsertProductPrintPolicyDto', upsertProductPrintPolicyDto)
35900
+ const localVarPath = `/api/v1/printer/policies/product`;
35901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35903
+ let baseOptions;
35904
+ if (configuration) {
35905
+ baseOptions = configuration.baseOptions;
35906
+ }
35907
+
35908
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
35909
+ const localVarHeaderParameter = {} as any;
35910
+ const localVarQueryParameter = {} as any;
35911
+
35912
+
35913
+
35914
+ localVarHeaderParameter['Content-Type'] = 'application/json';
35915
+
35916
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35917
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35918
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35919
+ localVarRequestOptions.data = serializeDataIfNeeded(upsertProductPrintPolicyDto, localVarRequestOptions, configuration)
35920
+
35921
+ return {
35922
+ url: toPathString(localVarUrlObj),
35923
+ options: localVarRequestOptions,
35924
+ };
35925
+ },
35926
+ }
35927
+ };
35928
+
35929
+ /**
35930
+ * PrintersApi - functional programming interface
35931
+ * @export
35932
+ */
35933
+ export const PrintersApiFp = function(configuration?: Configuration) {
35934
+ const localVarAxiosParamCreator = PrintersApiAxiosParamCreator(configuration)
35935
+ return {
35936
+ /**
35937
+ *
35938
+ * @param {number} businessId
35939
+ * @param {number} categoryId
35940
+ * @param {*} [options] Override http request option.
35941
+ * @throws {RequiredError}
35942
+ */
35943
+ async deleteCategoryPolicy(businessId: number, categoryId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCategoryPolicy(businessId, categoryId, options);
35945
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35946
+ },
35947
+ /**
35948
+ *
35949
+ * @param {number} id
35950
+ * @param {number} businessId
35951
+ * @param {*} [options] Override http request option.
35952
+ * @throws {RequiredError}
35953
+ */
35954
+ async deletePrinter(id: number, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35955
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePrinter(id, businessId, options);
35956
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35957
+ },
35958
+ /**
35959
+ *
35960
+ * @param {number} businessId
35961
+ * @param {string} address
35962
+ * @param {*} [options] Override http request option.
35963
+ * @throws {RequiredError}
35964
+ */
35965
+ async deletePrinterByAddress(businessId: number, address: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35966
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePrinterByAddress(businessId, address, options);
35967
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35968
+ },
35969
+ /**
35970
+ *
35971
+ * @param {number} businessId
35972
+ * @param {number} productId
35973
+ * @param {*} [options] Override http request option.
35974
+ * @throws {RequiredError}
35975
+ */
35976
+ async deleteProductPolicy(businessId: number, productId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35977
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductPolicy(businessId, productId, options);
35978
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35979
+ },
35980
+ /**
35981
+ *
35982
+ * @param {number} businessId
35983
+ * @param {*} [options] Override http request option.
35984
+ * @throws {RequiredError}
35985
+ */
35986
+ async listCategoryPolicies(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrintPolicyDto>>> {
35987
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCategoryPolicies(businessId, options);
35988
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35989
+ },
35990
+ /**
35991
+ *
35992
+ * @param {number} businessId
35993
+ * @param {*} [options] Override http request option.
35994
+ * @throws {RequiredError}
35995
+ */
35996
+ async listPrinters(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrinterDto>>> {
35997
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPrinters(businessId, options);
35998
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35999
+ },
36000
+ /**
36001
+ *
36002
+ * @param {number} businessId
36003
+ * @param {*} [options] Override http request option.
36004
+ * @throws {RequiredError}
36005
+ */
36006
+ async listProductPolicies(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrintPolicyDto>>> {
36007
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductPolicies(businessId, options);
36008
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
36009
+ },
36010
+ /**
36011
+ *
36012
+ * @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
36013
+ * @param {*} [options] Override http request option.
36014
+ * @throws {RequiredError}
36015
+ */
36016
+ async upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto>> {
36017
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options);
36018
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
36019
+ },
36020
+ /**
36021
+ *
36022
+ * @param {UpsertPrinterDto} upsertPrinterDto
36023
+ * @param {*} [options] Override http request option.
36024
+ * @throws {RequiredError}
36025
+ */
36026
+ async upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrinterDto>> {
36027
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upsertPrinter(upsertPrinterDto, options);
36028
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
36029
+ },
36030
+ /**
36031
+ *
36032
+ * @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
36033
+ * @param {*} [options] Override http request option.
36034
+ * @throws {RequiredError}
36035
+ */
36036
+ async upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto>> {
36037
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upsertProductPolicy(upsertProductPrintPolicyDto, options);
36038
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
36039
+ },
36040
+ }
36041
+ };
36042
+
36043
+ /**
36044
+ * PrintersApi - factory interface
36045
+ * @export
36046
+ */
36047
+ export const PrintersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
36048
+ const localVarFp = PrintersApiFp(configuration)
36049
+ return {
36050
+ /**
36051
+ *
36052
+ * @param {number} businessId
36053
+ * @param {number} categoryId
36054
+ * @param {*} [options] Override http request option.
36055
+ * @throws {RequiredError}
36056
+ */
36057
+ deleteCategoryPolicy(businessId: number, categoryId: number, options?: any): AxiosPromise<void> {
36058
+ return localVarFp.deleteCategoryPolicy(businessId, categoryId, options).then((request) => request(axios, basePath));
36059
+ },
36060
+ /**
36061
+ *
36062
+ * @param {number} id
36063
+ * @param {number} businessId
36064
+ * @param {*} [options] Override http request option.
36065
+ * @throws {RequiredError}
36066
+ */
36067
+ deletePrinter(id: number, businessId: number, options?: any): AxiosPromise<void> {
36068
+ return localVarFp.deletePrinter(id, businessId, options).then((request) => request(axios, basePath));
36069
+ },
36070
+ /**
36071
+ *
36072
+ * @param {number} businessId
36073
+ * @param {string} address
36074
+ * @param {*} [options] Override http request option.
36075
+ * @throws {RequiredError}
36076
+ */
36077
+ deletePrinterByAddress(businessId: number, address: string, options?: any): AxiosPromise<void> {
36078
+ return localVarFp.deletePrinterByAddress(businessId, address, options).then((request) => request(axios, basePath));
36079
+ },
36080
+ /**
36081
+ *
36082
+ * @param {number} businessId
36083
+ * @param {number} productId
36084
+ * @param {*} [options] Override http request option.
36085
+ * @throws {RequiredError}
36086
+ */
36087
+ deleteProductPolicy(businessId: number, productId: number, options?: any): AxiosPromise<void> {
36088
+ return localVarFp.deleteProductPolicy(businessId, productId, options).then((request) => request(axios, basePath));
36089
+ },
36090
+ /**
36091
+ *
36092
+ * @param {number} businessId
36093
+ * @param {*} [options] Override http request option.
36094
+ * @throws {RequiredError}
36095
+ */
36096
+ listCategoryPolicies(businessId: number, options?: any): AxiosPromise<Array<PrintPolicyDto>> {
36097
+ return localVarFp.listCategoryPolicies(businessId, options).then((request) => request(axios, basePath));
36098
+ },
36099
+ /**
36100
+ *
36101
+ * @param {number} businessId
36102
+ * @param {*} [options] Override http request option.
36103
+ * @throws {RequiredError}
36104
+ */
36105
+ listPrinters(businessId: number, options?: any): AxiosPromise<Array<PrinterDto>> {
36106
+ return localVarFp.listPrinters(businessId, options).then((request) => request(axios, basePath));
36107
+ },
36108
+ /**
36109
+ *
36110
+ * @param {number} businessId
36111
+ * @param {*} [options] Override http request option.
36112
+ * @throws {RequiredError}
36113
+ */
36114
+ listProductPolicies(businessId: number, options?: any): AxiosPromise<Array<PrintPolicyDto>> {
36115
+ return localVarFp.listProductPolicies(businessId, options).then((request) => request(axios, basePath));
36116
+ },
36117
+ /**
36118
+ *
36119
+ * @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
36120
+ * @param {*} [options] Override http request option.
36121
+ * @throws {RequiredError}
36122
+ */
36123
+ upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto> {
36124
+ return localVarFp.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options).then((request) => request(axios, basePath));
36125
+ },
36126
+ /**
36127
+ *
36128
+ * @param {UpsertPrinterDto} upsertPrinterDto
36129
+ * @param {*} [options] Override http request option.
36130
+ * @throws {RequiredError}
36131
+ */
36132
+ upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: any): AxiosPromise<PrinterDto> {
36133
+ return localVarFp.upsertPrinter(upsertPrinterDto, options).then((request) => request(axios, basePath));
36134
+ },
36135
+ /**
36136
+ *
36137
+ * @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
36138
+ * @param {*} [options] Override http request option.
36139
+ * @throws {RequiredError}
36140
+ */
36141
+ upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto> {
36142
+ return localVarFp.upsertProductPolicy(upsertProductPrintPolicyDto, options).then((request) => request(axios, basePath));
36143
+ },
36144
+ };
36145
+ };
36146
+
36147
+ /**
36148
+ * PrintersApi - interface
36149
+ * @export
36150
+ * @interface PrintersApi
36151
+ */
36152
+ export interface PrintersApiInterface {
36153
+ /**
36154
+ *
36155
+ * @param {number} businessId
36156
+ * @param {number} categoryId
36157
+ * @param {*} [options] Override http request option.
36158
+ * @throws {RequiredError}
36159
+ * @memberof PrintersApiInterface
36160
+ */
36161
+ deleteCategoryPolicy(businessId: number, categoryId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
36162
+
36163
+ /**
36164
+ *
36165
+ * @param {number} id
36166
+ * @param {number} businessId
36167
+ * @param {*} [options] Override http request option.
36168
+ * @throws {RequiredError}
36169
+ * @memberof PrintersApiInterface
36170
+ */
36171
+ deletePrinter(id: number, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
36172
+
36173
+ /**
36174
+ *
36175
+ * @param {number} businessId
36176
+ * @param {string} address
36177
+ * @param {*} [options] Override http request option.
36178
+ * @throws {RequiredError}
36179
+ * @memberof PrintersApiInterface
36180
+ */
36181
+ deletePrinterByAddress(businessId: number, address: string, options?: AxiosRequestConfig): AxiosPromise<void>;
36182
+
36183
+ /**
36184
+ *
36185
+ * @param {number} businessId
36186
+ * @param {number} productId
36187
+ * @param {*} [options] Override http request option.
36188
+ * @throws {RequiredError}
36189
+ * @memberof PrintersApiInterface
36190
+ */
36191
+ deleteProductPolicy(businessId: number, productId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
36192
+
36193
+ /**
36194
+ *
36195
+ * @param {number} businessId
36196
+ * @param {*} [options] Override http request option.
36197
+ * @throws {RequiredError}
36198
+ * @memberof PrintersApiInterface
36199
+ */
36200
+ listCategoryPolicies(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PrintPolicyDto>>;
36201
+
36202
+ /**
36203
+ *
36204
+ * @param {number} businessId
36205
+ * @param {*} [options] Override http request option.
36206
+ * @throws {RequiredError}
36207
+ * @memberof PrintersApiInterface
36208
+ */
36209
+ listPrinters(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PrinterDto>>;
36210
+
36211
+ /**
36212
+ *
36213
+ * @param {number} businessId
36214
+ * @param {*} [options] Override http request option.
36215
+ * @throws {RequiredError}
36216
+ * @memberof PrintersApiInterface
36217
+ */
36218
+ listProductPolicies(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PrintPolicyDto>>;
36219
+
36220
+ /**
36221
+ *
36222
+ * @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
36223
+ * @param {*} [options] Override http request option.
36224
+ * @throws {RequiredError}
36225
+ * @memberof PrintersApiInterface
36226
+ */
36227
+ upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto>;
36228
+
36229
+ /**
36230
+ *
36231
+ * @param {UpsertPrinterDto} upsertPrinterDto
36232
+ * @param {*} [options] Override http request option.
36233
+ * @throws {RequiredError}
36234
+ * @memberof PrintersApiInterface
36235
+ */
36236
+ upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: AxiosRequestConfig): AxiosPromise<PrinterDto>;
36237
+
36238
+ /**
36239
+ *
36240
+ * @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
36241
+ * @param {*} [options] Override http request option.
36242
+ * @throws {RequiredError}
36243
+ * @memberof PrintersApiInterface
36244
+ */
36245
+ upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto>;
36246
+
36247
+ }
36248
+
36249
+ /**
36250
+ * PrintersApi - object-oriented interface
36251
+ * @export
36252
+ * @class PrintersApi
36253
+ * @extends {BaseAPI}
36254
+ */
36255
+ export class PrintersApi extends BaseAPI implements PrintersApiInterface {
36256
+ /**
36257
+ *
36258
+ * @param {number} businessId
36259
+ * @param {number} categoryId
36260
+ * @param {*} [options] Override http request option.
36261
+ * @throws {RequiredError}
36262
+ * @memberof PrintersApi
36263
+ */
36264
+ public deleteCategoryPolicy(businessId: number, categoryId: number, options?: AxiosRequestConfig) {
36265
+ return PrintersApiFp(this.configuration).deleteCategoryPolicy(businessId, categoryId, options).then((request) => request(this.axios, this.basePath));
36266
+ }
36267
+
36268
+ /**
36269
+ *
36270
+ * @param {number} id
36271
+ * @param {number} businessId
36272
+ * @param {*} [options] Override http request option.
36273
+ * @throws {RequiredError}
36274
+ * @memberof PrintersApi
36275
+ */
36276
+ public deletePrinter(id: number, businessId: number, options?: AxiosRequestConfig) {
36277
+ return PrintersApiFp(this.configuration).deletePrinter(id, businessId, options).then((request) => request(this.axios, this.basePath));
36278
+ }
36279
+
36280
+ /**
36281
+ *
36282
+ * @param {number} businessId
36283
+ * @param {string} address
36284
+ * @param {*} [options] Override http request option.
36285
+ * @throws {RequiredError}
36286
+ * @memberof PrintersApi
36287
+ */
36288
+ public deletePrinterByAddress(businessId: number, address: string, options?: AxiosRequestConfig) {
36289
+ return PrintersApiFp(this.configuration).deletePrinterByAddress(businessId, address, options).then((request) => request(this.axios, this.basePath));
36290
+ }
36291
+
36292
+ /**
36293
+ *
36294
+ * @param {number} businessId
36295
+ * @param {number} productId
36296
+ * @param {*} [options] Override http request option.
36297
+ * @throws {RequiredError}
36298
+ * @memberof PrintersApi
36299
+ */
36300
+ public deleteProductPolicy(businessId: number, productId: number, options?: AxiosRequestConfig) {
36301
+ return PrintersApiFp(this.configuration).deleteProductPolicy(businessId, productId, options).then((request) => request(this.axios, this.basePath));
36302
+ }
36303
+
36304
+ /**
36305
+ *
36306
+ * @param {number} businessId
36307
+ * @param {*} [options] Override http request option.
36308
+ * @throws {RequiredError}
36309
+ * @memberof PrintersApi
36310
+ */
36311
+ public listCategoryPolicies(businessId: number, options?: AxiosRequestConfig) {
36312
+ return PrintersApiFp(this.configuration).listCategoryPolicies(businessId, options).then((request) => request(this.axios, this.basePath));
36313
+ }
36314
+
36315
+ /**
36316
+ *
36317
+ * @param {number} businessId
36318
+ * @param {*} [options] Override http request option.
36319
+ * @throws {RequiredError}
36320
+ * @memberof PrintersApi
36321
+ */
36322
+ public listPrinters(businessId: number, options?: AxiosRequestConfig) {
36323
+ return PrintersApiFp(this.configuration).listPrinters(businessId, options).then((request) => request(this.axios, this.basePath));
36324
+ }
36325
+
36326
+ /**
36327
+ *
36328
+ * @param {number} businessId
36329
+ * @param {*} [options] Override http request option.
36330
+ * @throws {RequiredError}
36331
+ * @memberof PrintersApi
36332
+ */
36333
+ public listProductPolicies(businessId: number, options?: AxiosRequestConfig) {
36334
+ return PrintersApiFp(this.configuration).listProductPolicies(businessId, options).then((request) => request(this.axios, this.basePath));
36335
+ }
36336
+
36337
+ /**
36338
+ *
36339
+ * @param {UpsertCategoryPrintPolicyDto} upsertCategoryPrintPolicyDto
36340
+ * @param {*} [options] Override http request option.
36341
+ * @throws {RequiredError}
36342
+ * @memberof PrintersApi
36343
+ */
36344
+ public upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig) {
36345
+ return PrintersApiFp(this.configuration).upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options).then((request) => request(this.axios, this.basePath));
36346
+ }
36347
+
36348
+ /**
36349
+ *
36350
+ * @param {UpsertPrinterDto} upsertPrinterDto
36351
+ * @param {*} [options] Override http request option.
36352
+ * @throws {RequiredError}
36353
+ * @memberof PrintersApi
36354
+ */
36355
+ public upsertPrinter(upsertPrinterDto: UpsertPrinterDto, options?: AxiosRequestConfig) {
36356
+ return PrintersApiFp(this.configuration).upsertPrinter(upsertPrinterDto, options).then((request) => request(this.axios, this.basePath));
36357
+ }
36358
+
36359
+ /**
36360
+ *
36361
+ * @param {UpsertProductPrintPolicyDto} upsertProductPrintPolicyDto
36362
+ * @param {*} [options] Override http request option.
36363
+ * @throws {RequiredError}
36364
+ * @memberof PrintersApi
36365
+ */
36366
+ public upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig) {
36367
+ return PrintersApiFp(this.configuration).upsertProductPolicy(upsertProductPrintPolicyDto, options).then((request) => request(this.axios, this.basePath));
36368
+ }
36369
+ }
36370
+
36371
+
35313
36372
  /**
35314
36373
  * ProductApi - axios parameter creator
35315
36374
  * @export