Documentation ¶
Index ¶
- type BulkProductEditShop
- type BulkProductEditV3Input
- type BulkProductEditV3Item
- type BulkProductEditV3Resp
- type BulkProductEditV3Var
- type BundleSticker
- type Catalog
- type Category
- type CategoryDetail
- type ChatBundleSticker
- type ChatGetBundleStickerResp
- type ChatGetBundleStickerVar
- type ChatGetGroupSticker
- type ChatGetGroupStickerResp
- type ConditionStatus
- type Cpl
- type Dimension
- type Filter
- type GetProductV3
- type GetProductV3Resp
- type GetProductV3Var
- type GroupSticker
- type Header
- type InputNoVariant
- type InputPicture
- type InputVariable
- type InputVariant
- type Lock
- type ManageProductData
- type Menu
- type MenuInput
- type NoVariantStockPrice
- type Options
- type Partial
- type Pictures
- type PreOrder
- type Price
- type ProductAddData
- type ProductAddResp
- type ProductAddV3
- type ProductAddVar
- type ProductList
- type ProductListResp
- type ProductListVar
- type ProductSelection
- type ProductStatus
- type ProductUpdateResp
- type ProductUpdateVar
- type ProductVariant
- type Score
- type SelectionsOptions
- type SellerProductItem
- type SellerProductItemShop
- type Sort
- type Stats
- type TxStats
- type TypeVar
- type Variant
- type WeightUnit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkProductEditShop ¶ added in v1.0.1
type BulkProductEditShop struct {
ID string `json:"id"`
}
type BulkProductEditV3Input ¶
type BulkProductEditV3Input struct { ProductID string `json:"productID"` Shop BulkProductEditShop `json:"shop"` Status ProductStatus `json:"status"` }
type BulkProductEditV3Item ¶ added in v1.0.1
type BulkProductEditV3Item struct { ProductID string `json:"productID"` Result struct { Header Header `json:"header"` IsSuccess bool `json:"isSuccess"` Typename string `json:"__typename"` } `json:"result"` Typename string `json:"__typename"` }
func (*BulkProductEditV3Item) Error ¶ added in v1.0.1
func (item *BulkProductEditV3Item) Error() string
type BulkProductEditV3Resp ¶
type BulkProductEditV3Resp struct { Data struct { BulkProductEditV3 []*BulkProductEditV3Item `json:"BulkProductEditV3"` } `json:"data"` }
type BulkProductEditV3Var ¶
type BulkProductEditV3Var struct {
Input []*BulkProductEditV3Input `json:"input"`
}
type BundleSticker ¶
type Category ¶
type Category struct { ID string `json:"id"` Name string `json:"name,omitempty"` Title string `json:"title,omitempty"` Detail *CategoryDetail `json:"detail,omitempty"` BreadcrumbURL string `json:"breadcrumbURL,omitempty"` IsAdult bool `json:"isAdult,omitempty"` IsKyc bool `json:"isKyc,omitempty"` MinAge int `json:"minAge,omitempty"` Typename string `json:"__typename,omitempty"` }
type CategoryDetail ¶
type ChatBundleSticker ¶
type ChatBundleSticker struct { List []BundleSticker `json:"list"` HasNext bool `json:"hasNext"` MaxUUID string `json:"maxUUID"` Typename string `json:"__typename"` }
type ChatGetBundleStickerResp ¶
type ChatGetBundleStickerResp struct { Data struct { ChatBundleSticker ChatBundleSticker `json:"chatBundleSticker"` } `json:"data"` }
type ChatGetBundleStickerVar ¶
type ChatGetGroupSticker ¶
type ChatGetGroupSticker struct { List []GroupSticker `json:"list"` Typename string `json:"__typename"` }
type ChatGetGroupStickerResp ¶
type ChatGetGroupStickerResp struct { Data struct { ChatListGroupSticker ChatGetGroupSticker `json:"chatListGroupSticker"` } `json:"data"` }
type Cpl ¶
type Cpl struct { ShipperServices []interface{} `json:"shipperServices"` Typename string `json:"__typename"` }
type GetProductV3 ¶
type GetProductV3 struct { Lock Lock `json:"lock"` TxStats TxStats `json:"txStats"` Shop struct { ID string `json:"id"` Typename string `json:"__typename"` } `json:"shop"` ProductID string `json:"productID"` ProductName string `json:"productName"` Status string `json:"status"` Stock int `json:"stock"` Price int `json:"price"` MinOrder int `json:"minOrder"` Description string `json:"description"` WeightUnit string `json:"weightUnit"` Weight int `json:"weight"` Condition string `json:"condition"` MustInsurance bool `json:"mustInsurance"` Sku string `json:"sku"` Category Category `json:"category"` Menu Menu `json:"menu"` Menus []interface{} `json:"menus"` Video []interface{} `json:"video"` CustomVideo []interface{} `json:"customVideo"` Pictures []Pictures `json:"pictures"` Wholesale []interface{} `json:"wholesale"` Dimension Dimension `json:"dimension"` Preorder PreOrder `json:"preorder"` Variant Variant `json:"variant"` Cpl Cpl `json:"cpl"` Typename string `json:"__typename"` }
type GetProductV3Resp ¶
type GetProductV3Resp struct { Data struct { GetProductV3 GetProductV3 `json:"getProductV3"` } `json:"data"` }
type GetProductV3Var ¶
type GroupSticker ¶
type Header ¶
type InputNoVariant ¶
type InputNoVariant struct { *InputVariable *NoVariantStockPrice }
type InputPicture ¶
type InputPicture struct {
Data []Pictures `json:"data"`
}
type InputVariable ¶
type InputVariable struct { Pictures InputPicture `json:"pictures"` ProductName string `json:"productName"` Category Category `json:"category"` Condition ConditionStatus `json:"condition"` MinOrder int64 `json:"minOrder"` PriceCurrency string `json:"minCurrency"` Weight int64 `json:"weight"` WeightUnit WeightUnit `json:"weightUnit"` MustInsurance bool `json:"mustInsurance"` Menus []*MenuInput `json:"menus,omitempty"` Annotations []string `json:"annotations,omitempty"` Description string `json:"description"` Dimention *Dimension `json:"dimension,omitempty"` Catalog *Catalog `json:"catalog,omitempty"` PreOrder *PreOrder `json:"preorder,omitempty"` }
type InputVariant ¶
type InputVariant struct { *InputVariable Variant *Variant `json:"variant"` }
type ManageProductData ¶
type NoVariantStockPrice ¶
type NoVariantStockPrice struct { Sku string `json:"sku"` Stock int64 `json:"stock"` Price int64 `json:"price"` Status ProductStatus `json:"status"` }
type Options ¶
type Options struct { Basic bool `json:"basic"` Menu bool `json:"menu"` Shop bool `json:"shop"` Category bool `json:"category"` Wholesale bool `json:"wholesale"` Preorder bool `json:"preorder"` Picture bool `json:"picture"` Sku bool `json:"sku"` Lock bool `json:"lock"` Variant bool `json:"variant"` Video bool `json:"video"` Edit bool `json:"edit"` TxStats bool `json:"txStats"` Dimension bool `json:"dimension"` CustomVideo bool `json:"custom_video"` }
type Pictures ¶
type Pictures struct { PicID string `json:"picID,omitempty"` FilePath string `json:"filePath,omitempty"` FileName string `json:"fileName,omitempty"` Width int `json:"width,omitempty"` Height int `json:"height,omitempty"` URLOriginal string `json:"urlOriginal,omitempty"` URLThumbnail string `json:"urlThumbnail,omitempty"` // untuk productList UploadIds string `json:"uploadIds,omitempty"` // untuk create or update Typename string `json:"__typename,omitempty"` }
type ProductAddData ¶
type ProductAddData struct {
ProductAddV3 *ProductAddV3 `json:"ProductAddV3"`
}
type ProductAddResp ¶
type ProductAddResp struct {
Data *ProductAddData `json:"data"`
}
type ProductAddV3 ¶
type ProductAddVar ¶
type ProductAddVar struct {
Input interface{} `json:"input"`
}
type ProductList ¶
type ProductList struct { Header *Header `json:"header"` Data []*SellerProductItem `json:"data"` Typename string `json:"__typename"` }
type ProductListResp ¶
type ProductListResp struct { Data struct { ProductList ProductList `json:"ProductList"` } `json:"data"` }
type ProductListVar ¶
type ProductSelection ¶
type ProductSelection struct { UnitID string `json:"unitID"` VariantID string `json:"variantID"` Name string `json:"name"` Options []SelectionsOptions `json:"options"` }
type ProductStatus ¶
type ProductStatus string
const ( LimitedStatus ProductStatus = "LIMITED" DeletedStatus ProductStatus = "DELETED" ViolationStatus ProductStatus = "VIOLATION" ActiveStatus ProductStatus = "ACTIVE" InActiveStatus ProductStatus = "INACTIVE" )
type ProductUpdateResp ¶
type ProductUpdateVar ¶
type ProductUpdateVar struct { Input struct { Pictures struct { Data []Pictures `json:"data"` } `json:"pictures"` Status string `json:"status"` Catalog interface{} `json:"catalog"` CustomVideos struct { Data []interface{} `json:"data"` } `json:"customVideos"` Wholesale struct { Data []interface{} `json:"data"` } `json:"wholesale"` Dimension Dimension `json:"dimension"` ProductID string `json:"productID"` Shop struct { ID string `json:"id"` } `json:"shop"` Stock int `json:"stock"` Preorder PreOrder `json:"preorder"` } `json:"input"` }
type ProductVariant ¶
type ProductVariant struct { Combination []int `json:"combination"` IsPrimary bool `json:"isPrimary"` Price int `json:"price"` Sku string `json:"sku"` Status ProductStatus `json:"status"` Stock int `json:"stock"` Pictures []Pictures `json:"pictures"` Weight int `json:"weight"` WeightUnit WeightUnit `json:"weightUnit"` }
type SelectionsOptions ¶
type SellerProductItem ¶ added in v1.0.1
type SellerProductItem struct { ID string `json:"id"` Name string `json:"name"` Price Price `json:"price"` Stock int `json:"stock"` Status string `json:"status"` MinOrder int `json:"minOrder"` MaxOrder int `json:"maxOrder"` Weight int `json:"weight"` WeightUnit string `json:"weightUnit"` Condition string `json:"condition"` IsMustInsurance bool `json:"isMustInsurance"` IsKreasiLokal bool `json:"isKreasiLokal"` IsCOD bool `json:"isCOD"` IsCampaign bool `json:"isCampaign"` IsVariant bool `json:"isVariant"` URL string `json:"url"` Sku string `json:"sku"` Cashback int `json:"cashback"` Featured int `json:"featured"` HasStockReserved bool `json:"hasStockReserved"` HasInbound bool `json:"hasInbound"` WarehouseCount int `json:"warehouseCount"` IsEmptyStock bool `json:"isEmptyStock"` Score Score `json:"score"` Pictures []Pictures `json:"pictures"` Shop SellerProductItemShop `json:"shop"` Wholesale []interface{} `json:"wholesale"` Stats Stats `json:"stats"` TxStats TxStats `json:"txStats"` Topads interface{} `json:"topads"` PriceSuggestion interface{} `json:"priceSuggestion"` CampaignType []interface{} `json:"campaignType"` SuspendLevel int `json:"suspendLevel"` HasStockAlert bool `json:"hasStockAlert"` StockAlertCount int `json:"stockAlertCount"` StockAlertActive bool `json:"stockAlertActive"` HaveNotifyMeOOS bool `json:"haveNotifyMeOOS"` NotifyMeOOSCount int `json:"notifyMeOOSCount"` NotifyMeOOSWording string `json:"notifyMeOOSWording"` ManageProductData ManageProductData `json:"manageProductData"` CreateTime time.Time `json:"createTime"` Typename string `json:"__typename"` }
type SellerProductItemShop ¶ added in v1.0.1
type Stats ¶
type Stats struct { CountView int `json:"countView,omitempty"` CountReview int `json:"countReview,omitempty"` CountTalk int `json:"countTalk,omitempty"` ReviewCount int `json:"reviewCount,omitempty"` Rating int `json:"rating,omitempty"` AverageRating string `json:"averageRating,omitempty"` Typename string `json:"__typename"` }
type Variant ¶
type Variant struct { Products []ProductVariant `json:"products"` Selections []ProductSelection `json:"selections"` Sizecharts []interface{} `json:"sizecharts"` Typename string `json:"__typename,omitempty"` }
Click to show internal directories.
Click to hide internal directories.