Skip to content

Commit

Permalink
Merge pull request #2 from togglhire/adjustment-item-code
Browse files Browse the repository at this point in the history
added item_code to adjustment
  • Loading branch information
kmikiy authored Oct 15, 2021
2 parents 0c3af72 + df7b285 commit 00f6375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adjustments.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ type Adjustment struct {
TaxRate float64 `xml:"tax_rate,omitempty"`
TaxExempt NullBool `xml:"tax_exempt,omitempty"`
TaxDetails []TaxDetail `xml:"tax_details>tax_detail,omitempty"`
ItemCode string `xml:"item_code,omitempty"`

// The following are only valid with an `Avalara for Communications` integration
AvalaraTransactionType int `xml:"avalara_transaction_type,omitempty"`
Expand Down Expand Up @@ -117,6 +118,7 @@ func (a Adjustment) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
AvalaraServiceType int `xml:"avalara_service_type,omitempty"`
StartDate NullTime `xml:"start_date,omitempty"`
EndDate NullTime `xml:"end_date,omitempty"`
ItemCode string `xml:"item_code,omitempty"`
}{
Description: a.Description,
AccountingCode: a.AccountingCode,
Expand All @@ -132,6 +134,7 @@ func (a Adjustment) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
AvalaraTransactionType: a.AvalaraTransactionType,
StartDate: a.StartDate,
EndDate: a.EndDate,
ItemCode: a.ItemCode,
})
}

Expand Down

0 comments on commit 00f6375

Please sign in to comment.