Documentation ¶
Overview ¶
生活汇API model
Index ¶
- type ConsumeRequest
- type RefundRequest
- type TaobaoElifeLifecardConsumeAPIResponse
- type TaobaoElifeLifecardConsumeRequest
- func (r TaobaoElifeLifecardConsumeRequest) GetApiMethodName() string
- func (r TaobaoElifeLifecardConsumeRequest) GetApiParams() url.Values
- func (r TaobaoElifeLifecardConsumeRequest) GetConsumeRequest() *ConsumeRequest
- func (r *TaobaoElifeLifecardConsumeRequest) SetConsumeRequest(consumeRequest *ConsumeRequest) error
- type TaobaoElifeLifecardConsumeResponse
- type TaobaoElifeLifecardQueryAPIResponse
- type TaobaoElifeLifecardQueryRequest
- func (r TaobaoElifeLifecardQueryRequest) GetApiMethodName() string
- func (r TaobaoElifeLifecardQueryRequest) GetApiParams() url.Values
- func (r TaobaoElifeLifecardQueryRequest) GetQueryRequest() *ConsumeRequest
- func (r *TaobaoElifeLifecardQueryRequest) SetQueryRequest(queryRequest *ConsumeRequest) error
- type TaobaoElifeLifecardQueryResponse
- type TaobaoElifeLifecardReconAPIResponse
- type TaobaoElifeLifecardReconRequest
- type TaobaoElifeLifecardReconResponse
- type TaobaoElifeLifecardRefundAPIResponse
- type TaobaoElifeLifecardRefundRequest
- func (r TaobaoElifeLifecardRefundRequest) GetApiMethodName() string
- func (r TaobaoElifeLifecardRefundRequest) GetApiParams() url.Values
- func (r TaobaoElifeLifecardRefundRequest) GetRefundRequest() *RefundRequest
- func (r *TaobaoElifeLifecardRefundRequest) SetRefundRequest(refundRequest *RefundRequest) error
- type TaobaoElifeLifecardRefundResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumeRequest ¶
type ConsumeRequest struct { // 消费金额, 分 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` // 商家的操作流水号, 唯一键 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"` }
ConsumeRequest
type RefundRequest ¶
type RefundRequest struct { // 金额分 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` // 操作流水号, 商家全系统唯一 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"` }
RefundRequest
type TaobaoElifeLifecardConsumeAPIResponse ¶
type TaobaoElifeLifecardConsumeAPIResponse struct { model.CommonResponse TaobaoElifeLifecardConsumeResponse }
品牌惠卡券核销 API返回值 taobao.elife.lifecard.consume
用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作
type TaobaoElifeLifecardConsumeRequest ¶
type TaobaoElifeLifecardConsumeRequest struct { model.Params // contains filtered or unexported fields }
品牌惠卡券核销 API请求 taobao.elife.lifecard.consume
用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作
func NewTaobaoElifeLifecardConsumeRequest ¶
func NewTaobaoElifeLifecardConsumeRequest() *TaobaoElifeLifecardConsumeRequest
初始化TaobaoElifeLifecardConsumeRequest对象
func (TaobaoElifeLifecardConsumeRequest) GetApiMethodName ¶
func (r TaobaoElifeLifecardConsumeRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoElifeLifecardConsumeRequest) GetApiParams ¶
func (r TaobaoElifeLifecardConsumeRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoElifeLifecardConsumeRequest) GetConsumeRequest ¶
func (r TaobaoElifeLifecardConsumeRequest) GetConsumeRequest() *ConsumeRequest
ConsumeRequest Getter
func (*TaobaoElifeLifecardConsumeRequest) SetConsumeRequest ¶
func (r *TaobaoElifeLifecardConsumeRequest) SetConsumeRequest(consumeRequest *ConsumeRequest) error
ConsumeRequest Setter 交易请求参数
type TaobaoElifeLifecardConsumeResponse ¶
type TaobaoElifeLifecardConsumeResponse struct { XMLName xml.Name `xml:"elife_lifecard_consume_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 本金 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` // 膨胀金 InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` // 错误码 ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` // 结果描述 ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` // 是否成功 Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` }
品牌惠卡券核销 成功返回结果
type TaobaoElifeLifecardQueryAPIResponse ¶
type TaobaoElifeLifecardQueryAPIResponse struct { model.CommonResponse TaobaoElifeLifecardQueryResponse }
查询交易结果 API返回值 taobao.elife.lifecard.query
卖家在交易状态不明的情况下, 查询交易结果.
type TaobaoElifeLifecardQueryRequest ¶
type TaobaoElifeLifecardQueryRequest struct { model.Params // contains filtered or unexported fields }
查询交易结果 API请求 taobao.elife.lifecard.query
卖家在交易状态不明的情况下, 查询交易结果.
func NewTaobaoElifeLifecardQueryRequest ¶
func NewTaobaoElifeLifecardQueryRequest() *TaobaoElifeLifecardQueryRequest
初始化TaobaoElifeLifecardQueryRequest对象
func (TaobaoElifeLifecardQueryRequest) GetApiMethodName ¶
func (r TaobaoElifeLifecardQueryRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoElifeLifecardQueryRequest) GetApiParams ¶
func (r TaobaoElifeLifecardQueryRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoElifeLifecardQueryRequest) GetQueryRequest ¶
func (r TaobaoElifeLifecardQueryRequest) GetQueryRequest() *ConsumeRequest
QueryRequest Getter
func (*TaobaoElifeLifecardQueryRequest) SetQueryRequest ¶
func (r *TaobaoElifeLifecardQueryRequest) SetQueryRequest(queryRequest *ConsumeRequest) error
QueryRequest Setter 入参
type TaobaoElifeLifecardQueryResponse ¶
type TaobaoElifeLifecardQueryResponse 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"` // amount Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` // successed Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` // resultCode ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` // inflateAmount InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` }
查询交易结果 成功返回结果
type TaobaoElifeLifecardReconAPIResponse ¶
type TaobaoElifeLifecardReconAPIResponse struct { model.CommonResponse TaobaoElifeLifecardReconResponse }
查询对账文件地址接口 API返回值 taobao.elife.lifecard.recon
查询对账文件地址接口
type TaobaoElifeLifecardReconRequest ¶
type TaobaoElifeLifecardReconRequest struct { model.Params // contains filtered or unexported fields }
查询对账文件地址接口 API请求 taobao.elife.lifecard.recon
查询对账文件地址接口
func NewTaobaoElifeLifecardReconRequest ¶
func NewTaobaoElifeLifecardReconRequest() *TaobaoElifeLifecardReconRequest
初始化TaobaoElifeLifecardReconRequest对象
func (TaobaoElifeLifecardReconRequest) GetApiMethodName ¶
func (r TaobaoElifeLifecardReconRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoElifeLifecardReconRequest) GetApiParams ¶
func (r TaobaoElifeLifecardReconRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoElifeLifecardReconRequest) GetOpDate ¶
func (r TaobaoElifeLifecardReconRequest) GetOpDate() string
OpDate Getter
func (*TaobaoElifeLifecardReconRequest) SetOpDate ¶
func (r *TaobaoElifeLifecardReconRequest) SetOpDate(opDate string) error
OpDate Setter 对账日期(YYYYMMDD)
type TaobaoElifeLifecardReconResponse ¶
type TaobaoElifeLifecardReconResponse 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"` // 成功标志 Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` // 错误码 ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` // 下载下载文件 ReconFileUrl string `json:"recon_file_url,omitempty" xml:"recon_file_url,omitempty"` }
查询对账文件地址接口 成功返回结果
type TaobaoElifeLifecardRefundAPIResponse ¶
type TaobaoElifeLifecardRefundAPIResponse struct { model.CommonResponse TaobaoElifeLifecardRefundResponse }
品牌惠卡券冲正退还 API返回值 taobao.elife.lifecard.refund
淘宝生活汇消费卡虚拟卡,线下冲正退货接口
type TaobaoElifeLifecardRefundRequest ¶
type TaobaoElifeLifecardRefundRequest struct { model.Params // contains filtered or unexported fields }
品牌惠卡券冲正退还 API请求 taobao.elife.lifecard.refund
淘宝生活汇消费卡虚拟卡,线下冲正退货接口
func NewTaobaoElifeLifecardRefundRequest ¶
func NewTaobaoElifeLifecardRefundRequest() *TaobaoElifeLifecardRefundRequest
初始化TaobaoElifeLifecardRefundRequest对象
func (TaobaoElifeLifecardRefundRequest) GetApiMethodName ¶
func (r TaobaoElifeLifecardRefundRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoElifeLifecardRefundRequest) GetApiParams ¶
func (r TaobaoElifeLifecardRefundRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoElifeLifecardRefundRequest) GetRefundRequest ¶
func (r TaobaoElifeLifecardRefundRequest) GetRefundRequest() *RefundRequest
RefundRequest Getter
func (*TaobaoElifeLifecardRefundRequest) SetRefundRequest ¶
func (r *TaobaoElifeLifecardRefundRequest) SetRefundRequest(refundRequest *RefundRequest) error
RefundRequest Setter 请求参数
type TaobaoElifeLifecardRefundResponse ¶
type TaobaoElifeLifecardRefundResponse 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"` // 本金 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` // 膨胀金 InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` // 返回信息 ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` // 成功失败标志 Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` }
品牌惠卡券冲正退还 成功返回结果
Source Files ¶
- ConsumeRequest.go
- RefundRequest.go
- TaobaoElifeLifecardConsumeRequest.go
- TaobaoElifeLifecardConsumeResponse.go
- TaobaoElifeLifecardQueryRequest.go
- TaobaoElifeLifecardQueryResponse.go
- TaobaoElifeLifecardReconRequest.go
- TaobaoElifeLifecardReconResponse.go
- TaobaoElifeLifecardRefundRequest.go
- TaobaoElifeLifecardRefundResponse.go
- doc.go