nlife

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaNlifeB2bTradeListAPIRequest

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

AlibabaNlifeB2bTradeListAPIRequest 获取企业下的采购单列表 API请求 alibaba.nlife.b2b.trade.list

获取指定门店下的采购单列表

func NewAlibabaNlifeB2bTradeListRequest

func NewAlibabaNlifeB2bTradeListRequest() *AlibabaNlifeB2bTradeListAPIRequest

NewAlibabaNlifeB2bTradeListRequest 初始化AlibabaNlifeB2bTradeListAPIRequest对象

func (AlibabaNlifeB2bTradeListAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2bTradeListAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2bTradeListAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2bTradeListAPIRequest) GetEndEffectiveDate

func (r AlibabaNlifeB2bTradeListAPIRequest) GetEndEffectiveDate() string

GetEndEffectiveDate EndEffectiveDate Getter

func (AlibabaNlifeB2bTradeListAPIRequest) GetEntId

GetEntId EntId Getter

func (AlibabaNlifeB2bTradeListAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaNlifeB2bTradeListAPIRequest) GetPageSize

func (r AlibabaNlifeB2bTradeListAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (AlibabaNlifeB2bTradeListAPIRequest) GetStartEffectiveDate

func (r AlibabaNlifeB2bTradeListAPIRequest) GetStartEffectiveDate() string

GetStartEffectiveDate StartEffectiveDate Getter

func (*AlibabaNlifeB2bTradeListAPIRequest) SetEndEffectiveDate

func (r *AlibabaNlifeB2bTradeListAPIRequest) SetEndEffectiveDate(_endEffectiveDate string) error

SetEndEffectiveDate is EndEffectiveDate Setter 采购单生效时间结束范围

func (*AlibabaNlifeB2bTradeListAPIRequest) SetEntId

func (r *AlibabaNlifeB2bTradeListAPIRequest) SetEntId(_entId int64) error

SetEntId is EntId Setter 企业ID

func (*AlibabaNlifeB2bTradeListAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 查询的页码

func (*AlibabaNlifeB2bTradeListAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页的数量

func (*AlibabaNlifeB2bTradeListAPIRequest) SetStartEffectiveDate

func (r *AlibabaNlifeB2bTradeListAPIRequest) SetStartEffectiveDate(_startEffectiveDate string) error

SetStartEffectiveDate is StartEffectiveDate Setter 采购单生效时间开始范围

type AlibabaNlifeB2bTradeListAPIResponse

type AlibabaNlifeB2bTradeListAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2bTradeListAPIResponseModel
}

AlibabaNlifeB2bTradeListAPIResponse 获取企业下的采购单列表 API返回值 alibaba.nlife.b2b.trade.list

获取指定门店下的采购单列表

type AlibabaNlifeB2bTradeListAPIResponseModel

type AlibabaNlifeB2bTradeListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2b_trade_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果数据
	Data *ProcurementResponseDo `json:"data,omitempty" xml:"data,omitempty"`
}

AlibabaNlifeB2bTradeListAPIResponseModel is 获取企业下的采购单列表 成功返回结果

type AlibabaNlifeB2bTradeRefundListAPIRequest

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

AlibabaNlifeB2bTradeRefundListAPIRequest 获取采购退货单列表 API请求 alibaba.nlife.b2b.trade.refund.list

获取采购退货单列表

func NewAlibabaNlifeB2bTradeRefundListRequest

func NewAlibabaNlifeB2bTradeRefundListRequest() *AlibabaNlifeB2bTradeRefundListAPIRequest

NewAlibabaNlifeB2bTradeRefundListRequest 初始化AlibabaNlifeB2bTradeRefundListAPIRequest对象

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetEndEffectiveDate

func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetEndEffectiveDate() string

GetEndEffectiveDate EndEffectiveDate Getter

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetEntId

GetEntId EntId Getter

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaNlifeB2bTradeRefundListAPIRequest) GetStartEffectiveDate

func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetStartEffectiveDate() string

GetStartEffectiveDate StartEffectiveDate Getter

func (*AlibabaNlifeB2bTradeRefundListAPIRequest) SetEndEffectiveDate

func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetEndEffectiveDate(_endEffectiveDate string) error

SetEndEffectiveDate is EndEffectiveDate Setter 采购退货单创建时间结束范围

func (*AlibabaNlifeB2bTradeRefundListAPIRequest) SetEntId

SetEntId is EntId Setter 企业Id

func (*AlibabaNlifeB2bTradeRefundListAPIRequest) SetPageNo

SetPageNo is PageNo Setter 查询的页数

func (*AlibabaNlifeB2bTradeRefundListAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页的数量

func (*AlibabaNlifeB2bTradeRefundListAPIRequest) SetStartEffectiveDate

func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetStartEffectiveDate(_startEffectiveDate string) error

SetStartEffectiveDate is StartEffectiveDate Setter 采购退货单创建时间开始范围

type AlibabaNlifeB2bTradeRefundListAPIResponse

type AlibabaNlifeB2bTradeRefundListAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeB2bTradeRefundListAPIResponseModel
}

AlibabaNlifeB2bTradeRefundListAPIResponse 获取采购退货单列表 API返回值 alibaba.nlife.b2b.trade.refund.list

获取采购退货单列表

type AlibabaNlifeB2bTradeRefundListAPIResponseModel

type AlibabaNlifeB2bTradeRefundListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_b2b_trade_refund_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果数据
	Data *RefundListResponseDo `json:"data,omitempty" xml:"data,omitempty"`
}

AlibabaNlifeB2bTradeRefundListAPIResponseModel is 获取采购退货单列表 成功返回结果

type AlibabaNlifeB2cCodeConvertAPIRequest

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

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

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

func NewAlibabaNlifeB2cCodeConvertRequest

func NewAlibabaNlifeB2cCodeConvertRequest() *AlibabaNlifeB2cCodeConvertAPIRequest

NewAlibabaNlifeB2cCodeConvertRequest 初始化AlibabaNlifeB2cCodeConvertAPIRequest对象

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cCodeConvertAPIRequest) GetUrl

GetUrl Url Getter

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

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

type AlibabaNlifeB2cItemDetailGetAPIRequest

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

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

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

func NewAlibabaNlifeB2cItemDetailGetRequest

func NewAlibabaNlifeB2cItemDetailGetRequest() *AlibabaNlifeB2cItemDetailGetAPIRequest

NewAlibabaNlifeB2cItemDetailGetRequest 初始化AlibabaNlifeB2cItemDetailGetAPIRequest对象

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cItemDetailGetAPIRequest) GetUniqueCode

GetUniqueCode UniqueCode Getter

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

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

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

type AlibabaNlifeB2cMemberDiscountruleGetAPIRequest

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

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

获取企业会员抵扣规则

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) 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

获取企业会员抵扣规则

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

type AlibabaNlifeB2cTradeCancelAPIRequest

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

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

零售+平台取消订单接口

func NewAlibabaNlifeB2cTradeCancelRequest

func NewAlibabaNlifeB2cTradeCancelRequest() *AlibabaNlifeB2cTradeCancelAPIRequest

NewAlibabaNlifeB2cTradeCancelRequest 初始化AlibabaNlifeB2cTradeCancelAPIRequest对象

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetOutTradeNo

func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradeCancelAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

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

零售+平台取消订单接口

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

type AlibabaNlifeB2cTradeDownloadAPIRequest

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

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

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

func NewAlibabaNlifeB2cTradeDownloadRequest

func NewAlibabaNlifeB2cTradeDownloadRequest() *AlibabaNlifeB2cTradeDownloadAPIRequest

NewAlibabaNlifeB2cTradeDownloadRequest 初始化AlibabaNlifeB2cTradeDownloadAPIRequest对象

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetEndDate

GetEndDate EndDate Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetStartDate

GetStartDate StartDate Getter

func (AlibabaNlifeB2cTradeDownloadAPIRequest) GetStoreId

GetStoreId StoreId Getter

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

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

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

type AlibabaNlifeB2cTradeGetAPIRequest

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

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

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

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() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeB2cTradeGetAPIRequest) GetOutTradeNo

func (r AlibabaNlifeB2cTradeGetAPIRequest) GetOutTradeNo() string

GetOutTradeNo OutTradeNo Getter

