80 lines
3.4 KiB
Go
80 lines
3.4 KiB
Go
|
|
package models
|
||
|
|
|
||
|
|
type Product struct {
|
||
|
|
Attributes []map[string]string `json:"attributes"`
|
||
|
|
Brand string `json:"brand"`
|
||
|
|
Categories []int `json:"categories"`
|
||
|
|
Cinsiyet string `json:"cinsiyet"`
|
||
|
|
Color string `json:"color"`
|
||
|
|
ColorVariantCount int `json:"color_variant_count"`
|
||
|
|
ColorVariants []Product `json:"color_variants"`
|
||
|
|
Description string `json:"description"`
|
||
|
|
IsSellable bool `json:"sellable"`
|
||
|
|
FavoriteCount int `json:"favorite_count"`
|
||
|
|
Descriptions []struct {
|
||
|
|
Description string `json:"description"`
|
||
|
|
Bold bool `json:"bold"`
|
||
|
|
} `json:"descriptions"`
|
||
|
|
Images []string `json:"images"`
|
||
|
|
Name string `json:"name"`
|
||
|
|
NameWithProductCode string `json:"name_with_product_code"`
|
||
|
|
Price Price `json:"price"`
|
||
|
|
ProductCode string `json:"product_code"`
|
||
|
|
ProductGroupID string `json:"product_group_id"`
|
||
|
|
ProductNumber string `json:"product_number"`
|
||
|
|
ShortDescription string `json:"short_description"`
|
||
|
|
SizeVariants []Variant `json:"size_variants"`
|
||
|
|
Sku string `json:"sku"`
|
||
|
|
Stock interface{} `json:"stock"`
|
||
|
|
URLKey string `json:"url_key"`
|
||
|
|
Vendor string `json:"vendor"`
|
||
|
|
Weight string `json:"weight"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Price struct {
|
||
|
|
ProfitMargin int `json:"profitMargin"`
|
||
|
|
DiscountedPrice struct {
|
||
|
|
Text string `json:"text"`
|
||
|
|
Value float64 `json:"value"`
|
||
|
|
} `json:"discountedPrice"`
|
||
|
|
SellingPrice struct {
|
||
|
|
Text string `json:"text"`
|
||
|
|
Value float64 `json:"value"`
|
||
|
|
} `json:"sellingPrice"`
|
||
|
|
OriginalPrice struct {
|
||
|
|
Text string `json:"text"`
|
||
|
|
Value float64 `json:"value"`
|
||
|
|
} `json:"originalPrice"`
|
||
|
|
Currency string `json:"currency"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type Variant struct {
|
||
|
|
AttributeID int `json:"attributeId"`
|
||
|
|
AttributeName string `json:"attributeName"`
|
||
|
|
AttributeType string `json:"attributeType"`
|
||
|
|
AttributeValue string `json:"attributeValue"`
|
||
|
|
Stamps []interface{} `json:"stamps"`
|
||
|
|
Price Price `json:"price"`
|
||
|
|
FulfilmentType string `json:"fulfilmentType"`
|
||
|
|
AttributeBeautifiedValue string `json:"attributeBeautifiedValue"`
|
||
|
|
IsWinner bool `json:"isWinner"`
|
||
|
|
ListingID string `json:"listingId"`
|
||
|
|
Stock interface{} `json:"stock"`
|
||
|
|
Sellable bool `json:"sellable"`
|
||
|
|
AvailableForClaim bool `json:"availableForClaim"`
|
||
|
|
Barcode string `json:"barcode"`
|
||
|
|
ItemNumber int `json:"itemNumber"`
|
||
|
|
DiscountedPriceInfo string `json:"discountedPriceInfo"`
|
||
|
|
HasCollectable bool `json:"hasCollectable"`
|
||
|
|
RushDeliveryMerchantListingExist bool `json:"rushDeliveryMerchantListingExist"`
|
||
|
|
LowerPriceMerchantListingExist bool `json:"lowerPriceMerchantListingExist"`
|
||
|
|
}
|
||
|
|
type Row struct {
|
||
|
|
Key string `json:"key"`
|
||
|
|
Value map[string]interface{} `json:"value"`
|
||
|
|
Doc Product
|
||
|
|
}
|
||
|
|
type BagistoModelResponse struct {
|
||
|
|
Rows []Row `json:"rows"`
|
||
|
|
}
|