shopee

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, cfg *shopeeConfig.Config)

Register

Types

type Shopee

type Shopee struct {
	auth.Auth
	order.Order
	logistics.Logistics
}

Shopee

type Shopeer

type Shopeer interface {
	//auth
	AuthorizationURL() string
	GetAccesstoken(code string, shopID int64) authEntity.GetAccessTokenResult
	RefreshAccessToken(shop commonentity.ShopInfo) authEntity.RefreshAccessTokenResult
	//order
	GetOrderList(
		timeRangeField order.TimeRangeField,
		timeFrom, timeTo, pageSize int,
		cursor string,
		orderStatus order.OrderStatus,
		responseOptionalFields string) orderEntity.GetOrderListResult
	GetShipmentList(cursor string, pageSize int) orderEntity.GetShipmentListResult
	GetOrderDetail(orderSnList []string, responseOptionalFields ...string) orderEntity.GetOrderDetailResult
	SplitOrder(orderSn string, packageList []orderEntity.PackageListRequestEntity) orderEntity.SplitOrderResult
	UnSplitOrder(orderSn string) orderEntity.UnSplitOrderResult
	CancelOrder(orderSn string, cancelReason order.CancelReason, itemList []orderEntity.CancelOrderRequestEntity) orderEntity.CancelOrderResult
	HandleBuyerCancellation(orderSn string, operation order.Operation) orderEntity.HandleBuyerCancellationResult
	SetNote(orderSn, note string) orderEntity.SetNoteResult
	AddInvoiceData(orderSn string, invoiceData orderEntity.InvoiceDataEntity) orderEntity.AddInvoiceDataResult
	//logistics
	GetShippingParameter(orderSn string) logisticsEntity.GetShippingParameterResult
}

Shopeer

func GetApi

func GetApi(name string) Shopeer

GetApi

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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