pangea-server 3.3.133 → 3.3.134

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.
@@ -155,7 +155,7 @@ class Arca {
155
155
  const fileName = `${timestamp}_${clientName}.pdf`;
156
156
  const pdfData = {
157
157
  file_name: fileName,
158
- send_to: receiver.email,
158
+ send_to: receiver.email || undefined,
159
159
  template: {
160
160
  name: 'invoice-c',
161
161
  params: {
@@ -167,7 +167,7 @@ class Arca {
167
167
  cae: res.CAE,
168
168
  issuer_business_name: this.__issuer.businessName,
169
169
  issuer_address: this.__issuer.address,
170
- issuer_iva_condition: this.__issuer.ivaCondition,
170
+ issuer_iva_condition: this.__issuer.vatCondition,
171
171
  issuer_gross_income: this.__issuer.grossIncome,
172
172
  issuer_activity_start_date: this.__issuer.activityStartDate,
173
173
  receiver_name: receiverName,
@@ -1,7 +1,7 @@
1
1
  export type ArcaIssuer = {
2
2
  businessName: string;
3
3
  address: string;
4
- ivaCondition: string;
4
+ vatCondition: string;
5
5
  grossIncome: string;
6
6
  activityStartDate: string;
7
7
  };
@@ -17,7 +17,7 @@ export type ArcaVoucherTypeC = '11_invoice_c' | '12_debit_note_c' | '13_credit_n
17
17
  export type ArcaVoucherType = ArcaVoucherTypeA | ArcaVoucherTypeB | ArcaVoucherTypeC;
18
18
  export type ArcaConcept = '1_products' | '2_services' | '3_products_and_services';
19
19
  export type ArcaDocumentType = '80_cuit' | '86_cuil' | '96_dni' | '99_final_consumer';
20
- export type ArcaVatConditionReceiver = '1_vat_registered' | '4_vat_exempt' | '5_final_consumer' | '6_monotaxpayer' | '7_unclassified' | '8_foreign_supplier' | '9_foreign_client' | '10_vat_exempt_law_19640' | '13_social_monotaxpayer' | '15_vat_not_applicable' | '16_promoted_independent_monotaxpayer';
20
+ export type ArcaVatCondition = '1_vat_registered' | '4_vat_exempt' | '5_final_consumer' | '6_monotaxpayer' | '7_unclassified' | '8_foreign_supplier' | '9_foreign_client' | '10_vat_exempt_law_19640' | '13_social_monotaxpayer' | '15_vat_not_applicable' | '16_promoted_independent_monotaxpayer';
21
21
  export type ArcaVoucherInfo = {
22
22
  pointOfSale: number;
23
23
  voucherTypeId: number;
@@ -50,10 +50,10 @@ export type ArcaCreateInvoiceCOptions = {
50
50
  receiver: {
51
51
  documentType: ArcaDocumentType;
52
52
  documentNumber?: number;
53
- vatCondition?: ArcaVatConditionReceiver;
54
- name?: string;
55
- address?: string;
56
- email?: string;
53
+ vatCondition?: ArcaVatCondition | null;
54
+ name?: string | null;
55
+ address?: string | null;
56
+ email?: string | null;
57
57
  };
58
58
  concept: ArcaConcept;
59
59
  items: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.133",
4
+ "version": "3.3.134",
5
5
  "files": [
6
6
  "dist"
7
7
  ],