func (AlibabaNlifeB2cTradeGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradeGetAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

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

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

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"`
	// 退款状态:    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"`
	// payStatus
	PayStatus string `json:"pay_status,omitempty" xml:"pay_status,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

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

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

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

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() 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) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradePayAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

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

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

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"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// gmtPayment
	GmtPayment string `json:"gmt_payment,omitempty" xml:"gmt_payment,omitempty"`
}

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

type AlibabaNlifeB2cTradeRefundAPIRequest

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

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

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

func NewAlibabaNlifeB2cTradeRefundRequest

func NewAlibabaNlifeB2cTradeRefundRequest() *AlibabaNlifeB2cTradeRefundAPIRequest

NewAlibabaNlifeB2cTradeRefundRequest 初始化AlibabaNlifeB2cTradeRefundAPIRequest对象

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetApiMethodName

func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradeRefundAPIRequest) GetApiParams

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) 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) 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

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

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

type AlibabaNlifeB2cTradestatusDriveAPIRequest

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

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

用于驱动零售+订单状态

func NewAlibabaNlifeB2cTradestatusDriveRequest

func NewAlibabaNlifeB2cTradestatusDriveRequest() *AlibabaNlifeB2cTradestatusDriveAPIRequest

NewAlibabaNlifeB2cTradestatusDriveRequest 初始化AlibabaNlifeB2cTradestatusDriveAPIRequest对象

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetAction

GetAction Action Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiParams

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) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeB2cTradestatusDriveAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

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

用于驱动零售+订单状态

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"`
	// 描述
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

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

type AlibabaNlifeStoreDeliverdetailGetAPIRequest

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

AlibabaNlifeStoreDeliverdetailGetAPIRequest 查询发货单详情 API请求 alibaba.nlife.store.deliverdetail.get

查询发货单详情

func NewAlibabaNlifeStoreDeliverdetailGetRequest

func NewAlibabaNlifeStoreDeliverdetailGetRequest() *AlibabaNlifeStoreDeliverdetailGetAPIRequest

NewAlibabaNlifeStoreDeliverdetailGetRequest 初始化AlibabaNlifeStoreDeliverdetailGetAPIRequest对象

func (AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetConsignNo

GetConsignNo ConsignNo Getter

func (AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (*AlibabaNlifeStoreDeliverdetailGetAPIRequest) SetConsignNo

func (r *AlibabaNlifeStoreDeliverdetailGetAPIRequest) SetConsignNo(_consignNo string) error

SetConsignNo is ConsignNo Setter 发货单号

func (*AlibabaNlifeStoreDeliverdetailGetAPIRequest) SetStoreId

SetStoreId is StoreId Setter 门店id

type AlibabaNlifeStoreDeliverdetailGetAPIResponse

type AlibabaNlifeStoreDeliverdetailGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeStoreDeliverdetailGetAPIResponseModel
}

AlibabaNlifeStoreDeliverdetailGetAPIResponse 查询发货单详情 API返回值 alibaba.nlife.store.deliverdetail.get

查询发货单详情

type AlibabaNlifeStoreDeliverdetailGetAPIResponseModel

type AlibabaNlifeStoreDeliverdetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_store_deliverdetail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果数据
	Data *DeliverDetailDo `json:"data,omitempty" xml:"data,omitempty"`
}

AlibabaNlifeStoreDeliverdetailGetAPIResponseModel is 查询发货单详情 成功返回结果

type AlibabaNlifeStoreDeliversGetAPIRequest

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

AlibabaNlifeStoreDeliversGetAPIRequest 获取门店采购单下的发货单列表 API请求 alibaba.nlife.store.delivers.get

获取门店采购单下的发货单列表

func NewAlibabaNlifeStoreDeliversGetRequest

func NewAlibabaNlifeStoreDeliversGetRequest() *AlibabaNlifeStoreDeliversGetAPIRequest

NewAlibabaNlifeStoreDeliversGetRequest 初始化AlibabaNlifeStoreDeliversGetAPIRequest对象

func (AlibabaNlifeStoreDeliversGetAPIRequest) GetApiMethodName

func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeStoreDeliversGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeStoreDeliversGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaNlifeStoreDeliversGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaNlifeStoreDeliversGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeStoreDeliversGetAPIRequest) GetTradeNo

GetTradeNo TradeNo Getter

func (*AlibabaNlifeStoreDeliversGetAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 查询的页码

func (*AlibabaNlifeStoreDeliversGetAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 每页的数量

func (*AlibabaNlifeStoreDeliversGetAPIRequest) SetStoreId

func (r *AlibabaNlifeStoreDeliversGetAPIRequest) SetStoreId(_storeId int64) error

SetStoreId is StoreId Setter 零售商的门店id

func (*AlibabaNlifeStoreDeliversGetAPIRequest) SetTradeNo

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

SetTradeNo is TradeNo Setter 门店采购订单号

type AlibabaNlifeStoreDeliversGetAPIResponse

type AlibabaNlifeStoreDeliversGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeStoreDeliversGetAPIResponseModel
}

AlibabaNlifeStoreDeliversGetAPIResponse 获取门店采购单下的发货单列表 API返回值 alibaba.nlife.store.delivers.get

获取门店采购单下的发货单列表

type AlibabaNlifeStoreDeliversGetAPIResponseModel

type AlibabaNlifeStoreDeliversGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_store_delivers_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果数据
	Data *DeliverResponseDo `json:"data,omitempty" xml:"data,omitempty"`
}

AlibabaNlifeStoreDeliversGetAPIResponseModel is 获取门店采购单下的发货单列表 成功返回结果

type AlibabaNlifeStoreItemdetailGetAPIRequest

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

AlibabaNlifeStoreItemdetailGetAPIRequest 查询商品的详情信息 API请求 alibaba.nlife.store.itemdetail.get

查询零售加平台上单个商品的详情信息

func NewAlibabaNlifeStoreItemdetailGetRequest

func NewAlibabaNlifeStoreItemdetailGetRequest() *AlibabaNlifeStoreItemdetailGetAPIRequest

NewAlibabaNlifeStoreItemdetailGetRequest 初始化AlibabaNlifeStoreItemdetailGetAPIRequest对象

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetApiMethodName

func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetCode

GetCode Code Getter

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetItemId

GetItemId ItemId Getter

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetItemType

GetItemType ItemType Getter

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetOuterId

GetOuterId OuterId Getter

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetSkuIdList

GetSkuIdList SkuIdList Getter

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeStoreItemdetailGetAPIRequest) GetStoreIdType

GetStoreIdType StoreIdType Getter

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetCode

SetCode is Code Setter 商家对商品的自用编码

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetItemId

SetItemId is ItemId Setter 商品Item的ID(与outer_id不能同时为空)

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetItemType

func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetItemType(_itemType *model.File) error

SetItemType is ItemType Setter 商品来源类型: 0-线上商品; 1-商户导入的线下商品. 如果为空则默认值为0

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetOuterId

func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商品在外部商家的编码(与item_id不能同时为空)

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetSkuIdList

func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetSkuIdList(_skuIdList []int64) error

SetSkuIdList is SkuIdList Setter skuId列表-可查询指定的sku

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetStoreId

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

SetStoreId is StoreId Setter 门店ID

func (*AlibabaNlifeStoreItemdetailGetAPIRequest) SetStoreIdType

func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetStoreIdType(_storeIdType string) error

SetStoreIdType is StoreIdType Setter 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE

type AlibabaNlifeStoreItemdetailGetAPIResponse

type AlibabaNlifeStoreItemdetailGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeStoreItemdetailGetAPIResponseModel
}

AlibabaNlifeStoreItemdetailGetAPIResponse 查询商品的详情信息 API返回值 alibaba.nlife.store.itemdetail.get

查询零售加平台上单个商品的详情信息

type AlibabaNlifeStoreItemdetailGetAPIResponseModel

type AlibabaNlifeStoreItemdetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_store_itemdetail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品详情信息
	Item *RetailItemTopDo `json:"item,omitempty" xml:"item,omitempty"`
	// true-查询成功;false-查询失败
	Succes bool `json:"succes,omitempty" xml:"succes,omitempty"`
}

AlibabaNlifeStoreItemdetailGetAPIResponseModel is 查询商品的详情信息 成功返回结果

type AlibabaNlifeStoreItemdetailsGetAPIRequest

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

AlibabaNlifeStoreItemdetailsGetAPIRequest 批量获取零售加商品详情信息 API请求 alibaba.nlife.store.itemdetails.get

批量获取零售加平台上的商品详情信息

func NewAlibabaNlifeStoreItemdetailsGetRequest

func NewAlibabaNlifeStoreItemdetailsGetRequest() *AlibabaNlifeStoreItemdetailsGetAPIRequest

NewAlibabaNlifeStoreItemdetailsGetRequest 初始化AlibabaNlifeStoreItemdetailsGetAPIRequest对象

func (AlibabaNlifeStoreItemdetailsGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeStoreItemdetailsGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeStoreItemdetailsGetAPIRequest) GetItemQueryDOList

GetItemQueryDOList ItemQueryDOList Getter

func (AlibabaNlifeStoreItemdetailsGetAPIRequest) GetItemType

GetItemType ItemType Getter

func (AlibabaNlifeStoreItemdetailsGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeStoreItemdetailsGetAPIRequest) GetStoreIdType

GetStoreIdType StoreIdType Getter

func (*AlibabaNlifeStoreItemdetailsGetAPIRequest) SetItemQueryDOList

