model

package
v1.1.70 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableCourier added in v1.1.61

type AvailableCourier struct {
	Agency   *AvailableCourierAgency    `json:"agency"`
	Product  []*AvailableCourierProduct `json:"product"`
	Typename string                     `json:"__typename"`
}

type AvailableCourierAgency added in v1.1.61

type AvailableCourierAgency struct {
	Value    int    `json:"value"`
	Text     string `json:"text"`
	Typename string `json:"__typename"`
}

type AvailableCourierProduct added in v1.1.61

type AvailableCourierProduct struct {
	Value    int    `json:"value"`
	Text     string `json:"text"`
	Typename string `json:"__typename"`
}

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            int             `json:"id,string"`
	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 EmptyStateMetadata added in v1.1.61

type EmptyStateMetadata struct {
	Title    string `json:"title"`
	Subtitle string `json:"subtitle"`
	ImageURL string `json:"image_url"`
	Typename string `json:"__typename"`
}

type ExpiredFinishNotifLabel added in v1.1.61

type ExpiredFinishNotifLabel struct {
	IsExpiredFinishLabel bool   `json:"is_expired_finish_label"`
	UnixExpiredLabelTime int    `json:"unix_expired_label_time"`
	UnixFinishOrderTime  int    `json:"unix_finish_order_time"`
	FinishOrderTime      string `json:"finish_order_time"`
	ExpiredLabelTime     string `json:"expired_label_time"`
	Typename             string `json:"__typename"`
}

type ExtraInfo added in v1.1.36

type ExtraInfo struct {
	Aggregate bool `json:"aggregate"`
	Event     bool `json:"event"`
}

type Filter

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

type GetInvoiceV3 added in v1.1.64

type GetInvoiceV3 struct {
	Invoices []*Invoice `json:"invoices"`
	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     int64         `json:"productID,string"`
	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 ExtraInfo `json:"extraInfo"`
}

func NewProductV3Var added in v1.1.36

func NewProductV3Var(productId int64) *GetProductV3Var

type GetSomIncomeDetail added in v1.1.61

type GetSomIncomeDetail struct {
	Title    string        `json:"title"`
	Sections []*SomSection `json:"sections"`
	Summary  *SOMSummary   `json:"summary"`
	Typename string        `json:"__typename"`
}

type GoldGetPMOSStatus added in v1.1.66

type GoldGetPMOSStatus struct {
	Data     *PMOSStatusData `json:"data"`
	Header   *Header         `json:"header"`
	Typename string          `json:"__typename"`
}

type GoldGetPMOSStatusData added in v1.1.66

type GoldGetPMOSStatusData struct {
	GoldGetPMOSStatus *GoldGetPMOSStatus `json:"goldGetPMOSStatus"`
}

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

func (*Header) GetBannedWord added in v1.1.65

func (head *Header) GetBannedWord() string

func (*Header) IsBanned added in v1.1.64

func (head *Header) IsBanned() bool

func (*Header) IsProductFull added in v1.1.61

func (head *Header) IsProductFull() bool

type IncomeDetailKey added in v1.1.61

type IncomeDetailKey string
var (
	TOTAL_PRICE_KEY           IncomeDetailKey = "TOTAL_PRICE"
	TOTAL_SHIPPING_FEE_KEY    IncomeDetailKey = "TOTAL_SHIPPING_FEE"
	CASHLESS_SHIPPING_FEE_KEY IncomeDetailKey = "CASHLESS_SHIPPING_FEE"
)

type IncomeDetailSection added in v1.1.61

type IncomeDetailSection string
var TOTAL_SALES_SECTION IncomeDetailSection = "total_sales"

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 Invoice added in v1.1.64

type Invoice struct {
	OrderData   []InvoiceOrderData `json:"order_data"`
	PaymentData struct {
		PaymentMethod []struct {
			Name              string `json:"name"`
			ImgURL            string `json:"img_url"`
			Amount            string `json:"amount"`
			InstallmentDetail string `json:"installment_detail"`
			Typename          string `json:"__typename"`
		} `json:"payment_method"`
		PaymentDetails               []any  `json:"payment_details"`
		OrderCount                   int    `json:"order_count"`
		Orders                       []any  `json:"orders"`
		VoucherDetails               []any  `json:"voucher_details"`
		VoucherDisclaimer            string `json:"voucher_disclaimer"`
		VoucherDisclaimerDisplayType int    `json:"voucher_disclaimer_display_type"`
		Typename                     string `json:"__typename"`
	} `json:"payment_data"`
	Typename string `json:"__typename"`
}

type InvoiceData added in v1.1.64

type InvoiceData struct {
	GetInvoiceV3 *GetInvoiceV3 `json:"get_invoice_v3"`
}

type InvoiceDetailNonBundle added in v1.1.64

type InvoiceDetailNonBundle struct {
	ProductID            int64  `json:"product_id"`
	ProductName          string `json:"product_name"`
	ProductPrice         string `json:"product_price"`
	ProductPriceTotal    string `json:"product_price_total"`
	ProductQty           int    `json:"product_qty"`
	ProductSkuID         string `json:"product_sku_id"`
	ProductWeight        string `json:"product_weight"`
	ProductNotes         string `json:"product_notes"`
	ProductCashbackLabel string `json:"product_cashback_label"`
	ProductSnapshotURL   string `json:"product_snapshot_url"`
	IsPpp                bool   `json:"is_ppp"`
	AddonSummary         any    `json:"addon_summary"`
	Typename             string `json:"__typename"`
}

type InvoiceDropshipInfo added in v1.1.64

type InvoiceDropshipInfo struct {
	Name     string `json:"name"`
	Phone    string `json:"phone"`
	Typename string `json:"__typename"`
}

type InvoiceFeatures added in v1.1.64

type InvoiceFeatures struct {
	PartialFulfillment any    `json:"partial_fulfillment"`
	Typename           string `json:"__typename"`
}

type InvoiceOrderData added in v1.1.64

type InvoiceOrderData struct {
	InvoiceDate           string                   `json:"invoice_date"`
	InvoiceRefNum         string                   `json:"invoice_ref_num"`
	Status                string                   `json:"status"`
	UpdateTime            string                   `json:"update_time"`
	ShopName              string                   `json:"shop_name"`
	CustomerName          string                   `json:"customer_name"`
	IsTokoCabang          bool                     `json:"is_toko_cabang"`
	IsPreOrder            bool                     `json:"is_pre_order"`
	PreOrderDay           string                   `json:"pre_order_day"`
	AdditionalStatusLabel string                   `json:"additional_status_label"`
	HaveProductBundle     bool                     `json:"have_product_bundle"`
	PaymentSummaryInvoice []*InvoicePaymentSummary `json:"payment_summary_invoice"`
	ShippingData          *InvoiceShippingData     `json:"shipping_data"`
	DropshipInfo          *InvoiceDropshipInfo     `json:"dropship_info"`
	TokopediaMerchandise  *TokopediaMerchandise    `json:"tokopedia_merchandise"`
	AddonInfo             any                      `json:"addon_info"`
	Features              *InvoiceFeatures         `json:"features"`
	Details               *InvoiceOrderDataDetail  `json:"details"`
	Typename              string                   `json:"__typename"`
}

type InvoiceOrderDataDetail added in v1.1.64

type InvoiceOrderDataDetail struct {
	Bundles       []any                     `json:"bundles"`
	NonBundles    []*InvoiceDetailNonBundle `json:"non_bundles"`
	BundleIcon    string                    `json:"bundle_icon"`
	TotalProducts int                       `json:"total_products"`
	AddonIcon     string                    `json:"addon_icon"`
	AddonLabel    string                    `json:"addon_label"`
	BmgmIcon      string                    `json:"bmgm_icon"`
	Bmgms         []any                     `json:"bmgms"`
	Typename      string                    `json:"__typename"`
}

type InvoicePaymentSummary added in v1.1.64

type InvoicePaymentSummary struct {
	Label    string `json:"label"`
	Value    string `json:"value"`
	Key      string `json:"key"`
	Typename string `json:"__typename"`
}

type InvoiceRes added in v1.1.64

type InvoiceRes struct {
	Data *InvoiceData `json:"data"`
}

func (*InvoiceRes) IsCod added in v1.1.64

func (inv *InvoiceRes) IsCod() bool

type InvoiceShippingData added in v1.1.64

type InvoiceShippingData struct {
	ShippingAddress        string `json:"shipping_address"`
	ShippingCourier        string `json:"shipping_courier"`
	ShippingWeight         string `json:"shipping_weight"`
	ReceiverName           string `json:"receiver_name"`
	ReceiverPhone          string `json:"receiver_phone"`
	IsBebasOngkir          bool   `json:"is_bebas_ongkir"`
	BebasOngkirImgURL      string `json:"bebas_ongkir_img_url"`
	IsShippingInsurance    bool   `json:"is_shipping_insurance"`
	ShippingInsuranceLabel string `json:"shipping_insurance_label"`
	Typename               string `json:"__typename"`
}

type Lock

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

type LogisticInfo added in v1.1.61

type LogisticInfo struct {
	All      []*LogisticInfoAll `json:"all"`
	Typename string             `json:"__typename"`
}

type LogisticInfoAll added in v1.1.61

