24 lines
749 B
Go
24 lines
749 B
Go
|
|
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"`
|
||
|
|
}
|