nlife

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 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

This section is empty.

Types

type Alibabanlifeb2ccodeconvertAPIRequest added in v1.3.1

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

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

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

func NewAlibabanlifeb2ccodeconvertRequest added in v1.3.1

func NewAlibabanlifeb2ccodeconvertRequest() *Alibabanlifeb2ccodeconvertAPIRequest

NewAlibabanlifeb2ccodeconvertRequest 初始化Alibabanlifeb2ccodeconvertAPIRequest对象

func (Alibabanlifeb2ccodeconvertAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2ccodeconvertAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ccodeconvertAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ccodeconvertAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ccodeconvertAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2ccodeconvertAPIRequest) GetUrl added in v1.3.1

GetUrl Url Getter

func (*Alibabanlifeb2ccodeconvertAPIRequest) SetStoreId added in v1.3.1

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

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

func (*Alibabanlifeb2ccodeconvertAPIRequest) SetUrl added in v1.3.1

SetUrl is Url Setter 商品URL

type Alibabanlifeb2ccodeconvertAPIResponse added in v1.3.1

type Alibabanlifeb2ccodeconvertAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ccodeconvertAPIResponseModel
}

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

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

type Alibabanlifeb2ccodeconvertAPIResponseModel added in v1.3.1

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转码 成功返回结果

type Alibabanlifeb2citemdetailgetAPIRequest added in v1.3.1

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

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

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

func NewAlibabanlifeb2citemdetailgetRequest added in v1.3.1

func NewAlibabanlifeb2citemdetailgetRequest() *Alibabanlifeb2citemdetailgetAPIRequest

NewAlibabanlifeb2citemdetailgetRequest 初始化Alibabanlifeb2citemdetailgetAPIRequest对象

func (Alibabanlifeb2citemdetailgetAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2citemdetailgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2citemdetailgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2citemdetailgetAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2citemdetailgetAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2citemdetailgetAPIRequest) GetUniqueCode added in v1.3.1

GetUniqueCode UniqueCode Getter

func (*Alibabanlifeb2citemdetailgetAPIRequest) SetStoreId added in v1.3.1

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

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

func (*Alibabanlifeb2citemdetailgetAPIRequest) SetUniqueCode added in v1.3.1

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

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

type Alibabanlifeb2citemdetailgetAPIResponse added in v1.3.1

type Alibabanlifeb2citemdetailgetAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2citemdetailgetAPIResponseModel
}

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

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

type Alibabanlifeb2citemdetailgetAPIResponseModel added in v1.3.1

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码详情查询 成功返回结果

type Alibabanlifeb2cmemberdiscountrulegetAPIRequest added in v1.3.1

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

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

获取企业会员抵扣规则

func NewAlibabanlifeb2cmemberdiscountrulegetRequest added in v1.3.1

func NewAlibabanlifeb2cmemberdiscountrulegetRequest() *Alibabanlifeb2cmemberdiscountrulegetAPIRequest

NewAlibabanlifeb2cmemberdiscountrulegetRequest 初始化Alibabanlifeb2cmemberdiscountrulegetAPIRequest对象

func (Alibabanlifeb2cmemberdiscountrulegetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2cmemberdiscountrulegetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2cmemberdiscountrulegetAPIRequest) GetCardNo added in v1.3.1

GetCardNo CardNo Getter

func (Alibabanlifeb2cmemberdiscountrulegetAPIRequest) GetCompanyId added in v1.3.1

GetCompanyId CompanyId Getter

func (Alibabanlifeb2cmemberdiscountrulegetAPIRequest) GetRawParams added in v1.3.1

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

func (*Alibabanlifeb2cmemberdiscountrulegetAPIRequest) SetCardNo added in v1.3.1

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

func (*Alibabanlifeb2cmemberdiscountrulegetAPIRequest) SetCompanyId added in v1.3.1

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

SetCompanyId is CompanyId Setter 企业ID

type Alibabanlifeb2cmemberdiscountrulegetAPIResponse added in v1.3.1

type Alibabanlifeb2cmemberdiscountrulegetAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2cmemberdiscountrulegetAPIResponseModel
}

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

获取企业会员抵扣规则

type Alibabanlifeb2cmemberdiscountrulegetAPIResponseModel added in v1.3.1

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 会员抵扣规则 成功返回结果

type Alibabanlifeb2ctradecancelAPIRequest added in v1.3.1

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

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

零售+平台取消订单接口

func NewAlibabanlifeb2ctradecancelRequest added in v1.3.1

func NewAlibabanlifeb2ctradecancelRequest() *Alibabanlifeb2ctradecancelAPIRequest

NewAlibabanlifeb2ctradecancelRequest 初始化Alibabanlifeb2ctradecancelAPIRequest对象

func (Alibabanlifeb2ctradecancelAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2ctradecancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ctradecancelAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ctradecancelAPIRequest) GetOutTradeNo added in v1.3.1

func (r Alibabanlifeb2ctradecancelAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (Alibabanlifeb2ctradecancelAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ctradecancelAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2ctradecancelAPIRequest) GetTradeNo added in v1.3.1

GetTradeNo TradeNo Getter

func (*Alibabanlifeb2ctradecancelAPIRequest) SetOutTradeNo added in v1.3.1

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

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

func (*Alibabanlifeb2ctradecancelAPIRequest) SetStoreId added in v1.3.1

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

SetStoreId is StoreId Setter 零售+门店号

func (*Alibabanlifeb2ctradecancelAPIRequest) SetTradeNo added in v1.3.1

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

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

type Alibabanlifeb2ctradecancelAPIResponse added in v1.3.1

type Alibabanlifeb2ctradecancelAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ctradecancelAPIResponseModel
}

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

零售+平台取消订单接口

type Alibabanlifeb2ctradecancelAPIResponseModel added in v1.3.1

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 零售+平台取消订单 成功返回结果

type Alibabanlifeb2ctradedownloadAPIRequest added in v1.3.1

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

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

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

func NewAlibabanlifeb2ctradedownloadRequest added in v1.3.1

func NewAlibabanlifeb2ctradedownloadRequest() *Alibabanlifeb2ctradedownloadAPIRequest

NewAlibabanlifeb2ctradedownloadRequest 初始化Alibabanlifeb2ctradedownloadAPIRequest对象

func (Alibabanlifeb2ctradedownloadAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2ctradedownloadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ctradedownloadAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ctradedownloadAPIRequest) GetEndDate added in v1.3.1

GetEndDate EndDate Getter

func (Alibabanlifeb2ctradedownloadAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (Alibabanlifeb2ctradedownloadAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (Alibabanlifeb2ctradedownloadAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ctradedownloadAPIRequest) GetStartDate added in v1.3.1

GetStartDate StartDate Getter

func (Alibabanlifeb2ctradedownloadAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (*Alibabanlifeb2ctradedownloadAPIRequest) SetEndDate added in v1.3.1

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

SetEndDate is EndDate Setter 结束时间

func (*Alibabanlifeb2ctradedownloadAPIRequest) SetPageNo added in v1.3.1

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

SetPageNo is PageNo Setter 页码

func (*Alibabanlifeb2ctradedownloadAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 分页大小

func (*Alibabanlifeb2ctradedownloadAPIRequest) SetStartDate added in v1.3.1

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

SetStartDate is StartDate Setter 开始时间

func (*Alibabanlifeb2ctradedownloadAPIRequest) SetStoreId added in v1.3.1

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

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

type Alibabanlifeb2ctradedownloadAPIResponse added in v1.3.1

type Alibabanlifeb2ctradedownloadAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ctradedownloadAPIResponseModel
}

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

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

type Alibabanlifeb2ctradedownloadAPIResponseModel added in v1.3.1

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下载订单 成功返回结果

type Alibabanlifeb2ctradegetAPIRequest added in v1.3.1

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

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

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

func NewAlibabanlifeb2ctradegetRequest added in v1.3.1

func NewAlibabanlifeb2ctradegetRequest() *Alibabanlifeb2ctradegetAPIRequest

NewAlibabanlifeb2ctradegetRequest 初始化Alibabanlifeb2ctradegetAPIRequest对象

func (Alibabanlifeb2ctradegetAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2ctradegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ctradegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ctradegetAPIRequest) GetOutTradeNo added in v1.3.1

func (r Alibabanlifeb2ctradegetAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (Alibabanlifeb2ctradegetAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ctradegetAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2ctradegetAPIRequest) GetTradeNo added in v1.3.1

GetTradeNo TradeNo Getter

func (*Alibabanlifeb2ctradegetAPIRequest) SetOutTradeNo added in v1.3.1

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

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

func (*Alibabanlifeb2ctradegetAPIRequest) SetStoreId added in v1.3.1

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

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

func (*Alibabanlifeb2ctradegetAPIRequest) SetTradeNo added in v1.3.1

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

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

type Alibabanlifeb2ctradegetAPIResponse added in v1.3.1

type Alibabanlifeb2ctradegetAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ctradegetAPIResponseModel
}

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

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

type Alibabanlifeb2ctradegetAPIResponseModel added in v1.3.1

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 零售+平台查询订单 成功返回结果

type Alibabanlifeb2ctradepayAPIRequest added in v1.3.1

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

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

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

func NewAlibabanlifeb2ctradepayRequest added in v1.3.1

func NewAlibabanlifeb2ctradepayRequest() *Alibabanlifeb2ctradepayAPIRequest

NewAlibabanlifeb2ctradepayRequest 初始化Alibabanlifeb2ctradepayAPIRequest对象

func (Alibabanlifeb2ctradepayAPIRequest) GetActualPayFee added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetActualPayFee() int64

GetActualPayFee ActualPayFee Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ctradepayAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ctradepayAPIRequest) GetConsignee added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetConsignee() string

GetConsignee Consignee Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetConsigneeAddress added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetConsigneeAddress() string

GetConsigneeAddress ConsigneeAddress Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetConsigneePhoneNum added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetConsigneePhoneNum() string

GetConsigneePhoneNum ConsigneePhoneNum Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetFundBillList added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetFundBillList() []FundBill

GetFundBillList FundBillList Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetGmtPayment added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetGmtPayment() string

GetGmtPayment GmtPayment Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetOutTradeNo added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetPickingUp added in v1.3.1

func (r Alibabanlifeb2ctradepayAPIRequest) GetPickingUp() string

GetPickingUp PickingUp Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ctradepayAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2ctradepayAPIRequest) GetTradeNo added in v1.3.1

GetTradeNo TradeNo Getter

func (*Alibabanlifeb2ctradepayAPIRequest) SetActualPayFee added in v1.3.1

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

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

func (*Alibabanlifeb2ctradepayAPIRequest) SetConsignee added in v1.3.1

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

SetConsignee is Consignee Setter 收货人

func (*Alibabanlifeb2ctradepayAPIRequest) SetConsigneeAddress added in v1.3.1

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

SetConsigneeAddress is ConsigneeAddress Setter 收货人地址

func (*Alibabanlifeb2ctradepayAPIRequest) SetConsigneePhoneNum added in v1.3.1

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

SetConsigneePhoneNum is ConsigneePhoneNum Setter 收货人电话

func (*Alibabanlifeb2ctradepayAPIRequest) SetFundBillList added in v1.3.1

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

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

func (*Alibabanlifeb2ctradepayAPIRequest) SetGmtPayment added in v1.3.1

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

SetGmtPayment is GmtPayment Setter ISV处支付时间

func (*Alibabanlifeb2ctradepayAPIRequest) SetOutTradeNo added in v1.3.1

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

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

func (*Alibabanlifeb2ctradepayAPIRequest) SetPickingUp added in v1.3.1

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

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

func (*Alibabanlifeb2ctradepayAPIRequest) SetStoreId added in v1.3.1

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

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

func (*Alibabanlifeb2ctradepayAPIRequest) SetTradeNo added in v1.3.1

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

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

type Alibabanlifeb2ctradepayAPIResponse added in v1.3.1

type Alibabanlifeb2ctradepayAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ctradepayAPIResponseModel
}

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

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

type Alibabanlifeb2ctradepayAPIResponseModel added in v1.3.1

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 零售+平台支付订单 成功返回结果

type Alibabanlifeb2ctraderefundAPIRequest added in v1.3.1

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

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

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

func NewAlibabanlifeb2ctraderefundRequest added in v1.3.1

func NewAlibabanlifeb2ctraderefundRequest() *Alibabanlifeb2ctraderefundAPIRequest

NewAlibabanlifeb2ctraderefundRequest 初始化Alibabanlifeb2ctraderefundAPIRequest对象

func (Alibabanlifeb2ctraderefundAPIRequest) GetApiMethodName added in v1.3.1

func (r Alibabanlifeb2ctraderefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ctraderefundAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ctraderefundAPIRequest) GetOutRequestNo added in v1.3.1

func (r Alibabanlifeb2ctraderefundAPIRequest) GetOutRequestNo() string

GetOutRequestNo OutRequestNo Getter

func (Alibabanlifeb2ctraderefundAPIRequest) GetOutTradeNo added in v1.3.1

func (r Alibabanlifeb2ctraderefundAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (Alibabanlifeb2ctraderefundAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ctraderefundAPIRequest) GetRefundBillList added in v1.3.1

func (r Alibabanlifeb2ctraderefundAPIRequest) GetRefundBillList() []FundBill

GetRefundBillList RefundBillList Getter

func (Alibabanlifeb2ctraderefundAPIRequest) GetRefundGoodsList added in v1.3.1

func (r Alibabanlifeb2ctraderefundAPIRequest) GetRefundGoodsList() []string

GetRefundGoodsList RefundGoodsList Getter

func (Alibabanlifeb2ctraderefundAPIRequest) GetRefundPoints added in v1.3.1

func (r Alibabanlifeb2ctraderefundAPIRequest) GetRefundPoints() int64

GetRefundPoints RefundPoints Getter

func (Alibabanlifeb2ctraderefundAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2ctraderefundAPIRequest) GetTradeNo added in v1.3.1

GetTradeNo TradeNo Getter

func (*Alibabanlifeb2ctraderefundAPIRequest) SetOutRequestNo added in v1.3.1

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

SetOutRequestNo is OutRequestNo Setter 外部请求号

func (*Alibabanlifeb2ctraderefundAPIRequest) SetOutTradeNo added in v1.3.1

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

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

func (*Alibabanlifeb2ctraderefundAPIRequest) SetRefundBillList added in v1.3.1

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

SetRefundBillList is RefundBillList Setter 退款资金列表

func (*Alibabanlifeb2ctraderefundAPIRequest) SetRefundGoodsList added in v1.3.1

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 added in v1.3.1

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

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

func (*Alibabanlifeb2ctraderefundAPIRequest) SetStoreId added in v1.3.1

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

SetStoreId is StoreId Setter 零售+门店ID

func (*Alibabanlifeb2ctraderefundAPIRequest) SetTradeNo added in v1.3.1

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

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

type Alibabanlifeb2ctraderefundAPIResponse added in v1.3.1

type Alibabanlifeb2ctraderefundAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ctraderefundAPIResponseModel
}

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

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

type Alibabanlifeb2ctraderefundAPIResponseModel added in v1.3.1

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 零售+请求退款 成功返回结果

type Alibabanlifeb2ctradestatusdriveAPIRequest added in v1.3.1

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

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

用于驱动零售+订单状态

func NewAlibabanlifeb2ctradestatusdriveRequest added in v1.3.1

func NewAlibabanlifeb2ctradestatusdriveRequest() *Alibabanlifeb2ctradestatusdriveAPIRequest

NewAlibabanlifeb2ctradestatusdriveRequest 初始化Alibabanlifeb2ctradestatusdriveAPIRequest对象

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetAction added in v1.3.1

GetAction Action Getter

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetChannel added in v1.3.1

GetChannel Channel Getter

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetExtendParams added in v1.3.1

GetExtendParams ExtendParams Getter

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetLogisticsInfo added in v1.3.1

GetLogisticsInfo LogisticsInfo Getter

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetOutTradeNo added in v1.3.1

GetOutTradeNo OutTradeNo Getter

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetRawParams added in v1.3.1

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

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (Alibabanlifeb2ctradestatusdriveAPIRequest) GetTradeNo added in v1.3.1

GetTradeNo TradeNo Getter

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetAction added in v1.3.1

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

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetChannel added in v1.3.1

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

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

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetExtendParams added in v1.3.1

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

SetExtendParams is ExtendParams Setter 扩展参数 JSON格式

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetLogisticsInfo added in v1.3.1

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

SetLogisticsInfo is LogisticsInfo Setter 货流信息

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetOutTradeNo added in v1.3.1

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

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

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetStoreId added in v1.3.1

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

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

func (*Alibabanlifeb2ctradestatusdriveAPIRequest) SetTradeNo added in v1.3.1

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

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

type Alibabanlifeb2ctradestatusdriveAPIResponse added in v1.3.1

type Alibabanlifeb2ctradestatusdriveAPIResponse struct {
	model.CommonResponse
	Alibabanlifeb2ctradestatusdriveAPIResponseModel
}

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

用于驱动零售+订单状态

type Alibabanlifeb2ctradestatusdriveAPIResponseModel added in v1.3.1

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订单状态驱动 成功返回结果

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 结构体

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 结构体

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 结构体

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 结构体

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 结构体

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 结构体

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 结构体

type LogisticsLog

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

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 结构体

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 结构体

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 结构体

Jump to

Keyboard shortcuts

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