Skip to content

Instantly share code, notes, and snippets.

@jeffotoni
Created May 31, 2019 13:14
Show Gist options
  • Save jeffotoni/537c2a489f1962394bb06310d0a68f11 to your computer and use it in GitHub Desktop.
Save jeffotoni/537c2a489f1962394bb06310d0a68f11 to your computer and use it in GitHub Desktop.
type MeliReturn struct {
ID string `json:"id"`
SiteID string `json:"site_id"`
Title string `json:"title"`
Subtitle interface{} `json:"subtitle"`
SellerID int `json:"seller_id"`
CategoryID string `json:"category_id"`
OfficialStoreID interface{} `json:"official_store_id"`
Price int `json:"price"`
BasePrice int `json:"base_price"`
OriginalPrice interface{} `json:"original_price"`
InventoryID interface{} `json:"inventory_id"`
CurrencyID string `json:"currency_id"`
InitialQuantity int `json:"initial_quantity"`
AvailableQuantity int `json:"available_quantity"`
SoldQuantity int `json:"sold_quantity"`
SaleTerms []interface{} `json:"sale_terms"`
BuyingMode string `json:"buying_mode"`
ListingTypeID string `json:"listing_type_id"`
StartTime time.Time `json:"start_time"`
StopTime time.Time `json:"stop_time"`
EndTime time.Time `json:"end_time"`
ExpirationTime time.Time `json:"expiration_time"`
Condition string `json:"condition"`
Permalink string `json:"permalink"`
Pictures []struct {
ID string `json:"id"`
URL string `json:"url"`
SecureURL string `json:"secure_url"`
Size string `json:"size"`
MaxSize string `json:"max_size"`
Quality string `json:"quality"`
} `json:"pictures"`
VideoID interface{} `json:"video_id"`
Descriptions []struct {
ID string `json:"id"`
} `json:"descriptions"`
AcceptsMercadopago bool `json:"accepts_mercadopago"`
NonMercadoPagoPaymentMethods []interface{} `json:"non_mercado_pago_payment_methods"`
Shipping struct {
Mode string `json:"mode"`
LocalPickUp bool `json:"local_pick_up"`
FreeShipping bool `json:"free_shipping"`
FreeMethods []struct {
ID int `json:"id"`
Rule struct {
Default bool `json:"default"`
FreeMode string `json:"free_mode"`
Value interface{} `json:"value"`
FreeShippingFlag bool `json:"free_shipping_flag"`
} `json:"rule"`
} `json:"free_methods"`
Dimensions interface{} `json:"dimensions"`
Tags []string `json:"tags"`
LogisticType string `json:"logistic_type"`
StorePickUp bool `json:"store_pick_up"`
} `json:"shipping"`
InternationalDeliveryMode string `json:"international_delivery_mode"`
SellerAddress struct {
ID int `json:"id"`
Comment string `json:"comment"`
AddressLine string `json:"address_line"`
ZipCode string `json:"zip_code"`
City struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"city"`
State struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"state"`
Country struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"country"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
SearchLocation struct {
Neighborhood struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"neighborhood"`
City struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"city"`
State struct {
ID string `json:"id"`
Name string `json:"name"`
} `json:"state"`
} `json:"search_location"`
} `json:"seller_address"`
SellerContact interface{} `json:"seller_contact"`
Location struct {
} `json:"location"`
Geolocation struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
} `json:"geolocation"`
CoverageAreas []interface{} `json:"coverage_areas"`
Attributes []struct {
ID string `json:"id"`
Name string `json:"name"`
ValueID string `json:"value_id"`
ValueName string `json:"value_name"`
ValueStruct interface{} `json:"value_struct"`
AttributeGroupID string `json:"attribute_group_id"`
AttributeGroupName string `json:"attribute_group_name"`
} `json:"attributes"`
Warnings []struct {
CauseID int `json:"cause_id"`
Code string `json:"code"`
Message string `json:"message"`
References []interface{} `json:"references"`
} `json:"warnings"`
ListingSource string `json:"listing_source"`
Variations []interface{} `json:"variations"`
Thumbnail string `json:"thumbnail"`
SecureThumbnail string `json:"secure_thumbnail"`
Status string `json:"status"`
SubStatus []interface{} `json:"sub_status"`
Tags []string `json:"tags"`
Warranty interface{} `json:"warranty"`
CatalogProductID interface{} `json:"catalog_product_id"`
DomainID interface{} `json:"domain_id"`
SellerCustomField interface{} `json:"seller_custom_field"`
ParentItemID interface{} `json:"parent_item_id"`
DifferentialPricing interface{} `json:"differential_pricing"`
DealIds []interface{} `json:"deal_ids"`
AutomaticRelist bool `json:"automatic_relist"`
DateCreated time.Time `json:"date_created"`
LastUpdated time.Time `json:"last_updated"`
Health interface{} `json:"health"`
CatalogListing bool `json:"catalog_listing"`
ItemRelations []interface{} `json:"item_relations"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment