alitripreceipt

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

飞猪发票 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripReceiptSellerInvoiceQueryAPIResponse

type AlitripReceiptSellerInvoiceQueryAPIResponse struct {
	model.CommonResponse
	AlitripReceiptSellerInvoiceQueryResponse
}

飞猪发票查询 API返回值 alitrip.receipt.seller.invoice.query

飞猪发票查询

type AlitripReceiptSellerInvoiceQueryRequest

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

飞猪发票查询 API请求 alitrip.receipt.seller.invoice.query

飞猪发票查询

func NewAlitripReceiptSellerInvoiceQueryRequest

func NewAlitripReceiptSellerInvoiceQueryRequest() *AlitripReceiptSellerInvoiceQueryRequest

初始化AlitripReceiptSellerInvoiceQueryRequest对象

func (AlitripReceiptSellerInvoiceQueryRequest) GetApiMethodName

func (r AlitripReceiptSellerInvoiceQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripReceiptSellerInvoiceQueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripReceiptSellerInvoiceQueryRequest) GetQueryReceiptParam

QueryReceiptParam Getter

func (*AlitripReceiptSellerInvoiceQueryRequest) SetQueryReceiptParam

func (r *AlitripReceiptSellerInvoiceQueryRequest) SetQueryReceiptParam(queryReceiptParam *QueryReceiptParam) error

QueryReceiptParam Setter 入参对象

type AlitripReceiptSellerInvoiceQueryResponse

type AlitripReceiptSellerInvoiceQueryResponse struct {
	XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 返回发票数据
	ReceiptDOs string `json:"receipt_d_os,omitempty" xml:"receipt_d_os,omitempty"`
	// 错误信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

飞猪发票查询 成功返回结果

type AlitripReceiptSellerInvoiceRedAPIResponse

type AlitripReceiptSellerInvoiceRedAPIResponse struct {
	model.CommonResponse
	AlitripReceiptSellerInvoiceRedResponse
}

飞猪发票冲红 API返回值 alitrip.receipt.seller.invoice.red

飞猪发票创建

type AlitripReceiptSellerInvoiceRedRequest

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

飞猪发票冲红 API请求 alitrip.receipt.seller.invoice.red

飞猪发票创建

func NewAlitripReceiptSellerInvoiceRedRequest

func NewAlitripReceiptSellerInvoiceRedRequest() *AlitripReceiptSellerInvoiceRedRequest

初始化AlitripReceiptSellerInvoiceRedRequest对象

func (AlitripReceiptSellerInvoiceRedRequest) GetApiMethodName

func (r AlitripReceiptSellerInvoiceRedRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripReceiptSellerInvoiceRedRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripReceiptSellerInvoiceRedRequest) GetRedReceiptParam

RedReceiptParam Getter

func (*AlitripReceiptSellerInvoiceRedRequest) SetRedReceiptParam

func (r *AlitripReceiptSellerInvoiceRedRequest) SetRedReceiptParam(redReceiptParam *RedReceiptParam) error

RedReceiptParam Setter 入参对象

type AlitripReceiptSellerInvoiceRedResponse

type AlitripReceiptSellerInvoiceRedResponse struct {
	XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_red_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 错误信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

飞猪发票冲红 成功返回结果

type AlitripReceiptSellerInvoiceReturnAPIResponse

type AlitripReceiptSellerInvoiceReturnAPIResponse struct {
	model.CommonResponse
	AlitripReceiptSellerInvoiceReturnResponse
}

飞猪发票商家回调接口 API返回值 alitrip.receipt.seller.invoice.return

飞猪发票回调接口

type AlitripReceiptSellerInvoiceReturnRequest

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

飞猪发票商家回调接口 API请求 alitrip.receipt.seller.invoice.return

飞猪发票回调接口

func NewAlitripReceiptSellerInvoiceReturnRequest

func NewAlitripReceiptSellerInvoiceReturnRequest() *AlitripReceiptSellerInvoiceReturnRequest

初始化AlitripReceiptSellerInvoiceReturnRequest对象

func (AlitripReceiptSellerInvoiceReturnRequest) GetApiMethodName

func (r AlitripReceiptSellerInvoiceReturnRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripReceiptSellerInvoiceReturnRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripReceiptSellerInvoiceReturnRequest) GetReceiptDo

ReceiptDo Getter

func (*AlitripReceiptSellerInvoiceReturnRequest) SetReceiptDo

func (r *AlitripReceiptSellerInvoiceReturnRequest) SetReceiptDo(receiptDo *ReceiptDo) error

ReceiptDo Setter 入参对象

type AlitripReceiptSellerInvoiceReturnResponse

type AlitripReceiptSellerInvoiceReturnResponse struct {
	XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// code
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 返回数据
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

飞猪发票商家回调接口 成功返回结果

type QueryReceiptParam

type QueryReceiptParam struct {
	// 扩展参数
	ExtMap string `json:"ext_map,omitempty" xml:"ext_map,omitempty"`
	// 商家id
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 分页索引,从0开始
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 订单号
	TpOrderId int64 `json:"tp_order_id,omitempty" xml:"tp_order_id,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 用户id
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 发票流水号
	ReceiptNumber string `json:"receipt_number,omitempty" xml:"receipt_number,omitempty"`
}

QueryReceiptParam

type ReceiptDo

type ReceiptDo struct {
	// 发票金额,单位分
	ReceiptAmount int64 `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"`
	// 错误码
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 业务类型编号(1:?国内机票,2:国际机票,3:火车票,4:汽车票,5:酒店,6:门票度假,7:打车,8:用车,9:套餐,10:欧铁,11:辅营,12:辅营保险)
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 飞猪订单号
	TpOrderId int64 `json:"tp_order_id,omitempty" xml:"tp_order_id,omitempty"`
	// 错误码
	FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"`
	// 失败原因.status为0时必填
	FailReason string `json:"fail_reason,omitempty" xml:"fail_reason,omitempty"`
	// 发票链接.status为1时需要填
	ReceiptUrl string `json:"receipt_url,omitempty" xml:"receipt_url,omitempty"`
	// 开票时间
	ReceiptDateTime string `json:"receipt_date_time,omitempty" xml:"receipt_date_time,omitempty"`
	// 发票流水号。成功时必填
	ReceiptNumber string `json:"receipt_number,omitempty" xml:"receipt_number,omitempty"`
	// 发票状态1成功0失败-1取消订单
	ReceiptStatus int64 `json:"receipt_status,omitempty" xml:"receipt_status,omitempty"`
}

ReceiptDo

type RedReceiptParam

type RedReceiptParam struct {
	// 发票抬头类型,0:企业;1:个人
	ReceiptTitleType int64 `json:"receipt_title_type,omitempty" xml:"receipt_title_type,omitempty"`
	// 发票备注
	ReceiptMemo string `json:"receipt_memo,omitempty" xml:"receipt_memo,omitempty"`
	// 代理商商家id
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 接收人
	Receiver string `json:"receiver,omitempty" xml:"receiver,omitempty"`
	// 发票邮箱
	ReceiveMail string `json:"receive_mail,omitempty" xml:"receive_mail,omitempty"`
	// 原始发票号(冲红)
	OriginReceiptNumber string `json:"origin_receipt_number,omitempty" xml:"origin_receipt_number,omitempty"`
	// 企业名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 代理商订单号
	AgentOrderNo string `json:"agent_order_no,omitempty" xml:"agent_order_no,omitempty"`
	// 发票内容
	ReceiptContent string `json:"receipt_content,omitempty" xml:"receipt_content,omitempty"`
	// 接收人开户行名称
	ReceiveBankName string `json:"receive_bank_name,omitempty" xml:"receive_bank_name,omitempty"`
	// 接收人开户行账号
	ReceiveBankAccount string `json:"receive_bank_account,omitempty" xml:"receive_bank_account,omitempty"`
	// 原始订单号
	OriginTpOrderId int64 `json:"origin_tp_order_id,omitempty" xml:"origin_tp_order_id,omitempty"`
	// 发票金额(分)
	ReceiptAmount int64 `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"`
	// 扩展参数
	ExtMap string `json:"ext_map,omitempty" xml:"ext_map,omitempty"`
	// 发票抬头
	ReceiptTitle string `json:"receipt_title,omitempty" xml:"receipt_title,omitempty"`
	// 企业税号
	CompanyTaxNo string `json:"company_tax_no,omitempty" xml:"company_tax_no,omitempty"`
	// 接收人手机号
	ReceiveMobile string `json:"receive_mobile,omitempty" xml:"receive_mobile,omitempty"`
}

RedReceiptParam

Jump to

Keyboard shortcuts

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