Documentation ¶
Index ¶
- Variables
- func CreateFormFile(w *multipart.Writer, name string, filename string) (io.Writer, error)
- type AccountBalance
- type AccountCta
- type AccountData
- type AccountInfo
- type AccountOwner
- type AccountRes
- type AccountShortcutGroupList
- type AccountShortcutList
- type AccountTier
- type AccountTokopoints
- type AccountTokopointsShortcutList
- type AccountTokopointsSumCoupon
- type AccountUser
- type AccountUserShopInfo
- type AccountWallet
- type AccountWalletPending
- type AddShopShowcase
- type AddShopShowcaseData
- type AddShopShowcaseInput
- type AddShopShowcaseRes
- type AddShopShowcaseVar
- type BankAccount
- type BankAccountUserInfo
- type Category
- type CategoryAllListLite
- type CategoryAllListLiteData
- type CategoryAllListLiteRes
- type CustomParse
- type Data
- type DeleteShopShowcase
- type DeleteShopShowcaseInput
- type DeleteShopShowcaseRes
- type DeleteShopShowcaseVar
- type Error
- type GetBankAccount
- type GetBankAccountData
- type GetBankAccountDataInfo
- type GetBankAccountRes
- type GetShopScoreLevelRes
- type GetShopScoreLevelVar
- type GoldGetPMOSStatusRes
- type GoldGetPMOSStatusVar
- type GraphqlPayload
- type Header
- type ImageChatRes
- type Info
- type InfoKycRes
- type InfoKycType
- type IsAtuheticatedData
- type IsAuthenticatedRes
- type MetaAccess
- type MetaFilter
- type MetaShopCategories
- type MetaSort
- type MetaTab
- type MetaTabs
- type NotificationCounterRes
- type NotificationCounterVar
- type Points
- type ProductAddRuleData
- type ProductAddRuleRes
- type ProductDetail
- type ProductListMeta
- type ProductListMetaData
- type ProductListMetaRes
- type ProductListMetaVar
- type Session
- type SetShopActiveData
- type SetShopActiveRes
- type SetShopActiveVariable
- type ShopInfoByIDVar
- type ShopScorePenaltyDetail
- type ShopScorePenaltyDetailData
- type ShopScorePenaltyDetailRes
- type ShopScorePenaltyDetailResult
- type ShopScorePenaltyDetailVar
- type ShopScorePenaltySummary
- type ShopScorePenaltySummaryData
- type ShopScorePenaltySummaryError
- type ShopScorePenaltySummaryRes
- type ShopScorePenaltySummaryResult
- type ShopScorePenaltySummaryVar
- type ShopShowcaseData
- type ShopShowcaseError
- type ShopShowcaseRes
- type ShopShowcaseResult
- type ShopShowcaseVar
- type ShopShowcases
- type Status
- type SubmitKycData
- type SubmitKycDataApp
- type SubmitKycHeader
- type SubmitKycRes
- type TokopediaApi
- func (api *TokopediaApi) AccountInfo() (*AccountRes, error)
- func (api *TokopediaApi) AddShopShowcase(name string) (*AddShopShowcaseRes, error)
- func (api *TokopediaApi) BulkProductEditV3(payload *model.BulkProductEditV3Var) (*model.BulkProductEditV3Resp, error)
- func (api *TokopediaApi) CategoryAllListLite() (*CategoryAllListLiteRes, error)
- func (api *TokopediaApi) ChatGetBundleSticker(payload *model.ChatGetBundleStickerVar) (*model.ChatGetBundleStickerResp, error)
- func (api *TokopediaApi) ChatGetGroupSticker(payload *model.TypeVar) (*model.ChatGetGroupStickerResp, error)
- func (api *TokopediaApi) DeleteShopShowcase(id string) (*DeleteShopShowcaseRes, error)
- func (api *TokopediaApi) GetBankAccount() (*GetBankAccountRes, error)
- func (api *TokopediaApi) GetInfoKyc() (*InfoKycRes, error)
- func (api *TokopediaApi) GetInvoiceV3(invoice string) (*model.InvoiceRes, error)
- func (api *TokopediaApi) GetProductAddRule() (*ProductAddRuleRes, error)
- func (api *TokopediaApi) GetProductV3(payload *model.GetProductV3Var) (*model.GetProductV3Resp, error)
- func (api *TokopediaApi) GetShopScoreLevel() (*GetShopScoreLevelRes, error)
- func (api *TokopediaApi) GoldGetPMOSStatus() (*GoldGetPMOSStatusRes, error)
- func (api *TokopediaApi) IsAutheticated() (*IsAuthenticatedRes, error)
- func (api *TokopediaApi) NewGraphqlReq(payload *GraphqlPayload) *http.Request
- func (api *TokopediaApi) NewRequest(method, ur string, query any, body io.Reader) *http.Request
- func (api *TokopediaApi) NotificationCounter() (*NotificationCounterRes, error)
- func (api *TokopediaApi) OrderIncomeDetail(orderid int) (*model.SOMIncomeDetailRes, error)
- func (api *TokopediaApi) OrderList(payload *query.OrderListQuery) (*model.OrderListResp, error)
- func (api *TokopediaApi) ProductAdd(variables *model.ProductAddVar) (*model.ProductAddResp, error)
- func (api *TokopediaApi) ProductList(payload *model.ProductListVar) (*model.ProductListResp, error)
- func (api *TokopediaApi) ProductListMeta() (*ProductListMetaRes, error)
- func (api *TokopediaApi) ProductUpdate(payload *model.ProductUpdateVar) (*model.ProductUpdateResp, error)
- func (api *TokopediaApi) SendRequest(req *http.Request, hasil any) error
- func (api *TokopediaApi) SendRequestCustomParse(req *http.Request, parsers ...CustomParse) error
- func (api *TokopediaApi) SendRequestTest(req *http.Request, hasil any) ([]byte, error)
- func (api *TokopediaApi) SetShopActive() (*SetShopActiveRes, error)
- func (api *TokopediaApi) ShopInfoByID() (*model.ShopInfoByIDRes, error)
- func (api *TokopediaApi) ShopScorePenaltyDetail(payload *ShopScorePenaltyDetailVar) (*ShopScorePenaltyDetailRes, error)
- func (api *TokopediaApi) ShopScorePenaltySummary(payload *ShopScorePenaltySummaryVar) (*ShopScorePenaltySummaryRes, error)
- func (api *TokopediaApi) ShopShowcase() (*ShopShowcaseRes, error)
- func (api *TokopediaApi) SubmitKyc(imgKtpFile, imgSelfieFile io.Reader) (res *SubmitKycRes, err error)
- func (api *TokopediaApi) UploadImageChat(msgId string, locfile string) (*ImageChatRes, error)
- func (api *TokopediaApi) UploadImageFromUrl(uri string) (*UploadMediaResp, error)
- func (api *TokopediaApi) UploadProductImage(content io.Reader) (*UploadMediaResp, error)
- func (api *TokopediaApi) UploadProductImageV2(client *http.Client, content io.Reader) (*UploadMediaResp, error)
- func (api *TokopediaApi) VariantPricevValidation(catId int, variant *model.Variant) (*model.VPVRes, error)
- type UpImageHeader
- type UpdateShopActive
- type UploadMediaResp
- type UserShopInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientApi *http.Client = &http.Client{ Transport: &http.Transport{ MaxIdleConnsPerHost: 5, }, Timeout: 30 * time.Second, }
View Source
var ErrIsNotAuthorized = errors.New("shop is not authorized")
View Source
var ErrKycInfoNotFound = errors.New("kyc info not found")
View Source
var ErrNoShopid = errors.New("no shopid")
View Source
var KycRx = regexp.MustCompile(`{"__typename":"KycProjectInfoResult",(.*)}]}`)
Functions ¶
Types ¶
type AccountBalance ¶ added in v1.0.2
type AccountCta ¶ added in v1.0.2
type AccountData ¶ added in v1.0.2
type AccountData struct { User *AccountUser `json:"user"` UserShopInfo *AccountUserShopInfo `json:"userShopInfo"` Wallet *AccountWallet `json:"wallet"` WalletPending *AccountWalletPending `json:"walletPending"` Balance *AccountBalance `json:"balance"` Tokopoints *AccountTokopoints `json:"tokopoints"` TokopointsShortcutList *AccountTokopointsShortcutList `json:"tokopointsShortcutList"` TokopointsSumCoupon *AccountTokopointsSumCoupon `json:"tokopointsSumCoupon"` }
type AccountInfo ¶ added in v1.0.2
type AccountOwner ¶ added in v1.0.2
type AccountRes ¶ added in v1.0.2
type AccountRes struct {
Data *AccountData `json:"data"`
}
type AccountShortcutGroupList ¶ added in v1.0.2
type AccountShortcutGroupList struct { ShortcutList []*AccountShortcutList `json:"shortcutList"` Typename string `json:"__typename"` }
type AccountShortcutList ¶ added in v1.0.2
type AccountShortcutList struct { ID int `json:"id"` Cta *AccountCta `json:"cta"` Description string `json:"description"` Typename string `json:"__typename"` }
type AccountTier ¶ added in v1.0.2
type AccountTokopoints ¶ added in v1.0.2
type AccountTokopointsShortcutList ¶ added in v1.0.2
type AccountTokopointsShortcutList struct { ShortcutGroupList []*AccountShortcutGroupList `json:"shortcutGroupList"` Typename string `json:"__typename"` }
type AccountTokopointsSumCoupon ¶ added in v1.0.2
type AccountUser ¶ added in v1.0.2
type AccountUserShopInfo ¶ added in v1.0.2
type AccountUserShopInfo struct { Info *AccountInfo `json:"info"` Owner *AccountOwner `json:"owner"` Typename string `json:"__typename"` }
type AccountWallet ¶ added in v1.0.2
type AccountWalletPending ¶ added in v1.0.2
type AddShopShowcase ¶ added in v1.0.1
type AddShopShowcaseData ¶ added in v1.0.1
type AddShopShowcaseData struct {
AddShopShowcase AddShopShowcase `json:"addShopShowcase"`
}
type AddShopShowcaseInput ¶ added in v1.0.1
type AddShopShowcaseInput struct {
Name string `json:"name"`
}
type AddShopShowcaseRes ¶ added in v1.0.1
type AddShopShowcaseRes struct {
Data *AddShopShowcaseData `json:"data"`
}
type AddShopShowcaseVar ¶ added in v1.0.1
type AddShopShowcaseVar struct {
Input *AddShopShowcaseInput `json:"input"`
}
type BankAccount ¶ added in v1.1.65
type BankAccount struct { AccID int `json:"accID"` AccName string `json:"accName"` AccNumber string `json:"accNumber"` BankID int `json:"bankID"` BankName string `json:"bankName"` BankImageURL string `json:"bankImageUrl"` Fsp int `json:"fsp"` StatusFraud int `json:"statusFraud"` CopyWriting string `json:"copyWriting"` Typename string `json:"__typename"` }
type BankAccountUserInfo ¶ added in v1.1.65
type CategoryAllListLite ¶ added in v1.0.1
type CategoryAllListLiteData ¶ added in v1.0.1
type CategoryAllListLiteData struct {
CategoryAllListLite *CategoryAllListLite `json:"categoryAllListLite"`
}
type CategoryAllListLiteRes ¶ added in v1.0.1
type CategoryAllListLiteRes struct {
Data CategoryAllListLiteData `json:"data"`
}
type CustomParse ¶ added in v1.1.66
type Data ¶ added in v1.0.1
type Data struct {
DeleteShopShowcase *DeleteShopShowcase `json:"deleteShopShowcase"`
}
type DeleteShopShowcase ¶ added in v1.0.1
type DeleteShopShowcaseInput ¶ added in v1.0.1
type DeleteShopShowcaseInput struct {
ID string `json:"id"`
}
type DeleteShopShowcaseRes ¶ added in v1.0.1
type DeleteShopShowcaseRes struct {
Data *Data `json:"data"`
}
type DeleteShopShowcaseVar ¶ added in v1.0.1
type DeleteShopShowcaseVar struct {
Input *DeleteShopShowcaseInput `json:"input"`
}
type GetBankAccount ¶ added in v1.1.65
type GetBankAccount struct { Status string `json:"status"` Header *model.Header `json:"header"` Data *GetBankAccountDataInfo `json:"data"` Typename string `json:"__typename"` }
type GetBankAccountData ¶ added in v1.1.65
type GetBankAccountData struct {
GetBankAccount *GetBankAccount `json:"GetBankAccount"`
}
type GetBankAccountDataInfo ¶ added in v1.1.65
type GetBankAccountDataInfo struct { BankAccounts []*BankAccount `json:"bankAccounts"` UserInfo BankAccountUserInfo `json:"userInfo"` Typename string `json:"__typename"` }
type GetBankAccountRes ¶ added in v1.1.65
type GetBankAccountRes struct {
Data *GetBankAccountData `json:"data"`
}
type GetShopScoreLevelRes ¶
type GetShopScoreLevelRes struct {
Data *model.ShopScoreData `json:"data"`
}
type GetShopScoreLevelVar ¶
type GoldGetPMOSStatusRes ¶
type GoldGetPMOSStatusRes struct {
Data *model.GoldGetPMOSStatusData `json:"data"`
}
type GoldGetPMOSStatusVar ¶
type GoldGetPMOSStatusVar struct {
ShopID int64 `json:"shopId"`
}
type GraphqlPayload ¶
type Header ¶
type ImageChatRes ¶
type Info ¶ added in v1.1.46
type Info struct { ShopID int64 `json:"shop_id,string"` ShopDomain string `json:"shop_domain"` ShopName string `json:"shop_name"` ShopAvatar string `json:"shop_avatar"` ShopIsOfficial string `json:"shop_is_official"` ShopScore int `json:"shop_score"` ShopLocation string `json:"shop_location"` Typename string `json:"__typename"` }
func (*Info) UnmarshalJSON ¶ added in v1.1.46
type InfoKycRes ¶ added in v1.1.66
type InfoKycType ¶ added in v1.1.66
type IsAtuheticatedData ¶
type IsAtuheticatedData struct { IsAuthenticated int `json:"isAuthenticated"` UserShopInfo *UserShopInfo `json:"userShopInfo"` User struct { Email string `json:"email"` ID string `json:"id"` Name string `json:"name"` FullName string `json:"full_name"` ProfilePicture string `json:"profilePicture"` Typename string `json:"__typename"` } `json:"user"` }
type IsAuthenticatedRes ¶
type IsAuthenticatedRes struct {
Data IsAtuheticatedData `json:"data"`
}
type MetaAccess ¶ added in v1.1.61
type MetaFilter ¶ added in v1.1.61
type MetaShopCategories ¶ added in v1.1.61
type MetaTab ¶ added in v1.1.61
type MetaTab struct { ID model.ProductStatus `json:"id"` Name string `json:"name"` Value int `json:"value"` Typename string `json:"__typename"` }
type NotificationCounterRes ¶
type NotificationCounterRes struct { Data struct { Notifications struct { Resolution int `json:"resolution"` ResolutionAs struct { Seller int `json:"seller"` Typename string `json:"__typename"` } `json:"resolutionAs"` NotifcenterTrxUnread struct { NotifUnreadSellerInt int `json:"notif_unread_seller_int"` Typename string `json:"__typename"` } `json:"notifcenter_trx_unread"` NotifcenterUnread struct { NotifUnreadSellerInt int `json:"notif_unread_seller_int"` Typename string `json:"__typename"` } `json:"notifcenter_unread"` SellerOrderStatus struct { NewOrder int `json:"newOrder"` ReadyToShip int `json:"readyToShip"` Shipped int `json:"shipped"` ArriveAtDestination int `json:"arriveAtDestination"` Typename string `json:"__typename"` } `json:"sellerOrderStatus"` Inbox struct { TalkSeller int `json:"talk_seller"` Ticket int `json:"ticket"` Review int `json:"review"` Reputation int `json:"reputation"` Typename string `json:"__typename"` } `json:"inbox"` Chat struct { UnreadsSeller int `json:"unreadsSeller"` Typename string `json:"__typename"` } `json:"chat"` Typename string `json:"__typename"` } `json:"notifications"` } `json:"data"` }
type NotificationCounterVar ¶
type NotificationCounterVar struct {
ShopID string `json:"shopId"`
}
type ProductAddRuleData ¶ added in v1.1.36
type ProductAddRuleData struct { ProductAddRule struct { Header struct { Reason string `json:"reason"` Messages []any `json:"messages"` ErrorCode string `json:"errorCode"` Typename string `json:"__typename"` } `json:"header"` Data struct { Eligible struct { Value bool `json:"value"` TotalProduct int `json:"totalProduct"` Limit int `json:"limit"` ActionItems []string `json:"actionItems"` Typename string `json:"__typename"` } `json:"eligible"` Typename string `json:"__typename"` } `json:"data"` Typename string `json:"__typename"` } `json:"ProductAddRule"` }
type ProductAddRuleRes ¶ added in v1.1.36
type ProductAddRuleRes struct {
Data ProductAddRuleData `json:"data"`
}
type ProductDetail ¶ added in v1.0.1
type ProductListMeta ¶ added in v1.1.61
type ProductListMeta struct { Header Header `json:"header"` Data ProductListMetaData `json:"data"` Typename string `json:"__typename"` }
type ProductListMetaData ¶ added in v1.1.61
type ProductListMetaData struct { Tab MetaTabs `json:"tab"` Filter []MetaFilter `json:"filter"` Sort []MetaSort `json:"sort"` ShopCategories []MetaShopCategories `json:"shopCategories"` Access []MetaAccess `json:"access"` Typename string `json:"__typename"` }
type ProductListMetaRes ¶
type ProductListMetaRes struct { Data struct { ProductListMeta ProductListMeta `json:"ProductListMeta"` } `json:"data"` }
type ProductListMetaVar ¶
type SetShopActiveData ¶ added in v1.1.66
type SetShopActiveData struct {
UpdateShopActive *UpdateShopActive `json:"updateShopActive"`
}
type SetShopActiveRes ¶ added in v1.1.66
type SetShopActiveRes struct {
Data *SetShopActiveData `json:"data"`
}
type SetShopActiveVariable ¶ added in v1.1.66
type SetShopActiveVariable struct {
Device string `json:"device"`
}
type ShopInfoByIDVar ¶
func NewShopInfoByIDVar ¶ added in v1.1.62
func NewShopInfoByIDVar(shopid int64) *ShopInfoByIDVar
type ShopScorePenaltyDetail ¶ added in v1.0.1
type ShopScorePenaltyDetail struct { Result []*ShopScorePenaltyDetailResult `json:"result"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` Error *Error `json:"error"` Typename string `json:"__typename"` }
type ShopScorePenaltyDetailData ¶ added in v1.0.1
type ShopScorePenaltyDetailData struct {
ShopScorePenaltyDetail *ShopScorePenaltyDetail `json:"shopScorePenaltyDetail"`
}
type ShopScorePenaltyDetailRes ¶ added in v1.0.1
type ShopScorePenaltyDetailRes struct {
Data *ShopScorePenaltyDetailData `json:"data"`
}
type ShopScorePenaltyDetailResult ¶ added in v1.0.1
type ShopScorePenaltyDetailResult struct { ShopPenaltyID string `json:"shopPenaltyID"` InvoiceNumber string `json:"invoiceNumber"` Reason string `json:"reason"` Score int `json:"score"` CreateTime string `json:"createTime"` TypeID int `json:"typeID"` TypeName string `json:"typeName"` PenaltyStartDate string `json:"penaltyStartDate"` PenaltyExpirationDate string `json:"penaltyExpirationDate"` Status string `json:"status"` ProductDetail ProductDetail `json:"productDetail"` PenaltyTypeGroup int `json:"penaltyTypeGroup"` Typename string `json:"__typename"` }
type ShopScorePenaltyDetailVar ¶ added in v1.0.1
type ShopScorePenaltyDetailVar struct { ShopID string `json:"shopID"` Page int `json:"page"` Total int `json:"total"` StartDate time.Time `json:"startDate"` EndDate time.Time `json:"endDate"` Sort int `json:"sort"` Source string `json:"source"` }
func (*ShopScorePenaltyDetailVar) MarshalJSON ¶ added in v1.0.1
func (u *ShopScorePenaltyDetailVar) MarshalJSON() ([]byte, error)
type ShopScorePenaltySummary ¶ added in v1.0.1
type ShopScorePenaltySummary struct { Result *ShopScorePenaltySummaryResult `json:"result"` Error *ShopScorePenaltySummaryError `json:"error"` Typename string `json:"__typename"` }
type ShopScorePenaltySummaryData ¶ added in v1.0.1
type ShopScorePenaltySummaryData struct {
ShopScorePenaltySummary *ShopScorePenaltySummary `json:"shopScorePenaltySummary"`
}
type ShopScorePenaltySummaryError ¶ added in v1.0.1
type ShopScorePenaltySummaryError struct { Message string `json:"message"` Typename string `json:"__typename"` }
func (*ShopScorePenaltySummaryError) Error ¶ added in v1.0.1
func (er *ShopScorePenaltySummaryError) Error() string
type ShopScorePenaltySummaryRes ¶ added in v1.0.1
type ShopScorePenaltySummaryRes struct {
Data *ShopScorePenaltySummaryData `json:"data"`
}
type ShopScorePenaltySummaryResult ¶ added in v1.0.1
type ShopScorePenaltySummaryVar ¶ added in v1.0.1
type ShopScorePenaltySummaryVar struct { StartDate time.Time `json:"startDate"` // "2023-07-14" EndDate time.Time `json:"endDate"` ShopID string `json:"shopID"` Source string `json:"source"` }
func (*ShopScorePenaltySummaryVar) MarshalJSON ¶ added in v1.0.1
func (u *ShopScorePenaltySummaryVar) MarshalJSON() ([]byte, error)
type ShopShowcaseData ¶ added in v1.0.1
type ShopShowcaseData struct {
ShopShowcases ShopShowcases `json:"shopShowcases"`
}
type ShopShowcaseError ¶ added in v1.0.1
type ShopShowcaseRes ¶ added in v1.0.1
type ShopShowcaseRes struct {
Data *ShopShowcaseData `json:"data"`
}
type ShopShowcaseResult ¶ added in v1.0.1
type ShopShowcaseVar ¶ added in v1.0.1
type ShopShowcaseVar struct {
WithDefault bool `json:"withDefault"`
}
type ShopShowcases ¶ added in v1.0.1
type ShopShowcases struct { Result []*ShopShowcaseResult `json:"result"` Error *ShopShowcaseError `json:"error"` Typename string `json:"__typename"` }
type Status ¶ added in v1.0.2
type Status struct { Tier AccountTier `json:"tier"` Points Points `json:"points"` Typename string `json:"__typename"` }
type SubmitKycData ¶ added in v1.1.66
type SubmitKycData struct { IsSuccessRegister bool `json:"is_success_register"` ListRetake any `json:"list_retake"` ListMessage any `json:"list_message"` Apps SubmitKycDataApp `json:"apps"` }
type SubmitKycDataApp ¶ added in v1.1.66
type SubmitKycHeader ¶ added in v1.1.66
type SubmitKycRes ¶ added in v1.1.66
type SubmitKycRes struct { Header SubmitKycHeader `json:"header"` Data *SubmitKycData `json:"data"` }
type TokopediaApi ¶
type TokopediaApi struct { Session Session AuthenticatedData *IsAtuheticatedData // contains filtered or unexported fields }
func NewTokopediaApi ¶
func NewTokopediaApi(session Session) *TokopediaApi
func (*TokopediaApi) AccountInfo ¶ added in v1.0.2
func (api *TokopediaApi) AccountInfo() (*AccountRes, error)
func (*TokopediaApi) AddShopShowcase ¶ added in v1.0.1
func (api *TokopediaApi) AddShopShowcase(name string) (*AddShopShowcaseRes, error)
func (*TokopediaApi) BulkProductEditV3 ¶
func (api *TokopediaApi) BulkProductEditV3(payload *model.BulkProductEditV3Var) (*model.BulkProductEditV3Resp, error)
func (*TokopediaApi) CategoryAllListLite ¶ added in v1.0.1
func (api *TokopediaApi) CategoryAllListLite() (*CategoryAllListLiteRes, error)
func (*TokopediaApi) ChatGetBundleSticker ¶
func (api *TokopediaApi) ChatGetBundleSticker(payload *model.ChatGetBundleStickerVar) (*model.ChatGetBundleStickerResp, error)
func (*TokopediaApi) ChatGetGroupSticker ¶
func (api *TokopediaApi) ChatGetGroupSticker(payload *model.TypeVar) (*model.ChatGetGroupStickerResp, error)
func (*TokopediaApi) DeleteShopShowcase ¶ added in v1.0.1
func (api *TokopediaApi) DeleteShopShowcase(id string) (*DeleteShopShowcaseRes, error)
func (*TokopediaApi) GetBankAccount ¶ added in v1.1.65
func (api *TokopediaApi) GetBankAccount() (*GetBankAccountRes, error)
func (*TokopediaApi) GetInfoKyc ¶ added in v1.1.66
func (api *TokopediaApi) GetInfoKyc() (*InfoKycRes, error)
func (*TokopediaApi) GetInvoiceV3 ¶ added in v1.1.64
func (api *TokopediaApi) GetInvoiceV3(invoice string) (*model.InvoiceRes, error)
func (*TokopediaApi) GetProductAddRule ¶ added in v1.1.36
func (api *TokopediaApi) GetProductAddRule() (*ProductAddRuleRes, error)
func (*TokopediaApi) GetProductV3 ¶
func (api *TokopediaApi) GetProductV3(payload *model.GetProductV3Var) (*model.GetProductV3Resp, error)
func (*TokopediaApi) GetShopScoreLevel ¶
func (api *TokopediaApi) GetShopScoreLevel() (*GetShopScoreLevelRes, error)
func (*TokopediaApi) GoldGetPMOSStatus ¶
func (api *TokopediaApi) GoldGetPMOSStatus() (*GoldGetPMOSStatusRes, error)
func (*TokopediaApi) IsAutheticated ¶
func (api *TokopediaApi) IsAutheticated() (*IsAuthenticatedRes, error)
func (*TokopediaApi) NewGraphqlReq ¶
func (api *TokopediaApi) NewGraphqlReq(payload *GraphqlPayload) *http.Request
func (*TokopediaApi) NewRequest ¶
func (*TokopediaApi) NotificationCounter ¶
func (api *TokopediaApi) NotificationCounter() (*NotificationCounterRes, error)
func (*TokopediaApi) OrderIncomeDetail ¶ added in v1.1.61
func (api *TokopediaApi) OrderIncomeDetail(orderid int) (*model.SOMIncomeDetailRes, error)
func (*TokopediaApi) OrderList ¶ added in v1.1.61
func (api *TokopediaApi) OrderList(payload *query.OrderListQuery) (*model.OrderListResp, error)
func (*TokopediaApi) ProductAdd ¶
func (api *TokopediaApi) ProductAdd(variables *model.ProductAddVar) (*model.ProductAddResp, error)
func (*TokopediaApi) ProductList ¶
func (api *TokopediaApi) ProductList(payload *model.ProductListVar) (*model.ProductListResp, error)
func (*TokopediaApi) ProductListMeta ¶
func (api *TokopediaApi) ProductListMeta() (*ProductListMetaRes, error)
func (*TokopediaApi) ProductUpdate ¶
func (api *TokopediaApi) ProductUpdate(payload *model.ProductUpdateVar) (*model.ProductUpdateResp, error)
func (*TokopediaApi) SendRequest ¶
func (api *TokopediaApi) SendRequest(req *http.Request, hasil any) error
func (*TokopediaApi) SendRequestCustomParse ¶ added in v1.1.66
func (api *TokopediaApi) SendRequestCustomParse(req *http.Request, parsers ...CustomParse) error
func (*TokopediaApi) SendRequestTest ¶ added in v1.1.50
func (*TokopediaApi) SetShopActive ¶ added in v1.1.66
func (api *TokopediaApi) SetShopActive() (*SetShopActiveRes, error)
func (*TokopediaApi) ShopInfoByID ¶
func (api *TokopediaApi) ShopInfoByID() (*model.ShopInfoByIDRes, error)
func (*TokopediaApi) ShopScorePenaltyDetail ¶ added in v1.0.1
func (api *TokopediaApi) ShopScorePenaltyDetail(payload *ShopScorePenaltyDetailVar) (*ShopScorePenaltyDetailRes, error)
func (*TokopediaApi) ShopScorePenaltySummary ¶ added in v1.0.1
func (api *TokopediaApi) ShopScorePenaltySummary(payload *ShopScorePenaltySummaryVar) (*ShopScorePenaltySummaryRes, error)
func (*TokopediaApi) ShopShowcase ¶ added in v1.0.1
func (api *TokopediaApi) ShopShowcase() (*ShopShowcaseRes, error)
func (*TokopediaApi) SubmitKyc ¶ added in v1.1.66
func (api *TokopediaApi) SubmitKyc(imgKtpFile, imgSelfieFile io.Reader) (res *SubmitKycRes, err error)
TODO: response success
func (*TokopediaApi) UploadImageChat ¶
func (api *TokopediaApi) UploadImageChat(msgId string, locfile string) (*ImageChatRes, error)
func (*TokopediaApi) UploadImageFromUrl ¶
func (api *TokopediaApi) UploadImageFromUrl(uri string) (*UploadMediaResp, error)
func (*TokopediaApi) UploadProductImage ¶
func (api *TokopediaApi) UploadProductImage(content io.Reader) (*UploadMediaResp, error)
func (*TokopediaApi) UploadProductImageV2 ¶ added in v1.1.64
func (api *TokopediaApi) UploadProductImageV2(client *http.Client, content io.Reader) (*UploadMediaResp, error)
func (*TokopediaApi) VariantPricevValidation ¶ added in v1.1.64
type UpImageHeader ¶
type UpImageHeader struct { ProcessTime float64 `json:"process_time"` Reason string `json:"reason"` ErrorCode string `json:"error_code"` IsSuccess bool `json:"is_success"` Messages []string `json:"messages"` }
func (*UpImageHeader) Error ¶
func (head *UpImageHeader) Error() string
type UpdateShopActive ¶ added in v1.1.66
type UploadMediaResp ¶
type UploadMediaResp struct { Header *UpImageHeader `json:"header"` Data struct { UploadID string `json:"upload_id"` ImageURL string `json:"image_url"` } `json:"data"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.