tax

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tax 包含业务平台事业部-税务平台API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlibabaTaxInvoiceSyncAPIRequest added in v1.3.4

func ReleaseAlibabaTaxInvoiceSyncAPIRequest(v *AlibabaTaxInvoiceSyncAPIRequest)

ReleaseAlibabaTaxInvoiceSyncAPIRequest 将 AlibabaTaxInvoiceSyncAPIRequest 放入 sync.Pool

func ReleaseAlibabaTaxInvoiceSyncAPIResponse added in v1.3.4

func ReleaseAlibabaTaxInvoiceSyncAPIResponse(v *AlibabaTaxInvoiceSyncAPIResponse)

ReleaseAlibabaTaxInvoiceSyncAPIResponse 将 AlibabaTaxInvoiceSyncAPIResponse 保存到 sync.Pool

func ReleaseResultItem added in v1.3.4

func ReleaseResultItem(v *ResultItem)

ReleaseResultItem 释放ResultItem

func ReleaseThirdPartyInvoiceCallBackResultDto added in v1.3.4

func ReleaseThirdPartyInvoiceCallBackResultDto(v *ThirdPartyInvoiceCallBackResultDto)

ReleaseThirdPartyInvoiceCallBackResultDto 释放ThirdPartyInvoiceCallBackResultDto

Types

type AlibabaTaxInvoiceSyncAPIRequest added in v1.2.0

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

AlibabaTaxInvoiceSyncAPIRequest 第三方开票回调API API请求 alibaba.tax.invoice.sync

该接口只提供给俄罗斯供应商开具发票使用,请勿申请。

func GetAlibabaTaxInvoiceSyncAPIRequest added in v1.3.4

func GetAlibabaTaxInvoiceSyncAPIRequest() *AlibabaTaxInvoiceSyncAPIRequest

GetAlibabaTaxInvoiceSyncRequest 从 sync.Pool 获取 AlibabaTaxInvoiceSyncAPIRequest

func NewAlibabaTaxInvoiceSyncRequest

func NewAlibabaTaxInvoiceSyncRequest() *AlibabaTaxInvoiceSyncAPIRequest

NewAlibabaTaxInvoiceSyncRequest 初始化AlibabaTaxInvoiceSyncAPIRequest对象

func (AlibabaTaxInvoiceSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaTaxInvoiceSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaTaxInvoiceSyncAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaTaxInvoiceSyncAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaTaxInvoiceSyncAPIRequest) GetParamJson added in v1.2.0

func (r AlibabaTaxInvoiceSyncAPIRequest) GetParamJson() string

GetParamJson ParamJson Getter

func (AlibabaTaxInvoiceSyncAPIRequest) GetRawParams added in v1.2.8

func (r AlibabaTaxInvoiceSyncAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaTaxInvoiceSyncAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlibabaTaxInvoiceSyncAPIRequest) SetParamJson added in v1.2.0

func (r *AlibabaTaxInvoiceSyncAPIRequest) SetParamJson(_paramJson string) error

SetParamJson is ParamJson Setter 回调发票信息,请求参数详情见链接:https://yuque.antfin-inc.com/tax/biw99l/uestb7

type AlibabaTaxInvoiceSyncAPIResponse

type AlibabaTaxInvoiceSyncAPIResponse struct {
	model.CommonResponse
	AlibabaTaxInvoiceSyncAPIResponseModel
}

AlibabaTaxInvoiceSyncAPIResponse 第三方开票回调API API返回值 alibaba.tax.invoice.sync

该接口只提供给俄罗斯供应商开具发票使用,请勿申请。

func GetAlibabaTaxInvoiceSyncAPIResponse added in v1.3.4

func GetAlibabaTaxInvoiceSyncAPIResponse() *AlibabaTaxInvoiceSyncAPIResponse

GetAlibabaTaxInvoiceSyncAPIResponse 从 sync.Pool 获取 AlibabaTaxInvoiceSyncAPIResponse

func (*AlibabaTaxInvoiceSyncAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlibabaTaxInvoiceSyncAPIResponseModel added in v1.2.0

type AlibabaTaxInvoiceSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_tax_invoice_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *ThirdPartyInvoiceCallBackResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaTaxInvoiceSyncAPIResponseModel is 第三方开票回调API 成功返回结果

func (*AlibabaTaxInvoiceSyncAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type ResultItem

type ResultItem struct {
	// 每一项具体异常信息
	ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"`
	// 每一项的请求id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 每一项成功失败
	Correctness bool `json:"correctness,omitempty" xml:"correctness,omitempty"`
}

ResultItem 结构体

func GetResultItem added in v1.3.4

func GetResultItem() *ResultItem

GetResultItem() 从对象池中获取ResultItem

type ThirdPartyInvoiceCallBackResultDto

type ThirdPartyInvoiceCallBackResultDto struct {
	// 具体明细列表
	ValueList []ResultItem `json:"value_list,omitempty" xml:"value_list>result_item,omitempty"`
}

ThirdPartyInvoiceCallBackResultDto 结构体

func GetThirdPartyInvoiceCallBackResultDto added in v1.3.4

func GetThirdPartyInvoiceCallBackResultDto() *ThirdPartyInvoiceCallBackResultDto

GetThirdPartyInvoiceCallBackResultDto() 从对象池中获取ThirdPartyInvoiceCallBackResultDto

Jump to

Keyboard shortcuts

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