forked from seriallink/nfeio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.go
58 lines (54 loc) · 2.89 KB
/
person.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package nfeio
import (
"encoding/json"
"time"
)
type Provider struct {
Id string `json:"id,omitempty"`
ParentId string `json:"parentId,omitempty"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
TradeName string `json:"tradeName,omitempty"`
TaxRegime interface{} `json:"taxRegime,omitempty"`
SpecialTaxRegime interface{} `json:"specialTaxRegime,omitempty"`
LegalNature interface{} `json:"legalNature,omitempty"`
CompanyRegistryNumber json.Number `json:"companyRegistryNumber,omitempty"`
RegionalTaxNumber json.Number `json:"regionalTaxNumber,omitempty"`
MunicipalTaxNumber json.Number `json:"municipalTaxNumber,omitempty"`
FederalTaxNumber json.Number `json:"federalTaxNumber,omitempty"`
IssRate json.Number `json:"issRate,omitempty"`
Status string `json:"status,omitempty"`
Type string `json:"type,omitempty"`
Address *Address `json:"address,omitempty"`
EconomicActivities []EconomicActivity `json:"economicActivities,omitempty"`
OpenningDate *time.Time `json:"openningDate,omitempty"`
CreatedOn *time.Time `json:"createdOn,omitempty"`
ModifiedOn *time.Time `json:"modifiedOn,omitempty"`
}
type Borrower struct {
Id string `json:"id,omitempty"`
ParentId string `json:"parentId,omitempty"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
FederalTaxNumber json.Number `json:"federalTaxNumber,omitempty"`
MunicipalTaxNumber json.Number `json:"municipalTaxNumber,omitempty"`
Status string `json:"status,omitempty"`
Type string `json:"type,omitempty"`
Address *Address `json:"address,omitempty"`
CreatedOn *time.Time `json:"createdOn,omitempty"`
ModifiedOn *time.Time `json:"modifiedOn,omitempty"`
}
type Buyer struct {
Id string `json:"id,omitempty"`
ParentId string `json:"parentId,omitempty"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
FederalTaxNumber json.Number `json:"federalTaxNumber,omitempty"`
StateTaxNumber json.Number `json:"stateTaxNumber,omitempty"`
MunicipalTaxNumber json.Number `json:"municipalTaxNumber,omitempty"`
Status string `json:"status,omitempty"`
Type string `json:"type,omitempty"`
Address *Address `json:"address,omitempty"`
CreatedOn *time.Time `json:"createdOn,omitempty"`
ModifiedOn *time.Time `json:"modifiedOn,omitempty"`
}