Skip to content

Commit

Permalink
feat: handle new net-payment attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Aug 8, 2023
1 parent 8bb5679 commit ceb005d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type CustomerInput struct {
Country string `json:"country,omitempty"`
LegalName string `json:"legal_name,omitempty"`
LegalNumber string `json:"legal_number,omitempty"`
NetPaymentTerm int `json:"net_payment_term,omitempty"`
TaxIdentificationNumber string `json:"tax_identification_number,omitempty"`
Phone string `json:"phone,omitempty"`
URL string `json:"url,omitempty"`
Expand Down Expand Up @@ -138,6 +139,7 @@ type Customer struct {
Country string `json:"country,omitempty"`
LegalName string `json:"legal_name,omitempty"`
LegalNumber string `json:"legal_number,omitempty"`
NetPaymentTerm int `json:"net_payment_term,omitempty"`
TaxIdentificationNumber string `json:"tax_identification_number,omitempty"`
LogoURL string `json:"logo_url,omitempty"`
Phone string `json:"phone,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ type Invoice struct {
SequentialID int `json:"sequential_id,omitempty"`
Number string `json:"number,omitempty"`

IssuingDate string `json:"issuing_date,omitempty"`
IssuingDate string `json:"issuing_date,omitempty"`
PaymentDueDate string `json:"payment_due_date,omitempty"`

InvoiceType InvoiceType `json:"invoice_type,omitempty"`
Status InvoiceStatus `json:"status,omitempty"`
Expand All @@ -155,6 +156,7 @@ type Invoice struct {
SubTotalIncludingTaxesAmountCents int `json:"sub_total_including_taxes_amount_cents,omitempty"`
TotalAmountCents int `json:"total_amount_cents,omitempty"`
PrepaidCreditAmountCents int `json:"prepaid_credit_amount_cents,omitempty"`
NetPaymentTerm int `json:"net_payment_term,omitempty"`

FileURL string `json:"file_url,omitempty"`
Metadata []InvoiceMetadataResponse `json:"metadata,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type OrganizationInput struct {
Country string `json:"country,omitempty"`
LegalName string `json:"legal_name,omitempty"`
LegalNumber string `json:"legal_number,omitempty"`
NetPaymentTerm int `json:"net_payment_term,omitempty"`
TaxIdentificationNumber string `json:"tax_identification_number,omitempty"`
WebhookURL string `json:"webhook_url,omitempty"`
Timezone string `json:"timezone,omitempty"`
Expand All @@ -61,6 +62,7 @@ type Organization struct {
Country string `json:"country,omitempty"`
LegalName string `json:"legal_name,omitempty"`
LegalNumber string `json:"legal_number,omitempty"`
NetPaymentTerm int `json:"net_payment_term,omitempty"`
TaxIdentificationNumber string `json:"tax_identification_number,omitempty"`
WebhookURL string `json:"webhook_url,omitempty"`
WebhookURLs []string `json:"webhook_urls,omitempty"`
Expand Down

0 comments on commit ceb005d

Please sign in to comment.