elife

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 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

func ReleaseConsumeRequest added in v1.3.4

func ReleaseConsumeRequest(v *ConsumeRequest)

ReleaseConsumeRequest 释放ConsumeRequest

func ReleaseRefundRequest added in v1.3.4

func ReleaseRefundRequest(v *RefundRequest)

ReleaseRefundRequest 释放RefundRequest

func ReleaseTaobaoElifeLifecardConsumeAPIRequest added in v1.3.4

func ReleaseTaobaoElifeLifecardConsumeAPIRequest(v *TaobaoElifeLifecardConsumeAPIRequest)

ReleaseTaobaoElifeLifecardConsumeAPIRequest 将 TaobaoElifeLifecardConsumeAPIRequest 放入 sync.Pool

func ReleaseTaobaoElifeLifecardConsumeAPIResponse added in v1.3.4

func ReleaseTaobaoElifeLifecardConsumeAPIResponse(v *TaobaoElifeLifecardConsumeAPIResponse)

ReleaseTaobaoElifeLifecardConsumeAPIResponse 将 TaobaoElifeLifecardConsumeAPIResponse 保存到 sync.Pool

func ReleaseTaobaoElifeLifecardQueryAPIRequest added in v1.3.4

func ReleaseTaobaoElifeLifecardQueryAPIRequest(v *TaobaoElifeLifecardQueryAPIRequest)

ReleaseTaobaoElifeLifecardQueryAPIRequest 将 TaobaoElifeLifecardQueryAPIRequest 放入 sync.Pool

func ReleaseTaobaoElifeLifecardQueryAPIResponse added in v1.3.4

func ReleaseTaobaoElifeLifecardQueryAPIResponse(v *TaobaoElifeLifecardQueryAPIResponse)

ReleaseTaobaoElifeLifecardQueryAPIResponse 将 TaobaoElifeLifecardQueryAPIResponse 保存到 sync.Pool

func ReleaseTaobaoElifeLifecardReconAPIRequest added in v1.3.4

func ReleaseTaobaoElifeLifecardReconAPIRequest(v *TaobaoElifeLifecardReconAPIRequest)

ReleaseTaobaoElifeLifecardReconAPIRequest 将 TaobaoElifeLifecardReconAPIRequest 放入 sync.Pool

func ReleaseTaobaoElifeLifecardReconAPIResponse added in v1.3.4

func ReleaseTaobaoElifeLifecardReconAPIResponse(v *TaobaoElifeLifecardReconAPIResponse)

ReleaseTaobaoElifeLifecardReconAPIResponse 将 TaobaoElifeLifecardReconAPIResponse 保存到 sync.Pool

func ReleaseTaobaoElifeLifecardRefundAPIRequest added in v1.3.4

func ReleaseTaobaoElifeLifecardRefundAPIRequest(v *TaobaoElifeLifecardRefundAPIRequest)

ReleaseTaobaoElifeLifecardRefundAPIRequest 将 TaobaoElifeLifecardRefundAPIRequest 放入 sync.Pool

func ReleaseTaobaoElifeLifecardRefundAPIResponse added in v1.3.4

func ReleaseTaobaoElifeLifecardRefundAPIResponse(v *TaobaoElifeLifecardRefundAPIResponse)

ReleaseTaobaoElifeLifecardRefundAPIResponse 将 TaobaoElifeLifecardRefundAPIResponse 保存到 sync.Pool

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

func GetConsumeRequest added in v1.3.4

func GetConsumeRequest() *ConsumeRequest

GetConsumeRequest() 从对象池中获取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 结构体

func GetRefundRequest added in v1.3.4

func GetRefundRequest() *RefundRequest

GetRefundRequest() 从对象池中获取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 GetTaobaoElifeLifecardConsumeAPIRequest added in v1.3.4

func GetTaobaoElifeLifecardConsumeAPIRequest() *TaobaoElifeLifecardConsumeAPIRequest

GetTaobaoElifeLifecardConsumeRequest 从 sync.Pool 获取 TaobaoElifeLifecardConsumeAPIRequest

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) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

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

func GetTaobaoElifeLifecardConsumeAPIResponse added in v1.3.4

func GetTaobaoElifeLifecardConsumeAPIResponse() *TaobaoElifeLifecardConsumeAPIResponse

GetTaobaoElifeLifecardConsumeAPIResponse 从 sync.Pool 获取 TaobaoElifeLifecardConsumeAPIResponse

func (*TaobaoElifeLifecardConsumeAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 品牌惠卡券核销 成功返回结果

func (*TaobaoElifeLifecardConsumeAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoElifeLifecardQueryAPIRequest added in v1.2.0

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

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

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

func GetTaobaoElifeLifecardQueryAPIRequest added in v1.3.4

func GetTaobaoElifeLifecardQueryAPIRequest() *TaobaoElifeLifecardQueryAPIRequest

GetTaobaoElifeLifecardQueryRequest 从 sync.Pool 获取 TaobaoElifeLifecardQueryAPIRequest

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) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

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

func GetTaobaoElifeLifecardQueryAPIResponse added in v1.3.4

func GetTaobaoElifeLifecardQueryAPIResponse() *TaobaoElifeLifecardQueryAPIResponse

GetTaobaoElifeLifecardQueryAPIResponse 从 sync.Pool 获取 TaobaoElifeLifecardQueryAPIResponse

func (*TaobaoElifeLifecardQueryAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 查询交易结果 成功返回结果

func (*TaobaoElifeLifecardQueryAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoElifeLifecardReconAPIRequest added in v1.2.0

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

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

查询对账文件地址接口

func GetTaobaoElifeLifecardReconAPIRequest added in v1.3.4

func GetTaobaoElifeLifecardReconAPIRequest() *TaobaoElifeLifecardReconAPIRequest

GetTaobaoElifeLifecardReconRequest 从 sync.Pool 获取 TaobaoElifeLifecardReconAPIRequest

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) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

查询对账文件地址接口

func GetTaobaoElifeLifecardReconAPIResponse added in v1.3.4

func GetTaobaoElifeLifecardReconAPIResponse() *TaobaoElifeLifecardReconAPIResponse

GetTaobaoElifeLifecardReconAPIResponse 从 sync.Pool 获取 TaobaoElifeLifecardReconAPIResponse

func (*TaobaoElifeLifecardReconAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 查询对账文件地址接口 成功返回结果

func (*TaobaoElifeLifecardReconAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoElifeLifecardRefundAPIRequest added in v1.2.0

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

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

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

func GetTaobaoElifeLifecardRefundAPIRequest added in v1.3.4

func GetTaobaoElifeLifecardRefundAPIRequest() *TaobaoElifeLifecardRefundAPIRequest

GetTaobaoElifeLifecardRefundRequest 从 sync.Pool 获取 TaobaoElifeLifecardRefundAPIRequest

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) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

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

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

func GetTaobaoElifeLifecardRefundAPIResponse added in v1.3.4

func GetTaobaoElifeLifecardRefundAPIResponse() *TaobaoElifeLifecardRefundAPIResponse

GetTaobaoElifeLifecardRefundAPIResponse 从 sync.Pool 获取 TaobaoElifeLifecardRefundAPIResponse

func (*TaobaoElifeLifecardRefundAPIResponse) Reset added in v1.3.4

Reset 清空结构体

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 品牌惠卡券冲正退还 成功返回结果

func (*TaobaoElifeLifecardRefundAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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