nrpos

package
v1.1.5 Latest Latest
Warning

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

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

Documentation

Overview

新零售POS model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaMosCommdyOfflineGetfileurlAPIResponse

type AlibabaMosCommdyOfflineGetfileurlAPIResponse struct {
	model.CommonResponse
	AlibabaMosCommdyOfflineGetfileurlResponse
}

去前置机pos商品离线文件下载地址查询接口 API返回值 alibaba.mos.commdy.offline.getfileurl

去前置机-pos查询离线文件下载地址接口

type AlibabaMosCommdyOfflineGetfileurlRequest

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

去前置机pos商品离线文件下载地址查询接口 API请求 alibaba.mos.commdy.offline.getfileurl

去前置机-pos查询离线文件下载地址接口

func NewAlibabaMosCommdyOfflineGetfileurlRequest

func NewAlibabaMosCommdyOfflineGetfileurlRequest() *AlibabaMosCommdyOfflineGetfileurlRequest

初始化AlibabaMosCommdyOfflineGetfileurlRequest对象

func (AlibabaMosCommdyOfflineGetfileurlRequest) GetApiMethodName

func (r AlibabaMosCommdyOfflineGetfileurlRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaMosCommdyOfflineGetfileurlRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaMosCommdyOfflineGetfileurlRequest) GetFileKeys

FileKeys Getter

func (*AlibabaMosCommdyOfflineGetfileurlRequest) SetFileKeys

func (r *AlibabaMosCommdyOfflineGetfileurlRequest) SetFileKeys(fileKeys []string) error

FileKeys Setter 离线文件名称

type AlibabaMosCommdyOfflineGetfileurlResponse

type AlibabaMosCommdyOfflineGetfileurlResponse struct {
	XMLName xml.Name `xml:"alibaba_mos_commdy_offline_getfileurl_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *AlibabaMosCommdyOfflineGetfileurlResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

去前置机pos商品离线文件下载地址查询接口 成功返回结果

type AlibabaMosCommdyOfflineGetfileurlResultDo

type AlibabaMosCommdyOfflineGetfileurlResultDo struct {
	// 返回头
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// null
	MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"`
	// 返回结果合集
	Datas []OfflineFileDto `json:"datas,omitempty" xml:"datas>offline_file_dto,omitempty"`
	// http请求返回码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// null
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// 业务返回码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 业务返回信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaMosCommdyOfflineGetfileurlResultDo

type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse

type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse struct {
	model.CommonResponse
	AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse
}

去前置机商品在线查询 API返回值 alibaba.mos.commdy.posmerchandise.getmerchandise

去前置机商品在线查询接口

type AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest

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

去前置机商品在线查询 API请求 alibaba.mos.commdy.posmerchandise.getmerchandise

去前置机商品在线查询接口

func NewAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest

func NewAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest() *AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest

初始化AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest对象

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest) GetPosMerchandiseList

PosMerchandiseList Getter

func (*AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest) SetPosMerchandiseList

func (r *AlibabaMosCommdyPosmerchandiseGetmerchandiseRequest) SetPosMerchandiseList(posMerchandiseList []QueryMerchandiseDto) error

PosMerchandiseList Setter 查询参数列表

type AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse

type AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse struct {
	XMLName xml.Name `xml:"alibaba_mos_commdy_posmerchandise_getmerchandise_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

去前置机商品在线查询 成功返回结果

type AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo

type AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo struct {
	// 返回头
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// null
	MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"`
	// 返回数据,
	Datas []MerchandiseInfoDto `json:"datas,omitempty" xml:"datas>merchandise_info_dto,omitempty"`
	// http请求返回码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// null
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// 业务返回码,801表示商品不存在
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 业务返回信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo

type MerchandiseInfoDto

type MerchandiseInfoDto struct {
	// 门店号
	Storeno string `json:"storeno,omitempty" xml:"storeno,omitempty"`
	// VIP活动折扣规则
	A0551 string `json:"a0551,omitempty" xml:"a0551,omitempty"`
	// VIP普通折扣规则
	A0550 string `json:"a0550,omitempty" xml:"a0550,omitempty"`
	// 活动套号
	A0545 string `json:"a0545,omitempty" xml:"a0545,omitempty"`
	// 保留字段
	A0544 string `json:"a0544,omitempty" xml:"a0544,omitempty"`
	// 实时积分基数
	A0543 string `json:"a0543,omitempty" xml:"a0543,omitempty"`
	// 保留字段
	A0542 string `json:"a0542,omitempty" xml:"a0542,omitempty"`
	// 会员价
	A0541 string `json:"a0541,omitempty" xml:"a0541,omitempty"`
	// 是否接受VIP 0=不接受 1=接受
	A0540 string `json:"a0540,omitempty" xml:"a0540,omitempty"`
	// 最低限制折扣,该商品所有折扣累加不能小于此折扣
	A0531 string `json:"a0531,omitempty" xml:"a0531,omitempty"`
	// 用于文化广场最高折扣,跟最低折扣对应
	A0530 string `json:"a0530,omitempty" xml:"a0530,omitempty"`
	// 库存数量,此功能未启用
	A0526 string `json:"a0526,omitempty" xml:"a0526,omitempty"`
	// 默认折扣率
	A0525 string `json:"a0525,omitempty" xml:"a0525,omitempty"`
	// 默认优惠价格
	A0524 string `json:"a0524,omitempty" xml:"a0524,omitempty"`
	// 折扣类别   0=不允许 1=允许
	A0523 string `json:"a0523,omitempty" xml:"a0523,omitempty"`
	// 价格下限,此功能已取消
	A0522 string `json:"a0522,omitempty" xml:"a0522,omitempty"`
	// 价格上限,此功能已取消
	A0521 string `json:"a0521,omitempty" xml:"a0521,omitempty"`
	// 定价方式   0=定价 1=开价
	A0520 string `json:"a0520,omitempty" xml:"a0520,omitempty"`
	// 零售价
	A0517 string `json:"a0517,omitempty" xml:"a0517,omitempty"`
	// 保留字段
	A0516 string `json:"a0516,omitempty" xml:"a0516,omitempty"`
	// 部门
	A0508 string `json:"a0508,omitempty" xml:"a0508,omitempty"`
	// 经营方式
	A0506 string `json:"a0506,omitempty" xml:"a0506,omitempty"`
	// 专柜
	A0504 string `json:"a0504,omitempty" xml:"a0504,omitempty"`
	// 商品名称
	A0503 string `json:"a0503,omitempty" xml:"a0503,omitempty"`
	// 商品条码
	A0502 string `json:"a0502,omitempty" xml:"a0502,omitempty"`
	// 商品编码
	A0501 string `json:"a0501,omitempty" xml:"a0501,omitempty"`
}

MerchandiseInfoDto

type OfflineFileDto

type OfflineFileDto struct {
	// 文件名称
	FileKey string `json:"file_key,omitempty" xml:"file_key,omitempty"`
	// 文件下载地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

OfflineFileDto

type QueryMerchandiseDto

type QueryMerchandiseDto struct {
	// 门店号
	Storeno string `json:"storeno,omitempty" xml:"storeno,omitempty"`
	// 商品编码
	A0501 string `json:"a0501,omitempty" xml:"a0501,omitempty"`
}

QueryMerchandiseDto

Jump to

Keyboard shortcuts

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