-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbilling-counterparty.go
71 lines (61 loc) · 3.59 KB
/
billing-counterparty.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
59
60
61
62
63
64
65
66
67
68
69
70
71
package tdproto
import "time"
type Counterparty struct {
Id string `json:"id"`
PersonalAccountId string `json:"personal_account_id"`
ElectronicDocumentManagementId string `json:"electronic_document_management_id,omitempty"`
FullName string `json:"full_name"`
TaxpayerIdentificationNumber string `json:"taxpayer_identification_number"`
LegalAddress string `json:"legal_address"`
PhysicalAddress string `json:"physical_address"`
AccountingDictionaryCode string `json:"accounting_dictionary_code,omitempty"`
ClassifierOfIndustrialEnterprises string `json:"classifier_of_industrial_enterprises,omitempty"`
CreatedAt time.Time `json:"created_at"`
CounterpartyType CounterpartyType `json:"counterparty_type"`
}
type CounterpartyCreateRequest struct {
PersonalAccountId string `json:"personal_account_id"`
ElectronicDocumentManagementId string `json:"electronic_document_management_id,omitempty"`
FullName string `json:"full_name"`
TaxpayerIdentificationNumber string `json:"taxpayer_identification_number"`
LegalAddress string `json:"legal_address"`
PhysicalAddress string `json:"physical_address"`
AccountingDictionaryCode string `json:"accounting_dictionary_code,omitempty"`
ClassifierOfIndustrialEnterprises string `json:"classifier_of_industrial_enterprises,omitempty"`
CounterpartyType CounterpartyType `json:"counterparty_type"`
}
type CounterpartyCreateResponse struct {
Counterparty
}
type CounterpartyUpdateRequest struct {
PersonalAccountId string `json:"personal_account_id"`
ElectronicDocumentManagementId string `json:"electronic_document_management_id,omitempty"`
FullName string `json:"full_name"`
TaxpayerIdentificationNumber string `json:"taxpayer_identification_number"`
LegalAddress string `json:"legal_address"`
PhysicalAddress string `json:"physical_address"`
AccountingDictionaryCode string `json:"accounting_dictionary_code,omitempty"`
ClassifierOfIndustrialEnterprises string `json:"classifier_of_industrial_enterprises,omitempty"`
CounterpartyType CounterpartyType `json:"counterparty_type"`
}
type CounterpartyUpdateResponse struct {
Counterparty
}
type CounterpartyGetRequest struct {
CounterpartyIds string `json:"counterparty_ids,omitempty"`
AccountingDictionaryCode string `json:"accounting_dictionary_code,omitempty"`
PersonalAccountId string `json:"personal_account_id,omitempty"`
Limit uint32 `json:"limit,omitempty"`
Offset uint32 `json:"offset,omitempty"`
}
type CounterpartyGetResponse struct {
CounterpartyList []Counterparty `json:"counterparty_list"`
}
type CounterpartyType string
const (
CounterpartyTypeUnspecified CounterpartyType = "COUNTERPARTY_TYPE_UNSPECIFIED"
CounterpartyTypePhysical CounterpartyType = "COUNTERPARTY_TYPE_PHYSICAL"
CounterpartyTypeSelfemployed CounterpartyType = "COUNTERPARTY_TYPE_SELFEMPLOYED"
CounterpartyTypeEntrepreneur CounterpartyType = "COUNTERPARTY_TYPE_ENTREPRENEUR"
CounterpartyTypeJuridical CounterpartyType = "COUNTERPARTY_TYPE_JURIDICAL"
)