elife

package
v1.3.3 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 elife 包含生活汇API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeRequest

type ConsumeRequest struct {
	// 商家的操作流水号, 唯一键
	OpId string `json:"op_id,omitempty" xml:"op_id,omitempty"`
	// 收银员名称
	Operator string `json:"operator,omitempty" xml:"operator,omitempty"`
	// 门店编号
	OuterStoreId string `json:"outer_store_id,omitempty" xml:"outer_store_id,omitempty"`
	// 码枪读入的手淘条码
	PayCode string `json:"pay_code,omitempty" xml:"pay_code,omitempty"`
	// 小票信息
	SaleTicket string `json:"sale_ticket,omitempty" xml:"sale_ticket,omitempty"`
	// 消费金额, 分
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
}

ConsumeRequest 结构体

type RefundRequest

type RefundRequest struct {
	// 操作流水号, 商家全系统唯一
	OpId string `json:"op_id,omitempty" xml:"op_id,omitempty"`
	// 收银员名称
	Operator string `json:"operator,omitempty" xml:"operator,omitempty"`
	// 原正向核销交易的流水号
	OriginalOpId string `json:"original_op_id,omitempty" xml:"original_op_id,omitempty"`
	// 门店编号
	OuterStoreId string `json:"outer_store_id,omitempty" xml:"outer_store_id,omitempty"`
	// 原正向核销交易的核销码
	PayCode string `json:"pay_code,omitempty" xml:"pay_code,omitempty"`
	// 原正向核销交易的小票信息
	SaleTicket string `json:"sale_ticket,omitempty" xml:"sale_ticket,omitempty"`
	// 金额分
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
}

RefundRequest 结构体

type TaobaoElifeLifecardConsumeAPIRequest added in v1.2.0

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

TaobaoElifeLifecardConsumeAPIRequest 品牌惠卡券核销 API请求 taobao.elife.lifecard.consume

用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作

func NewTaobaoElifeLifecardConsumeRequest

func NewTaobaoElifeLifecardConsumeRequest() *TaobaoElifeLifecardConsumeAPIRequest

NewTaobaoElifeLifecardConsumeRequest 初始化TaobaoElifeLifecardConsumeAPIRequest对象

func (TaobaoElifeLifecardConsumeAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoElifeLifecardConsumeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoElifeLifecardConsumeAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoElifeLifecardConsumeAPIRequest) GetConsumeRequest added in v1.2.0

GetConsumeRequest ConsumeRequest Getter

func (TaobaoElifeLifecardConsumeAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoElifeLifecardConsumeAPIRequest) SetConsumeRequest added in v1.2.0

func (r *TaobaoElifeLifecardConsumeAPIRequest) SetConsumeRequest(_consumeRequest *ConsumeRequest) error

SetConsumeRequest is ConsumeRequest Setter 交易请求参数

type TaobaoElifeLifecardConsumeAPIResponse

type TaobaoElifeLifecardConsumeAPIResponse struct {
	model.CommonResponse
	TaobaoElifeLifecardConsumeAPIResponseModel
}

TaobaoElifeLifecardConsumeAPIResponse 品牌惠卡券核销 API返回值 taobao.elife.lifecard.consume

用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作

type TaobaoElifeLifecardConsumeAPIResponseModel added in v1.2.0

type TaobaoElifeLifecardConsumeAPIResponseModel struct {
	XMLName xml.Name `xml:"elife_lifecard_consume_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 结果描述
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 本金
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 膨胀金
	InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"`
	// 是否成功
	Successed bool `json:"successed,omitempty" xml:"successed,omitempty"`
}

TaobaoElifeLifecardConsumeAPIResponseModel is 品牌惠卡券核销 成功返回结果

type TaobaoElifeLifecardQueryAPIRequest added in v1.2.0

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

TaobaoElifeLifecardQueryAPIRequest 查询交易结果 API请求 taobao.elife.lifecard.query

卖家在交易状态不明的情况下, 查询交易结果.

func NewTaobaoElifeLifecardQueryRequest

func NewTaobaoElifeLifecardQueryRequest() *TaobaoElifeLifecardQueryAPIRequest

NewTaobaoElifeLifecardQueryRequest 初始化TaobaoElifeLifecardQueryAPIRequest对象

func (TaobaoElifeLifecardQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoElifeLifecardQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoElifeLifecardQueryAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoElifeLifecardQueryAPIRequest) GetQueryRequest added in v1.2.0

GetQueryRequest QueryRequest Getter

func (TaobaoElifeLifecardQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoElifeLifecardQueryAPIRequest) SetQueryRequest added in v1.2.0

func (r *TaobaoElifeLifecardQueryAPIRequest) SetQueryRequest(_queryRequest *ConsumeRequest) error

SetQueryRequest is QueryRequest Setter 入参

type TaobaoElifeLifecardQueryAPIResponse

type TaobaoElifeLifecardQueryAPIResponse struct {
	model.CommonResponse
	TaobaoElifeLifecardQueryAPIResponseModel
}

TaobaoElifeLifecardQueryAPIResponse 查询交易结果 API返回值 taobao.elife.lifecard.query

卖家在交易状态不明的情况下, 查询交易结果.

type TaobaoElifeLifecardQueryAPIResponseModel added in v1.2.0

type TaobaoElifeLifecardQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"elife_lifecard_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// amount
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// inflateAmount
	InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"`
	// successed
	Successed bool `json:"successed,omitempty" xml:"successed,omitempty"`
}

TaobaoElifeLifecardQueryAPIResponseModel is 查询交易结果 成功返回结果

type TaobaoElifeLifecardReconAPIRequest added in v1.2.0

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

TaobaoElifeLifecardReconAPIRequest 查询对账文件地址接口 API请求 taobao.elife.lifecard.recon

查询对账文件地址接口

func NewTaobaoElifeLifecardReconRequest

func NewTaobaoElifeLifecardReconRequest() *TaobaoElifeLifecardReconAPIRequest

NewTaobaoElifeLifecardReconRequest 初始化TaobaoElifeLifecardReconAPIRequest对象

func (TaobaoElifeLifecardReconAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoElifeLifecardReconAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoElifeLifecardReconAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoElifeLifecardReconAPIRequest) GetOpDate added in v1.2.0

GetOpDate OpDate Getter

func (TaobaoElifeLifecardReconAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoElifeLifecardReconAPIRequest) SetOpDate added in v1.2.0

func (r *TaobaoElifeLifecardReconAPIRequest) SetOpDate(_opDate string) error

SetOpDate is OpDate Setter 对账日期(YYYYMMDD)

type TaobaoElifeLifecardReconAPIResponse

type TaobaoElifeLifecardReconAPIResponse struct {
	model.CommonResponse
	TaobaoElifeLifecardReconAPIResponseModel
}

TaobaoElifeLifecardReconAPIResponse 查询对账文件地址接口 API返回值 taobao.elife.lifecard.recon

查询对账文件地址接口

type TaobaoElifeLifecardReconAPIResponseModel added in v1.2.0

type TaobaoElifeLifecardReconAPIResponseModel struct {
	XMLName xml.Name `xml:"elife_lifecard_recon_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果描述
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 对账日期
	OpDate string `json:"op_date,omitempty" xml:"op_date,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 下载下载文件
	ReconFileUrl string `json:"recon_file_url,omitempty" xml:"recon_file_url,omitempty"`
	// 成功标志
	Successed bool `json:"successed,omitempty" xml:"successed,omitempty"`
}

TaobaoElifeLifecardReconAPIResponseModel is 查询对账文件地址接口 成功返回结果

type TaobaoElifeLifecardRefundAPIRequest added in v1.2.0

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

TaobaoElifeLifecardRefundAPIRequest 品牌惠卡券冲正退还 API请求 taobao.elife.lifecard.refund

淘宝生活汇消费卡虚拟卡,线下冲正退货接口

func NewTaobaoElifeLifecardRefundRequest

func NewTaobaoElifeLifecardRefundRequest() *TaobaoElifeLifecardRefundAPIRequest

NewTaobaoElifeLifecardRefundRequest 初始化TaobaoElifeLifecardRefundAPIRequest对象

func (TaobaoElifeLifecardRefundAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoElifeLifecardRefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoElifeLifecardRefundAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoElifeLifecardRefundAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoElifeLifecardRefundAPIRequest) GetRefundRequest added in v1.2.0

func (r TaobaoElifeLifecardRefundAPIRequest) GetRefundRequest() *RefundRequest

GetRefundRequest RefundRequest Getter

func (*TaobaoElifeLifecardRefundAPIRequest) SetRefundRequest added in v1.2.0

func (r *TaobaoElifeLifecardRefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error

SetRefundRequest is RefundRequest Setter 请求参数

type TaobaoElifeLifecardRefundAPIResponse

type TaobaoElifeLifecardRefundAPIResponse struct {
	model.CommonResponse
	TaobaoElifeLifecardRefundAPIResponseModel
}

TaobaoElifeLifecardRefundAPIResponse 品牌惠卡券冲正退还 API返回值 taobao.elife.lifecard.refund

淘宝生活汇消费卡虚拟卡,线下冲正退货接口

type TaobaoElifeLifecardRefundAPIResponseModel added in v1.2.0

type TaobaoElifeLifecardRefundAPIResponseModel struct {
	XMLName xml.Name `xml:"elife_lifecard_refund_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回码,成功为空
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 返回信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 本金
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 膨胀金
	InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"`
	// 成功失败标志
	Successed bool `json:"successed,omitempty" xml:"successed,omitempty"`
}

TaobaoElifeLifecardRefundAPIResponseModel is 品牌惠卡券冲正退还 成功返回结果

Jump to

Keyboard shortcuts

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