type LogisticInfoAll struct {
	ID            string `json:"id"`
	Priority      int    `json:"priority"`
	Description   string `json:"description"`
	InfoTextShort string `json:"info_text_short"`
	InfoTextLong  string `json:"info_text_long"`
	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 OnlineBooking added in v1.1.61

type OnlineBooking struct {
	IsHideInputAwb   bool   `json:"is_hide_input_awb"`
	IsRemoveInputAwb bool   `json:"is_remove_input_awb"`
	IsShowInfo       bool   `json:"is_show_info"`
	InfoText         string `json:"info_text"`
	Typename         string `json:"__typename"`
}

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 OrderDetails added in v1.1.61

type OrderDetails struct {
	TotalProducts  int              `json:"totalProducts"`
	AddonLabel     string           `json:"addonLabel"`
	IconAddon      string           `json:"iconAddon"`
	IconBundle     string           `json:"iconBundle"`
	IconBMGM       string           `json:"iconBMGM"`
	ProductsBundle []any            `json:"productsBundle"`
	ProductsSingle []*ProductSingle `json:"productsSingle"`
	ProductsBMGM   []any            `json:"productsBMGM"`
	Typename       string           `json:"__typename"`
}

type OrderItem added in v1.1.61

type OrderItem struct {
	OrderDetails                *OrderDetails            `json:"orderDetails"`
	PofData                     any                      `json:"pofData"`
	IsMitra                     bool                     `json:"isMitra"`
	Ticker                      *Ticker                  `json:"ticker"`
	AddonInfo                   any                      `json:"addonInfo"`
	SellerNotesText             string                   `json:"seller_notes_text"`
	IsFlaggedOrder              bool                     `json:"is_flagged_order"`
	FulfillBy                   int                      `json:"fulfill_by"`
	KeroCode                    int                      `json:"kero_code"`
	CourierType                 int                      `json:"courier_type"`
	CourierProductID            int                      `json:"courier_product_id"`
	ID                          int                      `json:"id,string"`
	IsAdditionalCost            bool                     `json:"is_additional_cost"`
	HasBookingInfo              int                      `json:"has_booking_info"`
	BookingInfoURL              string                   `json:"booking_info_url"`
	CourierProductName          string                   `json:"courier_product_name"`
	CourierInfo                 string                   `json:"courier_info"`
	CancelRequest               int                      `json:"cancel_request"`
	CancelRequestOriginNote     string                   `json:"cancel_request_origin_note"`
	CancelRequestNote           string                   `json:"cancel_request_note"`
	CancelRequestTime           string                   `json:"cancel_request_time"`
	DropshipName                string                   `json:"dropship_name"`
	DropshipPhone               string                   `json:"dropship_phone"`
	InsuranceType               int                      `json:"insurance_type"`
	Status                      string                   `json:"status"`
	OrderStatusID               int                      `json:"order_status_id"`
	OrderResi                   string                   `json:"order_resi"`
	OrderResiURL                string                   `json:"order_resi_url"`
	OriginAddress               string                   `json:"origin_address"`
	OriginDistrict              int                      `json:"origin_district"`
	OriginGeo                   string                   `json:"origin_geo"`
	OriginPostalCode            string                   `json:"origin_postal_code"`
	IsPurchaseProtection        bool                     `json:"is_purchase_protection"`
	OrderTotalPrice             string                   `json:"order_total_price"`
	Labels                      []any                    `json:"labels"`
	PreorderProcessTimeDaysLeft int                      `json:"preorder_process_time_days_left"`
	BuyerName                   string                   `json:"buyer_name"`
	OrderDate                   string                   `json:"order_date"`
	BuyerID                     string                   `json:"buyer_id"`
	CourierID                   int                      `json:"courier_id"`
	Cashback                    string                   `json:"cashback"`
	CourierName                 string                   `json:"courier_name"`
	IsChecked                   bool                     `json:"isChecked"`
	IsTopads                    bool                     `json:"is_topads"`
	IsBroadcastChat             bool                     `json:"is_broadcast_chat"`
	IsShippingPrinted           bool                     `json:"is_shipping_printed"`
	IsReplacementTaken          int                      `json:"is_replacement_taken"`
	TradeInFee                  string                   `json:"trade_in_fee"`
	DeadlineColor               string                   `json:"deadline_color"`
	DeadlineText                string                   `json:"deadline_text"`
	DeadlineTimeLeft            int                      `json:"deadline_time_left"`
	DeadlineStyle               int                      `json:"deadline_style"`
	DestinationStreet           string                   `json:"destination_street"`
	DestinationDistrict         string                   `json:"destination_district"`
	DestinationCity             string                   `json:"destination_city"`
	DestinationProvince         string                   `json:"destination_province"`
	DestinationPostalCode       string                   `json:"destination_postal_code"`
	DestinationPhone            string                   `json:"destination_phone"`
	DestinationReceiverName     string                   `json:"destination_receiver_name"`
	FreeReturnOrder             bool                     `json:"free_return_order"`
	CourierRef                  string                   `json:"courier_ref"`
	IsFreeShipping              bool                     `json:"is_free_shipping"`
	IsPenaltyReject             bool                     `json:"is_penalty_reject"`
	PenaltyRejectWording        string                   `json:"penalty_reject_wording"`
	IsShowPrintLabel            bool                     `json:"is_show_print_label"`
	IsTokocabang                bool                     `json:"is_tokocabang"`
	ExpiredFinishNotifLabel     *ExpiredFinishNotifLabel `json:"expired_finish_notif_label"`
	OnlineBooking               *OnlineBooking           `json:"online_booking"`
	OrderProduct                []*OrderProduct          `json:"order_product"`
	LogisticInfo                *LogisticInfo            `json:"logistic_info"`
	ButtonList                  []any                    `json:"buttonList"`
	WarehouseName               string                   `json:"warehouse_name"`
	CancelRequestStatus         int                      `json:"cancelRequestStatus"`
	IsShowSellerNotes           bool                     `json:"isShowSellerNotes"`
	IsShowChatButton            bool                     `json:"isShowChatButton"`
	PlusData                    any                      `json:"plus_data"`
	HasResoStatus               bool                     `json:"has_reso_status"`
	TxID                        string                   `json:"tx_id"`
	GroupType                   int                      `json:"group_type"`
	Tag                         *OrderTag                `json:"tag"`
	Typename                    string                   `json:"__typename"`
}

func (*OrderItem) GetDiprosesSebelum added in v1.1.61

func (s *OrderItem) GetDiprosesSebelum(year int, format string) (string, error)

func (*OrderItem) GetTanggalPemesanan added in v1.1.61

func (s *OrderItem) GetTanggalPemesanan(format string) (string, error)

type OrderList added in v1.1.61

type OrderList struct {
	FirstOrderID         int                 `json:"firstOrderId"`
	LastOrderID          int                 `json:"lastOrderId"`
	FirstDate            int                 `json:"firstDate"`
	LastDate             int                 `json:"lastDate"`
	TotalDataPerBatch    int                 `json:"total_data_per_batch"`
	EmptyStateMetadata   *EmptyStateMetadata `json:"emptyStateMetadata"`
	UserID               string              `json:"user_id"`
	ShopID               string              `json:"shop_id"`
	UserToken            string              `json:"user_token"`
	IsWarehouseAdmin     bool                `json:"is_warehouse_admin"`
	IsShowBulkAction     bool                `json:"isShowBulkAction"`
	IsShowDownloadReport bool                `json:"isShowDownloadReport"`
	AvailableCourier     []*AvailableCourier `json:"available_courier"`
	Paging               Paging              `json:"paging"`
	List                 []*OrderItem        `json:"list"`
	Typename             string              `json:"__typename"`
}

type OrderListResp added in v1.1.61

type OrderListResp struct {
	Data struct {
		OrderList OrderList `json:"orderList"`
	} `json:"data"`
}

type OrderProduct added in v1.1.61

type OrderProduct struct {
	ProductID    string `json:"productId"`
	SnapshotURL  string `json:"snapshotUrl"`
	ProductName  string `json:"productName"`
	OrderNote    string `json:"orderNote"`
	ProductPrice string `json:"productPrice"`
	ProductQty   int    `json:"productQty"`
	SubTotal     string `json:"subTotal"`
	TotalWeight  string `json:"totalWeight"`
	AddonSummary any    `json:"addonSummary"`
	Returnable   int    `json:"returnable"`
	Sku          string `json:"sku"`
	Picture      string `json:"picture"`
	Typename     string `json:"__typename"`
}

type OrderTag added in v1.1.61

type OrderTag struct {
	IsAffiliate bool   `json:"isAffiliate"`
	Typename    string `json:"__typename"`
}

type PMOSStatusData added in v1.1.66

type PMOSStatusData struct {
	PowerMerchant struct {
		Status     string `json:"status"`
		AutoExtend struct {
			Status        string `json:"status"`
			TkpdProductID int    `json:"tkpd_product_id"`
			Typename      string `json:"__typename"`
		} `json:"auto_extend"`
		PmTier      int    `json:"pm_tier"`
		ExpiredTime string `json:"expired_time"`
		Typename    string `json:"__typename"`
	} `json:"power_merchant"`
	Typename string `json:"__typename"`
}

type Paging added in v1.1.61

type Paging struct {
	ShowBackButton     bool   `json:"show_back_button"`
	ShowNextButton     bool   `json:"show_next_button"`
	PagesShowValueList []int  `json:"pages_show_value_list"`
	PagesRealValueList []int  `json:"pages_real_value_list"`
	CurrentBatchPage   int    `json:"current_batch_page"`
	CurrentPage        int    `json:"current_page"`
	NextChangerValue   int    `json:"next_changer_value"`
	PrevChangerValue   int    `json:"prev_changer_value"`
	Typename           string `json:"__typename"`
}

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 int     `json:"productID,string"`
	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"`
}

func NewProductListVar added in v1.1.61

func NewProductListVar(shopid int64, filter []Filter) *ProductListVar

type ProductSelection

type ProductSelection struct {
	UnitID    string              `json:"unitID"`
	VariantID string              `json:"variantID"`
	Name      string              `json:"name"`
	Options   []SelectionsOptions `json:"options"`
}

type ProductSingle added in v1.1.61

type ProductSingle struct {
	ProductID    string `json:"productId"`
	SnapshotURL  string `json:"snapshotUrl"`
	ProductName  string `json:"productName"`
	OrderNote    string `json:"orderNote"`
	ProductPrice string `json:"productPrice"`
	ProductQty   int    `json:"productQty"`
	SubTotal     string `json:"subTotal"`
	TotalWeight  string `json:"totalWeight"`
	AddonSummary any    `json:"addonSummary"`
	Returnable   int    `json:"returnable"`
	Sku          string `json:"sku"`
	Picture      string `json:"picture"`
	Typename     string `json:"__typename"`
}

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 ProductVariants added in v1.1.64

type ProductVariants []*ProductVariant

func (ProductVariants) MaxPrice added in v1.1.64

func (prods ProductVariants) MaxPrice() int

func (ProductVariants) MinPrice added in v1.1.64

func (prods ProductVariants) MinPrice() int

