Documentation ¶
Overview ¶
Package elife 包含生活汇API相关结构体
Index ¶
- type ConsumeRequest
- type RefundRequest
- type TaobaoelifelifecardconsumeAPIRequest
- func (r TaobaoelifelifecardconsumeAPIRequest) GetApiMethodName() string
- func (r TaobaoelifelifecardconsumeAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoelifelifecardconsumeAPIRequest) GetConsumeRequest() *ConsumeRequest
- func (r TaobaoelifelifecardconsumeAPIRequest) GetRawParams() model.Params
- func (r *TaobaoelifelifecardconsumeAPIRequest) SetConsumeRequest(_consumeRequest *ConsumeRequest) error
- type TaobaoelifelifecardconsumeAPIResponse
- type TaobaoelifelifecardconsumeAPIResponseModel
- type TaobaoelifelifecardqueryAPIRequest
- func (r TaobaoelifelifecardqueryAPIRequest) GetApiMethodName() string
- func (r TaobaoelifelifecardqueryAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoelifelifecardqueryAPIRequest) GetQueryRequest() *ConsumeRequest
- func (r TaobaoelifelifecardqueryAPIRequest) GetRawParams() model.Params
- func (r *TaobaoelifelifecardqueryAPIRequest) SetQueryRequest(_queryRequest *ConsumeRequest) error
- type TaobaoelifelifecardqueryAPIResponse
- type TaobaoelifelifecardqueryAPIResponseModel
- type TaobaoelifelifecardreconAPIRequest
- func (r TaobaoelifelifecardreconAPIRequest) GetApiMethodName() string
- func (r TaobaoelifelifecardreconAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoelifelifecardreconAPIRequest) GetOpDate() string
- func (r TaobaoelifelifecardreconAPIRequest) GetRawParams() model.Params
- func (r *TaobaoelifelifecardreconAPIRequest) SetOpDate(_opDate string) error
- type TaobaoelifelifecardreconAPIResponse
- type TaobaoelifelifecardreconAPIResponseModel
- type TaobaoelifelifecardrefundAPIRequest
- func (r TaobaoelifelifecardrefundAPIRequest) GetApiMethodName() string
- func (r TaobaoelifelifecardrefundAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoelifelifecardrefundAPIRequest) GetRawParams() model.Params
- func (r TaobaoelifelifecardrefundAPIRequest) GetRefundRequest() *RefundRequest
- func (r *TaobaoelifelifecardrefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error
- type TaobaoelifelifecardrefundAPIResponse
- type TaobaoelifelifecardrefundAPIResponseModel
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.3.1
type TaobaoelifelifecardconsumeAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoelifelifecardconsumeAPIRequest 品牌惠卡券核销 API请求 taobao.elife.lifecard.consume
用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作
func NewTaobaoelifelifecardconsumeRequest ¶ added in v1.3.1
func NewTaobaoelifelifecardconsumeRequest() *TaobaoelifelifecardconsumeAPIRequest
NewTaobaoelifelifecardconsumeRequest 初始化TaobaoelifelifecardconsumeAPIRequest对象
func (TaobaoelifelifecardconsumeAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaoelifelifecardconsumeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoelifelifecardconsumeAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaoelifelifecardconsumeAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoelifelifecardconsumeAPIRequest) GetConsumeRequest ¶ added in v1.3.1
func (r TaobaoelifelifecardconsumeAPIRequest) GetConsumeRequest() *ConsumeRequest
GetConsumeRequest ConsumeRequest Getter
func (TaobaoelifelifecardconsumeAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaoelifelifecardconsumeAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoelifelifecardconsumeAPIRequest) SetConsumeRequest ¶ added in v1.3.1
func (r *TaobaoelifelifecardconsumeAPIRequest) SetConsumeRequest(_consumeRequest *ConsumeRequest) error
SetConsumeRequest is ConsumeRequest Setter 交易请求参数
type TaobaoelifelifecardconsumeAPIResponse ¶ added in v1.3.1
type TaobaoelifelifecardconsumeAPIResponse struct { model.CommonResponse TaobaoelifelifecardconsumeAPIResponseModel }
TaobaoelifelifecardconsumeAPIResponse 品牌惠卡券核销 API返回值 taobao.elife.lifecard.consume
用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作
type TaobaoelifelifecardconsumeAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaoelifelifecardqueryAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoelifelifecardqueryAPIRequest 查询交易结果 API请求 taobao.elife.lifecard.query
卖家在交易状态不明的情况下, 查询交易结果.
func NewTaobaoelifelifecardqueryRequest ¶ added in v1.3.1
func NewTaobaoelifelifecardqueryRequest() *TaobaoelifelifecardqueryAPIRequest
NewTaobaoelifelifecardqueryRequest 初始化TaobaoelifelifecardqueryAPIRequest对象
func (TaobaoelifelifecardqueryAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaoelifelifecardqueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoelifelifecardqueryAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaoelifelifecardqueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoelifelifecardqueryAPIRequest) GetQueryRequest ¶ added in v1.3.1
func (r TaobaoelifelifecardqueryAPIRequest) GetQueryRequest() *ConsumeRequest
GetQueryRequest QueryRequest Getter
func (TaobaoelifelifecardqueryAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaoelifelifecardqueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoelifelifecardqueryAPIRequest) SetQueryRequest ¶ added in v1.3.1
func (r *TaobaoelifelifecardqueryAPIRequest) SetQueryRequest(_queryRequest *ConsumeRequest) error
SetQueryRequest is QueryRequest Setter 入参
type TaobaoelifelifecardqueryAPIResponse ¶ added in v1.3.1
type TaobaoelifelifecardqueryAPIResponse struct { model.CommonResponse TaobaoelifelifecardqueryAPIResponseModel }
TaobaoelifelifecardqueryAPIResponse 查询交易结果 API返回值 taobao.elife.lifecard.query
卖家在交易状态不明的情况下, 查询交易结果.
type TaobaoelifelifecardqueryAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaoelifelifecardreconAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoelifelifecardreconAPIRequest 查询对账文件地址接口 API请求 taobao.elife.lifecard.recon
查询对账文件地址接口
func NewTaobaoelifelifecardreconRequest ¶ added in v1.3.1
func NewTaobaoelifelifecardreconRequest() *TaobaoelifelifecardreconAPIRequest
NewTaobaoelifelifecardreconRequest 初始化TaobaoelifelifecardreconAPIRequest对象
func (TaobaoelifelifecardreconAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaoelifelifecardreconAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoelifelifecardreconAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaoelifelifecardreconAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoelifelifecardreconAPIRequest) GetOpDate ¶ added in v1.3.1
func (r TaobaoelifelifecardreconAPIRequest) GetOpDate() string
GetOpDate OpDate Getter
func (TaobaoelifelifecardreconAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaoelifelifecardreconAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoelifelifecardreconAPIRequest) SetOpDate ¶ added in v1.3.1
func (r *TaobaoelifelifecardreconAPIRequest) SetOpDate(_opDate string) error
SetOpDate is OpDate Setter 对账日期(YYYYMMDD)
type TaobaoelifelifecardreconAPIResponse ¶ added in v1.3.1
type TaobaoelifelifecardreconAPIResponse struct { model.CommonResponse TaobaoelifelifecardreconAPIResponseModel }
TaobaoelifelifecardreconAPIResponse 查询对账文件地址接口 API返回值 taobao.elife.lifecard.recon
查询对账文件地址接口
type TaobaoelifelifecardreconAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaoelifelifecardrefundAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoelifelifecardrefundAPIRequest 品牌惠卡券冲正退还 API请求 taobao.elife.lifecard.refund
淘宝生活汇消费卡虚拟卡,线下冲正退货接口
func NewTaobaoelifelifecardrefundRequest ¶ added in v1.3.1
func NewTaobaoelifelifecardrefundRequest() *TaobaoelifelifecardrefundAPIRequest
NewTaobaoelifelifecardrefundRequest 初始化TaobaoelifelifecardrefundAPIRequest对象
func (TaobaoelifelifecardrefundAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaoelifelifecardrefundAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoelifelifecardrefundAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaoelifelifecardrefundAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoelifelifecardrefundAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaoelifelifecardrefundAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoelifelifecardrefundAPIRequest) GetRefundRequest ¶ added in v1.3.1
func (r TaobaoelifelifecardrefundAPIRequest) GetRefundRequest() *RefundRequest
GetRefundRequest RefundRequest Getter
func (*TaobaoelifelifecardrefundAPIRequest) SetRefundRequest ¶ added in v1.3.1
func (r *TaobaoelifelifecardrefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error
SetRefundRequest is RefundRequest Setter 请求参数
type TaobaoelifelifecardrefundAPIResponse ¶ added in v1.3.1
type TaobaoelifelifecardrefundAPIResponse struct { model.CommonResponse TaobaoelifelifecardrefundAPIResponseModel }
TaobaoelifelifecardrefundAPIResponse 品牌惠卡券冲正退还 API返回值 taobao.elife.lifecard.refund
淘宝生活汇消费卡虚拟卡,线下冲正退货接口
type TaobaoelifelifecardrefundAPIResponseModel ¶ added in v1.3.1
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 品牌惠卡券冲正退还 成功返回结果
Source Files ¶
- ConsumeRequest.go
- RefundRequest.go
- TaobaoElifeLifecardConsumeAPIRequest.go
- TaobaoElifeLifecardConsumeAPIResponse.go
- TaobaoElifeLifecardQueryAPIRequest.go
- TaobaoElifeLifecardQueryAPIResponse.go
- TaobaoElifeLifecardReconAPIRequest.go
- TaobaoElifeLifecardReconAPIResponse.go
- TaobaoElifeLifecardRefundAPIRequest.go
- TaobaoElifeLifecardRefundAPIResponse.go
- doc.go