Skip to content

Commit

Permalink
Change OrderLineItem.ID to type json.Number
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottRudiger committed Mar 9, 2020
1 parent 6553e92 commit 04f3fd0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ShowOrder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ type ShowOrderResponse struct {
//
// OrderLineItem is also the structure for a line item returned within `CreateOrderResponse.Order.LineItems`, `UpdateOrderResponse.Order.LineItems`, `ShowOrderResponse.Order.LineItems`, and `DeleteOrderResponse.Order.LineItems`․
type OrderLineItem struct {
ID string `json:"id,omitempty"`
Quantity int `json:"quantity,omitempty"`
ProductIdentifier string `json:"product_identifier,omitempty"`
Description string `json:"description,omitempty"`
ProductTaxCode string `json:"product_tax_code,omitempty"`
UnitPrice float64 `json:"unit_price,omitempty,string"`
Discount float64 `json:"discount,omitempty,string"`
SalesTax float64 `json:"sales_tax,omitempty,string"`
ID json.Number `json:"id,omitempty"`
Quantity int `json:"quantity,omitempty"`
ProductIdentifier string `json:"product_identifier,omitempty"`
Description string `json:"description,omitempty"`
ProductTaxCode string `json:"product_tax_code,omitempty"`
UnitPrice float64 `json:"unit_price,omitempty,string"`
Discount float64 `json:"discount,omitempty,string"`
SalesTax float64 `json:"sales_tax,omitempty,string"`
}

// ShowOrder shows an existing order in TaxJar․
Expand Down

1 comment on commit 04f3fd0

@andrewbohm
Copy link

@andrewbohm andrewbohm commented on 04f3fd0 Oct 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed to json.Number? The api documentation states ID should be a string

Please sign in to comment.