entity

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrackingNumberResponseOptionalFields

func TrackingNumberResponseOptionalFields() string

TrackingNumberResponseOptionalFields

Types

type AddressEntity

type AddressEntity struct {
	AddressID    int64            `json:"address_id"`
	Region       string           `json:"region"`
	State        string           `json:"state"`
	City         string           `json:"city"`
	Address      string           `json:"address"`
	ZipCode      string           `json:"zipcode"`
	District     string           `json:"district"`
	Town         string           `json:"town"`
	AddressFlag  []string         `json:"address_flag"`
	TimeSlotList []TimeSlotEntity `json:"time_slot_list"`
	AddressType  []string         `json:"address_type"`
}

AddressEntity

func (AddressEntity) String

func (a AddressEntity) String() string

String

type AddressTypeConfigEntity

type AddressTypeConfigEntity struct {
	AddressID   int64    `json:"address_id"`
	AddressType []string `json:"address_type"`
}

AddressTypeConfigEntity

func (AddressTypeConfigEntity) String

func (a AddressTypeConfigEntity) String() string

String

type BatchShipOrderRequestDropoffEntity

type BatchShipOrderRequestDropoffEntity struct {
	BranchID       int64  `json:"branch_id"`
	SenderRealName string `json:"sender_real_name"`
	TrackingNumber string `json:"tracking_number"`
}

BatchShipOrderRequestDropoffEntity

func (BatchShipOrderRequestDropoffEntity) String

String

type BatchShipOrderRequestNonIntegratedEntity

type BatchShipOrderRequestNonIntegratedEntity struct {
	TrackingNumber string `json:"tracking_number"`
}

BatchShipOrderRequestNonIntegratedEntity

func (BatchShipOrderRequestNonIntegratedEntity) String

String

type BatchShipOrderRequestOrderListEntity

type BatchShipOrderRequestOrderListEntity struct {
	OrderSn       string `json:"order_sn"`
	PackageNumber string `json:"package_number"`
}

BatchShipOrderRequestOrderListEntity

func (BatchShipOrderRequestOrderListEntity) String

String

type BatchShipOrderRequestPickupEntity

type BatchShipOrderRequestPickupEntity struct {
	AddressID      int64  `json:"address_id"`
	PickupTimeID   string `json:"pickup_time_id"`
	TrackingNumber string `json:"tracking_number"`
}

BatchShipOrderRequestPickupEntity

func (BatchShipOrderRequestPickupEntity) String

String

type BatchShipOrderResult

type BatchShipOrderResult struct {
	commonentity.Result
	Warning  []ShippingDocumentParameterRequestOrderListEntity `json:"warning"`
	Response BatchShipOrderResultResponse                      `json:"response"`
}

BatchShipOrderResult

func (BatchShipOrderResult) String

func (b BatchShipOrderResult) String() string

String

type BatchShipOrderResultEntity

type BatchShipOrderResultEntity struct {
	OrderSn       string `json:"order_sn"`
	PackageNumber string `json:"package_number"`
	FailError     string `json:"fail_error"`
	FailMessage   string `json:"fail_message"`
}

BatchShipOrderResultEntity

func (BatchShipOrderResultEntity) String

String

type BatchShipOrderResultResponse

type BatchShipOrderResultResponse struct {
	ResultList []BatchShipOrderResultEntity `json:"result_list"`
}

BatchShipOrderResultResponse

type BranchEntity

type BranchEntity struct {
	BranchID int64  `json:"branch_id"`
	Region   string `json:"region"`
	State    string `json:"state"`
	City     string `json:"city"`
	Address  string `json:"address"`
	ZipCode  string `json:"zipcode"`
	District string `json:"district"`
	Town     string `json:"town"`
}

BranchEntity

func (BranchEntity) String

func (b BranchEntity) String() string

String

type BranchListEntity

type BranchListEntity struct {
	BranchID int64  `json:"branch_id"`
	Region   string `json:"region"`
	State    string `json:"state"`
	City     string `json:"city"`
	Address  string `json:"address"`
	ZipCode  string `json:"zipcode"`
	District string `json:"district"`
	Town     string `json:"town"`
}

BranchListEntity

func (BranchListEntity) String

func (b BranchListEntity) String() string

String

type CreateShippingDocumentRequestOrderListEntity

type CreateShippingDocumentRequestOrderListEntity struct {
	OrderSn              string `json:"order_sn"`
	PackageNumber        string `json:"package_number"`
	TrackingNumber       string `json:"tracking_number"`
	ShippingDocumentType string `json:"shipping_document_type"`
}

CreateShippingDocumentRequestOrderListEntity

func (CreateShippingDocumentRequestOrderListEntity) String

String

type CreateShippingDocumentResult

type CreateShippingDocumentResult struct {
	commonentity.Result
	Warning  []ShippingDocumentParameterRequestOrderListEntity `json:"warning"`
	Response CreateShippingDocumentResultResponse              `json:"response"`
}

CreateShippingDocumentResult

func (CreateShippingDocumentResult) String

String

type CreateShippingDocumentResultEntity

type CreateShippingDocumentResultEntity struct {
	OrderSn       string `json:"order_sn"`
	PackageNumber string `json:"package_number"`
	FailError     string `json:"fail_error"`
	FailMessage   string `json:"fail_message"`
}

CreateShippingDocumentResultEntity

func (CreateShippingDocumentResultEntity) String

String

type CreateShippingDocumentResultResponse

type CreateShippingDocumentResultResponse struct {
	ResultList []CreateShippingDocumentResultEntity `json:"result_list"`
}

CreateShippingDocumentResultResponse

func (CreateShippingDocumentResultResponse) String

String

type DeleteAddressResult

type DeleteAddressResult struct {
	commonentity.Result
}

DeleteAddressResult

func (DeleteAddressResult) String

func (d DeleteAddressResult) String() string

String

type DownloadShippingDocumentRequestOrderListEntity

type DownloadShippingDocumentRequestOrderListEntity struct {
	ShippingDocumentParameterRequestOrderListEntity
}

DownloadShippingDocumentRequestOrderListEntity

func (DownloadShippingDocumentRequestOrderListEntity) String

String

type DownloadShippingDocumentResult

type DownloadShippingDocumentResult struct {
	commonentity.Result
	File []byte
}

DownloadShippingDocumentResult

func (DownloadShippingDocumentResult) String

String

type DropoffEntity

type DropoffEntity struct {
	BranchList []BranchEntity `json:"branch_list"`
}

DropoffEntity

func (DropoffEntity) String

func (d DropoffEntity) String() string

String

type GetAddressListResponse

type GetAddressListResponse struct {
	ShowPickupAddress bool            `json:"show_pickup_address"`
	AddressList       []AddressEntity `json:"address_list"`
}

GetAddressListResponse

func (GetAddressListResponse) String

func (g GetAddressListResponse) String() string

String

type GetAddressListResult

type GetAddressListResult struct {
	commonentity.Result
	Response GetAddressListResponse `json:"response"`
}

GetAddressListResult

func (GetAddressListResult) String

func (g GetAddressListResult) String() string

String

type GetChannelListResponse

type GetChannelListResponse struct {
	LogisticsChannelList []LogisticsChannelEntity `json:"logistics_channel_list"`
	LogisticsDescription string                   `json:"logistics_description"`
	ForceEnabled         bool                     `json:"force_enabled"`
	MaskChannelID        int64                    `json:"mask_channel_id"`
}

GetChannelListResponse

type GetChannelListResult

type GetChannelListResult struct {
	commonentity.Result
	Response GetChannelListResponse `json:"response"`
}

GetChannelListResult

func (GetChannelListResult) String

func (g GetChannelListResult) String() string

String

type GetShippingDocumentInfoResponse

type GetShippingDocumentInfoResponse struct {
	ShippingDocumentInfo ShippingDocumentInfoEntity `json:"shipping_document_info"`
}

GetShippingDocumentInfoResponse

func (GetShippingDocumentInfoResponse) String

String

type GetShippingDocumentInfoResult

type GetShippingDocumentInfoResult struct {
	commonentity.Result
	Response GetShippingDocumentInfoResponse `json:"response"`
}

GetShippingDocumentInfoResult

func (GetShippingDocumentInfoResult) String

String

type GetShippingDocumentParameterResult

type GetShippingDocumentParameterResult struct {
	commonentity.Result
	Warning  []ShippingDocumentParameterRequestOrderListEntity `json:"warning"`
	Response GetShippingDocumentParameterResultResponse        `json:"response"`
}

GetShippingDocumentParameterResult

func (GetShippingDocumentParameterResult) String

String

type GetShippingDocumentParameterResultEntity

type GetShippingDocumentParameterResultEntity struct {
	OrderSn                        string   `json:"order_sn"`
	PackageNumber                  string   `json:"package_number"`
	SuggestShippingDocumentType    string   `json:"suggest_shipping_document_type"`
	SelectableShippingDocumentType []string `json:"selectable_shipping_document_type"`
	FailError                      string   `json:"fail_error"`
	FailMessage                    string   `json:"fail_message"`
}

GetShippingDocumentParameterResultEntity

func (GetShippingDocumentParameterResultEntity) String

String

type GetShippingDocumentParameterResultResponse

type GetShippingDocumentParameterResultResponse struct {
	ResultList []GetShippingDocumentParameterResultEntity `json:"result_list"`
}

GetShippingDocumentParameterResultResponse

func (GetShippingDocumentParameterResultResponse) String

String

type GetShippingDocumentResult

type GetShippingDocumentResult struct {
	commonentity.Result
	Warning  []ShippingDocumentParameterRequestOrderListEntity `json:"warning"`
	Response GetShippingDocumentResultResponse                 `json:"response"`
}

GetShippingDocumentResult

func (GetShippingDocumentResult) String

func (g GetShippingDocumentResult) String() string

String

type GetShippingDocumentResultEntity

type GetShippingDocumentResultEntity struct {
	OrderSn       string `json:"order_sn"`
	PackageNumber string `json:"package_number"`
	Status        string `json:"status"`
	FailError     string `json:"fail_error"`
	FailMessage   string `json:"fail_message"`
}

GetShippingDocumentResultEntity

func (GetShippingDocumentResultEntity) String

String

type GetShippingDocumentResultRequestOrderListEntity

type GetShippingDocumentResultRequestOrderListEntity struct {
	OrderSn              string `json:"order_sn"`
	PackageNumber        string `json:"package_number"`
	ShippingDocumentType string `json:"shipping_document_type"`
}

GetShippingDocumentResultRequestOrderListEntity

func (GetShippingDocumentResultRequestOrderListEntity) String

String

type GetShippingDocumentResultResponse

type GetShippingDocumentResultResponse struct {
	ResultList []GetShippingDocumentResultEntity `json:"result_list"`
}

GetShippingDocumentResultResponse

func (GetShippingDocumentResultResponse) String

String

type GetShippingParameterResponse

type GetShippingParameterResponse struct {
	InfoNeeded InfoNeededEntity `json:"info_needed"`
	Dropoff    DropoffEntity    `json:"dropoff"`
	Pickup     PickupEntity     `json:"pickup"`
}

GetShippingParameterResponse

func (GetShippingParameterResponse) String

String

type GetShippingParameterResult

type GetShippingParameterResult struct {
	commonentity.Result
	Response GetShippingParameterResponse `json:"response"`
}

GetShippingParameterResult

func (GetShippingParameterResult) String

String

type GetTrackingInfoResponse

type GetTrackingInfoResponse struct {
	OrderSn         string               `json:"order_sn"`
	PackageNumber   string               `json:"package_number"`
	LogisticsStatus string               `json:"logistics_status"`
	TrackingInfo    []TrackingInfoEntity `json:"tracking_info"`
}

GetShippingParameterResponse

func (GetTrackingInfoResponse) String

func (g GetTrackingInfoResponse) String() string

String

type GetTrackingInfoResult

type GetTrackingInfoResult struct {
	commonentity.Result
	Response GetTrackingInfoResponse `json:"response"`
}

GetTrackingInfoResult

func (GetTrackingInfoResult) String

func (g GetTrackingInfoResult) String() string

String

type GetTrackingNumberResult

type GetTrackingNumberResult struct {
	commonentity.Result
	Response TrackingNumberEntity `json:"response"`
}

GetTrackingNumberResult

func (GetTrackingNumberResult) String

func (g GetTrackingNumberResult) String() string

String

type InfoNeededEntity

type InfoNeededEntity struct {
	Dropoff       []string `json:"dropoff"`
	Pickup        []string `json:"pickup"`
	NonIntegrated []string `json:"non_integrated"`
}

InfoNeededEntity

func (InfoNeededEntity) String

func (i InfoNeededEntity) String() string

String

type ItemMaxDimensionEntity

type ItemMaxDimensionEntity struct {
	Height float32 `json:"height"`
	Width  float32 `json:"width"`
	Length float32 `json:"length"`
	Unit   string  `json:"unit"`
}

ItemMaxDimensionEntity

func (ItemMaxDimensionEntity) String

func (i ItemMaxDimensionEntity) String() string

String

type LogisticsChannelEntity

type LogisticsChannelEntity struct {
	LogisticsChannelID   int64                  `json:"logistics_channel_id"`
	Preferred            bool                   `json:"preferred"`
	LogisticsChannelName string                 `json:"logistics_channel_name"`
	CodEnabled           bool                   `json:"cod_enabled"`
	Enabled              bool                   `json:"enabled"`
	FeeType              string                 `json:"fee_type"`
	SizeList             []SizeEntity           `json:"size_list"`
	WeightLimit          WeightLimitEntity      `json:"weight_limit"`
	ItemMaxDimension     ItemMaxDimensionEntity `json:"item_max_dimension"`
	VolumeLimit          VolumeLimitEntity      `json:"volume_limit"`
}

LogisticsChannelEntity

func (LogisticsChannelEntity) String

func (l LogisticsChannelEntity) String() string

String

type PickupEntity

type PickupEntity struct {
	AddressList []AddressEntity `json:"address_list"`
}

PickupEntity

func (PickupEntity) String

func (p PickupEntity) String() string

String

type RecipientAddressEntity

type RecipientAddressEntity struct {
	Name        string `json:"name"`
	Phone       string `json:"phone"`
	Town        string `json:"town"`
	District    string `json:"district"`
	City        string `json:"city"`
	State       string `json:"state"`
	Region      string `json:"region"`
	ZipCode     string `json:"zipcode"`
	FullAddress string `json:"full_address"`
}

RecipientAddressEntity

func (RecipientAddressEntity) String

func (r RecipientAddressEntity) String() string

String

type RecipientSortCodeEntity

type RecipientSortCodeEntity struct {
	FirstRecipientSortCode  string `json:"first_recipient_sort_code"`
	SecondRecipientSortCode string `json:"second_recipient_sort_code"`
	ThirdRecipientSortCode  string `json:"third_recipient_sort_code"`
}

RecipientSortCodeEntity

func (RecipientSortCodeEntity) String

func (r RecipientSortCodeEntity) String() string

String

type SenderSortCodeEntity

type SenderSortCodeEntity struct {
	FirstSenderSortCode  string `json:"first_sender_sort_code"`
	SecondSenderSortCode string `json:"second_sender_sort_code"`
	ThirdSenderSortCode  string `json:"third_sender_sort_code"`
}

SenderSortCodeEntity

func (SenderSortCodeEntity) String

func (s SenderSortCodeEntity) String() string

String

type SetAddressConfigResult

type SetAddressConfigResult struct {
	commonentity.Result
}

AddressTypeConfigEntity

func (SetAddressConfigResult) String

func (a SetAddressConfigResult) String() string

String

type ShipOrderRequestDropoffEntity

type ShipOrderRequestDropoffEntity struct {
	BranchID       int64  `json:"branch_id"`
	SenderRealName string `json:"sender_real_name"`
	TrackingNumber string `json:"tracking_number"`
}

ShipOrderRequestDropoffEntity

func (ShipOrderRequestDropoffEntity) String

String

type ShipOrderRequestNonIntegratedEntity

type ShipOrderRequestNonIntegratedEntity struct {
	TrackingNumber string `json:"tracking_number"`
}

NonIntegratedEntity

func (ShipOrderRequestNonIntegratedEntity) String

String

type ShipOrderRequestPickupEntity

type ShipOrderRequestPickupEntity struct {
	AddressID      int64  `json:"address_id"`
	PickupTimeID   string `json:"pickup_time_id"`
	TrackingNumber string `json:"tracking_number"`
}

ShipOrderRequestPickupEntity

func (ShipOrderRequestPickupEntity) String

String

type ShipOrderResult

type ShipOrderResult struct {
	commonentity.Result
}

ShipOrderResult

func (ShipOrderResult) String

func (s ShipOrderResult) String() string

String

type ShippingDocumentInfoEntity

type ShippingDocumentInfoEntity struct {
	LogisticsChannelID     int64                        `json:"logistics_channel_id"`
	ShippingCarrier        string                       `json:"shipping_carrier"`
	ServiceCode            string                       `json:"service_code"`
	FirstMileName          string                       `json:"first_mile_name"`
	LastMileName           string                       `json:"last_mile_name"`
	GoodsToDeclare         bool                         `json:"goods_to_declare"`
	TrackingNumber         string                       `json:"tracking_number"`
	Zone                   string                       `json:"zone"`
	LaneCode               string                       `json:"lane_code"`
	WarehouseAddress       string                       `json:"warehouse_address"`
	WarehouseID            string                       `json:"warehouse_id"`
	RecipientAddress       RecipientAddressEntity       `json:"recipient_address"`
	Cod                    bool                         `json:"cod"`
	RecipientSortCode      RecipientSortCodeEntity      `json:"recipient_sort_code"`
	SenderSortCode         SenderSortCodeEntity         `json:"sender_sort_code"`
	ThirdPartyLogisticInfo ThirdPartyLogisticInfoEntity `json:"third_party_logistic_info"`
	BuyerCpfID             string                       `json:"buyer_cpf_id"`
	ShopeeTrackingNumber   string                       `json:"shopee_tracking_number"`
	LastMileTrackingNumber string                       `json:"last_mile_tracking_number"`
}

ShippingDocumentInfoEntity

func (ShippingDocumentInfoEntity) String

String

type ShippingDocumentParameterRequestOrderListEntity

type ShippingDocumentParameterRequestOrderListEntity struct {
	OrderSn       string `json:"order_sn"`
	PackageNumber string `json:"package_number"`
}

ShippingDocumentParameterRequestOrderListEntity

func (ShippingDocumentParameterRequestOrderListEntity) String

String

type SizeEntity

type SizeEntity struct {
	SizeID       string  `json:"size_id"`
	Name         string  `json:"name"`
	DefaultPrice float32 `json:"default_price"`
}

SizeEntity

func (SizeEntity) String

func (s SizeEntity) String() string

String

type ThirdPartyLogisticInfoEntity

type ThirdPartyLogisticInfoEntity struct {
	ServiceDescription    string `json:"service_description"`
	Barcode               string `json:"barcode"`
	PurchaseTime          string `json:"purchase_time"`
	ReturnTime            string `json:"return_time"`
	ManufacturersName     string `json:"manufacturers_name"`
	ManufacturersWebsite  string `json:"manufacturers_website"`
	RecipientArea         string `json:"recipient_area"`
	RouteStep             string `json:"route_step"`
	Suda5Code             string `json:"suda5_code"`
	LargeLogisticsID      string `json:"large_logistics_id"`
	ParentID              string `json:"parent_id"`
	ReturnCycle           string `json:"return_cycle"`
	ReturnMode            string `json:"return_mode"`
	Prompt                string `json:"prompt"`
	OrderSn               string `json:"order_sn"`
	Qrcode                string `json:"qrcode"`
	EcSupplierName        string `json:"ec_supplier_name"`
	EcBarCode16           string `json:"ec_bar_code16"`
	EquipmentID           string `json:"equipment_id"`
	EshopID               string `json:"eshop_id"`
	EcBarCode9            string `json:"ec_bar_code9"`
	PelicanTrackingNo     string `json:"pelican_tracking_no"`
	PrintDate             string `json:"print_date"`
	Pzip                  string `json:"pzip"`
	PzipC                 string `json:"pzip_c"`
	DeliverAreaTxt        string `json:"deliver_area_txt"`
	DeliverDateYmd        string `json:"deliver_date_ymd"`
	SdDriverCode          string `json:"sd_driver_code"`
	MdDriverCode          string `json:"md_driver_code"`
	PutorderStackzoneCode string `json:"putorder_stackzone_code"`
	CustomerCode          string `json:"customer_code"`
}

ThirdPartyLogisticInfoEntity

func (ThirdPartyLogisticInfoEntity) String

String

type TimeSlotEntity

type TimeSlotEntity struct {
	Date         int    `json:"date"`
	TimeText     string `json:"time_text"`
	PickupTimeID string `json:"pickup_time_id"`
}

TimeSlotEntity

func (TimeSlotEntity) String

func (t TimeSlotEntity) String() string

String

type TrackingInfoEntity

type TrackingInfoEntity struct {
	UpdateTime  int    `json:"update_time"`
	Description string `json:"description"`
}

TrackingInfoEntity

func (TrackingInfoEntity) String

func (t TrackingInfoEntity) String() string

String

type TrackingNumberEntity

type TrackingNumberEntity struct {
	TrackingNumber          string `json:"tracking_number"`
	PlpNumber               string `json:"plp_number"`
	FirstMileTrackingNumber string `json:"first_mile_tracking_number"`
	LastMileTrackingNumber  string `json:"last_mile_tracking_number"`
}

TrackingNumberEntity

func (TrackingNumberEntity) String

func (t TrackingNumberEntity) String() string

String

type UpdateChannelResponse

type UpdateChannelResponse struct {
	ShopID             int64 `json:"shop_id"`
	Enabled            bool  `json:"enabled"`
	Preferred          bool  `json:"preferred"`
	CodEnabled         bool  `json:"cod_enabled"`
	LogisticsChannelID int64 `json:"logistics_channel_id"`
}

UpdateChannelResponse

type UpdateChannelResult

type UpdateChannelResult struct {
	commonentity.Result
	Response UpdateChannelResponse `json:"response"`
}

UpdateChannelResult

func (UpdateChannelResult) String

func (u UpdateChannelResult) String() string

String

type UpdateShippingOrderRequestPickupEntity

type UpdateShippingOrderRequestPickupEntity struct {
	AddressID    int64  `json:"address_id"`
	PickupTimeID string `json:"pickup_time_id"`
}

UpdateShippingOrderRequestPickupEntity

func (UpdateShippingOrderRequestPickupEntity) String

String

type UpdateShippingOrderResult

type UpdateShippingOrderResult struct {
	commonentity.Result
}

UpdateShippingOrderResult

func (UpdateShippingOrderResult) String

func (u UpdateShippingOrderResult) String() string

String

type VolumeLimitEntity

type VolumeLimitEntity struct {
	ItemMaxVolume float32 `json:"item_max_volume"`
	ItemMinVolume float32 `json:"item_min_volume"`
}

VolumeLimitEntity

func (VolumeLimitEntity) String

func (v VolumeLimitEntity) String() string

String

type WeightLimitEntity

type WeightLimitEntity struct {
	ItemMaxWeight float32 `json:"item_max_weight"`
	ItemMinWeight float32 `json:"item_min_weight"`
}

WeightLimitEntity

func (WeightLimitEntity) String

func (w WeightLimitEntity) String() string

String

Jump to

Keyboard shortcuts

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