@openbox/shared-types 0.5.88 → 0.5.90

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.
@@ -1,6 +1,8 @@
1
1
  import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
2
- type InvoicesCalculationsDetailsBaseRequest = {
2
+ export type InvoicesCalculationsDetailsRequest = {
3
3
  id?: string;
4
+ service?: string;
5
+ product?: string;
4
6
  quantity: number;
5
7
  unitPrice: number;
6
8
  price: number;
@@ -9,45 +11,6 @@ type InvoicesCalculationsDetailsBaseRequest = {
9
11
  incRenta10: boolean;
10
12
  chargeDescription: string;
11
13
  };
12
- /**
13
- * Invoice calculation details request type that supports either a service OR a product.
14
- * Each detail must reference exactly one of service or product, not both.
15
- *
16
- * @example
17
- * // Service detail
18
- * const serviceDetail: InvoicesCalculationsDetailsRequest = {
19
- * service: "service-id-123",
20
- * product: null,
21
- * quantity: 1,
22
- * unitPrice: 100,
23
- * price: 100,
24
- * incIva: true,
25
- * incRenta5: false,
26
- * incRenta10: false,
27
- * chargeDescription: "Service charge"
28
- * }
29
- *
30
- * @example
31
- * // Product detail
32
- * const productDetail: InvoicesCalculationsDetailsRequest = {
33
- * product: "product-id-123",
34
- * service: null,
35
- * quantity: 2,
36
- * unitPrice: 50,
37
- * price: 100,
38
- * incIva: true,
39
- * incRenta5: false,
40
- * incRenta10: false,
41
- * chargeDescription: "Product charge"
42
- * }
43
- */
44
- export type InvoicesCalculationsDetailsRequest = (InvoicesCalculationsDetailsBaseRequest & {
45
- service: string;
46
- product: null;
47
- }) | (InvoicesCalculationsDetailsBaseRequest & {
48
- product: string;
49
- service: null;
50
- });
51
14
  export type InvoicesCalculationsDiscountsRequest = {
52
15
  id?: string;
53
16
  type: InvoicesDiscountsTypesKeys;
@@ -60,4 +23,3 @@ export type InvoicesCalculationsCalculateSingleRequest = {
60
23
  details: InvoicesCalculationsDetailsRequest[];
61
24
  discounts: InvoicesCalculationsDiscountsRequest[] | null;
62
25
  };
63
- export {};
@@ -1,6 +1,8 @@
1
1
  import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
2
- type InvoicesCalculationsDetailsBaseResponse = {
2
+ export type InvoicesCalculationsDetailsResponse = {
3
3
  id?: string;
4
+ service?: string;
5
+ product?: string;
4
6
  quantity: number;
5
7
  chargeDescription: string;
6
8
  price: number;
@@ -22,35 +24,6 @@ type InvoicesCalculationsDetailsBaseResponse = {
22
24
  vNoSujetaToShow: number;
23
25
  vGravadaToShow: number;
24
26
  };
25
- /**
26
- * Invoice calculation details response type that includes calculated values for either a service OR a product.
27
- * The response will contain the same service/product identifier from the request plus all calculated tax and pricing information.
28
- *
29
- * @example
30
- * // Service detail response
31
- * const serviceResponse: InvoicesCalculationsDetailsResponse = {
32
- * service: "service-id-123",
33
- * product: null,
34
- * quantity: 1,
35
- * chargeDescription: "Service charge",
36
- * price: 100,
37
- * incIva: true,
38
- * incRenta5: false,
39
- * incRenta10: false,
40
- * // ... calculated fields
41
- * unitPrice: 100,
42
- * ivaPrice: 13,
43
- * ventaPrice: 113,
44
- * sellingType: 1
45
- * }
46
- */
47
- export type InvoicesCalculationsDetailsResponse = (InvoicesCalculationsDetailsBaseResponse & {
48
- service: string;
49
- product: null;
50
- }) | (InvoicesCalculationsDetailsBaseResponse & {
51
- product: string;
52
- service: null;
53
- });
54
27
  export type InvoicesCalculationsDiscountsResponse = {
55
28
  id?: string;
56
29
  type: InvoicesDiscountsTypesKeys;
@@ -94,4 +67,3 @@ export type InvoicesCalculationsCalculateSingleResponse = {
94
67
  discounts: InvoicesCalculationsDiscountsResponse[];
95
68
  totals: InvoicesCalculationsTotalsResponse;
96
69
  };
97
- export {};
@@ -1,6 +1,7 @@
1
1
  import { InventoriesUnitsSVCode } from '../../../../inventories';
2
2
  export declare enum PartnersV1InvoicesCreateSingleRequestSettingsNotify {
3
- EMAIL = "EMAIL"
3
+ EMAIL = "EMAIL",
4
+ NONE = "NONE"
4
5
  }
5
6
  export type PartnersV1InvoicesCreateSingleRequestSettings = {
6
7
  notify: PartnersV1InvoicesCreateSingleRequestSettingsNotify | null;
@@ -4,6 +4,7 @@ exports.PartnersV1InvoicesCreateSingleRequestDataDetailsSellingType = exports.Pa
4
4
  var PartnersV1InvoicesCreateSingleRequestSettingsNotify;
5
5
  (function (PartnersV1InvoicesCreateSingleRequestSettingsNotify) {
6
6
  PartnersV1InvoicesCreateSingleRequestSettingsNotify["EMAIL"] = "EMAIL";
7
+ PartnersV1InvoicesCreateSingleRequestSettingsNotify["NONE"] = "NONE";
7
8
  })(PartnersV1InvoicesCreateSingleRequestSettingsNotify = exports.PartnersV1InvoicesCreateSingleRequestSettingsNotify || (exports.PartnersV1InvoicesCreateSingleRequestSettingsNotify = {}));
8
9
  var PartnersV1InvoicesCreateSingleRequestDataHeaderCustomerType;
9
10
  (function (PartnersV1InvoicesCreateSingleRequestDataHeaderCustomerType) {
@@ -1 +1 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/invoices/CreateSingle/Request.ts"],"names":[],"mappings":";;;AAEA,IAAY,mDAEX;AAFD,WAAY,mDAAmD;IAC7D,sEAAe,CAAA;AACjB,CAAC,EAFW,mDAAmD,GAAnD,2DAAmD,KAAnD,2DAAmD,QAE9D;AAkBD,IAAY,2DAIX;AAJD,WAAY,2DAA2D;IACrE,uJAAa,CAAA;IACb,iJAAU,CAAA;IACV,mJAAW,CAAA;AACb,CAAC,EAJW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAItE;AAED,IAAY,iEAIX;AAJD,WAAY,iEAAiE;IAC3E,iLAAoB,CAAA;IACpB,+KAAmB,CAAA;IACnB,qLAAsB,CAAA;AACxB,CAAC,EAJW,iEAAiE,GAAjE,yEAAiE,KAAjE,yEAAiE,QAI5E;AACD,IAAY,wEAGX;AAHD,WAAY,wEAAwE;IAClF,2LAAkB,CAAA;IAClB,qLAAe,CAAA;AACjB,CAAC,EAHW,wEAAwE,GAAxE,gFAAwE,KAAxE,gFAAwE,QAGnF;AAED,IAAY,wEAIX;AAJD,WAAY,wEAAwE;IAClF,6KAAW,CAAA;IACX,6KAAW,CAAA;IACX,2KAAU,CAAA;AACZ,CAAC,EAJW,wEAAwE,GAAxE,gFAAwE,KAAxE,gFAAwE,QAInF;AAUD,IAAY,oEAIX;AAJD,WAAY,oEAAoE;IAC9E,uFAAe,CAAA;IACf,uFAAe,CAAA;IACf,+FAAuB,CAAA;AACzB,CAAC,EAJW,oEAAoE,GAApE,4EAAoE,KAApE,4EAAoE,QAI/E;AAwCD,IAAY,2DAKX;AALD,WAAY,2DAA2D;IACrE,0EAAW,CAAA;IACX,0EAAW,CAAA;IACX,wEAAS,CAAA;IACT,0EAAW,CAAA;AACb,CAAC,EALW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAKtE;AAWD,IAAY,2DAIX;AAJD,WAAY,2DAA2D;IACrE,uJAAa,CAAA;IACb,iJAAU,CAAA;IACV,mJAAW,CAAA;AACb,CAAC,EAJW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAItE"}
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/invoices/CreateSingle/Request.ts"],"names":[],"mappings":";;;AAEA,IAAY,mDAGX;AAHD,WAAY,mDAAmD;IAC7D,sEAAe,CAAA;IACf,oEAAa,CAAA;AACf,CAAC,EAHW,mDAAmD,GAAnD,2DAAmD,KAAnD,2DAAmD,QAG9D;AAkBD,IAAY,2DAIX;AAJD,WAAY,2DAA2D;IACrE,uJAAa,CAAA;IACb,iJAAU,CAAA;IACV,mJAAW,CAAA;AACb,CAAC,EAJW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAItE;AAED,IAAY,iEAIX;AAJD,WAAY,iEAAiE;IAC3E,iLAAoB,CAAA;IACpB,+KAAmB,CAAA;IACnB,qLAAsB,CAAA;AACxB,CAAC,EAJW,iEAAiE,GAAjE,yEAAiE,KAAjE,yEAAiE,QAI5E;AACD,IAAY,wEAGX;AAHD,WAAY,wEAAwE;IAClF,2LAAkB,CAAA;IAClB,qLAAe,CAAA;AACjB,CAAC,EAHW,wEAAwE,GAAxE,gFAAwE,KAAxE,gFAAwE,QAGnF;AAED,IAAY,wEAIX;AAJD,WAAY,wEAAwE;IAClF,6KAAW,CAAA;IACX,6KAAW,CAAA;IACX,2KAAU,CAAA;AACZ,CAAC,EAJW,wEAAwE,GAAxE,gFAAwE,KAAxE,gFAAwE,QAInF;AAUD,IAAY,oEAIX;AAJD,WAAY,oEAAoE;IAC9E,uFAAe,CAAA;IACf,uFAAe,CAAA;IACf,+FAAuB,CAAA;AACzB,CAAC,EAJW,oEAAoE,GAApE,4EAAoE,KAApE,4EAAoE,QAI/E;AAwCD,IAAY,2DAKX;AALD,WAAY,2DAA2D;IACrE,0EAAW,CAAA;IACX,0EAAW,CAAA;IACX,wEAAS,CAAA;IACT,0EAAW,CAAA;AACb,CAAC,EALW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAKtE;AAWD,IAAY,2DAIX;AAJD,WAAY,2DAA2D;IACrE,uJAAa,CAAA;IACb,iJAAU,CAAA;IACV,mJAAW,CAAA;AACb,CAAC,EAJW,2DAA2D,GAA3D,mEAA2D,KAA3D,mEAA2D,QAItE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.5.88",
3
+ "version": "0.5.90",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",