func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetItemQueryDOList(_itemQueryDOList []ItemQueryDOList) error

SetItemQueryDOList is ItemQueryDOList Setter 查询参数list

func (*AlibabaNlifeStoreItemdetailsGetAPIRequest) SetItemType

func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetItemType(_itemType *model.File) error

SetItemType is ItemType Setter 商品来源类型: 0-线上商品; 1-商户导入的线下商品. 如果为空则默认值为0

func (*AlibabaNlifeStoreItemdetailsGetAPIRequest) SetStoreId

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

SetStoreId is StoreId Setter 门店ID/设备号

func (*AlibabaNlifeStoreItemdetailsGetAPIRequest) SetStoreIdType

func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetStoreIdType(_storeIdType string) error

SetStoreIdType is StoreIdType Setter 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE

type AlibabaNlifeStoreItemdetailsGetAPIResponse

type AlibabaNlifeStoreItemdetailsGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeStoreItemdetailsGetAPIResponseModel
}

AlibabaNlifeStoreItemdetailsGetAPIResponse 批量获取零售加商品详情信息 API返回值 alibaba.nlife.store.itemdetails.get

批量获取零售加平台上的商品详情信息

type AlibabaNlifeStoreItemdetailsGetAPIResponseModel

type AlibabaNlifeStoreItemdetailsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_store_itemdetails_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品详情列表
	ItemList []RetailItemTopDo `json:"item_list,omitempty" xml:"item_list>retail_item_top_do,omitempty"`
	// 总数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// true-查询成功;false-查询失败
	Succes bool `json:"succes,omitempty" xml:"succes,omitempty"`
}

AlibabaNlifeStoreItemdetailsGetAPIResponseModel is 批量获取零售加商品详情信息 成功返回结果

type AlibabaNlifeStoreItemsGetAPIRequest

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

AlibabaNlifeStoreItemsGetAPIRequest 获取门店的商品列表(在售|已下架|全部) API请求 alibaba.nlife.store.items.get

利用该接口可以获取到零售+商品服务中符合条件的商品列表,包括在售的、已下架的或者是所有状态的商品。

func NewAlibabaNlifeStoreItemsGetRequest

func NewAlibabaNlifeStoreItemsGetRequest() *AlibabaNlifeStoreItemsGetAPIRequest

NewAlibabaNlifeStoreItemsGetRequest 初始化AlibabaNlifeStoreItemsGetAPIRequest对象

func (AlibabaNlifeStoreItemsGetAPIRequest) GetApiMethodName

func (r AlibabaNlifeStoreItemsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeStoreItemsGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeStoreItemsGetAPIRequest) GetBrandId

GetBrandId BrandId Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetCid

GetCid Cid Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetEndModified

func (r AlibabaNlifeStoreItemsGetAPIRequest) GetEndModified() string

GetEndModified EndModified Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetItemType

GetItemType ItemType Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetStartModified

func (r AlibabaNlifeStoreItemsGetAPIRequest) GetStartModified() string

GetStartModified StartModified Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetStatus

GetStatus Status Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetStoreId

GetStoreId StoreId Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetStoreIdType

func (r AlibabaNlifeStoreItemsGetAPIRequest) GetStoreIdType() string

GetStoreIdType StoreIdType Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetTitle

GetTitle Title Getter

func (AlibabaNlifeStoreItemsGetAPIRequest) GetType

GetType Type Getter

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetBrandId

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌ID

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetCid

SetCid is Cid Setter 商品类目ID

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetEndModified

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 查询结束时间

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetItemType

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetItemType(_itemType int64) error

SetItemType is ItemType Setter 商品的来源:0-从零售加采购的商品;1-商户线下导入的商品

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 分页的页码

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetPageSize

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

SetPageSize is PageSize Setter 分页时每页的数量

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetStartModified

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 查询开始时间

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetStatus

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 商品状态: ON_SALE-在售 ; OFF_SALE-已下架 ; ALL-全部

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetStoreId

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

SetStoreId is StoreId Setter 门店ID/设备号

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetStoreIdType

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStoreIdType(_storeIdType string) error

SetStoreIdType is StoreIdType Setter 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetTitle

func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetTitle(_title string) error

SetTitle is Title Setter 商品名称(支持模糊查询)

func (*AlibabaNlifeStoreItemsGetAPIRequest) SetType

SetType is Type Setter 商品类型: STORE_GOODS-经销/现货 ; SUPPLIER_GOODS-代销/网直供 ; TAOKE-淘宝客 ; ALL-全部商品

