Created
This commit is contained in:
23
entity/shipping.go
Normal file
23
entity/shipping.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package entity
|
||||
|
||||
type Shipping struct {
|
||||
FirstName string `json:"first_name,omitempty"`
|
||||
LastName string `json:"last_name,omitempty"`
|
||||
Company string `json:"company,omitempty"`
|
||||
Address1 string `json:"address_1,omitempty"`
|
||||
Address2 string `json:"address_2,omitempty"`
|
||||
City string `json:"city,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Postcode string `json:"postcode,omitempty"`
|
||||
Country string `json:"country,omitempty"`
|
||||
}
|
||||
|
||||
type ShippingLine struct {
|
||||
ID int `json:"id"`
|
||||
MethodTitle string `json:"method_title"`
|
||||
MethodId string `json:"method_id"`
|
||||
Total float64 `json:"total"`
|
||||
TotalTax float64 `json:"total_tax"`
|
||||
Taxes []Tax `json:"taxes"`
|
||||
MetaData []Meta `json:"meta_data"`
|
||||
}
|
||||
Reference in New Issue
Block a user