func (ProductVariants) MinWeight added in v1.1.64

func (prods ProductVariants) MinWeight() int

type SIBIDClosedInfo added in v1.1.62

type SIBIDClosedInfo struct {
	ClosedNote string                `json:"closedNote"`
	Until      string                `json:"until"`
	Detail     SIBIDClosedInfoDetail `json:"detail"`
	Typename   string                `json:"__typename"`
}

type SIBIDClosedInfoDetail added in v1.1.62

type SIBIDClosedInfoDetail struct {
	StartDate string `json:"startDate"`
	EndDate   string `json:"endDate"`
	OpenDate  string `json:"openDate"`
	Status    int    `json:"status"`
	Typename  string `json:"__typename"`
}

type SIBIDError added in v1.1.62

type SIBIDError struct {
	Message    string              `json:"message"`
	Path       []string            `json:"path"`
	Extensions SIBIDErrorExtension `json:"extensions"`
}

type SIBIDErrorExtension added in v1.1.62

type SIBIDErrorExtension struct {
	DeveloperMessage string `json:"developerMessage"`
	Timestamp        string `json:"timestamp"`
}

type SIBIDFavoriteData added in v1.1.62

type SIBIDFavoriteData struct {
	TotalFavorite int    `json:"totalFavorite"`
	Typename      string `json:"__typename"`
}

type SIBIDGoldOS added in v1.1.62

type SIBIDGoldOS struct {
	IsGold           int    `json:"isGold"`
	IsOfficial       int    `json:"isOfficial"`
	Badge            string `json:"badge"`
	ShopTier         int    `json:"shopTier"`
	ShopTierWording  string `json:"shopTierWording"`
	ShopGrade        int    `json:"shopGrade"`
	ShopGradeWording string `json:"shopGradeWording"`
	Typename         string `json:"__typename"`
}

type SIBIDOs added in v1.1.62

type SIBIDOs struct {
	IsOfficial int    `json:"isOfficial"`
	Expired    string `json:"expired"`
	Typename   string `json:"__typename"`
}

type SIBIDResult added in v1.1.62

type SIBIDResult struct {
	FavoriteData  SIBIDFavoriteData `json:"favoriteData"`
	GoldOS        SIBIDGoldOS       `json:"goldOS"`
	Location      string            `json:"location"`
	ShopAssets    SIBIDShopAssets   `json:"shopAssets"`
	IsAllowManage int               `json:"isAllowManage"`
	IsOwner       int               `json:"isOwner"`
	ShopCore      SIBIDShopCore     `json:"shopCore"`
	ShopHomeType  string            `json:"shopHomeType"`
	ClosedInfo    SIBIDClosedInfo   `json:"closedInfo"`
	StatusInfo    SIBIDStatusInfo   `json:"statusInfo"`
	Os            SIBIDOs           `json:"os"`
	Typename      string            `json:"__typename"`
}

type SIBIDShopAssets added in v1.1.62

type SIBIDShopAssets struct {
	Avatar       string `json:"avatar"`
	Cover        string `json:"cover"`
	DefaultCover []struct {
		ID       string `json:"id"`
		Path     string `json:"path"`
		Typename string `json:"__typename"`
	} `json:"defaultCover"`
	Typename string `json:"__typename"`
}

type SIBIDShopCore added in v1.1.62

