logistics

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NORMAL_AIR_WAYBILL      ShippingDocumentType   = "NORMAL_AIR_WAYBILL"
	THERMAL_AIR_WAYBILL     ShippingDocumentType   = "THERMAL_AIR_WAYBILL"
	NORMAL_JOB_AIR_WAYBILL  ShippingDocumentType   = "NORMAL_JOB_AIR_WAYBILL"
	THERMAL_JOB_AIR_WAYBILL ShippingDocumentType   = "THERMAL_JOB_AIR_WAYBILL"
	READY                   ShippingDocumentStatus = "READY"
	FAILED                  ShippingDocumentStatus = "FAILED"
	PROCESSING              ShippingDocumentStatus = "PROCESSING"
)

常量

Variables

This section is empty.

Functions

This section is empty.

Types

type Logistics

type Logistics struct {
	Config *shopeeConfig.Config
}

Logistics

func (*Logistics) BatchShipOrder

BatchShipOrder @Title Use this api to batch initiate logistics including arrange pickup, dropoff or shipment for non-integrated logistic channels. Should call v2.logistics.get_shipping_parameter to fetch all required param first. It's recommended to initiate logistics one hour after the orders were placed since there is one-hour window buyer can cancel any order without request to seller. @Description https://open.shopee.com/documents?module=95&type=1&id=688&version=2

func (*Logistics) CreateShippingDocument

CreateShippingDocument @Title Use this api to create shipping document task for each order or package @Description https://open.shopee.com/documents?module=95&type=1&id=547&version=2

func (*Logistics) DeleteAddress

func (l *Logistics) DeleteAddress(addressID int64) entity.DeleteAddressResult

DeleteAddress @Title Use this api to delete address. @Description https://open.shopee.com/documents?module=95&type=1&id=598&version=2

func (*Logistics) DownloadShippingDocument

DownloadShippingDocument @Title Use this api to download shipping_document. You have to call v2.logistics.create_shipping_document to create a new shipping document task first and call v2.logistics.get_shipping_document_resut to get the task status second. If the task is READY, you can download this shipping document. @Description https://open.shopee.com/documents?module=95&type=1&id=548&version=2

func (*Logistics) GetAddressList

func (l *Logistics) GetAddressList() entity.GetAddressListResult

GetAddressList @Title For integrated logistics channel, use this call to get pickup address for pickup mode order. @Description https://open.shopee.com/documents?module=95&type=1&id=558&version=2

func (*Logistics) GetChannelList

func (l *Logistics) GetChannelList() entity.GetChannelListResult

GetChannelList @Title Use this api to get all supported logistic channels. @Description https://open.shopee.com/documents?module=95&type=1&id=559&version=2

func (*Logistics) GetShippingDocumentInfo

func (l *Logistics) GetShippingDocumentInfo(orderSn, packageNumber string) entity.GetShippingDocumentInfoResult

GetShippingDocumentInfo @Title Use this api to fetch the logistics information of an order, these info can be used for airwaybill printing. Dedicated for crossborder SLS order airwaybill. May not be applicable for local channel airwaybill. @Description https://open.shopee.com/documents?module=95&type=1&id=560&version=2

func (*Logistics) GetShippingDocumentParameter

GetShippingDocumentParameter @Title Use this api to get the selectable shipping_document_type and suggested shipping_document_type. @Description https://open.shopee.com/documents?module=95&type=1&id=549&version=2

func (*Logistics) GetShippingDocumentResult

GetShippingDocumentResult @Title Use this api to get the shipping_document of each order or package status. @Description https://open.shopee.com/documents?module=95&type=1&id=561&version=2

func (*Logistics) GetShippingParameter

func (l *Logistics) GetShippingParameter(orderSn string) entity.GetShippingParameterResult

GetShippingParameter @Title Use this api to get shipping parameter. @Description https://open.shopee.com/documents?module=95&type=1&id=550&version=2

func (*Logistics) GetTrackingInfo

func (l *Logistics) GetTrackingInfo(orderSn, packageNumber string) entity.GetTrackingInfoResult

GetTrackingInfo @Title Use this api to get the logistics tracking information of an order. @Description https://open.shopee.com/documents?module=95&type=1&id=551&version=2

func (*Logistics) GetTrackingNumber

func (l *Logistics) GetTrackingNumber(orderSn, packageNumber string, responseOptionalFields ...string) entity.GetTrackingNumberResult

GetTrackingNumber @Title Use this api to get tracking_number when you hava shipped order. @Description https://open.shopee.com/documents?module=95&type=1&id=552&version=2

func (*Logistics) SetAddressConfig

func (l *Logistics) SetAddressConfig(showPickupAddress bool, AddressTypeConfig entity.AddressTypeConfigEntity) entity.SetAddressConfigResult

SetAddressConfig @Title Use this API to set address config of your shop. @Description https://open.shopee.com/documents?module=95&type=1&id=556&version=2

func (*Logistics) ShipOrder

ShipOrder @Title Use this api to initiate logistics including arrange pickup, dropoff or shipment for non-integrated logistic channels. Should call v2.logistics.get_shipping_parameter to fetch all required param first. It's recommended to initiate logistics one hour after the orders were placed since there is one-hour window buyer can cancel any order without request to seller. @Description https://open.shopee.com/documents?module=95&type=1&id=553&version=2

func (*Logistics) UpdateChannel

func (l *Logistics) UpdateChannel(logisticsChannelID int64, enabled, preferred, codEnabled bool) entity.UpdateChannelResult

UpdateChannel @Title Use this api to update shop level logistics channel's configuration. @Description https://open.shopee.com/documents?module=95&type=1&id=554&version=2

func (*Logistics) UpdateShippingOrder

func (l *Logistics) UpdateShippingOrder(orderSn, packageNumber string, pickup *entity.UpdateShippingOrderRequestPickupEntity) entity.UpdateShippingOrderResult

UpdateShippingOrder @Title Use this api to update pickup address and pickup time for shipping order. @Description https://open.shopee.com/documents?module=95&type=1&id=555&version=2

type ShippingDocumentStatus

type ShippingDocumentStatus string

ShippingDocumentStatus

type ShippingDocumentType

type ShippingDocumentType string

ShippingDocumentType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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