Changes omitempty tagging on Product struct to match Paypal API requirements (#183)

This commit is contained in:
Jason Hord 2020-11-17 02:58:07 -07:00 committed by GitHub
parent d1e5575c35
commit abd51d2823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {