-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsales_draftinvoice_v3.go
141 lines (133 loc) · 7.09 KB
/
sales_draftinvoice_v3.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
package debitoor
type SalesDraftinvoiceV3DraftInvoice struct {
AdditionalNotes string `json:"additionalNotes,omitempty"`
BaseCurrency string `json:"baseCurrency,omitempty"`
BaseCurrencyTotalGrossAmount float64 `json:"baseCurrencyTotalGrossAmount,omitempty"`
BaseCurrencyTotalNetAmount float64 `json:"baseCurrencyTotalNetAmount,omitempty"`
BaseCurrencyTotalNetDeductionAmount float64 `json:"baseCurrencyTotalNetDeductionAmount,omitempty"`
BaseCurrencyTotalPensionFundAmount float64 `json:"baseCurrencyTotalPensionFundAmount,omitempty"`
BaseCurrencyTotalRecargoTaxAmount float64 `json:"baseCurrencyTotalRecargoTaxAmount,omitempty"`
BaseCurrencyTotalTaxAmount float64 `json:"baseCurrencyTotalTaxAmount,omitempty"`
CreatedDate string `json:"createdDate,omitempty"`
CreditedInvoiceId string `json:"creditedInvoiceId,omitempty"`
Currency string `json:"currency,omitempty"`
CurrencyRate float64 `json:"currencyRate,omitempty"`
CustomPaymentTermsDays int `json:"customPaymentTermsDays,omitempty"`
CustomerAddress string `json:"customerAddress,omitempty"`
CustomerCiNumber string `json:"customerCiNumber,omitempty"`
CustomerCountry string `json:"customerCountry,omitempty"`
CustomerCountryName string `json:"customerCountryName,omitempty"`
CustomerEmail string `json:"customerEmail,omitempty"`
CustomerId string `json:"customerId,omitempty"`
CustomerName string `json:"customerName,omitempty"`
CustomerNumber int `json:"customerNumber,omitempty"`
CustomerVatNumber string `json:"customerVatNumber,omitempty"`
Date string `json:"date,omitempty"`
DeletedDate string `json:"deletedDate,omitempty"`
DiscountRate float64 `json:"discountRate,omitempty"`
DisplayAsPaid bool `json:"displayAsPaid,omitempty"`
DueDate string `json:"dueDate,omitempty"`
History *SalesDraftinvoiceV3History `json:"history,omitempty"`
Id string `json:"id,omitempty"`
IncomeTaxDeductionGroups []SalesDraftinvoiceV3IncomeTaxDeductionGroups `json:"incomeTaxDeductionGroups,omitempty"`
InvoiceTitle string `json:"invoiceTitle,omitempty"`
InvoicedDeliveryNoteId string `json:"invoicedDeliveryNoteId,omitempty"`
InvoicedQuoteId string `json:"invoicedQuoteId,omitempty"`
LanguageCode string `json:"languageCode,omitempty"`
LastModifiedDate string `json:"lastModifiedDate,omitempty"`
Lines []SalesDraftinvoiceV3Lines `json:"lines,omitempty"`
Links []SalesDraftinvoiceV3Links `json:"links,omitempty"`
Notes string `json:"notes,omitempty"`
Number string `json:"number,omitempty"`
OnlinePaymentProvider string `json:"onlinePaymentProvider,omitempty"`
PaymentTermsId int `json:"paymentTermsId,omitempty"`
PensionFundRate float64 `json:"pensionFundRate,omitempty"`
PensionFundType string `json:"pensionFundType,omitempty"`
PriceDisplayType string `json:"priceDisplayType,omitempty"`
RecargoTaxEnabled bool `json:"recargoTaxEnabled,omitempty"`
RecargoTaxGroups []SalesDraftinvoiceV3RecargoTaxGroups `json:"recargoTaxGroups,omitempty"`
SendDetails []SalesDraftinvoiceV3SendDetails `json:"sendDetails,omitempty"`
Sent bool `json:"sent,omitempty"`
TaxGroups []SalesDraftinvoiceV3TaxGroups `json:"taxGroups,omitempty"`
TotalGrossAmount float64 `json:"totalGrossAmount,omitempty"`
TotalNetAmount float64 `json:"totalNetAmount,omitempty"`
TotalNetAmountBeforeDiscount float64 `json:"totalNetAmountBeforeDiscount,omitempty"`
TotalNetDeductionAmount float64 `json:"totalNetDeductionAmount,omitempty"`
TotalNetDiscountAmount float64 `json:"totalNetDiscountAmount,omitempty"`
TotalNetLineDiscountAmount float64 `json:"totalNetLineDiscountAmount,omitempty"`
TotalPensionFundAmount float64 `json:"totalPensionFundAmount,omitempty"`
TotalRecargoTaxAmount float64 `json:"totalRecargoTaxAmount,omitempty"`
TotalTaxAmount float64 `json:"totalTaxAmount,omitempty"`
Type string `json:"type,omitempty"`
Viewed bool `json:"viewed,omitempty"`
}
type SalesDraftinvoiceV3History struct {
Booked string `json:"booked,omitempty"`
}
type SalesDraftinvoiceV3IncomeTaxDeductionGroups struct {
BaseCurrencyNetAmount float64 `json:"baseCurrencyNetAmount,omitempty"`
BaseCurrencyTaxAmount float64 `json:"baseCurrencyTaxAmount,omitempty"`
Name string `json:"name,omitempty"`
NetAmount float64 `json:"netAmount,omitempty"`
TaxAmount float64 `json:"taxAmount,omitempty"`
TaxRate float64 `json:"taxRate,omitempty"`
}
type SalesDraftinvoiceV3Lines struct {
BaseCurrencyGrossAmount float64 `json:"baseCurrencyGrossAmount,omitempty"`
BaseCurrencyNetAmount float64 `json:"baseCurrencyNetAmount,omitempty"`
BaseCurrencyPensionFundAmount float64 `json:"baseCurrencyPensionFundAmount,omitempty"`
BaseCurrencyRecargoTaxAmount float64 `json:"baseCurrencyRecargoTaxAmount,omitempty"`
BaseCurrencyTaxAmount float64 `json:"baseCurrencyTaxAmount,omitempty"`
BaseCurrencyUnitGrossPrice float64 `json:"baseCurrencyUnitGrossPrice,omitempty"`
BaseCurrencyUnitNetPrice float64 `json:"baseCurrencyUnitNetPrice,omitempty"`
Description string `json:"description,omitempty"`
GrossAmount float64 `json:"grossAmount,omitempty"`
GrossAmountBeforeDiscount float64 `json:"grossAmountBeforeDiscount,omitempty"`
IncomeTaxDeductionRate float64 `json:"incomeTaxDeductionRate,omitempty"`
LineDiscountRate float64 `json:"lineDiscountRate,omitempty"`
NetAmount float64 `json:"netAmount,omitempty"`
NetAmountBeforeDiscount float64 `json:"netAmountBeforeDiscount,omitempty"`
PensionFundAmount float64 `json:"pensionFundAmount,omitempty"`
ProductId string `json:"productId,omitempty"`
ProductName string `json:"productName,omitempty"`
ProductOrService string `json:"productOrService,omitempty"`
ProductSku string `json:"productSku,omitempty"`
Quantity float64 `json:"quantity,omitempty"`
RecargoTaxAmount float64 `json:"recargoTaxAmount,omitempty"`
RecargoTaxRate float64 `json:"recargoTaxRate,omitempty"`
TaxAmount float64 `json:"taxAmount,omitempty"`
TaxEnabled bool `json:"taxEnabled,omitempty"`
TaxRate float64 `json:"taxRate,omitempty"`
UnitGrossPrice float64 `json:"unitGrossPrice,omitempty"`
UnitId string `json:"unitId,omitempty"`
UnitName string `json:"unitName,omitempty"`
UnitNetPrice float64 `json:"unitNetPrice,omitempty"`
}
type SalesDraftinvoiceV3Links struct {
CreatedDate string `json:"createdDate,omitempty"`
Date string `json:"date,omitempty"`
LinkId string `json:"linkId,omitempty"`
Type string `json:"type,omitempty"`
}
type SalesDraftinvoiceV3RecargoTaxGroups struct {
BaseCurrencyNetAmount float64 `json:"baseCurrencyNetAmount,omitempty"`
BaseCurrencyTaxAmount float64 `json:"baseCurrencyTaxAmount,omitempty"`
Name string `json:"name,omitempty"`
NetAmount float64 `json:"netAmount,omitempty"`
TaxAmount float64 `json:"taxAmount,omitempty"`
TaxRate float64 `json:"taxRate,omitempty"`
}
type SalesDraftinvoiceV3SendDetails struct {
Id string `json:"id,omitempty"`
Time string `json:"time,omitempty"`
To string `json:"to,omitempty"`
Viewed []string `json:"viewed,omitempty"`
}
type SalesDraftinvoiceV3TaxGroups struct {
BaseCurrencyNetAmount float64 `json:"baseCurrencyNetAmount,omitempty"`
BaseCurrencyTaxAmount float64 `json:"baseCurrencyTaxAmount,omitempty"`
Name string `json:"name,omitempty"`
NetAmount float64 `json:"netAmount,omitempty"`
TaxAmount float64 `json:"taxAmount,omitempty"`
TaxRate float64 `json:"taxRate,omitempty"`
}