Skip to content

Instantly share code, notes, and snippets.

@yshuman1
Created February 22, 2019 23:06
Show Gist options
  • Save yshuman1/b15bc47fdd4c3f0da9566df3f6999bb8 to your computer and use it in GitHub Desktop.
Save yshuman1/b15bc47fdd4c3f0da9566df3f6999bb8 to your computer and use it in GitHub Desktop.
type AutoGenerated struct {
Objects []struct {
Type string `json:"type"`
ID string `json:"id"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
IsDeleted bool `json:"is_deleted"`
PresentAtAllLocations bool `json:"present_at_all_locations"`
PresentAtLocationIds []string `json:"present_at_location_ids,omitempty"`
AbsentAtLocationIds []string `json:"absent_at_location_ids,omitempty"`
ItemData struct {
Name string `json:"name"`
Description string `json:"description"`
Visibility string `json:"visibility"`
CategoryID string `json:"category_id"`
ModifierListInfo []struct {
ModifierListID string `json:"modifier_list_id"`
Visibility string `json:"visibility"`
MinSelectedModifiers int `json:"min_selected_modifiers"`
MaxSelectedModifiers int `json:"max_selected_modifiers"`
Enabled bool `json:"enabled"`
} `json:"modifier_list_info"`
ImageURL string `json:"image_url"`
Variations []struct {
Type string `json:"type"`
ID string `json:"id"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
IsDeleted bool `json:"is_deleted"`
PresentAtAllLocations bool `json:"present_at_all_locations"`
PresentAtLocationIds []string `json:"present_at_location_ids"`
AbsentAtLocationIds []string `json:"absent_at_location_ids"`
ItemVariationData struct {
ItemID string `json:"item_id"`
Name string `json:"name"`
Sku string `json:"sku"`
Ordinal int `json:"ordinal"`
PricingType string `json:"pricing_type"`
PriceMoney struct {
Amount int `json:"amount"`
Currency string `json:"currency"`
} `json:"price_money"`
} `json:"item_variation_data"`
} `json:"variations"`
ProductType string `json:"product_type"`
SkipModifierScreen bool `json:"skip_modifier_screen"`
} `json:"item_data,omitempty"`
ModifierListData struct {
Name string `json:"name"`
SelectionType string `json:"selection_type"`
Modifiers []struct {
Type string `json:"type"`
ID string `json:"id"`
Version int64 `json:"version"`
ModifierData struct {
Name string `json:"name"`
OnByDefault bool `json:"on_by_default"`
Ordinal int `json:"ordinal"`
} `json:"modifier_data"`
} `json:"modifiers"`
} `json:"modifier_list_data,omitempty"`
CategoryData struct {
Name string `json:"name"`
} `json:"category_data,omitempty"`
} `json:"objects"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment