entity

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderResponseOptionalFields

func OrderResponseOptionalFields() string

ResponseOptionalFields

Types

type AddInvoiceDataResult

type AddInvoiceDataResult struct {
	commonentity.Result
}

UnSplitOrderResult

func (AddInvoiceDataResult) String

func (a AddInvoiceDataResult) String() string

String

type CancelOrderRequestEntity

type CancelOrderRequestEntity struct {
	ItemID  int64 `json:"item_id"`
	ModelID int64 `json:"model_id"`
}

CancelOrderRequestEntity

func (CancelOrderRequestEntity) String

func (c CancelOrderRequestEntity) String() string

String

type CancelOrderResult

type CancelOrderResult struct {
	commonentity.Result
	Response OrderUpdateTimeResponse `json:"response"`
}

CancelOrderResult

func (CancelOrderResult) String

func (c CancelOrderResult) String() string

String

type GetOrderDetailResponse

type GetOrderDetailResponse struct {
	OrderList []OrderEntity `json:"order_list"`
}

GetOrderDetailResponse

func (GetOrderDetailResponse) String

func (g GetOrderDetailResponse) String() string

String

type GetOrderDetailResult

type GetOrderDetailResult struct {
	commonentity.Result
	Response GetOrderDetailResponse `json:"response"`
	Warning  []string               `json:"warning"`
}

GetOrderDetailResult

func (GetOrderDetailResult) String

func (g GetOrderDetailResult) String() string

String

type GetOrderListResponse

type GetOrderListResponse struct {
	More       bool          `json:"more"`
	NextCursor string        `json:"next_cursor"`
	OrderList  []OrderEntity `json:"order_list"`
}

GetOrderListResponse

func (GetOrderListResponse) String

func (g GetOrderListResponse) String() string

String

type GetOrderListResult

type GetOrderListResult struct {
	commonentity.Result
	Response GetOrderListResponse `json:"response"`
}

GetOrderListResult

func (GetOrderListResult) String

func (g GetOrderListResult) String() string

String

type GetShipmentListResponse

type GetShipmentListResponse struct {
	More       bool             `json:"more"`
	NextCursor string           `json:"next_cursor"`
	OrderList  []ShipmentOrders `json:"order_list"`
}

GetShipmentListResponse

func (GetShipmentListResponse) String

func (g GetShipmentListResponse) String() string

String

type GetShipmentListResult

type GetShipmentListResult struct {
	commonentity.Result
	Response GetShipmentListResponse `json:"response"`
}

GetShipmentListResult

func (GetShipmentListResult) String

func (g GetShipmentListResult) String() string

String

type HandleBuyerCancellationResult

type HandleBuyerCancellationResult struct {
	commonentity.Result
}

HandleBuyerCancellationResult

func (HandleBuyerCancellationResult) String

String

type InvoiceDataEntity

type InvoiceDataEntity struct {
	Number             string  `json:"number"`
	SeriesNumber       string  `json:"series_number"`
	AccessKey          string  `json:"access_key"`
	IssueDate          int     `json:"issue_date"`
	TotalValue         float32 `json:"total_value"`
	ProductsTotalValue float32 `json:"products_total_value"`
	TaxCode            string  `json:"tax_code"`
}

InvoiceDataEntity

func (InvoiceDataEntity) String

func (i InvoiceDataEntity) String() string

String

type ItemListEntity

type ItemListEntity struct {
	ItemID                 int64   `json:"item_id"`
	OrderItemID            int64   `json:"order_item_id"`
	ItemName               string  `json:"item_name"`
	ItemSku                string  `json:"item_sku"`
	ModelID                int64   `json:"model_id"`
	ModelName              string  `json:"model_name"`
	ModelSku               string  `json:"model_sku"`
	ModelQuantityPurchased int64   `json:"model_quantity_purchased"`
	ModelOriginalPrice     float32 `json:"model_original_price"`
	ModelDiscountedPrice   float32 `json:"model_discounted_price"`
	Wholesale              bool    `json:"wholesale"`
	Weight                 float32 `json:"weight"`
	AddOnDeal              bool    `json:"add_on_deal"`
	MainItem               bool    `json:"main_item"`
	AddOnDealID            int64   `json:"add_on_deal_id"`
	PromotionType          string  `json:"promotion_type"`
	PromotionID            int64   `json:"promotion_id"`
	PromotionGroupID       int64   `json:"promotion_group_id"`
}

ItemListEntity

func (ItemListEntity) String

func (i ItemListEntity) String() string

String

type OrderEntity

type OrderEntity struct {
	OrderSN                    string                 `json:"order_sn"`
	Region                     string                 `json:"region"`
	Currency                   string                 `json:"currency"`
	Cod                        bool                   `json:"cod"`
	TotalAmount                float32                `json:"total_amount"`
	OrderStatus                string                 `json:"order_status"`
	ShippingCarrier            string                 `json:"shipping_carrier"`
	PaymentMethod              string                 `json:"payment_method"`
	EstimatedShippingFee       float32                `json:"estimated_shipping_fee"`
	MessageToSeller            string                 `json:"message_to_seller"`
	CreateTime                 int                    `json:"create_time"`
	UpdateTime                 int                    `json:"update_time"`
	DaysToShip                 int                    `json:"days_to_ship"`
	ShipByDate                 int                    `json:"ship_by_date"`
	BuyerUserID                int                    `json:"buyer_user_id"`
	BuyerUsername              string                 `json:"buyer_username"`
	RecipientAddress           RecipientAddressEntity `json:"recipient_address"`
	ActualShippingFee          float32                `json:"actual_shipping_fee"`
	GoodsToDeclare             bool                   `json:"goods_to_declare"`
	Note                       string                 `json:"note"`
	NoteUpdateTime             int                    `json:"note_update_time"`
	ItemList                   []ItemListEntity       `json:"item_list"`
	PayTime                    int                    `json:"pay_time"`
	Dropshipper                string                 `json:"dropshipper"`
	CreditCardNumber           string                 `json:"credit_card_number"`
	DropshipperPhone           string                 `json:"dropshipper_phone"`
	SplitUp                    bool                   `json:"split_up"`
	BuyerCancelReason          string                 `json:"buyer_cancel_reason"`
	CancelBy                   string                 `json:"cancel_by"`
	CancelReason               string                 `json:"cancel_reason"`
	ActualShippingFeeConfirmed bool                   `json:"actual_shipping_fee_confirmed"`
	BuyerCpfID                 string                 `json:"buyer_cpf_id"`
	FulfillmentFlag            string                 `json:"fulfillment_flag"`
	PickupDoneTime             int                    `json:"pickup_done_time"`
	PackageList                []PackageListEntity    `json:"package_list"`
	InvoiceData                InvoiceDataEntity      `json:"invoice_data"`
	CheckoutShippingCarrier    string                 `json:"checkout_shipping_carrier"`
}

OrderEntity

func (OrderEntity) String

func (o OrderEntity) String() string

String

type OrderUpdateTimeResponse

type OrderUpdateTimeResponse struct {
	UpdateTime int `json:"update_time"`
}

func (OrderUpdateTimeResponse) String

func (o OrderUpdateTimeResponse) String() string

String

type PackageListEntity

type PackageListEntity struct {
	PackageNumber   string           `json:"package_number"`
	LogisticsStatus string           `json:"logistics_status"`
	ShippingCarrier string           `json:"shipping_carrier"`
	ItemList        []ItemListEntity `json:"item_list"`
}

PackageListEntity

func (PackageListEntity) String

func (p PackageListEntity) String() string

String

type PackageListRequestEntity

type PackageListRequestEntity struct {
	ItemList []PackageListRequestItemListEntity `json:"item_list"`
}

PackageListRequestEntity

func (PackageListRequestEntity) String

func (p PackageListRequestEntity) String() string

String

type PackageListRequestItemListEntity

type PackageListRequestItemListEntity struct {
	ItemID           int64 `json:"item_id"`
	ModelID          int64 `json:"model_id"`
	OrderItemID      int64 `json:"order_item_id"`
	PromotionGroupID int64 `json:"promotion_group_id"`
}

ItemListEntity

func (PackageListRequestItemListEntity) 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"`
}

RecipientAddress

func (RecipientAddressEntity) String

func (r RecipientAddressEntity) String() string

String

type SetNoteResult

type SetNoteResult struct {
	commonentity.Result
}

SetNoteResult

func (SetNoteResult) String

func (s SetNoteResult) String() string

String

type ShipmentOrders

type ShipmentOrders struct {
	OrderSN       string `json:"order_sn"`
	PackageNumber string `json:"package_number"`
}

ShipmentOrders

func (ShipmentOrders) String

func (g ShipmentOrders) String() string

String

type SplitOrderResponse

type SplitOrderResponse struct {
	OrderSn     string              `json:"order_sn"`
	PackageList []PackageListEntity `json:"package_list"`
}

SplitOrderResponse

func (SplitOrderResponse) String

func (s SplitOrderResponse) String() string

String

type SplitOrderResult

type SplitOrderResult struct {
	commonentity.Result
	Response SplitOrderResponse `json:"response"`
}

SplitOrderResult

func (SplitOrderResult) String

func (s SplitOrderResult) String() string

String

type UnSplitOrderResult

type UnSplitOrderResult struct {
	commonentity.Result
	Response OrderUpdateTimeResponse `json:"response"`
}

UnSplitOrderResult

func (UnSplitOrderResult) String

func (u UnSplitOrderResult) String() string

String

Jump to

Keyboard shortcuts

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