washday-sdk 1.6.74 → 1.6.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "1.6.74",
3
+ "version": "1.6.75",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,4 +1,5 @@
1
1
  import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { IProductInvoiceModuleSettings } from "../../interfaces/Product";
2
3
  import axiosInstance from "../axiosInstance";
3
4
  const GET_SET_PRODUCTS_SUPPLY = 'api/product-supply';
4
5
  const GET_SET_PRODUCTS = 'api/product';
@@ -25,6 +26,7 @@ export const create = async function (this: WashdayClientInstance, data: {
25
26
  invoice_product_key: string;
26
27
  invoice_product_unit_key: string;
27
28
  invoice_product_unit_name: string;
29
+ invoiceModuleSettings?: IProductInvoiceModuleSettings;
28
30
  productSupplies: Array<any>
29
31
  isOutsourced?: boolean
30
32
  outsourcingPartner?: string
@@ -1,4 +1,5 @@
1
1
  import { WashdayClientInstance } from "../../interfaces/Api";
2
+ import { IProductInvoiceModuleSettings } from "../../interfaces/Product";
2
3
  import axiosInstance from "../axiosInstance";
3
4
  const GET_SET_PRODUCTS = 'api/product';
4
5
 
@@ -34,6 +35,7 @@ export const updateById = async function (this: WashdayClientInstance, id: strin
34
35
  invoice_description?: string,
35
36
  invoice_product_unit_key?: string
36
37
  invoice_product_unit_name?: string
38
+ invoiceModuleSettings?: IProductInvoiceModuleSettings
37
39
  isOutsourced?: boolean
38
40
  outsourcingPartner?: string,
39
41
  barcode?: string
@@ -29,6 +29,22 @@ export interface IPriceOption {
29
29
  isActive?: boolean,
30
30
  }
31
31
 
32
+ export interface IProductCfdiInvoiceModuleSettings {
33
+ description?: string,
34
+ productKey?: string,
35
+ unitKey?: string,
36
+ unitName?: string,
37
+ }
38
+
39
+ export interface IProductSunatInvoiceModuleSettings {
40
+ enabled?: boolean,
41
+ }
42
+
43
+ export interface IProductInvoiceModuleSettings {
44
+ cfdi?: IProductCfdiInvoiceModuleSettings,
45
+ sunat?: IProductSunatInvoiceModuleSettings,
46
+ }
47
+
32
48
 
33
49
  export interface IProduct {
34
50
  _id?: string
@@ -55,6 +71,7 @@ export interface IProduct {
55
71
  invoice_product_key?: string,
56
72
  invoice_product_unit_key?: string,
57
73
  invoice_product_unit_name?: string,
74
+ invoiceModuleSettings?: IProductInvoiceModuleSettings,
58
75
  priceOptions?: IPriceOption[],
59
76
  }
60
77