nlife

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nlife 包含零售plus相关结构体

https://open.taobao.com/API.htm?docType=2&docId=29320

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaNlifeB2cCodeConvertAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cCodeConvertAPIRequest(v *AlibabaNlifeB2cCodeConvertAPIRequest)

ReleaseAlibabaNlifeB2cCodeConvertAPIRequest 将 AlibabaNlifeB2cCodeConvertAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cCodeConvertAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cCodeConvertAPIResponse(v *AlibabaNlifeB2cCodeConvertAPIResponse)

ReleaseAlibabaNlifeB2cCodeConvertAPIResponse 将 AlibabaNlifeB2cCodeConvertAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cItemDetailGetAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cItemDetailGetAPIRequest(v *AlibabaNlifeB2cItemDetailGetAPIRequest)

ReleaseAlibabaNlifeB2cItemDetailGetAPIRequest 将 AlibabaNlifeB2cItemDetailGetAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cItemDetailGetAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cItemDetailGetAPIResponse(v *AlibabaNlifeB2cItemDetailGetAPIResponse)

ReleaseAlibabaNlifeB2cItemDetailGetAPIResponse 将 AlibabaNlifeB2cItemDetailGetAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cMemberDiscountruleGetAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cMemberDiscountruleGetAPIRequest(v *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest)

ReleaseAlibabaNlifeB2cMemberDiscountruleGetAPIRequest 将 AlibabaNlifeB2cMemberDiscountruleGetAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cMemberDiscountruleGetAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cMemberDiscountruleGetAPIResponse(v *AlibabaNlifeB2cMemberDiscountruleGetAPIResponse)

ReleaseAlibabaNlifeB2cMemberDiscountruleGetAPIResponse 将 AlibabaNlifeB2cMemberDiscountruleGetAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cTradeCancelAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeCancelAPIRequest(v *AlibabaNlifeB2cTradeCancelAPIRequest)

ReleaseAlibabaNlifeB2cTradeCancelAPIRequest 将 AlibabaNlifeB2cTradeCancelAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cTradeCancelAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeCancelAPIResponse(v *AlibabaNlifeB2cTradeCancelAPIResponse)

ReleaseAlibabaNlifeB2cTradeCancelAPIResponse 将 AlibabaNlifeB2cTradeCancelAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cTradeDownloadAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeDownloadAPIRequest(v *AlibabaNlifeB2cTradeDownloadAPIRequest)

ReleaseAlibabaNlifeB2cTradeDownloadAPIRequest 将 AlibabaNlifeB2cTradeDownloadAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cTradeDownloadAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeDownloadAPIResponse(v *AlibabaNlifeB2cTradeDownloadAPIResponse)

ReleaseAlibabaNlifeB2cTradeDownloadAPIResponse 将 AlibabaNlifeB2cTradeDownloadAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cTradeGetAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeGetAPIRequest(v *AlibabaNlifeB2cTradeGetAPIRequest)

ReleaseAlibabaNlifeB2cTradeGetAPIRequest 将 AlibabaNlifeB2cTradeGetAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cTradeGetAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeGetAPIResponse(v *AlibabaNlifeB2cTradeGetAPIResponse)

ReleaseAlibabaNlifeB2cTradeGetAPIResponse 将 AlibabaNlifeB2cTradeGetAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cTradePayAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cTradePayAPIRequest(v *AlibabaNlifeB2cTradePayAPIRequest)

ReleaseAlibabaNlifeB2cTradePayAPIRequest 将 AlibabaNlifeB2cTradePayAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cTradePayAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cTradePayAPIResponse(v *AlibabaNlifeB2cTradePayAPIResponse)

ReleaseAlibabaNlifeB2cTradePayAPIResponse 将 AlibabaNlifeB2cTradePayAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cTradeRefundAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeRefundAPIRequest(v *AlibabaNlifeB2cTradeRefundAPIRequest)

ReleaseAlibabaNlifeB2cTradeRefundAPIRequest 将 AlibabaNlifeB2cTradeRefundAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cTradeRefundAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cTradeRefundAPIResponse(v *AlibabaNlifeB2cTradeRefundAPIResponse)

ReleaseAlibabaNlifeB2cTradeRefundAPIResponse 将 AlibabaNlifeB2cTradeRefundAPIResponse 保存到 sync.Pool

func ReleaseAlibabaNlifeB2cTradestatusDriveAPIRequest added in v1.3.4

func ReleaseAlibabaNlifeB2cTradestatusDriveAPIRequest(v *AlibabaNlifeB2cTradestatusDriveAPIRequest)

ReleaseAlibabaNlifeB2cTradestatusDriveAPIRequest 将 AlibabaNlifeB2cTradestatusDriveAPIRequest 放入 sync.Pool

func ReleaseAlibabaNlifeB2cTradestatusDriveAPIResponse added in v1.3.4

func ReleaseAlibabaNlifeB2cTradestatusDriveAPIResponse(v *AlibabaNlifeB2cTradestatusDriveAPIResponse)

ReleaseAlibabaNlifeB2cTradestatusDriveAPIResponse 将 AlibabaNlifeB2cTradestatusDriveAPIResponse 保存到 sync.Pool

func ReleaseDiscountMemo added in v1.3.4

func ReleaseDiscountMemo(v *DiscountMemo)

ReleaseDiscountMemo 释放DiscountMemo

func ReleaseDiscountRule added in v1.3.4

func ReleaseDiscountRule(v *DiscountRule)

ReleaseDiscountRule 释放DiscountRule

func ReleaseFundBill added in v1.3.4

func ReleaseFundBill(v *FundBill)

ReleaseFundBill 释放FundBill

func ReleaseGoods added in v1.3.4

func ReleaseGoods(v *Goods)

ReleaseGoods 释放Goods

func ReleaseItemCodeConvertResponse added in v1.3.4

func ReleaseItemCodeConvertResponse(v *ItemCodeConvertResponse)

ReleaseItemCodeConvertResponse 释放ItemCodeConvertResponse

func ReleaseLogisticsInfo added in v1.3.4

func ReleaseLogisticsInfo(v *LogisticsInfo)

ReleaseLogisticsInfo 释放LogisticsInfo

func ReleaseLogisticsInfoDetail added in v1.3.4

func ReleaseLogisticsInfoDetail(v *LogisticsInfoDetail)

ReleaseLogisticsInfoDetail 释放LogisticsInfoDetail

func ReleaseLogisticsLog added in v1.3.4

func ReleaseLogisticsLog(v *LogisticsLog)

ReleaseLogisticsLog 释放LogisticsLog

func ReleaseLogisticsStatus added in v1.3.4

func ReleaseLogisticsStatus(v *LogisticsStatus)

ReleaseLogisticsStatus 释放LogisticsStatus

func ReleaseOrder added in v1.3.4

func ReleaseOrder(v *Order)

ReleaseOrder 释放Order

func ReleaseRefund added in v1.3.4

func ReleaseRefund(v *Refund)

ReleaseRefund 释放Refund

Types

type AlibabaNlifeB2cCodeConvertAPIRequest

type AlibabaNlifeB2cCodeConvertAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cCodeConvertAPIRequest b2c转码 API请求 alibaba.nlife.b2c.code.convert

将商品的URL转码,ISV将该码写入RFID

func GetAlibabaNlifeB2cCodeConvertAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cCodeConvertAPIRequest() *AlibabaNlifeB2cCodeConvertAPIRequest

GetAlibabaNlifeB2cCodeConvertRequest 从 sync.Pool 获取 AlibabaNlifeB2cCodeConvertAPIRequest

func NewAlibabaNlifeB2cCodeConvertRequest

func NewAlibabaNlifeB2cCodeConvertRequest() *AlibabaNlifeB2cCodeConvertAPIRequest

NewAlibabaNlifeB2cCodeConvertRequest 初始化AlibabaNlifeB2cCodeConvertAPIRequest对象

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetApiParams

func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetUrl

GetUrl Url Getter

func (*AlibabaNlifeB2cCodeConvertAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cCodeConvertAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cCodeConvertAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 零售商在零售+平台ID,非唯一码模式必填,建议传递该值

func (*AlibabaNlifeB2cCodeConvertAPIRequest) SetUrl

SetUrl is Url Setter 商品URL

type AlibabaNlifeB2cCodeConvertAPIResponse

type AlibabaNlifeB2cCodeConvertAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cCodeConvertAPIResponseModel
}

AlibabaNlifeB2cCodeConvertAPIResponse b2c转码 API返回值 alibaba.nlife.b2c.code.convert

将商品的URL转码,ISV将该码写入RFID

func GetAlibabaNlifeB2cCodeConvertAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cCodeConvertAPIResponse() *AlibabaNlifeB2cCodeConvertAPIResponse

GetAlibabaNlifeB2cCodeConvertAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cCodeConvertAPIResponse

func (*AlibabaNlifeB2cCodeConvertAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cCodeConvertAPIResponseModel

type AlibabaNlifeB2cCodeConvertAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_code_convert_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// data
	Data *ItemCodeConvertResponse `json:"data,omitempty" xml:"data,omitempty"`
}

AlibabaNlifeB2cCodeConvertAPIResponseModel is b2c转码 成功返回结果

func (*AlibabaNlifeB2cCodeConvertAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cItemDetailGetAPIRequest

type AlibabaNlifeB2cItemDetailGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cItemDetailGetAPIRequest b2c码详情查询 API请求 alibaba.nlife.b2c.item.detail.get

根据零售+平台生成的唯一码获取对应详情

func GetAlibabaNlifeB2cItemDetailGetAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cItemDetailGetAPIRequest() *AlibabaNlifeB2cItemDetailGetAPIRequest

GetAlibabaNlifeB2cItemDetailGetRequest 从 sync.Pool 获取 AlibabaNlifeB2cItemDetailGetAPIRequest

func NewAlibabaNlifeB2cItemDetailGetRequest

func NewAlibabaNlifeB2cItemDetailGetRequest() *AlibabaNlifeB2cItemDetailGetAPIRequest

NewAlibabaNlifeB2cItemDetailGetRequest 初始化AlibabaNlifeB2cItemDetailGetAPIRequest对象

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiParams

func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetUniqueCode

GetUniqueCode UniqueCode Getter

func (*AlibabaNlifeB2cItemDetailGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cItemDetailGetAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cItemDetailGetAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 商家入驻门店在零售+平台的ID

func (*AlibabaNlifeB2cItemDetailGetAPIRequest) SetUniqueCode

func (r *AlibabaNlifeB2cItemDetailGetAPIRequest) SetUniqueCode(_uniqueCode string) error

SetUniqueCode is UniqueCode Setter 零售+平台生成的唯一码或条码

type AlibabaNlifeB2cItemDetailGetAPIResponse

type AlibabaNlifeB2cItemDetailGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cItemDetailGetAPIResponseModel
}

AlibabaNlifeB2cItemDetailGetAPIResponse b2c码详情查询 API返回值 alibaba.nlife.b2c.item.detail.get

根据零售+平台生成的唯一码获取对应详情

func GetAlibabaNlifeB2cItemDetailGetAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cItemDetailGetAPIResponse() *AlibabaNlifeB2cItemDetailGetAPIResponse

GetAlibabaNlifeB2cItemDetailGetAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cItemDetailGetAPIResponse

func (*AlibabaNlifeB2cItemDetailGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cItemDetailGetAPIResponseModel

type AlibabaNlifeB2cItemDetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_item_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品图片链接(线下商品无)
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 商品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 商品出售价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 商品原价
	OrgPrice string `json:"org_price,omitempty" xml:"org_price,omitempty"`
	// 商品在天猫上的详情页链接(线下商品无
	DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"`
	// 商品ItemId
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品SkuId
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// sku级别
	BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"`
	// 零售+平台生成的商品唯一码或条码
	UniqueCode string `json:"unique_code,omitempty" xml:"unique_code,omitempty"`
	// 入驻天猫的品牌ID(线下商品无
	BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
	// 入驻天猫的品牌名称(线下商品无)
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 供应商ID
	SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 供应商名称
	SupplierName string `json:"supplier_name,omitempty" xml:"supplier_name,omitempty"`
	// 商品级别
	GoodsNo string `json:"goods_no,omitempty" xml:"goods_no,omitempty"`
	// 结算码
	SettleCode string `json:"settle_code,omitempty" xml:"settle_code,omitempty"`
	// 销售属性
	Property string `json:"property,omitempty" xml:"property,omitempty"`
	// 叶子类目ID
	CatId string `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
	// 叶子类目名称
	CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"`
	// 当前sku库存
	CurrentInventory string `json:"current_inventory,omitempty" xml:"current_inventory,omitempty"`
	// 结算码是否可变
	CodeChangeable bool `json:"code_changeable,omitempty" xml:"code_changeable,omitempty"`
}

AlibabaNlifeB2cItemDetailGetAPIResponseModel is b2c码详情查询 成功返回结果

func (*AlibabaNlifeB2cItemDetailGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cMemberDiscountruleGetAPIRequest

type AlibabaNlifeB2cMemberDiscountruleGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cMemberDiscountruleGetAPIRequest 会员抵扣规则 API请求 alibaba.nlife.b2c.member.discountrule.get

获取企业会员抵扣规则

func GetAlibabaNlifeB2cMemberDiscountruleGetAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cMemberDiscountruleGetAPIRequest() *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest

GetAlibabaNlifeB2cMemberDiscountruleGetRequest 从 sync.Pool 获取 AlibabaNlifeB2cMemberDiscountruleGetAPIRequest

func NewAlibabaNlifeB2cMemberDiscountruleGetRequest

func NewAlibabaNlifeB2cMemberDiscountruleGetRequest() *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest

NewAlibabaNlifeB2cMemberDiscountruleGetRequest 初始化AlibabaNlifeB2cMemberDiscountruleGetAPIRequest对象

func (AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetCardNo

GetCardNo CardNo Getter

func (AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetCompanyId

GetCompanyId CompanyId Getter

func (AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) SetCardNo

SetCardNo is CardNo Setter 会员在ISV处的编号

func (*AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) SetCompanyId

func (r *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) SetCompanyId(_companyId string) error

SetCompanyId is CompanyId Setter 企业ID

type AlibabaNlifeB2cMemberDiscountruleGetAPIResponse

type AlibabaNlifeB2cMemberDiscountruleGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel
}

AlibabaNlifeB2cMemberDiscountruleGetAPIResponse 会员抵扣规则 API返回值 alibaba.nlife.b2c.member.discountrule.get

获取企业会员抵扣规则

func GetAlibabaNlifeB2cMemberDiscountruleGetAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cMemberDiscountruleGetAPIResponse() *AlibabaNlifeB2cMemberDiscountruleGetAPIResponse

GetAlibabaNlifeB2cMemberDiscountruleGetAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cMemberDiscountruleGetAPIResponse

func (*AlibabaNlifeB2cMemberDiscountruleGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel

type AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_member_discountrule_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结构化的文案
	DiscountMemos []DiscountMemo `json:"discount_memos,omitempty" xml:"discount_memos>discount_memo,omitempty"`
	// 错误码,当result为false时设置
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息,当result为false时设置
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 抵扣规则
	DiscountRule *DiscountRule `json:"discount_rule,omitempty" xml:"discount_rule,omitempty"`
	// 业务成功与否 true/false
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel is 会员抵扣规则 成功返回结果

func (*AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeCancelAPIRequest

type AlibabaNlifeB2cTradeCancelAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cTradeCancelAPIRequest 零售+平台取消订单 API请求 alibaba.nlife.b2c.trade.cancel

零售+平台取消订单接口

func GetAlibabaNlifeB2cTradeCancelAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cTradeCancelAPIRequest() *AlibabaNlifeB2cTradeCancelAPIRequest

GetAlibabaNlifeB2cTradeCancelRequest 从 sync.Pool 获取 AlibabaNlifeB2cTradeCancelAPIRequest

func NewAlibabaNlifeB2cTradeCancelRequest

func NewAlibabaNlifeB2cTradeCancelRequest() *AlibabaNlifeB2cTradeCancelAPIRequest

NewAlibabaNlifeB2cTradeCancelRequest 初始化AlibabaNlifeB2cTradeCancelAPIRequest对象

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetApiParams

func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetOutTradeNo

func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

func (*AlibabaNlifeB2cTradeCancelAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cTradeCancelAPIRequest) SetOutTradeNo

func (r *AlibabaNlifeB2cTradeCancelAPIRequest) SetOutTradeNo(_outTradeNo string) error

SetOutTradeNo is OutTradeNo Setter 外部订单号,和trade_no不能同时为空

func (*AlibabaNlifeB2cTradeCancelAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cTradeCancelAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 零售+门店号

func (*AlibabaNlifeB2cTradeCancelAPIRequest) SetTradeNo

func (r *AlibabaNlifeB2cTradeCancelAPIRequest) SetTradeNo(_tradeNo string) error

SetTradeNo is TradeNo Setter 零售+平台订单号,和out_trade_no不能同时为空

type AlibabaNlifeB2cTradeCancelAPIResponse

type AlibabaNlifeB2cTradeCancelAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cTradeCancelAPIResponseModel
}

AlibabaNlifeB2cTradeCancelAPIResponse 零售+平台取消订单 API返回值 alibaba.nlife.b2c.trade.cancel

零售+平台取消订单接口

func GetAlibabaNlifeB2cTradeCancelAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cTradeCancelAPIResponse() *AlibabaNlifeB2cTradeCancelAPIResponse

GetAlibabaNlifeB2cTradeCancelAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cTradeCancelAPIResponse

func (*AlibabaNlifeB2cTradeCancelAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeCancelAPIResponseModel

type AlibabaNlifeB2cTradeCancelAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单取消时间
	GmtCancel string `json:"gmt_cancel,omitempty" xml:"gmt_cancel,omitempty"`
	// 扩展参数JSON
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

AlibabaNlifeB2cTradeCancelAPIResponseModel is 零售+平台取消订单 成功返回结果

func (*AlibabaNlifeB2cTradeCancelAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeDownloadAPIRequest

type AlibabaNlifeB2cTradeDownloadAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cTradeDownloadAPIRequest b2c下载订单 API请求 alibaba.nlife.b2c.trade.download

下载零售商在零售+平台创建的订单

func GetAlibabaNlifeB2cTradeDownloadAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cTradeDownloadAPIRequest() *AlibabaNlifeB2cTradeDownloadAPIRequest

GetAlibabaNlifeB2cTradeDownloadRequest 从 sync.Pool 获取 AlibabaNlifeB2cTradeDownloadAPIRequest

func NewAlibabaNlifeB2cTradeDownloadRequest

func NewAlibabaNlifeB2cTradeDownloadRequest() *AlibabaNlifeB2cTradeDownloadAPIRequest

NewAlibabaNlifeB2cTradeDownloadRequest 初始化AlibabaNlifeB2cTradeDownloadAPIRequest对象

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiParams

func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetEndDate

GetEndDate EndDate Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetStartDate

GetStartDate StartDate Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (*AlibabaNlifeB2cTradeDownloadAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cTradeDownloadAPIRequest) SetEndDate

func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetEndDate(_endDate string) error

SetEndDate is EndDate Setter 结束时间

func (*AlibabaNlifeB2cTradeDownloadAPIRequest) SetPageNo

func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码

func (*AlibabaNlifeB2cTradeDownloadAPIRequest) SetPageSize

func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 分页大小

func (*AlibabaNlifeB2cTradeDownloadAPIRequest) SetStartDate

func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetStartDate(_startDate string) error

SetStartDate is StartDate Setter 开始时间

func (*AlibabaNlifeB2cTradeDownloadAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 零售门店在零售+平台对应的ID

type AlibabaNlifeB2cTradeDownloadAPIResponse

type AlibabaNlifeB2cTradeDownloadAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cTradeDownloadAPIResponseModel
}

AlibabaNlifeB2cTradeDownloadAPIResponse b2c下载订单 API返回值 alibaba.nlife.b2c.trade.download

下载零售商在零售+平台创建的订单

func GetAlibabaNlifeB2cTradeDownloadAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cTradeDownloadAPIResponse() *AlibabaNlifeB2cTradeDownloadAPIResponse

GetAlibabaNlifeB2cTradeDownloadAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cTradeDownloadAPIResponse

func (*AlibabaNlifeB2cTradeDownloadAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeDownloadAPIResponseModel

type AlibabaNlifeB2cTradeDownloadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_download_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单列表
	OrderList []Order `json:"order_list,omitempty" xml:"order_list>order,omitempty"`
	// 查询命中数量
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

AlibabaNlifeB2cTradeDownloadAPIResponseModel is b2c下载订单 成功返回结果

func (*AlibabaNlifeB2cTradeDownloadAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeGetAPIRequest

type AlibabaNlifeB2cTradeGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cTradeGetAPIRequest 零售+平台查询订单 API请求 alibaba.nlife.b2c.trade.get

查询零售+平台创建出来的订单详情

func GetAlibabaNlifeB2cTradeGetAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cTradeGetAPIRequest() *AlibabaNlifeB2cTradeGetAPIRequest

GetAlibabaNlifeB2cTradeGetRequest 从 sync.Pool 获取 AlibabaNlifeB2cTradeGetAPIRequest

func NewAlibabaNlifeB2cTradeGetRequest

func NewAlibabaNlifeB2cTradeGetRequest() *AlibabaNlifeB2cTradeGetAPIRequest

NewAlibabaNlifeB2cTradeGetRequest 初始化AlibabaNlifeB2cTradeGetAPIRequest对象

func (AlibabaNlifeB2cTradeGetAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeGetAPIRequest) GetApiParams

func (r AlibabaNlifeB2cTradeGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeGetAPIRequest) GetOutTradeNo

func (r AlibabaNlifeB2cTradeGetAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradeGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cTradeGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradeGetAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

func (*AlibabaNlifeB2cTradeGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cTradeGetAPIRequest) SetOutTradeNo

func (r *AlibabaNlifeB2cTradeGetAPIRequest) SetOutTradeNo(_outTradeNo string) error

SetOutTradeNo is OutTradeNo Setter 外部订单号,和trade_no不能同时为空

func (*AlibabaNlifeB2cTradeGetAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cTradeGetAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 零售+门店ID,如果传递的是outTradeNola,那么这个是必传的

func (*AlibabaNlifeB2cTradeGetAPIRequest) SetTradeNo

func (r *AlibabaNlifeB2cTradeGetAPIRequest) SetTradeNo(_tradeNo string) error

SetTradeNo is TradeNo Setter 零售+平台订单号,和out_trade_no不能同时为空

type AlibabaNlifeB2cTradeGetAPIResponse

type AlibabaNlifeB2cTradeGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cTradeGetAPIResponseModel
}

AlibabaNlifeB2cTradeGetAPIResponse 零售+平台查询订单 API返回值 alibaba.nlife.b2c.trade.get

查询零售+平台创建出来的订单详情

func GetAlibabaNlifeB2cTradeGetAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cTradeGetAPIResponse() *AlibabaNlifeB2cTradeGetAPIResponse

GetAlibabaNlifeB2cTradeGetAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cTradeGetAPIResponse

func (*AlibabaNlifeB2cTradeGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeGetAPIResponseModel

type AlibabaNlifeB2cTradeGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 购买的商品列表
	GoodsList []Goods `json:"goods_list,omitempty" xml:"goods_list>goods,omitempty"`
	// 支付资金渠道列表
	FundBillList []FundBill `json:"fund_bill_list,omitempty" xml:"fund_bill_list>fund_bill,omitempty"`
	// 退款列表
	RefundList []Refund `json:"refund_list,omitempty" xml:"refund_list>refund,omitempty"`
	// 物流状态列表
	LogisticsStatusList []LogisticsStatus `json:"logistics_status_list,omitempty" xml:"logistics_status_list>logistics_status,omitempty"`
	// 订单创建渠道,   API("经由零售+平台API创建"),     POS("经由零售+平台收银系统创建"),     TAOBAO("经由淘宝/天猫创建");
	Channel string `json:"channel,omitempty" xml:"channel,omitempty"`
	// 渠道数据,JSON
	ChannelData string `json:"channel_data,omitempty" xml:"channel_data,omitempty"`
	// 买家ID
	BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"`
	// 买家类型: TAOBAO_OPENID("经阿里百川淘宝登陆获取到的用户ID"),     ALIPAY_OPENID("经蚂蚁金服开放平台支付宝App登陆获得的用户ID"),     WECHAT_OPENID("经微信开放平台微信App登陆获得的用户id"),     PHONE_NUMBER("通过手机号码登陆"),     APP_USERID("商户自由的用户ID"),     ANONYMOUS_USER("匿名用户");
	BuyerIdType string `json:"buyer_id_type,omitempty" xml:"buyer_id_type,omitempty"`
	// 商户自有的会员卡号
	OutCardNo string `json:"out_card_no,omitempty" xml:"out_card_no,omitempty"`
	// 订单描述
	OrderBody string `json:"order_body,omitempty" xml:"order_body,omitempty"`
	// 导购员ID
	SalesId string `json:"sales_id,omitempty" xml:"sales_id,omitempty"`
	// 提货方式:   LOGISTICS("物流发货"),     SELF_DELIVERY("门店自提");
	PickingUp string `json:"picking_up,omitempty" xml:"picking_up,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 支付时间
	GmtPay string `json:"gmt_pay,omitempty" xml:"gmt_pay,omitempty"`
	// 订单取消时间
	GmtCancel string `json:"gmt_cancel,omitempty" xml:"gmt_cancel,omitempty"`
	// payStatus
	PayStatus string `json:"pay_status,omitempty" xml:"pay_status,omitempty"`
	// 退款状态:    REFUNED("已全额退款"),     REFUNDED_PART("已部分退货");
	RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 物流状态:    WAIT_FOR_CONSIGN("有待发货商品"),     WAIT_FOR_SIGN("全部商品已发货"),     SIGNED("全部商品已签收"),     REJECTED("全部商品已拒收");
	LogisticsStatus string `json:"logistics_status,omitempty" xml:"logistics_status,omitempty"`
	// 扩展参数 JSON
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 透传参数,格式自定,查询时原样返回
	Attachment string `json:"attachment,omitempty" xml:"attachment,omitempty"`
	// 零售+订单号
	TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"`
	// 外部业务方订单号
	OutTradeNo string `json:"out_trade_no,omitempty" xml:"out_trade_no,omitempty"`
	// 全渠道订单号
	OmniTradeNo string `json:"omni_trade_no,omitempty" xml:"omni_trade_no,omitempty"`
	// 订单所在的零售+门店ID
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 收银员名称
	SalesName string `json:"sales_name,omitempty" xml:"sales_name,omitempty"`
	// 订单总金额 基础单位,人民币 分
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 0:门店订单;1:全渠道订单;3:网直供订单
	TradeBizType *model.File `json:"trade_biz_type,omitempty" xml:"trade_biz_type,omitempty"`
}

AlibabaNlifeB2cTradeGetAPIResponseModel is 零售+平台查询订单 成功返回结果

func (*AlibabaNlifeB2cTradeGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradePayAPIRequest

type AlibabaNlifeB2cTradePayAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cTradePayAPIRequest 零售+平台支付订单 API请求 alibaba.nlife.b2c.trade.pay

零售+平台支付接口,外部商户调用此接口告知零售+支付结果,保持订单状态同步

func GetAlibabaNlifeB2cTradePayAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cTradePayAPIRequest() *AlibabaNlifeB2cTradePayAPIRequest

GetAlibabaNlifeB2cTradePayRequest 从 sync.Pool 获取 AlibabaNlifeB2cTradePayAPIRequest

func NewAlibabaNlifeB2cTradePayRequest

func NewAlibabaNlifeB2cTradePayRequest() *AlibabaNlifeB2cTradePayAPIRequest

NewAlibabaNlifeB2cTradePayRequest 初始化AlibabaNlifeB2cTradePayAPIRequest对象

func (AlibabaNlifeB2cTradePayAPIRequest) GetActualPayFee

func (r AlibabaNlifeB2cTradePayAPIRequest) GetActualPayFee() int64

GetActualPayFee ActualPayFee Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradePayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradePayAPIRequest) GetApiParams

func (r AlibabaNlifeB2cTradePayAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradePayAPIRequest) GetConsignee

func (r AlibabaNlifeB2cTradePayAPIRequest) GetConsignee() string

GetConsignee Consignee Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetConsigneeAddress

func (r AlibabaNlifeB2cTradePayAPIRequest) GetConsigneeAddress() string

GetConsigneeAddress ConsigneeAddress Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetConsigneePhoneNum

func (r AlibabaNlifeB2cTradePayAPIRequest) GetConsigneePhoneNum() string

GetConsigneePhoneNum ConsigneePhoneNum Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetFundBillList

func (r AlibabaNlifeB2cTradePayAPIRequest) GetFundBillList() []FundBill

GetFundBillList FundBillList Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetGmtPayment

func (r AlibabaNlifeB2cTradePayAPIRequest) GetGmtPayment() string

GetGmtPayment GmtPayment Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetOutTradeNo

func (r AlibabaNlifeB2cTradePayAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetPickingUp

func (r AlibabaNlifeB2cTradePayAPIRequest) GetPickingUp() string

GetPickingUp PickingUp Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cTradePayAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

func (*AlibabaNlifeB2cTradePayAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cTradePayAPIRequest) SetActualPayFee

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetActualPayFee(_actualPayFee int64) error

SetActualPayFee is ActualPayFee Setter 实付金额,单位人民币分;该字段实际为必选,为兼容已经接入的isv设置成可选

func (*AlibabaNlifeB2cTradePayAPIRequest) SetConsignee

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetConsignee(_consignee string) error

SetConsignee is Consignee Setter 收货人

func (*AlibabaNlifeB2cTradePayAPIRequest) SetConsigneeAddress

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetConsigneeAddress(_consigneeAddress string) error

SetConsigneeAddress is ConsigneeAddress Setter 收货人地址

func (*AlibabaNlifeB2cTradePayAPIRequest) SetConsigneePhoneNum

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetConsigneePhoneNum(_consigneePhoneNum string) error

SetConsigneePhoneNum is ConsigneePhoneNum Setter 收货人电话

func (*AlibabaNlifeB2cTradePayAPIRequest) SetFundBillList

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetFundBillList(_fundBillList []FundBill) error

SetFundBillList is FundBillList Setter 支付资金各渠道列表

func (*AlibabaNlifeB2cTradePayAPIRequest) SetGmtPayment

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetGmtPayment(_gmtPayment string) error

SetGmtPayment is GmtPayment Setter ISV处支付时间

func (*AlibabaNlifeB2cTradePayAPIRequest) SetOutTradeNo

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetOutTradeNo(_outTradeNo string) error

SetOutTradeNo is OutTradeNo Setter 外部订单号,和trade_no不能同时为空

func (*AlibabaNlifeB2cTradePayAPIRequest) SetPickingUp

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetPickingUp(_pickingUp string) error

SetPickingUp is PickingUp Setter 提货方式: LOGISTICS("物流发货"), SELF_DELIVERY("门店自提");

func (*AlibabaNlifeB2cTradePayAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 只传out_trade_no时候,零售+门店号一定要传

func (*AlibabaNlifeB2cTradePayAPIRequest) SetTradeNo

func (r *AlibabaNlifeB2cTradePayAPIRequest) SetTradeNo(_tradeNo string) error

SetTradeNo is TradeNo Setter 零售+平台订单号,和out_trade_no不能同时为空

type AlibabaNlifeB2cTradePayAPIResponse

type AlibabaNlifeB2cTradePayAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cTradePayAPIResponseModel
}

AlibabaNlifeB2cTradePayAPIResponse 零售+平台支付订单 API返回值 alibaba.nlife.b2c.trade.pay

零售+平台支付接口,外部商户调用此接口告知零售+支付结果,保持订单状态同步

func GetAlibabaNlifeB2cTradePayAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cTradePayAPIResponse() *AlibabaNlifeB2cTradePayAPIResponse

GetAlibabaNlifeB2cTradePayAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cTradePayAPIResponse

func (*AlibabaNlifeB2cTradePayAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradePayAPIResponseModel

type AlibabaNlifeB2cTradePayAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_pay_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// gmtPayment
	GmtPayment string `json:"gmt_payment,omitempty" xml:"gmt_payment,omitempty"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

AlibabaNlifeB2cTradePayAPIResponseModel is 零售+平台支付订单 成功返回结果

func (*AlibabaNlifeB2cTradePayAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeRefundAPIRequest

type AlibabaNlifeB2cTradeRefundAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cTradeRefundAPIRequest 零售+请求退款 API请求 alibaba.nlife.b2c.trade.refund

零售+平台请求退款接口,在零售+平台不会有资金流变动,只是订单状态的更新

func GetAlibabaNlifeB2cTradeRefundAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cTradeRefundAPIRequest() *AlibabaNlifeB2cTradeRefundAPIRequest

GetAlibabaNlifeB2cTradeRefundRequest 从 sync.Pool 获取 AlibabaNlifeB2cTradeRefundAPIRequest

func NewAlibabaNlifeB2cTradeRefundRequest

func NewAlibabaNlifeB2cTradeRefundRequest() *AlibabaNlifeB2cTradeRefundAPIRequest

NewAlibabaNlifeB2cTradeRefundRequest 初始化AlibabaNlifeB2cTradeRefundAPIRequest对象

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetApiParams

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetOutRequestNo

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetOutRequestNo() string

GetOutRequestNo OutRequestNo Getter

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetOutTradeNo

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundBillList

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundBillList() []FundBill

GetRefundBillList RefundBillList Getter

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundGoodsList

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundGoodsList() []string

GetRefundGoodsList RefundGoodsList Getter

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundPoints

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundPoints() int64

GetRefundPoints RefundPoints Getter

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

func (*AlibabaNlifeB2cTradeRefundAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetOutRequestNo

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetOutRequestNo(_outRequestNo string) error

SetOutRequestNo is OutRequestNo Setter 外部请求号

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetOutTradeNo

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetOutTradeNo(_outTradeNo string) error

SetOutTradeNo is OutTradeNo Setter 外部订单号,和trade_no不能同时为空

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundBillList

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundBillList(_refundBillList []FundBill) error

SetRefundBillList is RefundBillList Setter 退款资金列表

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundGoodsList

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundGoodsList(_refundGoodsList []string) error

SetRefundGoodsList is RefundGoodsList Setter 所退货物的ID列表,逗号分隔商品组,冒号分隔商品和退货数量,支持三种方式退。 条码模式:barcode1:3,barcode2:2 表示barcode1退3件,barcode2退2件。 item_sku模式:itemId1_skuId1:3,itemId2_skuId2:2 表示itemId1_skuId1这个商品退3件,itemId2_skuId2这个商品退2件。 唯一码模式:uniqeueCodeA:1,uniqeueCodeA:1,因唯一码指定到唯一一件商品,退货数量都是1。

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundPoints

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundPoints(_refundPoints int64) error

SetRefundPoints is RefundPoints Setter 退积分,ISV自行算好

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 零售+门店ID

func (*AlibabaNlifeB2cTradeRefundAPIRequest) SetTradeNo

func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetTradeNo(_tradeNo string) error

SetTradeNo is TradeNo Setter 零售+平台订单号,和out_trade_no不能同时为空

type AlibabaNlifeB2cTradeRefundAPIResponse

type AlibabaNlifeB2cTradeRefundAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cTradeRefundAPIResponseModel
}

AlibabaNlifeB2cTradeRefundAPIResponse 零售+请求退款 API返回值 alibaba.nlife.b2c.trade.refund

零售+平台请求退款接口,在零售+平台不会有资金流变动,只是订单状态的更新

func GetAlibabaNlifeB2cTradeRefundAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cTradeRefundAPIResponse() *AlibabaNlifeB2cTradeRefundAPIResponse

GetAlibabaNlifeB2cTradeRefundAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cTradeRefundAPIResponse

func (*AlibabaNlifeB2cTradeRefundAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradeRefundAPIResponseModel

type AlibabaNlifeB2cTradeRefundAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_refund_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款时间
	GmtRefund string `json:"gmt_refund,omitempty" xml:"gmt_refund,omitempty"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

AlibabaNlifeB2cTradeRefundAPIResponseModel is 零售+请求退款 成功返回结果

func (*AlibabaNlifeB2cTradeRefundAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradestatusDriveAPIRequest

type AlibabaNlifeB2cTradestatusDriveAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaNlifeB2cTradestatusDriveAPIRequest b2c订单状态驱动 API请求 alibaba.nlife.b2c.tradestatus.drive

用于驱动零售+订单状态

func GetAlibabaNlifeB2cTradestatusDriveAPIRequest added in v1.3.4

func GetAlibabaNlifeB2cTradestatusDriveAPIRequest() *AlibabaNlifeB2cTradestatusDriveAPIRequest

GetAlibabaNlifeB2cTradestatusDriveRequest 从 sync.Pool 获取 AlibabaNlifeB2cTradestatusDriveAPIRequest

func NewAlibabaNlifeB2cTradestatusDriveRequest

func NewAlibabaNlifeB2cTradestatusDriveRequest() *AlibabaNlifeB2cTradestatusDriveAPIRequest

NewAlibabaNlifeB2cTradestatusDriveRequest 初始化AlibabaNlifeB2cTradestatusDriveAPIRequest对象

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetAction

GetAction Action Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiParams

func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetChannel

GetChannel Channel Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetExtendParams

GetExtendParams ExtendParams Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetLogisticsInfo

GetLogisticsInfo LogisticsInfo Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetOutTradeNo

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetAction

SetAction is Action Setter 接口类型:CONFIRM(收货)DELIVER(发货)

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetChannel

func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetChannel(_channel string) error

SetChannel is Channel Setter APP:是指线上销售应用,POS:是指现场收银应用

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetExtendParams

func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetExtendParams(_extendParams string) error

SetExtendParams is ExtendParams Setter 扩展参数 JSON格式

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetLogisticsInfo

func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetLogisticsInfo(_logisticsInfo *LogisticsInfo) error

SetLogisticsInfo is LogisticsInfo Setter 货流信息

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetOutTradeNo

func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetOutTradeNo(_outTradeNo string) error

SetOutTradeNo is OutTradeNo Setter 对零售+为外部订单号,对业务方为订单号

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetStoreId

func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 零售门店在零售+平台的ID

func (*AlibabaNlifeB2cTradestatusDriveAPIRequest) SetTradeNo

func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetTradeNo(_tradeNo string) error

SetTradeNo is TradeNo Setter 零售+平台订单号,和out_trade_no不能同时为空

type AlibabaNlifeB2cTradestatusDriveAPIResponse

type AlibabaNlifeB2cTradestatusDriveAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2cTradestatusDriveAPIResponseModel
}

AlibabaNlifeB2cTradestatusDriveAPIResponse b2c订单状态驱动 API返回值 alibaba.nlife.b2c.tradestatus.drive

用于驱动零售+订单状态

func GetAlibabaNlifeB2cTradestatusDriveAPIResponse added in v1.3.4

func GetAlibabaNlifeB2cTradestatusDriveAPIResponse() *AlibabaNlifeB2cTradestatusDriveAPIResponse

GetAlibabaNlifeB2cTradestatusDriveAPIResponse 从 sync.Pool 获取 AlibabaNlifeB2cTradestatusDriveAPIResponse

func (*AlibabaNlifeB2cTradestatusDriveAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaNlifeB2cTradestatusDriveAPIResponseModel

type AlibabaNlifeB2cTradestatusDriveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2c_tradestatus_drive_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
}

AlibabaNlifeB2cTradestatusDriveAPIResponseModel is b2c订单状态驱动 成功返回结果

func (*AlibabaNlifeB2cTradestatusDriveAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type DiscountMemo

type DiscountMemo struct {
	// 文案编号
	MemoId string `json:"memo_id,omitempty" xml:"memo_id,omitempty"`
	// 文案描述
	MemoDesc string `json:"memo_desc,omitempty" xml:"memo_desc,omitempty"`
}

DiscountMemo 结构体

func GetDiscountMemo added in v1.3.4

func GetDiscountMemo() *DiscountMemo

GetDiscountMemo() 从对象池中获取DiscountMemo

type DiscountRule

type DiscountRule struct {
	// 抵扣人民币1分钱所需要的积分数量,比如10积分一分钱
	PointsValue string `json:"points_value,omitempty" xml:"points_value,omitempty"`
	// 百分比,抵扣上限。15代表积分最多能抵扣订单总额的15%
	DeductionLimit int64 `json:"deduction_limit,omitempty" xml:"deduction_limit,omitempty"`
	// 金额上限,单位人民币分
	MoneyLimit int64 `json:"money_limit,omitempty" xml:"money_limit,omitempty"`
}

DiscountRule 结构体

func GetDiscountRule added in v1.3.4

func GetDiscountRule() *DiscountRule

GetDiscountRule() 从对象池中获取DiscountRule

type FundBill

type FundBill struct {
	// 资金渠道的id:     * 1. type=CASH:为空;      * 2. type=UNIONPAY:银联流水号;      * 3. type=ALIPAY:支付宝订单号;      * 4. type=WECHAT_PAY:微信支付订单号;      * 6. type=CUSTOM_PROMOTION:零售商自有优惠id。      * 7. type=CUSTOM_PREPAY_CARD:零售商自有储值卡id      * 8. type=MALING:为空
	Id string `json:"id,omitempty" xml:"id,omitempty"`
	// 资金渠道类型:     CASH("现金支付"),     UNIONPAY("银联刷卡支付"),     ALIPAY("支付宝支付"),     WECHAT_PAY("微信支付"),     PROMOTION("零售+平台的优惠"),     CUSTOM_PROMOTION("零售商自有优惠"),     CUSTOM_PREPAY_CARD("零售商自有储值卡"),     MALING("支付时抹零");
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 用户ID
	BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"`
	// 买家类型: TAOBAO_OPENID("经阿里百川淘宝登陆获取到的用户ID"),     ALIPAY_OPENID("经蚂蚁金服开放平台支付宝App登陆获得的用户ID"),     WECHAT_OPENID("经微信开放平台微信App登陆获得的用户id"),     PHONE_NUMBER("通过手机号码登陆"),     APP_USERID("商户自由的用户ID"),     ANONYMOUS_USER("匿名用户");
	BuyerIdType string `json:"buyer_id_type,omitempty" xml:"buyer_id_type,omitempty"`
	// 标题:     * 1. type=CASH:现金支付;      * 2. type=UNIONPAY:银联刷卡支付;      * 3. type=ALIPAY:支付宝支付;      * 4. type=WECHAT_PAY:微信支付;      * 5. type=PROMOTION: 零售+平台的优惠名称;      * 6. type=CUSTOM_PROMOTION:零售商自有优惠名称;      * 7. type=CUSTOM_PREPAY_CARD:零售商自有储值卡;      * 8. type=MALING:抹零      *
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 货币种类:    CYN("人民币"),     USD("美元"),     HKD("港币");
	Currency string `json:"currency,omitempty" xml:"currency,omitempty"`
	// 扩展参数,JSON格式
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 附加数据,在查询订单中原样返回,该字段主要用于商户携带订单的自定义数据
	Attachment string `json:"attachment,omitempty" xml:"attachment,omitempty"`
	// 金额/优惠抵扣金额,单位:分
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
}

FundBill 结构体

func GetFundBill added in v1.3.4

func GetFundBill() *FundBill

GetFundBill() 从对象池中获取FundBill

type Goods

type Goods struct {
	// 导购员编号
	Guider string `json:"guider,omitempty" xml:"guider,omitempty"`
	// 币种
	Currency string `json:"currency,omitempty" xml:"currency,omitempty"`
	// 零售+商品ID
	Id string `json:"id,omitempty" xml:"id,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商家自用编码集合,对应该item_sku. 逗号分隔字符串
	CustomCodes string `json:"custom_codes,omitempty" xml:"custom_codes,omitempty"`
	// 商品数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 商品价格,人民币 分
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 商品itemId
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

Goods 结构体

func GetGoods added in v1.3.4

func GetGoods() *Goods

GetGoods() 从对象池中获取Goods

type ItemCodeConvertResponse

type ItemCodeConvertResponse struct {
	// 转码后的结果
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// BARCODE / UNIQUECODE
	CodeType string `json:"code_type,omitempty" xml:"code_type,omitempty"`
	// itemId
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// storeId
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
}

ItemCodeConvertResponse 结构体

func GetItemCodeConvertResponse added in v1.3.4

func GetItemCodeConvertResponse() *ItemCodeConvertResponse

GetItemCodeConvertResponse() 从对象池中获取ItemCodeConvertResponse

type LogisticsInfo

type LogisticsInfo struct {
	// 货流详细信息
	LogisticsInfoDetails []LogisticsInfoDetail `json:"logistics_info_details,omitempty" xml:"logistics_info_details>logistics_info_detail,omitempty"`
	// 收货人
	Receiver string `json:"receiver,omitempty" xml:"receiver,omitempty"`
	// 收货地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 收货人联系电话
	PhoneNo string `json:"phone_no,omitempty" xml:"phone_no,omitempty"`
}

LogisticsInfo 结构体

func GetLogisticsInfo added in v1.3.4

func GetLogisticsInfo() *LogisticsInfo

GetLogisticsInfo() 从对象池中获取LogisticsInfo

type LogisticsInfoDetail

type LogisticsInfoDetail struct {
	// 商品列表:[“货码:数量”],码可以是条形码(sku级别)也可以是零售加唯一码(货级别)、零售+ itemId+"_"+skuId,唯一码数量一定是1
	GoodsIds []string `json:"goods_ids,omitempty" xml:"goods_ids>string,omitempty"`
	// 物流单号
	LogisticsNo string `json:"logistics_no,omitempty" xml:"logistics_no,omitempty"`
	// 物流公司名
	LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"`
	// 发货时间
	DeliverTime string `json:"deliver_time,omitempty" xml:"deliver_time,omitempty"`
}

LogisticsInfoDetail 结构体

func GetLogisticsInfoDetail added in v1.3.4

func GetLogisticsInfoDetail() *LogisticsInfoDetail

GetLogisticsInfoDetail() 从对象池中获取LogisticsInfoDetail

type LogisticsLog

type LogisticsLog struct {
	// time
	Time string `json:"time,omitempty" xml:"time,omitempty"`
	// 内容
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
}

LogisticsLog 结构体

func GetLogisticsLog added in v1.3.4

func GetLogisticsLog() *LogisticsLog

GetLogisticsLog() 从对象池中获取LogisticsLog

type LogisticsStatus

type LogisticsStatus struct {
	// 更新日志列表
	LogisticsLogList []LogisticsLog `json:"logistics_log_list,omitempty" xml:"logistics_log_list>logistics_log,omitempty"`
	// 该物流单里面的商品,商品和商品之间逗号分隔,商品和数量冒号分隔
	GoodsId string `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 物流状态:    WAIT_FOR_CONSIGN("有待发货商品"),     WAIT_FOR_SIGN("全部商品已发货"),     SIGNED("全部商品已签收"),     REJECTED("全部商品已拒收");
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 物流公司名称
	LogisticsCompanyName string `json:"logistics_company_name,omitempty" xml:"logistics_company_name,omitempty"`
	// 物流公司ID
	LogisticsCompanyId string `json:"logistics_company_id,omitempty" xml:"logistics_company_id,omitempty"`
	// 物流单号
	LogisticsId string `json:"logistics_id,omitempty" xml:"logistics_id,omitempty"`
	// 更新时间
	ModifyedTime string `json:"modifyed_time,omitempty" xml:"modifyed_time,omitempty"`
}

LogisticsStatus 结构体

func GetLogisticsStatus added in v1.3.4

func GetLogisticsStatus() *LogisticsStatus

GetLogisticsStatus() 从对象池中获取LogisticsStatus

type Order

type Order struct {
	// 商品列表
	GoodsList []Goods `json:"goods_list,omitempty" xml:"goods_list>goods,omitempty"`
	// 发生退货的商品列表
	RefundedGoods []Goods `json:"refunded_goods,omitempty" xml:"refunded_goods>goods,omitempty"`
	// 收银员姓名
	SalesName string `json:"sales_name,omitempty" xml:"sales_name,omitempty"`
	// 交易状态:WAIT_PAY:等待支付;SUCCESS:支付成功;CLOSED:交易关闭
	TradeStatus string `json:"trade_status,omitempty" xml:"trade_status,omitempty"`
	// 支付时间
	GmtPay string `json:"gmt_pay,omitempty" xml:"gmt_pay,omitempty"`
	// 下单时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 门店名称
	StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
	// 零售+订单号
	TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"`
	// 支付渠道
	PayChannel string `json:"pay_channel,omitempty" xml:"pay_channel,omitempty"`
	// 退款状态:REFUNDED_PART:已部分退款;REFUNDED:已全部退款
	RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 收银员ID
	SalesId string `json:"sales_id,omitempty" xml:"sales_id,omitempty"`
	// 如果是全渠道订单,此处为淘宝订单号
	OmniTradeNo string `json:"omni_trade_no,omitempty" xml:"omni_trade_no,omitempty"`
	// 外部订单号 即业务方订单号
	OutTradeNo string `json:"out_trade_no,omitempty" xml:"out_trade_no,omitempty"`
	// 实付金额,人民币 分
	ActualPayAmount int64 `json:"actual_pay_amount,omitempty" xml:"actual_pay_amount,omitempty"`
	// 订单金额,人民币 分
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 门店ID
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 已退金额,人民币 分
	RefundedAmount int64 `json:"refunded_amount,omitempty" xml:"refunded_amount,omitempty"`
	// 0:门店订单;1:全渠道订单;3:网直供订单
	TradeBizType int64 `json:"trade_biz_type,omitempty" xml:"trade_biz_type,omitempty"`
}

Order 结构体

func GetOrder added in v1.3.4

func GetOrder() *Order

GetOrder() 从对象池中获取Order

type Refund

type Refund struct {
	// 退款渠道列表
	RefundBillList []FundBill `json:"refund_bill_list,omitempty" xml:"refund_bill_list>fund_bill,omitempty"`
	// refundTime
	RefundTime string `json:"refund_time,omitempty" xml:"refund_time,omitempty"`
	// outRequestNo
	OutRequestNo string `json:"out_request_no,omitempty" xml:"out_request_no,omitempty"`
	// 退货的商品,逗号分隔元素,商品和数量冒号分隔
	RefundGoods string `json:"refund_goods,omitempty" xml:"refund_goods,omitempty"`
}

Refund 结构体

func GetRefund added in v1.3.4

func GetRefund() *Refund

GetRefund() 从对象池中获取Refund

Jump to

Keyboard shortcuts

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