Documentation ¶
Index ¶
- type AvailableCourier
- type AvailableCourierAgency
- type AvailableCourierProduct
- 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 EmptyStateMetadata
- type ExpiredFinishNotifLabel
- type ExtraInfo
- type Filter
- type GetInvoiceV3
- type GetProductV3
- type GetProductV3Resp
- type GetProductV3Var
- type GetSomIncomeDetail
- type GoldGetPMOSStatus
- type GoldGetPMOSStatusData
- type GroupSticker
- type Header
- type IncomeDetailKey
- type IncomeDetailSection
- type InputNoVariant
- type InputPicture
- type InputVariable
- type InputVariant
- type Invoice
- type InvoiceData
- type InvoiceDetailNonBundle
- type InvoiceDropshipInfo
- type InvoiceFeatures
- type InvoiceOrderData
- type InvoiceOrderDataDetail
- type InvoicePaymentSummary
- type InvoiceRes
- type InvoiceShippingData
- type Lock
- type LogisticInfo
- type LogisticInfoAll
- type ManageProductData
- type Menu
- type MenuInput
- type NoVariantStockPrice
- type OnlineBooking
- type Options
- type OrderDetails
- type OrderItem
- type OrderList
- type OrderListResp
- type OrderProduct
- type OrderTag
- type PMOSStatusData
- type Paging
- 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 ProductSingle
- type ProductStatus
- type ProductUpdateResp
- type ProductUpdateVar
- type ProductVariant
- type ProductVariants
- type SIBIDClosedInfo
- type SIBIDClosedInfoDetail
- type SIBIDError
- type SIBIDErrorExtension
- type SIBIDFavoriteData
- type SIBIDGoldOS
- type SIBIDOs
- type SIBIDResult
- type SIBIDShopAssets
- type SIBIDShopCore
- type SIBIDStatusInfo
- type SOMComponent
- type SOMIncomeDetailRes
- type SOMSummary
- type Score
- type SelectionsOptions
- type SellerProductItem
- type SellerProductItemShop
- type ShopInfoByID
- type ShopInfoByIDError
- type ShopInfoByIDRes
- type ShopInfoIDData
- type ShopLevel
- type ShopLevelResult
- type ShopScoreData
- type ShopScoreDetail
- type ShopScoreLevel
- type ShopScoreLevelError
- type ShopScoreResult
- type SomSection
- type Sort
- type Stats
- type Ticker
- type TokopediaMerchandise
- type TxStats
- type TypeVar
- type VPVCategory
- type VPVData
- type VPVInput
- type VPVProductValidateV3
- type VPVProductValidateV3Data
- type VPVProductValidateV3DataVariants
- type VPVRes
- type VPVVariable
- type Variant
- type WeightUnit
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 AvailableCourierProduct ¶ added in v1.1.61
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 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 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 EmptyStateMetadata ¶ added in v1.1.61
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 GetInvoiceV3 ¶ added in v1.1.64
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 Header ¶
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) GetBannedWord ¶ added in v1.1.65
func (*Header) IsProductFull ¶ added in v1.1.61
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 InvoiceFeatures ¶ added in v1.1.64
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 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 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 ManageProductData ¶
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 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"` ShipmentLogo string `json:"shipment_logo"` 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
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 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 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 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 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 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 SIBIDFavoriteData ¶ added in v1.1.62
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 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 SIBIDShopCore ¶ added in v1.1.62
type SIBIDStatusInfo ¶ added in v1.1.62
type SOMComponent ¶ added in v1.1.61
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 (d *SOMIncomeDetailRes) GetSection(key IncomeDetailSection) *SomSection
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 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 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 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 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 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 ShopScoreResult ¶ added in v1.1.66
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 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 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
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"` }
Click to show internal directories.
Click to hide internal directories.