type SIBIDShopCore struct {
	Name        string `json:"name"`
	ShopID      string `json:"shopID"`
	Domain      string `json:"domain"`
	Description string `json:"description"`
	TagLine     string `json:"tagLine"`
	Typename    string `json:"__typename"`
}

type SIBIDStatusInfo added in v1.1.62

type SIBIDStatusInfo struct {
	ShopStatus int    `json:"shopStatus"`
	StatusName string `json:"statusName"`
	Typename   string `json:"__typename"`
}

type SOMComponent added in v1.1.61

type SOMComponent struct {
	Key        IncomeDetailKey `json:"key"`
	Label      string          `json:"label"`
	SubLabel   any             `json:"sub_label"`
	Value      string          `json:"value"`
	ValueRaw   int             `json:"value_raw"`
	Attributes any             `json:"attributes"`
	Type       string          `json:"type"`
	Typename   string          `json:"__typename"`
}

type SOMIncomeDetailRes added in v1.1.61

type SOMIncomeDetailRes struct {
	Data struct {
		GetSomIncomeDetail GetSomIncomeDetail `json:"get_som_income_detail"`
	} `json:"data"`
}

func (*SOMIncomeDetailRes) GetOngkir added in v1.1.61

func (d *SOMIncomeDetailRes) GetOngkir() int

func (*SOMIncomeDetailRes) GetSection added in v1.1.61

func (*SOMIncomeDetailRes) GetSectionComponent added in v1.1.61

func (d *SOMIncomeDetailRes) GetSectionComponent(sec IncomeDetailSection, key IncomeDetailKey) *SOMComponent

type SOMSummary added in v1.1.61

