fixed fetching of optional fields
This commit is contained in:
parent
4570ed20cd
commit
3f359d0c57
@ -1,41 +1,41 @@
|
|||||||
package backend
|
package backend
|
||||||
|
|
||||||
type ActiveIngredient struct {
|
type ActiveIngredient struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Ester *string `json:"ester,omitempty"`
|
Ester string `json:"ester,omitempty"`
|
||||||
DisplayName *string `json:"display_name,omitempty"`
|
DisplayName string `json:"display_name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Product struct {
|
type Product struct {
|
||||||
Id *int `json:"id,omitempty"`
|
Id int `json:"id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Image *string `json:"image,omitempty"`
|
Image string `json:"image,omitempty"`
|
||||||
ActiveIngredient ActiveIngredient `json:"active_ingredient"`
|
ActiveIngredient ActiveIngredient `json:"active_ingredient"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Store struct {
|
type Store struct {
|
||||||
Id *int `json:"id,omitempty"`
|
Id int `json:"id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
ShipsFromCountry *string `json:"ships_from_country,omitempty"`
|
ShipsFromCountry string `json:"ships_from_country,omitempty"`
|
||||||
ShipsToCountry *string `json:"ships_to_country,omitempty"`
|
ShipsToCountry string `json:"ships_to_country,omitempty"`
|
||||||
ServiceStatus string `json:"service_status"`
|
ServiceStatus string `json:"service_status"`
|
||||||
ServiceStatusNotes *string `json:"service_status_notes,omitempty"`
|
ServiceStatusNotes string `json:"service_status_notes,omitempty"`
|
||||||
PaymentMethods []string `json:"payment_methods,omitempty"`
|
PaymentMethods []string `json:"payment_methods,omitempty"`
|
||||||
CategoryName *string `json:"category_name,omitempty"`
|
CategoryName string `json:"category_name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Listing struct {
|
type Listing struct {
|
||||||
Id *int `json:"id,omitempty"`
|
Id int `json:"id,omitempty"`
|
||||||
ProductName *string `json:"product_name,omitempty"`
|
ProductName string `json:"product_name,omitempty"`
|
||||||
StoreName string `json:"store_name"`
|
StoreName string `json:"store_name"`
|
||||||
Price *string `json:"price,omitempty"`
|
Price string `json:"price,omitempty"`
|
||||||
PriceCurrency *string `json:"price_currency,omitempty"`
|
PriceCurrency string `json:"price_currency,omitempty"`
|
||||||
State *string `json:"state,omitempty"`
|
State string `json:"state,omitempty"`
|
||||||
InStock bool `json:"in_stock"`
|
InStock bool `json:"in_stock"`
|
||||||
Url *string `json:"url,omitempty"`
|
Url string `json:"url,omitempty"`
|
||||||
PricingPerUnit *string `json:"pricing_per_unit,omitempty"`
|
PricingPerUnit string `json:"pricing_per_unit,omitempty"`
|
||||||
Product Product `json:"product"`
|
Product Product `json:"product"`
|
||||||
Store Store `json:"store"`
|
Store Store `json:"store"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user