Skip to content

Commit

Permalink
feat: adds tax_identifier support (#33)
Browse files Browse the repository at this point in the history
* feat: adds tax_identifier support

* fix: pluralize TaxIdentifier
  • Loading branch information
Justintime50 authored Oct 6, 2021
1 parent 261e8ac commit 4a0f5c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions shipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ type Shipment struct {
BatchID string `json:"batch_id,omitempty"`
BatchStatus string `json:"batch_status,omitempty"`
BatchMessage string `json:"batch_message,omitempty"`
TaxIdentifiers []*TaxIdentifier `json:"tax_identifiers,omitempty"`
}

// CreateShipment creates a new Shipment object. The ToAddress, FromAddress and
Expand Down
9 changes: 9 additions & 0 deletions tax_identifier.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package easypost

// TaxIdentifier objects contain tax information used by carriers.
type TaxIdentifier struct {
Entity string `json:"entity,omitempty"`
TaxIdType string `json:"tax_id_type,omitempty"`
TaxId string `json:"tax_id,omitempty"`
IssuingCountry string `json:"issuing_country,omitempty"`
}

0 comments on commit 4a0f5c5

Please sign in to comment.