@seidor-cloud-produtos/tax-core 1.0.34 → 1.0.36

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/dist/index.d.mts CHANGED
@@ -403,34 +403,34 @@ declare enum NameCountryEnum {
403
403
  }
404
404
  declare enum CountryCodeEnum {
405
405
  NOT_APPLICABLE = "",
406
- AFGHANISTAN = "132",
407
- ALBANIA = "175",
408
- GERMANY = "230",
409
- BURKINA_FASO = "310",
410
- ANDORRA = "370",
411
- ANGOLA = "400",
412
- ANGUILLA = "418",
413
- ANTIGUA_AND_BARBUDA = "434",
414
- NETHERLANDS_ANTILLES = "477",
415
- SAUDI_ARABIA = "531",
416
- ALGERIA = "590",
417
- ARGENTINA = "639",
418
- ARMENIA = "647",
419
- ARUBA = "655",
420
- AUSTRALIA = "698",
421
- AUSTRIA = "728",
422
- AZERBAIJAN = "736",
423
- BAHAMAS = "779",
424
- BAHRAIN = "809",
425
- BANGLADESH = "817",
426
- BARBADOS = "833",
427
- BELARUS = "850",
428
- BELGIUM = "876",
429
- BELIZE = "884",
430
- BERMUDA = "906",
431
- MYANMAR = "930",
432
- BOLIVIA = "973",
433
- BOSNIA_HERZEGOVINA = "981",
406
+ AFGHANISTAN = "0132",
407
+ ALBANIA = "0175",
408
+ GERMANY = "0230",
409
+ BURKINA_FASO = "0310",
410
+ ANDORRA = "0370",
411
+ ANGOLA = "0400",
412
+ ANGUILLA = "0418",
413
+ ANTIGUA_AND_BARBUDA = "0434",
414
+ NETHERLANDS_ANTILLES = "0477",
415
+ SAUDI_ARABIA = "0531",
416
+ ALGERIA = "0590",
417
+ ARGENTINA = "0639",
418
+ ARMENIA = "0647",
419
+ ARUBA = "0655",
420
+ AUSTRALIA = "0698",
421
+ AUSTRIA = "0728",
422
+ AZERBAIJAN = "0736",
423
+ BAHAMAS = "0779",
424
+ BAHRAIN = "0809",
425
+ BANGLADESH = "0817",
426
+ BARBADOS = "0833",
427
+ BELARUS = "0850",
428
+ BELGIUM = "0876",
429
+ BELIZE = "0884",
430
+ BERMUDA = "0906",
431
+ MYANMAR = "0930",
432
+ BOLIVIA = "0973",
433
+ BOSNIA_HERZEGOVINA = "0981",
434
434
  BOTSWANA = "1015",
435
435
  BRAZIL = "1058",
436
436
  BRUNEI = "1082",
@@ -648,12 +648,13 @@ declare enum CountryCodeEnum {
648
648
  MAYOTTE = "4885",
649
649
  PALESTINE = "5780",
650
650
  CURACAO = "2003",
651
- SAINT_MARTIN_DUTCH_PART = "699",
651
+ SAINT_MARTIN_DUTCH_PART = "0699",
652
652
  SAINT_MARTIN_FRENCH_PART = "6980",
653
653
  ESWATINI = "7544",
654
654
  BONAIRE = "0990"
655
655
  }
656
656
  declare namespace CountryCodeEnum {
657
+ function normalize(value: string): string;
657
658
  function fromOldValue(value: string): CountryCodeEnum | undefined;
658
659
  function fromNewValue(code: CountryCodeEnum): string | undefined;
659
660
  function getCountryByCode(code: CountryCodeEnum): NameCountryEnum | undefined;
@@ -1913,6 +1914,7 @@ declare class Document implements Cloneable {
1913
1914
  private _payment_value;
1914
1915
  private _issuer_indicator;
1915
1916
  private _rps_number;
1917
+ private _business_partner_id;
1916
1918
  private _issuer;
1917
1919
  private _recipient;
1918
1920
  private _items;
@@ -1983,6 +1985,8 @@ declare class Document implements Cloneable {
1983
1985
  set issuer_indicator(value: IssuerIndicatorEnum);
1984
1986
  get rps_number(): string;
1985
1987
  set rps_number(value: string);
1988
+ get business_partner_id(): string;
1989
+ set business_partner_id(value: string);
1986
1990
  private get isInboundOwnIssuance();
1987
1991
  get issuer(): Person;
1988
1992
  get issuerOrigin(): Person;
@@ -2030,6 +2034,7 @@ declare class Document implements Cloneable {
2030
2034
  };
2031
2035
  isInbound(): boolean;
2032
2036
  isOutbound(): boolean;
2037
+ getBusinessPartner(): Person;
2033
2038
  isCancelled(): boolean;
2034
2039
  }
2035
2040
 
@@ -2091,6 +2096,7 @@ declare class BuilderDocument {
2091
2096
  withTotalAmount(total_amount: number): BuilderDocument;
2092
2097
  withPaymentValue(payment_value: number): BuilderDocument;
2093
2098
  withRpsNumber(rps_number: string): BuilderDocument;
2099
+ withBusinessPartnerId(business_partner_id: string): BuilderDocument;
2094
2100
  withFiscalSituation(fiscal_situation: CodeStatusEnum): BuilderDocument;
2095
2101
  withErpIntegrationStatus(erp_integration_status: StatusDocumentEnum): BuilderDocument;
2096
2102
  withManualEntry(manual_entry: boolean): BuilderDocument;
@@ -2356,6 +2362,7 @@ interface IDocumentMongo {
2356
2362
  model: string;
2357
2363
  number: string;
2358
2364
  accounting_additional_information: string;
2365
+ business_partner_id?: string;
2359
2366
  series: string;
2360
2367
  subseries: string;
2361
2368
  cte_type: CteTypeEnum;
package/dist/index.d.ts CHANGED
@@ -403,34 +403,34 @@ declare enum NameCountryEnum {
403
403
  }
404
404
  declare enum CountryCodeEnum {
405
405
  NOT_APPLICABLE = "",
406
- AFGHANISTAN = "132",
407
- ALBANIA = "175",
408
- GERMANY = "230",
409
- BURKINA_FASO = "310",
410
- ANDORRA = "370",
411
- ANGOLA = "400",
412
- ANGUILLA = "418",
413
- ANTIGUA_AND_BARBUDA = "434",
414
- NETHERLANDS_ANTILLES = "477",
415
- SAUDI_ARABIA = "531",
416
- ALGERIA = "590",
417
- ARGENTINA = "639",
418
- ARMENIA = "647",
419
- ARUBA = "655",
420
- AUSTRALIA = "698",
421
- AUSTRIA = "728",
422
- AZERBAIJAN = "736",
423
- BAHAMAS = "779",
424
- BAHRAIN = "809",
425
- BANGLADESH = "817",
426
- BARBADOS = "833",
427
- BELARUS = "850",
428
- BELGIUM = "876",
429
- BELIZE = "884",
430
- BERMUDA = "906",
431
- MYANMAR = "930",
432
- BOLIVIA = "973",
433
- BOSNIA_HERZEGOVINA = "981",
406
+ AFGHANISTAN = "0132",
407
+ ALBANIA = "0175",
408
+ GERMANY = "0230",
409
+ BURKINA_FASO = "0310",
410
+ ANDORRA = "0370",
411
+ ANGOLA = "0400",
412
+ ANGUILLA = "0418",
413
+ ANTIGUA_AND_BARBUDA = "0434",
414
+ NETHERLANDS_ANTILLES = "0477",
415
+ SAUDI_ARABIA = "0531",
416
+ ALGERIA = "0590",
417
+ ARGENTINA = "0639",
418
+ ARMENIA = "0647",
419
+ ARUBA = "0655",
420
+ AUSTRALIA = "0698",
421
+ AUSTRIA = "0728",
422
+ AZERBAIJAN = "0736",
423
+ BAHAMAS = "0779",
424
+ BAHRAIN = "0809",
425
+ BANGLADESH = "0817",
426
+ BARBADOS = "0833",
427
+ BELARUS = "0850",
428
+ BELGIUM = "0876",
429
+ BELIZE = "0884",
430
+ BERMUDA = "0906",
431
+ MYANMAR = "0930",
432
+ BOLIVIA = "0973",
433
+ BOSNIA_HERZEGOVINA = "0981",
434
434
  BOTSWANA = "1015",
435
435
  BRAZIL = "1058",
436
436
  BRUNEI = "1082",
@@ -648,12 +648,13 @@ declare enum CountryCodeEnum {
648
648
  MAYOTTE = "4885",
649
649
  PALESTINE = "5780",
650
650
  CURACAO = "2003",
651
- SAINT_MARTIN_DUTCH_PART = "699",
651
+ SAINT_MARTIN_DUTCH_PART = "0699",
652
652
  SAINT_MARTIN_FRENCH_PART = "6980",
653
653
  ESWATINI = "7544",
654
654
  BONAIRE = "0990"
655
655
  }
656
656
  declare namespace CountryCodeEnum {
657
+ function normalize(value: string): string;
657
658
  function fromOldValue(value: string): CountryCodeEnum | undefined;
658
659
  function fromNewValue(code: CountryCodeEnum): string | undefined;
659
660
  function getCountryByCode(code: CountryCodeEnum): NameCountryEnum | undefined;
@@ -1913,6 +1914,7 @@ declare class Document implements Cloneable {
1913
1914
  private _payment_value;
1914
1915
  private _issuer_indicator;
1915
1916
  private _rps_number;
1917
+ private _business_partner_id;
1916
1918
  private _issuer;
1917
1919
  private _recipient;
1918
1920
  private _items;
@@ -1983,6 +1985,8 @@ declare class Document implements Cloneable {
1983
1985
  set issuer_indicator(value: IssuerIndicatorEnum);
1984
1986
  get rps_number(): string;
1985
1987
  set rps_number(value: string);
1988
+ get business_partner_id(): string;
1989
+ set business_partner_id(value: string);
1986
1990
  private get isInboundOwnIssuance();
1987
1991
  get issuer(): Person;
1988
1992
  get issuerOrigin(): Person;
@@ -2030,6 +2034,7 @@ declare class Document implements Cloneable {
2030
2034
  };
2031
2035
  isInbound(): boolean;
2032
2036
  isOutbound(): boolean;
2037
+ getBusinessPartner(): Person;
2033
2038
  isCancelled(): boolean;
2034
2039
  }
2035
2040
 
@@ -2091,6 +2096,7 @@ declare class BuilderDocument {
2091
2096
  withTotalAmount(total_amount: number): BuilderDocument;
2092
2097
  withPaymentValue(payment_value: number): BuilderDocument;
2093
2098
  withRpsNumber(rps_number: string): BuilderDocument;
2099
+ withBusinessPartnerId(business_partner_id: string): BuilderDocument;
2094
2100
  withFiscalSituation(fiscal_situation: CodeStatusEnum): BuilderDocument;
2095
2101
  withErpIntegrationStatus(erp_integration_status: StatusDocumentEnum): BuilderDocument;
2096
2102
  withManualEntry(manual_entry: boolean): BuilderDocument;
@@ -2356,6 +2362,7 @@ interface IDocumentMongo {
2356
2362
  model: string;
2357
2363
  number: string;
2358
2364
  accounting_additional_information: string;
2365
+ business_partner_id?: string;
2359
2366
  series: string;
2360
2367
  subseries: string;
2361
2368
  cte_type: CteTypeEnum;