type AlibabaNlifeStoreItemsGetAPIResponse

type AlibabaNlifeStoreItemsGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeStoreItemsGetAPIResponseModel
}

AlibabaNlifeStoreItemsGetAPIResponse 获取门店的商品列表(在售|已下架|全部) API返回值 alibaba.nlife.store.items.get

利用该接口可以获取到零售+商品服务中符合条件的商品列表,包括在售的、已下架的或者是所有状态的商品。

type AlibabaNlifeStoreItemsGetAPIResponseModel

type AlibabaNlifeStoreItemsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_nlife_store_items_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 具体的商品信息列表
	ItemList []RetailItemTopDo `json:"item_list,omitempty" xml:"item_list>retail_item_top_do,omitempty"`
	// 搜索到符合条件的结果总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// true-查询成功;false-查询失败
	Succes bool `json:"succes,omitempty" xml:"succes,omitempty"`
}

AlibabaNlifeStoreItemsGetAPIResponseModel is 获取门店的商品列表(在售|已下架|全部) 成功返回结果

type AlibabaNlifeStoreTradedetailGetAPIRequest

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

AlibabaNlifeStoreTradedetailGetAPIRequest 查询采购单详情信息 API请求 alibaba.nlife.store.tradedetail.get

根据集团id和采购单号,查询采购单的详情信息

func NewAlibabaNlifeStoreTradedetailGetRequest

func NewAlibabaNlifeStoreTradedetailGetRequest() *AlibabaNlifeStoreTradedetailGetAPIRequest

NewAlibabaNlifeStoreTradedetailGetRequest 初始化AlibabaNlifeStoreTradedetailGetAPIRequest对象

func (AlibabaNlifeStoreTradedetailGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaNlifeStoreTradedetailGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaNlifeStoreTradedetailGetAPIRequest) GetProcurementNo

GetProcurementNo ProcurementNo Getter

func (*AlibabaNlifeStoreTradedetailGetAPIRequest) SetProcurementNo

func (r *AlibabaNlifeStoreTradedetailGetAPIRequest) SetProcurementNo(_procurementNo string) error

SetProcurementNo is ProcurementNo Setter 集团采购单号

type AlibabaNlifeStoreTradedetailGetAPIResponse

type AlibabaNlifeStoreTradedetailGetAPIResponse struct {
	model.CommonResponse
	AlibabaNlifeStoreTradedetailGetAPIResponseModel
}

AlibabaNlifeStoreTradedetailGetAPIResponse 查询采购单详情信息 API返回值 alibaba.nlife.store.tradedetail.get

根据集团id和采购单号,查询采购单的详情信息

type AlibabaNlifeStoreTradedetailGetAPIResponseModel

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

AlibabaNlifeStoreTradedetailGetAPIResponseModel is 查询采购单详情信息 成功返回结果

type DeliverDetailDo

type DeliverDetailDo struct {
	// 发货商品列表
	DeliverItemList []Deliveritemlist `json:"deliver_item_list,omitempty" xml:"deliver_item_list>deliveritemlist,omitempty"`
	// 发货单号
	ConsignNo string `json:"consign_no,omitempty" xml:"consign_no,omitempty"`
	// 物流公司
	LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"`
	// 物流单号
	LogisticsNo string `json:"logistics_no,omitempty" xml:"logistics_no,omitempty"`
	// 关联的门店采购订单号
	TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"`
	// 发货时间
	GmtConsign string `json:"gmt_consign,omitempty" xml:"gmt_consign,omitempty"`
	// 门店id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 发货单批次
	BatchNo int64 `json:"batch_no,omitempty" xml:"batch_no,omitempty"`
	// 供应商id
	SupplierId int64 `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 发货单状态: 5-已发货; 10-已到货(入库中); 11-待供应商确认差异; 7-已签收
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

DeliverDetailDo 结构体

type DeliverResponseDo

type DeliverResponseDo struct {
	// 发货单列表
	DeliverList []Deliverlist `json:"deliver_list,omitempty" xml:"deliver_list>deliverlist,omitempty"`
	// 关联的门店采购订单号
	TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"`
	// 供应商ID
	SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 查询的总数
	TotalResults string `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 零售商的门店id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
}

DeliverResponseDo 结构体

type Deliveritemlist

type Deliveritemlist struct {
	// 商品唯一码列表
	UniqueCodeList []string `json:"unique_code_list,omitempty" xml:"unique_code_list>string,omitempty"`
	// 商品条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// itemId
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 发货的数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
}

Deliveritemlist 结构体

type Deliverlist

type Deliverlist struct {
	// 发货单号
	ConsignNo string `json:"consign_no,omitempty" xml:"consign_no,omitempty"`
	// 物流公司
	LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"`
	// 物流单号
	LogisticsNo string `json:"logistics_no,omitempty" xml:"logistics_no,omitempty"`
	// 发货时间
	GmtConsign string `json:"gmt_consign,omitempty" xml:"gmt_consign,omitempty"`
	// 发货单的批次号
	BatchNo int64 `json:"batch_no,omitempty" xml:"batch_no,omitempty"`
}

Deliverlist 结构体

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 ItemQueryDOList

type ItemQueryDOList struct {
	// skuId列表-可查询指定的sku
	SkuIdList []int64 `json:"sku_id_list,omitempty" xml:"sku_id_list>int64,omitempty"`
	// 商品在外部商家的编码(与Item_id不能同时为空)
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 商品ID(与outer_id不能同时为空)
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

ItemQueryDOList 结构体

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 Poitemlist

type Poitemlist struct {
	// 扣点-百分数换算成double的值
	ShareRatio string `json:"share_ratio,omitempty" xml:"share_ratio,omitempty"`
	// 活动扣点-百分数换算成double的值
	ActivityShareRatio string `json:"activity_share_ratio,omitempty" xml:"activity_share_ratio,omitempty"`
	// 商品itemId
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 采购数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 采购价-单位:分
	PoPrice int64 `json:"po_price,omitempty" xml:"po_price,omitempty"`
	// 零售价-单位:分
	RetailPrice int64 `json:"retail_price,omitempty" xml:"retail_price,omitempty"`
}

Poitemlist 结构体

type ProcurementDetailResponseDo

type ProcurementDetailResponseDo struct {
	// poItemList
	PoItemList []Poitemlist `json:"po_item_list,omitempty" xml:"po_item_list>poitemlist,omitempty"`
	// 采购单号
	ProcurementNo string `json:"procurement_no,omitempty" xml:"procurement_no,omitempty"`
	// 收货门店名称
	StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
	// 供应商名称
	SupplierName string `json:"supplier_name,omitempty" xml:"supplier_name,omitempty"`
	// 合同编号
	AgreementNo string `json:"agreement_no,omitempty" xml:"agreement_no,omitempty"`
	// 合同名称
	AgreementName string `json:"agreement_name,omitempty" xml:"agreement_name,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 收货门店id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 供应商ID
	SupplierId int64 `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 采购单状态:1-待提交; 2-待审核; 3-已驳回; 4-待发货; 5-已发货; 6-提交确认; 7-已签收; 8-已完结; 9-已删除; 10-已到货; 11-待供应商确认差异; 12-采购单已生效; 13-已失效
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 结算计价模式:1-扣点模式;2-采购价模式
	PricingModel int64 `json:"pricing_model,omitempty" xml:"pricing_model,omitempty"`
}

ProcurementDetailResponseDo 结构体

type ProcurementResponseDo

type ProcurementResponseDo struct {
	// 采购订单列表
	TradeList []Tradelist `json:"trade_list,omitempty" xml:"trade_list>tradelist,omitempty"`
	// 企业ID
	EntId int64 `json:"ent_id,omitempty" xml:"ent_id,omitempty"`
	// 获取到的企业采购单的总数量
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

ProcurementResponseDo 结构体

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

type RefundListResponseDo

type RefundListResponseDo struct {
	// 采购退货单列表
	TradeRefundList []Traderefundlist `json:"trade_refund_list,omitempty" xml:"trade_refund_list>traderefundlist,omitempty"`
	// 获取到的结果的总数量
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 企业Id
	EntId int64 `json:"ent_id,omitempty" xml:"ent_id,omitempty"`
}

RefundListResponseDo 结构体

type RetailItemTopDo

type RetailItemTopDo struct {
	// sku列表
	SkuList []RetailSkuTopDo `json:"sku_list,omitempty" xml:"sku_list>retail_sku_top_do,omitempty"`
	// 主图以外的图片列表
	ImageList []string `json:"image_list,omitempty" xml:"image_list>string,omitempty"`
	// 详情页地址
	DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"`
	// 商品的销售属性
	Props string `json:"props,omitempty" xml:"props,omitempty"`
	// 图片url
	Images string `json:"images,omitempty" xml:"images,omitempty"`
	// 商品主图的url
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 价格,单位元,保留2位小数
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 货号/款号
	GoodsNo string `json:"goods_no,omitempty" xml:"goods_no,omitempty"`
	// 条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 商品在商家的编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 商品名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 品牌名称
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 类目名称
	CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"`
	// 门店ID
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ;  门店设备号-STORE_DEVICE
	StoreIdType string `json:"store_id_type,omitempty" xml:"store_id_type,omitempty"`
	// PC端的商品详情
	PcDesc string `json:"pc_desc,omitempty" xml:"pc_desc,omitempty"`
	// 无线端的商品详情
	WirelessDesc string `json:"wireless_desc,omitempty" xml:"wireless_desc,omitempty"`
	// 商品的挂牌价-单位元,保留2位小数
	TagPrice string `json:"tag_price,omitempty" xml:"tag_price,omitempty"`
	// 商品的属性名称
	PropsName string `json:"props_name,omitempty" xml:"props_name,omitempty"`
	// 类目树的信息(自顶向下),格式为 cid1:categoryName1;cid2:categoryName2;cid3:categoryName3
	AllCategoryInfo string `json:"all_category_info,omitempty" xml:"all_category_info,omitempty"`
	// 供应商的名称
	SupplierName string `json:"supplier_name,omitempty" xml:"supplier_name,omitempty"`
	// 商品库存
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 品牌ID
	BrandId int64 `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
	// 类目ID
	Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品类型: 0-IC线上商品; 1-商户导入线下商品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 网直供库存
	OnlineNum int64 `json:"online_num,omitempty" xml:"online_num,omitempty"`
	// 零售商线上商品的itemId
	SupplierId int64 `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// taobaoItemId
	TaobaoItemId int64 `json:"taobao_item_id,omitempty" xml:"taobao_item_id,omitempty"`
	// supportTaoke
	SupportTaoke bool `json:"support_taoke,omitempty" xml:"support_taoke,omitempty"`
	// supportWzg
	SupportWzg bool `json:"support_wzg,omitempty" xml:"support_wzg,omitempty"`
}

RetailItemTopDo 结构体

type RetailSkuTopDo

type RetailSkuTopDo struct {
	// 上次修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// created
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 淘宝上的skuId
	TaobaoSkuId string `json:"taobao_sku_id,omitempty" xml:"taobao_sku_id,omitempty"`
	// 淘宝上的itemId
	TaobaoItemId string `json:"taobao_item_id,omitempty" xml:"taobao_item_id,omitempty"`
	// sku主图URL
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// sku价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// sku属性名称
	PropertiesName string `json:"properties_name,omitempty" xml:"properties_name,omitempty"`
	// sku属性
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// barcode
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 外部商家的编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// sku的挂牌价-单位元,保留2位小数
	TagPrice string `json:"tag_price,omitempty" xml:"tag_price,omitempty"`
	// 自用编码
	CustomCode string `json:"custom_code,omitempty" xml:"custom_code,omitempty"`
	// sku库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// skuRefId
	SkuRefId int64 `json:"sku_ref_id,omitempty" xml:"sku_ref_id,omitempty"`
	// 网直供库存
	OnlineQuantity int64 `json:"online_quantity,omitempty" xml:"online_quantity,omitempty"`
}

RetailSkuTopDo 结构体

type Tradelist

type Tradelist struct {
	// 门店采购单列表
	TradeStoreList []Tradestorelist `json:"trade_store_list,omitempty" xml:"trade_store_list>tradestorelist,omitempty"`
	// 采购单生效时间
	GmtEffective string `json:"gmt_effective,omitempty" xml:"gmt_effective,omitempty"`
	// 企业采购单号
	EntTradeNo string `json:"ent_trade_no,omitempty" xml:"ent_trade_no,omitempty"`
}

Tradelist 结构体

type Traderefundlist

type Traderefundlist struct {
	// 采购退货单号
	TradeRefundNo string `json:"trade_refund_no,omitempty" xml:"trade_refund_no,omitempty"`
	// 采购退货的供应商名称
	SupplierName string `json:"supplier_name,omitempty" xml:"supplier_name,omitempty"`
	// 采购退货单创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 采购退货的供应商id
	SupplierId int64 `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 门店Id
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
}

Traderefundlist 结构体

type Tradestorelist

type Tradestorelist struct {
	// 门店采购单号
	TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"`
	// 供应商ID
	SupplierId int64 `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 门店ID
	StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"`
}

Tradestorelist 结构体

Source Files

Jump to

Keyboard shortcuts

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