model

package
v1.1.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 BundleSticker struct {
	ImageURL    string `json:"imageUrl"`
	Intention   string `json:"intention"`
	StickerUUID string `json:"stickerUUID"`
	GroupUUID   string `json:"groupUUID"`
	Typename    string `json:"__typename"`
}

type Catalog

type Catalog struct {
	CatalogID string `json:"catalogID"`
	IsActive  bool   `json:"isActive"`
}

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 CategoryDetail []struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	BreadcrumbURL string `json:"breadcrumbURL"`
	IsAdult       bool   `json:"isAdult,omitempty"`
	Typename      string `json:"__typename"`
}

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 ChatGetBundleStickerVar struct {
	ID    string      `json:"id"`
	Limit int         `json:"limit"`
	MaxID interface{} `json:"maxId"`
}

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 ConditionStatus

type ConditionStatus string
const (
	NewCondition ConditionStatus = "NEW"
)

type Cpl

type Cpl struct {
	ShipperServices []interface{} `json:"shipperServices"`
	Typename        string        `json:"__typename"`
}

type Dimension

type Dimension struct {
	Length   int    `json:"length"`
	Width    int    `json:"width"`
	Height   int    `json:"height"`
	Typename string `json:"__typename"`
}

type Filter

type Filter struct {
	ID    string   `json:"id"`
	Value []string `json:"value"`
}

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 GetProductV3Var struct {
	ProductID string  `json:"productID"`
	Options   Options `json:"options"`
	ExtraInfo struct {
		Event bool `json:"event"`
	} `json:"extraInfo"`
}

type GroupSticker

type GroupSticker struct {
	GroupUUID  string `json:"groupUUID"`
	LastUpdate string `json:"lastUpdate"`
	Thumbnail  string `json:"thumbnail"`
	Title      string `json:"title"`
	Typename   string `json:"__typename"`
}
type Header struct {
	ProcessTime float64  `json:"processTime,omitempty"`
	Messages    []string `json:"messages"`
	Reason      string   `json:"reason"`
	ErrorCode   string   `json:"errorCode"`
	Typename    string   `json:"__typename"`
}

func (*Header) Error

func (head *Header) Error() string

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 Lock

type Lock struct {
	Full     bool    `json:"full"`
	Partial  Partial `json:"partial"`
	Typename string  `json:"__typename"`
}

type ManageProductData

type ManageProductData struct {
	IsStockGuaranteed bool    `json:"isStockGuaranteed"`
	ScoreV3           float32 `json:"scoreV3"`
	Typename          string  `json:"__typename"`
}
type Menu struct {
	ID       string `json:"id,omitempty"`
	MenuID   string `json:"menuID,omitempty"`
	Name     string `json:"name"`
	URL      string `json:"url"`
	Typename string `json:"__typename"`
}
type MenuInput struct {
	MenuID string `json:"menuID"`
}

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 Partial

type Partial struct {
	Price     bool   `json:"price"`
	Status    bool   `json:"status"`
	Stock     bool   `json:"stock"`
	Wholesale bool   `json:"wholesale"`
	Name      bool   `json:"name"`
	Typename  string `json:"__typename"`
}

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 PreOrder

type PreOrder struct {
	Duration int    `json:"duration,omitempty"`
	TimeUnit string `json:"timeUnit,omitempty"`
	IsActive bool   `json:"isActive"`
	Typename string `json:"__typename,omitempty"`
}

type Price

type Price struct {
	Min      int    `json:"min,omitempty"`
	Max      int    `json:"max,omitempty"`
	TextIdr  string `json:"text_idr,omitempty"`
	Typename string `json:"__typename"`
}

type ProductAddData

type ProductAddData struct {
	ProductAddV3 *ProductAddV3 `json:"ProductAddV3"`
}

type ProductAddResp

type ProductAddResp struct {
	Data *ProductAddData `json:"data"`
}

type ProductAddV3

type ProductAddV3 struct {
	Header    *Header `json:"header"`
	IsSuccess bool    `json:"isSuccess"`
	ProductId string  `json:"productID"`
	TypeName  string  `json:"__typename"`
}

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 ProductListVar struct {
	ShopID      string   `json:"shopID"`
	Filter      []Filter `json:"filter"`
	Sort        Sort     `json:"sort"`
	ExtraInfo   []string `json:"extraInfo"`
	WarehouseID string   `json:"warehouseID"`
}

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 ProductUpdateResp struct {
	Data struct {
		ProductUpdateV3 struct {
			Header    Header `json:"header"`
			IsSuccess bool   `json:"isSuccess"`
			ProductId string `json:"productID"`
			TypeName  string `json:"__typename"`
		} `json:"ProductUpdateV3"`
	} `json:"data"`
}

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 Score

type Score struct {
	Total    int    `json:"total"`
	Typename string `json:"__typename"`
}

type SelectionsOptions

type SelectionsOptions struct {
	UnitValueID string `json:"unitValueID"`
	Value       string `json:"value"`
	HexCode     string `json:"hexCode"`
}

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 SellerProductItemShop struct {
	ID       string `json:"id"`
	Typename string `json:"__typename"`
}

type Sort

type Sort struct {
	ID    string `json:"id"`
	Value string `json:"value"`
}

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 TxStats

type TxStats struct {
	ItemSold int    `json:"itemSold,omitempty"`
	Sold     int    `json:"sold,omitempty"`
	Typename string `json:"__typename"`
}

type TypeVar

type TypeVar struct {
	Type int `json:"type"`
}

type Variant

type Variant struct {
	Products   []ProductVariant   `json:"products"`
	Selections []ProductSelection `json:"selections"`
	Sizecharts []interface{}      `json:"sizecharts"`
	Typename   string             `json:"__typename,omitempty"`
}

type WeightUnit

type WeightUnit string
const (
	GramUnit WeightUnit = "GR"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL