@munchi_oy/core 1.9.24 → 1.9.25

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