type SOMSummary struct {
	Key        string `json:"key"`
	Label      string `json:"label"`
	SubLabel   any    `json:"sub_label"`
	Value      string `json:"value"`
	ValueRaw   int    `json:"value_raw"`
	Attributes any    `json:"attributes"`
	State      string `json:"state"`
	Note       string `json:"note"`
	Typename   string `json:"__typename"`
}

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             ProductStatus         `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 ShopInfoByID added in v1.1.62

type ShopInfoByID struct {
	Result   []SIBIDResult `json:"result"`
	Typename string        `json:"__typename"`
}

type ShopInfoByIDError added in v1.1.62

type ShopInfoByIDError []SIBIDError

func (ShopInfoByIDError) Error added in v1.1.62

func (errs ShopInfoByIDError) Error() string

func (ShopInfoByIDError) IsNotAuthorized added in v1.1.62

func (errs ShopInfoByIDError) IsNotAuthorized() bool

type ShopInfoByIDRes added in v1.1.62

type ShopInfoByIDRes struct {
	Errors ShopInfoByIDError `json:"errors"`
	Data   ShopInfoIDData    `json:"data"`
}

type ShopInfoIDData added in v1.1.62

type ShopInfoIDData struct {
	ShopInfoByID `json:"shopInfoByID"`
}

type ShopLevel added in v1.1.66

type ShopLevel struct {
	Result   *ShopLevelResult     `json:"result"`
	Error    *ShopScoreLevelError `json:"error"`
	Typename string               `json:"__typename"`
}

type ShopLevelResult added in v1.1.66

type ShopLevelResult struct {
	ShopID     string `json:"shopID"`
	Period     string `json:"period"`
	NextUpdate string `json:"nextUpdate"`
	ShopLevel  int    `json:"shopLevel"`
	ItemSold   int    `json:"itemSold"`
	Niv        int    `json:"niv"`
	Typename   string `json:"__typename"`
}

type ShopScoreData added in v1.1.66

type ShopScoreData struct {
	ShopScoreLevel *ShopScoreLevel `json:"shopScoreLevel"`
	ShopLevel      *ShopLevel      `json:"shopLevel"`
}

type ShopScoreDetail added in v1.1.66

type ShopScoreDetail struct {
	Title        string  `json:"title"`
	Identifier   string  `json:"identifier"`
	Value        float32 `json:"value"`
	RawValue     float32 `json:"rawValue"`
	NextMinValue float64 `json:"nextMinValue"`
	ColorText    string  `json:"colorText"`
	Typename     string  `json:"__typename"`
}

type ShopScoreLevel added in v1.1.66

type ShopScoreLevel struct {
	Result   *ShopScoreResult     `json:"result"`
	Error    *ShopScoreLevelError `json:"error"`
	Typename string               `json:"__typename"`
}

type ShopScoreLevelError added in v1.1.66

type ShopScoreLevelError struct {
	Message  string `json:"message"`
	Typename string `json:"__typename"`
}

type ShopScoreResult added in v1.1.66

type ShopScoreResult struct {
	ShopID          string             `json:"shopID"`
	ShopScore       float32            `json:"shopScore"`
	ShopLevel       int                `json:"shopLevel"`
	ShopScoreDetail []*ShopScoreDetail `json:"shopScoreDetail"`
	Period          string             `json:"period"`
	NextUpdate      string             `json:"nextUpdate"`
	Typename        string             `json:"__typename"`
}

type SomSection added in v1.1.61

type SomSection struct {
	Key        IncomeDetailSection `json:"key"`
	Label      string              `json:"label"`
	SubLabel   any                 `json:"sub_label"`
	Value      string              `json:"value"`
	ValueRaw   int                 `json:"value_raw"`
	Attributes any                 `json:"attributes"`
	Components []*SOMComponent     `json:"components"`
	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 Ticker added in v1.1.61

type Ticker struct {
	Text           string `json:"text"`
	ActionText     string `json:"action_text"`
	ActionKey      string `json:"action_key"`
	Type           string `json:"type"`
	CtaActionType  string `json:"cta_action_type"`
	CtaActionValue string `json:"cta_action_value"`
	CtaText        string `json:"cta_text"`
	Typename       string `json:"__typename"`
}

type TokopediaMerchandise added in v1.1.64

type TokopediaMerchandise struct {
	Name             string `json:"name"`
	Address          string `json:"address"`
	Npwp             string `json:"npwp"`
	WordingPpn       string `json:"wording_ppn"`
	IsStampDuty      bool   `json:"is_stamp_duty"`
	WordingStampDuty string `json:"wording_stamp_duty"`
	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 VPVCategory added in v1.1.64

type VPVCategory struct {
	ID int `json:"id,string"`
}

VPV: Variant Price Validation

type VPVData added in v1.1.64

type VPVData struct {
	ProductValidateV3 *VPVProductValidateV3 `json:"ProductValidateV3"`
}

type VPVInput added in v1.1.64

type VPVInput struct {
	Variant  *Variant     `json:"variant"`
	Category *VPVCategory `json:"category"`
}

type VPVProductValidateV3 added in v1.1.64

type VPVProductValidateV3 struct {
	Header    *Header                   `json:"header"`
	IsSuccess bool                      `json:"isSuccess"`
	Data      *VPVProductValidateV3Data `json:"data"`
	Typename  string                    `json:"__typename"`
}

type VPVProductValidateV3Data added in v1.1.64

type VPVProductValidateV3Data struct {
	Variants *VPVProductValidateV3DataVariants `json:"variants"`
	Typename string                            `json:"__typename"`
}

type VPVProductValidateV3DataVariants added in v1.1.64

type VPVProductValidateV3DataVariants struct {
	Messages []string `json:"messages"`
	Typename string   `json:"__typename"`
}

func (*VPVProductValidateV3DataVariants) GetPriceGab added in v1.1.70

func (v *VPVProductValidateV3DataVariants) GetPriceGab() int

type VPVRes added in v1.1.64

type VPVRes struct {
	Data VPVData `json:"data"`
}

func (*VPVRes) GetPriceGab added in v1.1.70

func (r *VPVRes) GetPriceGab() int

type VPVVariable added in v1.1.64

type VPVVariable struct {
	Input *VPVInput `json:"input"`
}

type Variant

type Variant struct {
	Products   ProductVariants    `json:"products"`
	Selections []ProductSelection `json:"selections"`
	Sizecharts []interface{}      `json:"sizeChart"`
	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