eticket

package
v0.0.0-...-a55b7e0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

电子码商相关功能 auto sdk from taobao ApiMetadata.xml version 20170816 auther: [email protected]

Index

Constants

View Source
const VersionNo = "20170816"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeMaCallbackResp

type ConsumeMaCallbackResp struct {
	AttributeMap string `json:"attribute_map"`
}

回复结果

type EticketMerchantMaConsumeRequest

type EticketMerchantMaConsumeRequest struct {
	open_taobao.TaobaoMethodRequest
}

电子凭证核销接口

func (*EticketMerchantMaConsumeRequest) GetResponse

func (*EticketMerchantMaConsumeRequest) SetBizType

func (r *EticketMerchantMaConsumeRequest) SetBizType(value string)

业务类型

func (*EticketMerchantMaConsumeRequest) SetCode

func (r *EticketMerchantMaConsumeRequest) SetCode(value string)

需要被核销的码

func (*EticketMerchantMaConsumeRequest) SetConsumeNum

func (r *EticketMerchantMaConsumeRequest) SetConsumeNum(value string)

核销份数

func (*EticketMerchantMaConsumeRequest) SetIsvMaList

func (r *EticketMerchantMaConsumeRequest) SetIsvMaList(value []IsvMa)

核销后换码的码列表

func (*EticketMerchantMaConsumeRequest) SetOuterId

func (r *EticketMerchantMaConsumeRequest) SetOuterId(value string)

业务id(订单号)

func (*EticketMerchantMaConsumeRequest) SetPosId

func (r *EticketMerchantMaConsumeRequest) SetPosId(value string)

机具编号

func (*EticketMerchantMaConsumeRequest) SetSerialNum

func (r *EticketMerchantMaConsumeRequest) SetSerialNum(value string)

核销序列号,需要保证唯一

func (*EticketMerchantMaConsumeRequest) SetToken

func (r *EticketMerchantMaConsumeRequest) SetToken(value string)

需要跟发码通知获取到的参数一致

type EticketMerchantMaConsumeResponse

type EticketMerchantMaConsumeResponse struct {
	RespBody *ConsumeMaCallbackResp `json:"resp_body"`
	RetCode  string                 `json:"ret_code"`
	RetMsg   string                 `json:"ret_msg"`
}

type EticketMerchantMaConsumeResponseResult

type EticketMerchantMaConsumeResponseResult struct {
	Response *EticketMerchantMaConsumeResponse `json:"eticket_merchant_ma_consume_response"`
}

type EticketMerchantMaFailsendRequest

type EticketMerchantMaFailsendRequest struct {
	open_taobao.TaobaoMethodRequest
}

针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证

func (*EticketMerchantMaFailsendRequest) GetResponse

func (*EticketMerchantMaFailsendRequest) SetBizType

func (r *EticketMerchantMaFailsendRequest) SetBizType(value string)

业务类型

func (*EticketMerchantMaFailsendRequest) SetOuterId

func (r *EticketMerchantMaFailsendRequest) SetOuterId(value string)

业务id(订单号)

func (*EticketMerchantMaFailsendRequest) SetSubCode

func (r *EticketMerchantMaFailsendRequest) SetSubCode(value string)

错误原因码

func (*EticketMerchantMaFailsendRequest) SetSubMsg

func (r *EticketMerchantMaFailsendRequest) SetSubMsg(value string)

错误码描述

func (*EticketMerchantMaFailsendRequest) SetToken

func (r *EticketMerchantMaFailsendRequest) SetToken(value string)

需要与发码通知获取的值一致

type EticketMerchantMaFailsendResponse

type EticketMerchantMaFailsendResponse struct {
	RespBody *SendFailCallbackResp `json:"resp_body"`
	RetCode  string                `json:"ret_code"`
	RetMsg   string                `json:"ret_msg"`
}

type EticketMerchantMaFailsendResponseResult

type EticketMerchantMaFailsendResponseResult struct {
	Response *EticketMerchantMaFailsendResponse `json:"eticket_merchant_ma_failsend_response"`
}

type EticketMerchantMaResendRequest

type EticketMerchantMaResendRequest struct {
	open_taobao.TaobaoMethodRequest
}

码商重发电子凭证回调接口

func (*EticketMerchantMaResendRequest) GetResponse

func (*EticketMerchantMaResendRequest) SetBizType

func (r *EticketMerchantMaResendRequest) SetBizType(value string)

业务类型

func (*EticketMerchantMaResendRequest) SetIsvMaList

func (r *EticketMerchantMaResendRequest) SetIsvMaList(value []IsvMa)

待重发的码列表

func (*EticketMerchantMaResendRequest) SetOuterId

func (r *EticketMerchantMaResendRequest) SetOuterId(value string)

业务id(订单号)

func (*EticketMerchantMaResendRequest) SetToken

func (r *EticketMerchantMaResendRequest) SetToken(value string)

需要跟发码通知获取到的参数一致

type EticketMerchantMaResendResponse

type EticketMerchantMaResendResponse struct {
	RespBody *SendMaCallbackResp `json:"resp_body"`
	RetCode  string              `json:"ret_code"`
	RetMsg   string              `json:"ret_msg"`
}

type EticketMerchantMaResendResponseResult

type EticketMerchantMaResendResponseResult struct {
	Response *EticketMerchantMaResendResponse `json:"eticket_merchant_ma_resend_response"`
}

type EticketMerchantMaSendRequest

type EticketMerchantMaSendRequest struct {
	open_taobao.TaobaoMethodRequest
}

码商发码成功回调接口

func (*EticketMerchantMaSendRequest) GetResponse

func (r *EticketMerchantMaSendRequest) GetResponse(accessToken string) (*EticketMerchantMaSendResponse, []byte, error)

func (*EticketMerchantMaSendRequest) SetBizType

func (r *EticketMerchantMaSendRequest) SetBizType(value string)

业务类型

func (*EticketMerchantMaSendRequest) SetIsvMaList

func (r *EticketMerchantMaSendRequest) SetIsvMaList(value []IsvMa)

需要发送的码列表

func (*EticketMerchantMaSendRequest) SetOuterId

func (r *EticketMerchantMaSendRequest) SetOuterId(value string)

业务id(订单号)

func (*EticketMerchantMaSendRequest) SetToken

func (r *EticketMerchantMaSendRequest) SetToken(value string)

需要跟发码通知获取到的参数一致

type EticketMerchantMaSendResponse

type EticketMerchantMaSendResponse struct {
	RespBody *SendMaCallbackResp `json:"resp_body"`
	RetCode  string              `json:"ret_code"`
	RetMsg   string              `json:"ret_msg"`
}

type EticketMerchantMaSendResponseResult

type EticketMerchantMaSendResponseResult struct {
	Response *EticketMerchantMaSendResponse `json:"eticket_merchant_ma_send_response"`
}

type IsvMa

type IsvMa struct {
	Code string `json:"code"`
	Num  int    `json:"num"`
}

type SendFailCallbackResp

type SendFailCallbackResp struct {
	AttributeMap string `json:"attribute_map"`
}

回复参数

type SendMaCallbackResp

type SendMaCallbackResp struct {
	AttributeMap string `json:"attribute_map"`
}

回复参数

Jump to

Keyboard shortcuts

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