mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Changes omitempty tagging on Product struct to match Paypal API requirements (#183)
This commit is contained in:
parent
d1e5575c35
commit
abd51d2823
|
@ -9,12 +9,12 @@ type (
|
||||||
// Product struct
|
// Product struct
|
||||||
Product struct {
|
Product struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description",omitempty`
|
||||||
Category ProductCategory `json:"category,omitempty"`
|
Category ProductCategory `json:"category,omitempty"`
|
||||||
Type ProductType `json:"type"`
|
Type ProductType `json:"type"`
|
||||||
ImageUrl string `json:"image_url"`
|
ImageUrl string `json:"image_url,omitempty"`
|
||||||
HomeUrl string `json:"home_url"`
|
HomeUrl string `json:"home_url,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateProductResponse struct {
|
CreateProductResponse struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user