stackin-python-sdk 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.
stackin/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Invoice __init__ module."""
2
2
 
3
- __version__ = "0.3.0"
3
+ __version__ = "0.4.0"
4
4
  __description__ = (
5
5
  "Python SDK for issuing, consulting and cancelling electronic invoices."
6
6
  )
@@ -8,12 +8,13 @@ __description__ = (
8
8
  from .core.address import Address
9
9
  from .core.client import Invoice
10
10
  from .core.exceptions import APIError, ConnectionFailedError, InvoiceError
11
- from .core.types import DocumentType, Environment
11
+ from .core.types import DocumentType, Environment, Manifestation
12
12
 
13
13
  __all__ = [
14
14
  "Invoice",
15
15
  "DocumentType",
16
16
  "Environment",
17
+ "Manifestation",
17
18
  "Address",
18
19
  "InvoiceError",
19
20
  "APIError",
stackin/br/__init__.py CHANGED
@@ -5,12 +5,29 @@ from stackin.br.tax import (
5
5
  CofinsAliq,
6
6
  CofinsNt,
7
7
  CofinsOutr,
8
+ CofinsQtde,
9
+ CofinsSt,
8
10
  Icms00,
11
+ Icms02,
12
+ Icms10,
13
+ Icms15,
14
+ Icms20,
15
+ Icms30,
9
16
  Icms40,
17
+ Icms51,
18
+ Icms53,
10
19
  Icms60,
20
+ Icms61,
21
+ Icms70,
22
+ Icms90,
23
+ IcmsPart,
11
24
  IcmsSn101,
12
25
  IcmsSn102,
26
+ IcmsSn201,
27
+ IcmsSn202,
28
+ IcmsSn500,
13
29
  IcmsSn900,
30
+ IcmsSt,
14
31
  IcmsUfDest,
15
32
  Ipi,
16
33
  IpiNt,
@@ -18,6 +35,8 @@ from stackin.br.tax import (
18
35
  PisAliq,
19
36
  PisNt,
20
37
  PisOutr,
38
+ PisQtde,
39
+ PisSt,
21
40
  Tax,
22
41
  )
23
42
 
@@ -26,19 +45,38 @@ __all__ = [
26
45
  "PresumedCredit",
27
46
  "Tax",
28
47
  "Icms00",
48
+ "Icms02",
49
+ "Icms10",
50
+ "Icms15",
51
+ "Icms20",
52
+ "Icms30",
29
53
  "Icms40",
54
+ "Icms51",
55
+ "Icms53",
30
56
  "Icms60",
57
+ "Icms61",
58
+ "Icms70",
59
+ "Icms90",
60
+ "IcmsPart",
61
+ "IcmsSt",
31
62
  "IcmsSn101",
32
63
  "IcmsSn102",
64
+ "IcmsSn201",
65
+ "IcmsSn202",
66
+ "IcmsSn500",
33
67
  "IcmsSn900",
34
68
  "IcmsUfDest",
35
69
  "Ipi",
36
70
  "IpiTrib",
37
71
  "IpiNt",
38
72
  "PisAliq",
73
+ "PisQtde",
39
74
  "PisNt",
40
75
  "PisOutr",
76
+ "PisSt",
41
77
  "CofinsAliq",
78
+ "CofinsQtde",
42
79
  "CofinsNt",
43
80
  "CofinsOutr",
81
+ "CofinsSt",
44
82
  ]
stackin/br/product.py CHANGED
@@ -67,7 +67,10 @@ class Product(BaseModel):
67
67
  ex_tipi: str | None = Field(default=None, pattern=r"^\d{2,3}$")
68
68
  import_content_control_number: str | None = Field(
69
69
  default=None,
70
- pattern=r"^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}$",
70
+ pattern=(
71
+ r"^[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}"
72
+ r"-[A-F0-9]{4}-[A-F0-9]{12}$"
73
+ ),
71
74
  )
72
75
  recopi_number: str | None = Field(default=None, pattern=r"^\d{20}$")
73
76
  extra_groups: dict[str, Any] | None = Field(default=None)