einvoice

package
v1.3.2 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: 3 Imported by: 0

Documentation

Overview

Package einvoice 包含电子发票相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgreementInfoDto

type AgreementInfoDto struct {
	// 协议类型
	AgreementType string `json:"agreement_type,omitempty" xml:"agreement_type,omitempty"`
	// 资产符号
	AssetSymbol string `json:"asset_symbol,omitempty" xml:"asset_symbol,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 签约时间
	SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"`
	// 合同链接
	AgreementUrl string `json:"agreement_url,omitempty" xml:"agreement_url,omitempty"`
	// 供应商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 供应商名称
	ContractorName string `json:"contractor_name,omitempty" xml:"contractor_name,omitempty"`
	// 资产类型
	AssetType string `json:"asset_type,omitempty" xml:"asset_type,omitempty"`
	// 报税类型
	ApplyDutiableModeEnum string `json:"apply_dutiable_mode_enum,omitempty" xml:"apply_dutiable_mode_enum,omitempty"`
	// 发薪模式
	PaySalaryModeEnum string `json:"pay_salary_mode_enum,omitempty" xml:"pay_salary_mode_enum,omitempty"`
	// 税优模式
	TaxOptimizationMode string `json:"tax_optimization_mode,omitempty" xml:"tax_optimization_mode,omitempty"`
	// 解约时间
	TerminationTime string `json:"termination_time,omitempty" xml:"termination_time,omitempty"`
	// 用户在业务方平台的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 扩展信息
	ExtendField string `json:"extend_field,omitempty" xml:"extend_field,omitempty"`
	// 签约状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
}

AgreementInfoDto 结构体

type AlibabaeinvoiceamountcheckAPIRequest added in v1.3.1

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

AlibabaeinvoiceamountcheckAPIRequest 开票量核对接口 API请求 alibaba.einvoice.amount.check

跟开票服务商核对历史开票量,用来对账

func NewAlibabaeinvoiceamountcheckRequest added in v1.3.1

func NewAlibabaeinvoiceamountcheckRequest() *AlibabaeinvoiceamountcheckAPIRequest

NewAlibabaeinvoiceamountcheckRequest 初始化AlibabaeinvoiceamountcheckAPIRequest对象

func (AlibabaeinvoiceamountcheckAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceamountcheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceamountcheckAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceamountcheckAPIRequest) GetEndDate added in v1.3.1

GetEndDate EndDate Getter

func (AlibabaeinvoiceamountcheckAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoiceamountcheckAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoiceamountcheckAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceamountcheckAPIRequest) GetStartDate added in v1.3.1

GetStartDate StartDate Getter

func (*AlibabaeinvoiceamountcheckAPIRequest) SetEndDate added in v1.3.1

func (r *AlibabaeinvoiceamountcheckAPIRequest) SetEndDate(_endDate string) error

SetEndDate is EndDate Setter 开票日期结束时间

func (*AlibabaeinvoiceamountcheckAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceamountcheckAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税号

func (*AlibabaeinvoiceamountcheckAPIRequest) SetStartDate added in v1.3.1

func (r *AlibabaeinvoiceamountcheckAPIRequest) SetStartDate(_startDate string) error

SetStartDate is StartDate Setter 开票日期开始时间

type AlibabaeinvoiceamountcheckAPIResponse added in v1.3.1

type AlibabaeinvoiceamountcheckAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceamountcheckAPIResponseModel
}

AlibabaeinvoiceamountcheckAPIResponse 开票量核对接口 API返回值 alibaba.einvoice.amount.check

跟开票服务商核对历史开票量,用来对账

type AlibabaeinvoiceamountcheckAPIResponseModel added in v1.3.1

type AlibabaeinvoiceamountcheckAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_amount_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票量查询结果
	EinvoiceAmountCheckResultList []EinvoiceAmountCheckResult `` /* 129-byte string literal not displayed */
	// 查询结果的数量
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceamountcheckAPIResponseModel is 开票量核对接口 成功返回结果

type AlibabaeinvoiceapplygetAPIRequest added in v1.3.1

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

AlibabaeinvoiceapplygetAPIRequest 开票申请数据获取接口 API请求 alibaba.einvoice.apply.get

ERP获取开票申请数据

func NewAlibabaeinvoiceapplygetRequest added in v1.3.1

func NewAlibabaeinvoiceapplygetRequest() *AlibabaeinvoiceapplygetAPIRequest

NewAlibabaeinvoiceapplygetRequest 初始化AlibabaeinvoiceapplygetAPIRequest对象

func (AlibabaeinvoiceapplygetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceapplygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceapplygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceapplygetAPIRequest) GetApplyId added in v1.3.1

GetApplyId ApplyId Getter

func (AlibabaeinvoiceapplygetAPIRequest) GetPlatformTid added in v1.3.1

func (r AlibabaeinvoiceapplygetAPIRequest) GetPlatformTid() string

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoiceapplygetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceapplygetAPIRequest) SetApplyId added in v1.3.1

func (r *AlibabaeinvoiceapplygetAPIRequest) SetApplyId(_applyId string) error

SetApplyId is ApplyId Setter 开票申请ID,跟消息中的apply_id对应,传入applyId后,只会返回一条开票申请消息

func (*AlibabaeinvoiceapplygetAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoiceapplygetAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 平台订单号

type AlibabaeinvoiceapplygetAPIResponse added in v1.3.1

type AlibabaeinvoiceapplygetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceapplygetAPIResponseModel
}

AlibabaeinvoiceapplygetAPIResponse 开票申请数据获取接口 API返回值 alibaba.einvoice.apply.get

ERP获取开票申请数据

type AlibabaeinvoiceapplygetAPIResponseModel added in v1.3.1

type AlibabaeinvoiceapplygetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_apply_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票明细
	ApplyList []Apply `json:"apply_list,omitempty" xml:"apply_list>apply,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceapplygetAPIResponseModel is 开票申请数据获取接口 成功返回结果

type AlibabaeinvoicebilleinvoicelistAPIRequest added in v1.3.1

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

AlibabaeinvoicebilleinvoicelistAPIRequest 扫码开票列表 API请求 alibaba.einvoice.bill.einvoice.list

扫码开票列表,包括用户扫二维码开票和结算单同步前的开票数据

func NewAlibabaeinvoicebilleinvoicelistRequest added in v1.3.1

func NewAlibabaeinvoicebilleinvoicelistRequest() *AlibabaeinvoicebilleinvoicelistAPIRequest

NewAlibabaeinvoicebilleinvoicelistRequest 初始化AlibabaeinvoicebilleinvoicelistAPIRequest对象

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetEinvoiceType added in v1.3.1

func (r AlibabaeinvoicebilleinvoicelistAPIRequest) GetEinvoiceType() []string

GetEinvoiceType EinvoiceType Getter

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetOrderId added in v1.3.1

GetOrderId OrderId Getter

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicebilleinvoicelistAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetPlatform added in v1.3.1

GetPlatform Platform Getter

func (AlibabaeinvoicebilleinvoicelistAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicebilleinvoicelistAPIRequest) SetEinvoiceType added in v1.3.1

func (r *AlibabaeinvoicebilleinvoicelistAPIRequest) SetEinvoiceType(_einvoiceType []string) error

SetEinvoiceType is EinvoiceType Setter 开票状态:0=未开票,1=开票中,3=开蓝成功,4=开蓝失败。不填获取全部

func (*AlibabaeinvoicebilleinvoicelistAPIRequest) SetOrderId added in v1.3.1

func (r *AlibabaeinvoicebilleinvoicelistAPIRequest) SetOrderId(_orderId string) error

SetOrderId is OrderId Setter 订单ID

func (*AlibabaeinvoicebilleinvoicelistAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicebilleinvoicelistAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税号

func (*AlibabaeinvoicebilleinvoicelistAPIRequest) SetPlatform added in v1.3.1

func (r *AlibabaeinvoicebilleinvoicelistAPIRequest) SetPlatform(_platform string) error

SetPlatform is Platform Setter 结算单同步的ERP平台系统

type AlibabaeinvoicebilleinvoicelistAPIResponse added in v1.3.1

type AlibabaeinvoicebilleinvoicelistAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicebilleinvoicelistAPIResponseModel
}

AlibabaeinvoicebilleinvoicelistAPIResponse 扫码开票列表 API返回值 alibaba.einvoice.bill.einvoice.list

扫码开票列表,包括用户扫二维码开票和结算单同步前的开票数据

type AlibabaeinvoicebilleinvoicelistAPIResponseModel added in v1.3.1

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

AlibabaeinvoicebilleinvoicelistAPIResponseModel is 扫码开票列表 成功返回结果

type AlibabaeinvoicebilleinvoicelistResultSet added in v1.3.1

type AlibabaeinvoicebilleinvoicelistResultSet struct {
	// 返回结果具体信息
	ResultList []ResultList `json:"result_list,omitempty" xml:"result_list>result_list,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// totalCount
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

AlibabaeinvoicebilleinvoicelistResultSet 结构体

type AlibabaeinvoicebillforwordcreateAPIRequest added in v1.3.1

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

AlibabaeinvoicebillforwordcreateAPIRequest 扫码开票结算单同步前开发票 API请求 alibaba.einvoice.bill.forword.create

扫码开票结算单同步前开发票,会将数据同步到结算单中

func NewAlibabaeinvoicebillforwordcreateRequest added in v1.3.1

func NewAlibabaeinvoicebillforwordcreateRequest() *AlibabaeinvoicebillforwordcreateAPIRequest

NewAlibabaeinvoicebillforwordcreateRequest 初始化AlibabaeinvoicebillforwordcreateAPIRequest对象

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetBusinessType added in v1.3.1

GetBusinessType BusinessType Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetInvoiceItems added in v1.3.1

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetOrderId added in v1.3.1

GetOrderId OrderId Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicebillforwordcreateAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerAddress added in v1.3.1

GetPayerAddress PayerAddress Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerBankaccount added in v1.3.1

func (r AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerBankaccount() string

GetPayerBankaccount PayerBankaccount Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerEmail added in v1.3.1

GetPayerEmail PayerEmail Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerName added in v1.3.1

GetPayerName PayerName Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerPhone added in v1.3.1

GetPayerPhone PayerPhone Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerRegisterNo added in v1.3.1

func (r AlibabaeinvoicebillforwordcreateAPIRequest) GetPayerRegisterNo() string

GetPayerRegisterNo PayerRegisterNo Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPhoneNumber added in v1.3.1

GetPhoneNumber PhoneNumber Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetPlatform added in v1.3.1

GetPlatform Platform Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetSeriNo added in v1.3.1

GetSeriNo SeriNo Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetShopName added in v1.3.1

GetShopName ShopName Getter

func (AlibabaeinvoicebillforwordcreateAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetBusinessType added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetBusinessType(_businessType int64) error

SetBusinessType is BusinessType Setter 企业或个人抬头发票,0=个人,1=企业。默认=1

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetInvoiceItems(_invoiceItems []BillItemDo) error

SetInvoiceItems is InvoiceItems Setter 发票商品明细

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetOrderId added in v1.3.1

SetOrderId is OrderId Setter 结算单订单ID

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税号

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerAddress added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerAddress(_payerAddress string) error

SetPayerAddress is PayerAddress Setter 付款方地址

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerBankaccount added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerBankaccount(_payerBankaccount string) error

SetPayerBankaccount is PayerBankaccount Setter 付款方银行账户

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerEmail added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerEmail(_payerEmail string) error

SetPayerEmail is PayerEmail Setter 付款方开票邮件通知邮箱

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerName added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerName(_payerName string) error

SetPayerName is PayerName Setter 付款方发票抬头

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerPhone added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerPhone(_payerPhone string) error

SetPayerPhone is PayerPhone Setter 企业电话

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerRegisterNo added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error

SetPayerRegisterNo is PayerRegisterNo Setter 付款方税号

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPhoneNumber added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPhoneNumber(_phoneNumber string) error

SetPhoneNumber is PhoneNumber Setter 个人电话,接收发票通知

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetPlatform added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetPlatform(_platform string) error

SetPlatform is Platform Setter 调用平台,用以区分不同的订单ID,不填默认为default

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetSeriNo added in v1.3.1

SetSeriNo is SeriNo Setter 开票流水号,若不填则系统默认生成

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetShopName added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetShopName(_shopName string) error

SetShopName is ShopName Setter 店铺名称

func (*AlibabaeinvoicebillforwordcreateAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoicebillforwordcreateAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 开票金额,和明细累计总金额需相同

type AlibabaeinvoicebillforwordcreateAPIResponse added in v1.3.1

type AlibabaeinvoicebillforwordcreateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicebillforwordcreateAPIResponseModel
}

AlibabaeinvoicebillforwordcreateAPIResponse 扫码开票结算单同步前开发票 API返回值 alibaba.einvoice.bill.forword.create

扫码开票结算单同步前开发票,会将数据同步到结算单中

type AlibabaeinvoicebillforwordcreateAPIResponseModel added in v1.3.1

type AlibabaeinvoicebillforwordcreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_bill_forword_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// errorCode
	RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// errorMessage
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// result
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicebillforwordcreateAPIResponseModel is 扫码开票结算单同步前开发票 成功返回结果

type AlibabaeinvoicebillsyncAPIRequest added in v1.3.1

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

AlibabaeinvoicebillsyncAPIRequest 结算单同步 API请求 alibaba.einvoice.bill.sync

电子发票业务,服务商同步结算单,包括结算单的增删改功能。最终用于开发票

func NewAlibabaeinvoicebillsyncRequest added in v1.3.1

func NewAlibabaeinvoicebillsyncRequest() *AlibabaeinvoicebillsyncAPIRequest

NewAlibabaeinvoicebillsyncRequest 初始化AlibabaeinvoicebillsyncAPIRequest对象

func (AlibabaeinvoicebillsyncAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicebillsyncAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicebillsyncAPIRequest) GetBrandName added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetBrandName() string

GetBrandName BrandName Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetInvoiceItems added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetInvoiceItems() []BillItemDo

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetInvoicePrice added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetInvoicePrice() string

GetInvoicePrice InvoicePrice Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetOrderDate added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetOrderDate() string

GetOrderDate OrderDate Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetOrderId added in v1.3.1

GetOrderId OrderId Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetPlatform added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetPlatform() string

GetPlatform Platform Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetQrcode added in v1.3.1

GetQrcode Qrcode Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicebillsyncAPIRequest) GetShopName added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetShopName() string

GetShopName ShopName Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetShopPlatform added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetShopPlatform() string

GetShopPlatform ShopPlatform Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (AlibabaeinvoicebillsyncAPIRequest) GetSumPrice added in v1.3.1

func (r AlibabaeinvoicebillsyncAPIRequest) GetSumPrice() string

GetSumPrice SumPrice Getter

func (*AlibabaeinvoicebillsyncAPIRequest) SetBrandName added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetBrandName(_brandName string) error

SetBrandName is BrandName Setter 品牌名称,不填默认=shop_name

func (*AlibabaeinvoicebillsyncAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetInvoiceItems(_invoiceItems []BillItemDo) error

SetInvoiceItems is InvoiceItems Setter 结算商品单明细列表

func (*AlibabaeinvoicebillsyncAPIRequest) SetInvoicePrice added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetInvoicePrice(_invoicePrice string) error

SetInvoicePrice is InvoicePrice Setter 结算单可开票总金额(不填=sumPrice),小数点后2两位

func (*AlibabaeinvoicebillsyncAPIRequest) SetOrderDate added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetOrderDate(_orderDate string) error

SetOrderDate is OrderDate Setter 结算单订单日期

func (*AlibabaeinvoicebillsyncAPIRequest) SetOrderId added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetOrderId(_orderId string) error

SetOrderId is OrderId Setter 结算单订单ID

func (*AlibabaeinvoicebillsyncAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税务登记证号

func (*AlibabaeinvoicebillsyncAPIRequest) SetPlatform added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetPlatform(_platform string) error

SetPlatform is Platform Setter 调用平台,用于区分同一个税号下多个店铺来源["TB:淘宝","ALIPAY:支付宝","TM:天猫","JD:京东","DD:当当","PP:拍拍","YX:易讯","EBAY:ebay","QQ:QQ网购","AMAZON:亚马逊","SN:苏宁","GM:国美","WPH:唯品会","JM:聚美","LF:乐蜂","MGJ:蘑菇街","JS:聚尚","PX:拍鞋","YT:银泰","YHD:1号店","VANCL:凡客","YL:邮乐","YG:优购","1688:阿里巴巴","POS:POS门店","ELEME:饿了么","OTHER:其他"]

func (*AlibabaeinvoicebillsyncAPIRequest) SetQrcode added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetQrcode(_qrcode *QrCodeDo) error

SetQrcode is Qrcode Setter 生成二维码参数,若不需要生成二维码,则不填

func (*AlibabaeinvoicebillsyncAPIRequest) SetShopName added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetShopName(_shopName string) error

SetShopName is ShopName Setter 店铺名称,与后台店铺名称保持一致

func (*AlibabaeinvoicebillsyncAPIRequest) SetShopPlatform added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetShopPlatform(_shopPlatform string) error

SetShopPlatform is ShopPlatform Setter 开票店铺的平台,默认等于platform

func (*AlibabaeinvoicebillsyncAPIRequest) SetStatus added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetStatus(_status int64) error

SetStatus is Status Setter 结算单同步操作:=1插入,=2更新,=3废弃删除

func (*AlibabaeinvoicebillsyncAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoicebillsyncAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 结算单总价格,小数点后2两位

type AlibabaeinvoicebillsyncAPIResponse added in v1.3.1

type AlibabaeinvoicebillsyncAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicebillsyncAPIResponseModel
}

AlibabaeinvoicebillsyncAPIResponse 结算单同步 API返回值 alibaba.einvoice.bill.sync

电子发票业务,服务商同步结算单,包括结算单的增删改功能。最终用于开发票

type AlibabaeinvoicebillsyncAPIResponseModel added in v1.3.1

type AlibabaeinvoicebillsyncAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_bill_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 插入操作返回二维码
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 返回码
	RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// success
	Succ bool `json:"succ,omitempty" xml:"succ,omitempty"`
}

AlibabaeinvoicebillsyncAPIResponseModel is 结算单同步 成功返回结果

type AlibabaeinvoiceclosereqAPIRequest added in v1.3.1

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

AlibabaeinvoiceclosereqAPIRequest 关闭开票失败请求(失败列表可重试) API请求 alibaba.einvoice.closereq

关闭失败开票请求,避免造成重复开票

func NewAlibabaeinvoiceclosereqRequest added in v1.3.1

func NewAlibabaeinvoiceclosereqRequest() *AlibabaeinvoiceclosereqAPIRequest

NewAlibabaeinvoiceclosereqRequest 初始化AlibabaeinvoiceclosereqAPIRequest对象

func (AlibabaeinvoiceclosereqAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceclosereqAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceclosereqAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceclosereqAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoiceclosereqAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoiceclosereqAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceclosereqAPIRequest) GetSerialNo added in v1.3.1

func (r AlibabaeinvoiceclosereqAPIRequest) GetSerialNo() string

GetSerialNo SerialNo Getter

func (*AlibabaeinvoiceclosereqAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceclosereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税号

func (*AlibabaeinvoiceclosereqAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoiceclosereqAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 流水号

type AlibabaeinvoiceclosereqAPIResponse added in v1.3.1

type AlibabaeinvoiceclosereqAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceclosereqAPIResponseModel
}

AlibabaeinvoiceclosereqAPIResponse 关闭开票失败请求(失败列表可重试) API返回值 alibaba.einvoice.closereq

关闭失败开票请求,避免造成重复开票

type AlibabaeinvoiceclosereqAPIResponseModel added in v1.3.1

type AlibabaeinvoiceclosereqAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_closereq_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 关闭是否成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceclosereqAPIResponseModel is 关闭开票失败请求(失败列表可重试) 成功返回结果

type AlibabaeinvoicecoreinvuploadAPIRequest added in v1.3.1

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

AlibabaeinvoicecoreinvuploadAPIRequest 发票中台-发票结果回传 API请求 alibaba.einvoice.core.inv.upload

发票回传接口适用于以下场景: ① 阿里发票平台向ISV提交原始发票申请,ISV开具发票成功后,基于申请ID(apply_id)回传发票至阿里发票平台进行归集与交付。 ② 直接回传发票给阿里发票平台,进行归集,并交付给业务前台和用户。

func NewAlibabaeinvoicecoreinvuploadRequest added in v1.3.1

func NewAlibabaeinvoicecoreinvuploadRequest() *AlibabaeinvoicecoreinvuploadAPIRequest

NewAlibabaeinvoicecoreinvuploadRequest 初始化AlibabaeinvoicecoreinvuploadAPIRequest对象

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetAntiFakeCode added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetAntiFakeCode() string

GetAntiFakeCode AntiFakeCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetApplyId added in v1.3.1

GetApplyId ApplyId Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetBizErrorCode added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetBizErrorCode() string

GetBizErrorCode BizErrorCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetBizErrorMsg added in v1.3.1

GetBizErrorMsg BizErrorMsg Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetBusinessType added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetBusinessType() int64

GetBusinessType BusinessType Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetCheckCode added in v1.3.1

GetCheckCode CheckCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetCreateResult added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetCreateResult() string

GetCreateResult CreateResult Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetDeductAmount added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetDeductAmount() string

GetDeductAmount DeductAmount Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetDeviceNo added in v1.3.1

GetDeviceNo DeviceNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceAmount added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceAmount() string

GetInvoiceAmount InvoiceAmount Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceCode added in v1.3.1

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceDate added in v1.3.1

GetInvoiceDate InvoiceDate Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceFileContent added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceFileContent() string

GetInvoiceFileContent InvoiceFileContent Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceFileData added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceFileData() *model.File

GetInvoiceFileData InvoiceFileData Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceFileType added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceFileType() string

GetInvoiceFileType InvoiceFileType Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceItems added in v1.3.1

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceKind added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceKind() int64

GetInvoiceKind InvoiceKind Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceMemo added in v1.3.1

GetInvoiceMemo InvoiceMemo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetInvoiceType added in v1.3.1

GetInvoiceType InvoiceType Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetLevyType added in v1.3.1

GetLevyType LevyType Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetNormalInvoiceCode added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetNormalInvoiceCode() string

GetNormalInvoiceCode NormalInvoiceCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetNormalInvoiceNo added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetNormalInvoiceNo() string

GetNormalInvoiceNo NormalInvoiceNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeAddress added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeAddress() string

GetPayeeAddress PayeeAddress Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeBankAccountId added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeBankAccountId() string

GetPayeeBankAccountId PayeeBankAccountId Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeBankName added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeBankName() string

GetPayeeBankName PayeeBankName Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeChecker added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeChecker() string

GetPayeeChecker PayeeChecker Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeName added in v1.3.1

GetPayeeName PayeeName Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeOperator added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeOperator() string

GetPayeeOperator PayeeOperator Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeePhone added in v1.3.1

GetPayeePhone PayeePhone Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeReceiver added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeReceiver() string

GetPayeeReceiver PayeeReceiver Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerAddress added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerAddress() string

GetPayerAddress PayerAddress Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerBankAccountId added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerBankAccountId() string

GetPayerBankAccountId PayerBankAccountId Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerBankName added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerBankName() string

GetPayerBankName PayerBankName Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerEmail added in v1.3.1

GetPayerEmail PayerEmail Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerName added in v1.3.1

GetPayerName PayerName Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerPhone added in v1.3.1

GetPayerPhone PayerPhone Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerRegisterNo added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPayerRegisterNo() string

GetPayerRegisterNo PayerRegisterNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPlatformCode added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPlatformCode() string

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPlatformTid added in v1.3.1

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetPlatformUserId added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetPlatformUserId() string

GetPlatformUserId PlatformUserId Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetQrCode added in v1.3.1

GetQrCode QrCode Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetReceiveMobile added in v1.3.1

func (r AlibabaeinvoicecoreinvuploadAPIRequest) GetReceiveMobile() string

GetReceiveMobile ReceiveMobile Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetRedNoticeNo added in v1.3.1

GetRedNoticeNo RedNoticeNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetSource added in v1.3.1

GetSource Source Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetSpecialFlag added in v1.3.1

GetSpecialFlag SpecialFlag Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (AlibabaeinvoicecoreinvuploadAPIRequest) GetSumTax added in v1.3.1

GetSumTax SumTax Getter

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetAntiFakeCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetAntiFakeCode(_antiFakeCode string) error

SetAntiFakeCode is AntiFakeCode Setter 发票防伪码/密码

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetApplyId added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetApplyId(_applyId string) error

SetApplyId is ApplyId Setter 发票申请ID, 由阿里发票平台生成。 source=apply时 必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetBizErrorCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetBizErrorCode(_bizErrorCode string) error

SetBizErrorCode is BizErrorCode Setter 开票失败错误码, 开票失败(create_result=fail)时必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetBizErrorMsg added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error

SetBizErrorMsg is BizErrorMsg Setter 开票失败错误信息, 开票失败(create_result=fail)时必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetBusinessType added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetBusinessType(_businessType int64) error

SetBusinessType is BusinessType Setter 抬头类型。可选值: 0:个人 1:企业

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetCheckCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetCheckCode(_checkCode string) error

SetCheckCode is CheckCode Setter 校验码

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetCreateResult added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetCreateResult(_createResult string) error

SetCreateResult is CreateResult Setter 开票结果,枚举值: success: 发票开具成功; fail: 开票失败; source=async时必填,传实际的开票结果。其他source可不传,默认为success

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetDeductAmount added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetDeductAmount(_deductAmount string) error

SetDeductAmount is DeductAmount Setter 扣除额

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetDeviceNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetDeviceNo(_deviceNo string) error

SetDeviceNo is DeviceNo Setter 开票分机号/机器编号

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceAmount added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceAmount(_invoiceAmount string) error

SetInvoiceAmount is InvoiceAmount Setter 合计含税金额(开票金额),格式为2位小数。 当开红票时,该字段为负数。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceDate added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceDate(_invoiceDate string) error

SetInvoiceDate is InvoiceDate Setter 开票日期,格式 yyyy-MM-dd

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceFileContent added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceFileContent(_invoiceFileContent string) error

SetInvoiceFileContent is InvoiceFileContent Setter 发票板式文件数据,Base64编码字符串。电票时和invoice_file_data必传其一

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceFileData added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceFileData(_invoiceFileData *model.File) error

SetInvoiceFileData is InvoiceFileData Setter 发票板式文件数据,字节数据。 电票时和invoice_file_content必传其一。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceFileType added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceFileType(_invoiceFileType string) error

SetInvoiceFileType is InvoiceFileType Setter 发票板式文件类型。可选值: PDF, OFD。 电票时必传。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceResultItemDto) error

SetInvoiceItems is InvoiceItems Setter 发票明细。source=apply时必填,其他source可为空

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceKind added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceKind(_invoiceKind int64) error

SetInvoiceKind is InvoiceKind Setter 开票发票类型 可选值: 0: 电票 1:纸质普票 2:纸质专票

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceMemo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceMemo(_invoiceMemo string) error

SetInvoiceMemo is InvoiceMemo Setter 发票备注,会显示在票面

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceType added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetInvoiceType(_invoiceType string) error

SetInvoiceType is InvoiceType Setter 发票(开票)类型,可选值: blue: 蓝票 red: 红票

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetLevyType added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetLevyType(_levyType string) error

SetLevyType is LevyType Setter 征税方式,0普通征收,1减按征收,2差额征收

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetNormalInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error

SetNormalInvoiceCode is NormalInvoiceCode Setter 原发票代码(开红票时必须)

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetNormalInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error

SetNormalInvoiceNo is NormalInvoiceNo Setter 原发票号码(开红票时必须)

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeAddress added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeAddress(_payeeAddress string) error

SetPayeeAddress is PayeeAddress Setter 销方地址。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeBankAccountId added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeBankAccountId(_payeeBankAccountId string) error

SetPayeeBankAccountId is PayeeBankAccountId Setter 销方银行账号

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeBankName added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeBankName(_payeeBankName string) error

SetPayeeBankName is PayeeBankName Setter 销方开户行名称。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeChecker added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeChecker(_payeeChecker string) error

SetPayeeChecker is PayeeChecker Setter 复核人

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeName added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeName(_payeeName string) error

SetPayeeName is PayeeName Setter 销方名称

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeOperator added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeOperator(_payeeOperator string) error

SetPayeeOperator is PayeeOperator Setter 开票人

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeePhone added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeePhone(_payeePhone string) error

SetPayeePhone is PayeePhone Setter 销方联系电话。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeReceiver added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeReceiver(_payeeReceiver string) error

SetPayeeReceiver is PayeeReceiver Setter 收款人

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销方税务登记证号。由大写字母或数字组成,长度要求15~20位。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerAddress added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerAddress(_payerAddress string) error

SetPayerAddress is PayerAddress Setter 购方地址, 专票必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerBankAccountId added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerBankAccountId(_payerBankAccountId string) error

SetPayerBankAccountId is PayerBankAccountId Setter 购方银行账号, 专票必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerBankName added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerBankName(_payerBankName string) error

SetPayerBankName is PayerBankName Setter 购方开户行名称, 专票必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerEmail added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerEmail(_payerEmail string) error

SetPayerEmail is PayerEmail Setter 购方电子邮箱,需满足邮箱格式。 格式要求:\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerName added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerName(_payerName string) error

SetPayerName is PayerName Setter 购方抬头

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerPhone added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerPhone(_payerPhone string) error

SetPayerPhone is PayerPhone Setter 购方联系电话, 专票必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerRegisterNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error

SetPayerRegisterNo is PayerRegisterNo Setter 购方税务登记证号,由大写字母或数字组成,长度要求15~20位。 开企业抬头时必填, 专票必填。

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 业务平台Code, 由发票中台分配。 用于source=upload时标识需交付发票的业务平台。 source=apply时可空

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 业务平台发票申请对应的订单号。 用于source=upload时区分业务平台订单号。 source=apply时可空

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetPlatformUserId added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetPlatformUserId(_platformUserId string) error

SetPlatformUserId is PlatformUserId Setter 业务平台uid

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetQrCode added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetQrCode(_qrCode string) error

SetQrCode is QrCode Setter 二维码

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetReceiveMobile added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetReceiveMobile(_receiveMobile string) error

SetReceiveMobile is ReceiveMobile Setter 购方手机号码,用于收票

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetRedNoticeNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetRedNoticeNo(_redNoticeNo string) error

SetRedNoticeNo is RedNoticeNo Setter 红字通知单号

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 开票流水号/序列号,唯一标志一笔开票请求,由于阿里发票中台生成。 source=async时必填,其他source可为空

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetSource added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetSource(_source string) error

SetSource is Source Setter 发票来源,可选值: apply: 间连模式,服务商基于申请开具的发票;async:直连开票模式,ISV回传开票结果;upload:直接回传,进行归集与交付的发票;

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetSpecialFlag added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetSpecialFlag(_specialFlag string) error

SetSpecialFlag is SpecialFlag Setter 特殊票种标识,可选值: 02: 农产品收购票

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 合计金额(不含税),格式为2位小数。 当开红票时,该字段为负数

func (*AlibabaeinvoicecoreinvuploadAPIRequest) SetSumTax added in v1.3.1

func (r *AlibabaeinvoicecoreinvuploadAPIRequest) SetSumTax(_sumTax string) error

SetSumTax is SumTax Setter 合计税额,格式为2位小数。 当开红票时,该字段为负数

type AlibabaeinvoicecoreinvuploadAPIResponse added in v1.3.1

type AlibabaeinvoicecoreinvuploadAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicecoreinvuploadAPIResponseModel
}

AlibabaeinvoicecoreinvuploadAPIResponse 发票中台-发票结果回传 API返回值 alibaba.einvoice.core.inv.upload

发票回传接口适用于以下场景: ① 阿里发票平台向ISV提交原始发票申请,ISV开具发票成功后,基于申请ID(apply_id)回传发票至阿里发票平台进行归集与交付。 ② 直接回传发票给阿里发票平台,进行归集,并交付给业务前台和用户。

type AlibabaeinvoicecoreinvuploadAPIResponseModel added in v1.3.1

type AlibabaeinvoicecoreinvuploadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_core_inv_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicecoreinvuploadAPIResponseModel is 发票中台-发票结果回传 成功返回结果

type AlibabaeinvoicecreatereqAPIRequest added in v1.3.1

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

AlibabaeinvoicecreatereqAPIRequest ERP开票请求接口 API请求 alibaba.einvoice.createreq

ERP发起开票请求

func NewAlibabaeinvoicecreatereqRequest added in v1.3.1

func NewAlibabaeinvoicecreatereqRequest() *AlibabaeinvoicecreatereqAPIRequest

NewAlibabaeinvoicecreatereqRequest 初始化AlibabaeinvoicecreatereqAPIRequest对象

func (AlibabaeinvoicecreatereqAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicecreatereqAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicecreatereqAPIRequest) GetApplyId added in v1.3.1

GetApplyId ApplyId Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetBusinessType added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetBusinessType() int64

GetBusinessType BusinessType Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetDistributionTid added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetDistributionTid() string

GetDistributionTid DistributionTid Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetErpTid added in v1.3.1

GetErpTid ErpTid Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetInvoiceAmount added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetInvoiceAmount() string

GetInvoiceAmount InvoiceAmount Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetInvoiceItems added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetInvoiceItems() []InvoiceItem

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetInvoiceKind added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetInvoiceKind() int64

GetInvoiceKind InvoiceKind Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetInvoiceMemo added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetInvoiceMemo() string

GetInvoiceMemo InvoiceMemo Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetInvoiceTime added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetInvoiceTime() string

GetInvoiceTime InvoiceTime Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetInvoiceType added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetInvoiceType() string

GetInvoiceType InvoiceType Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetNormalInvoiceCode added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetNormalInvoiceCode() string

GetNormalInvoiceCode NormalInvoiceCode Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetNormalInvoiceNo added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetNormalInvoiceNo() string

GetNormalInvoiceNo NormalInvoiceNo Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetOutShopName added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetOutShopName() string

GetOutShopName OutShopName Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeAddress added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeAddress() string

GetPayeeAddress PayeeAddress Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeBankaccount added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeBankaccount() string

GetPayeeBankaccount PayeeBankaccount Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeChecker added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeChecker() string

GetPayeeChecker PayeeChecker Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeName added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeName() string

GetPayeeName PayeeName Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeOperator added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeOperator() string

GetPayeeOperator PayeeOperator Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeePhone added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeePhone() string

GetPayeePhone PayeePhone Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeReceiver added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeReceiver() string

GetPayeeReceiver PayeeReceiver Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayerAddress added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayerAddress() string

GetPayerAddress PayerAddress Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayerBankaccount added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayerBankaccount() string

GetPayerBankaccount PayerBankaccount Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayerEmail added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayerEmail() string

GetPayerEmail PayerEmail Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayerName added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayerName() string

GetPayerName PayerName Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayerPhone added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayerPhone() string

GetPayerPhone PayerPhone Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPayerRegisterNo added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPayerRegisterNo() string

GetPayerRegisterNo PayerRegisterNo Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPlatformCode added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPlatformCode() string

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetPlatformTid added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetPlatformTid() string

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicecreatereqAPIRequest) GetRedNoticeNo added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetRedNoticeNo() string

GetRedNoticeNo RedNoticeNo Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetRequestRole added in v1.3.1

func (r AlibabaeinvoicecreatereqAPIRequest) GetRequestRole() string

GetRequestRole RequestRole Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (AlibabaeinvoicecreatereqAPIRequest) GetSumTax added in v1.3.1

GetSumTax SumTax Getter

func (*AlibabaeinvoicecreatereqAPIRequest) SetApplyId added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetApplyId(_applyId string) error

SetApplyId is ApplyId Setter 开票申请ID,接收了开票申请消息后,需要把apply_id带上

func (*AlibabaeinvoicecreatereqAPIRequest) SetBusinessType added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetBusinessType(_businessType int64) error

SetBusinessType is BusinessType Setter 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1;

func (*AlibabaeinvoicecreatereqAPIRequest) SetDistributionTid added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetDistributionTid(_distributionTid string) error

SetDistributionTid is DistributionTid Setter 分销订单号,request_role=supplier供应商开票时必填,分销订单号必须属于platform_tid,同时分销订单号的供应商必须和开票的授权账号一致

func (*AlibabaeinvoicecreatereqAPIRequest) SetErpTid added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetErpTid(_erpTid string) error

SetErpTid is ErpTid Setter ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式

func (*AlibabaeinvoicecreatereqAPIRequest) SetInvoiceAmount added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetInvoiceAmount(_invoiceAmount string) error

SetInvoiceAmount is InvoiceAmount Setter 开票金额; <span style="color:red;font-weight: bold;">当开红票时,该字段为负数</span>

func (*AlibabaeinvoicecreatereqAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceItem) error

SetInvoiceItems is InvoiceItems Setter 电子发票明细

func (*AlibabaeinvoicecreatereqAPIRequest) SetInvoiceKind added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetInvoiceKind(_invoiceKind int64) error

SetInvoiceKind is InvoiceKind Setter 发票种类,0=电子发票,1=纸质发票,2=专票。注意:未订购纸票服务的税号无法开具纸票

func (*AlibabaeinvoicecreatereqAPIRequest) SetInvoiceMemo added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetInvoiceMemo(_invoiceMemo string) error

SetInvoiceMemo is InvoiceMemo Setter 发票备注,有些省市会把此信息打印到PDF中

func (*AlibabaeinvoicecreatereqAPIRequest) SetInvoiceTime added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetInvoiceTime(_invoiceTime string) error

SetInvoiceTime is InvoiceTime Setter 开票日期, 格式"YYYY-MM-DD HH:SS:MM"

func (*AlibabaeinvoicecreatereqAPIRequest) SetInvoiceType added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetInvoiceType(_invoiceType string) error

SetInvoiceType is InvoiceType Setter 发票(开票)类型,蓝票blue,红票red,默认blue

func (*AlibabaeinvoicecreatereqAPIRequest) SetNormalInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error

SetNormalInvoiceCode is NormalInvoiceCode Setter 原发票代码(开红票时传入)

func (*AlibabaeinvoicecreatereqAPIRequest) SetNormalInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error

SetNormalInvoiceNo is NormalInvoiceNo Setter 原发票号码(开红票时传入)

func (*AlibabaeinvoicecreatereqAPIRequest) SetOutShopName added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetOutShopName(_outShopName string) error

SetOutShopName is OutShopName Setter 外部平台店铺名称,需要在阿里发票平台配置,只有当platform_code不为TB和TM时,这个字段才生效。注意:后台配置的店铺平台必须和入参platform_code一致

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeAddress added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeAddress(_payeeAddress string) error

SetPayeeAddress is PayeeAddress Setter 开票方地址(新版中为必传)

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeBankaccount added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeBankaccount(_payeeBankaccount string) error

SetPayeeBankaccount is PayeeBankaccount Setter 开票方银行及 帐号

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeChecker added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeChecker(_payeeChecker string) error

SetPayeeChecker is PayeeChecker Setter 复核人

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeName added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeName(_payeeName string) error

SetPayeeName is PayeeName Setter 开票方名称,公司名(如:XX商城)

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeOperator added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeOperator(_payeeOperator string) error

SetPayeeOperator is PayeeOperator Setter 开票人

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeePhone added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeePhone(_payeePhone string) error

SetPayeePhone is PayeePhone Setter 收款方电话

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeReceiver added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeReceiver(_payeeReceiver string) error

SetPayeeReceiver is PayeeReceiver Setter 收款人

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayerAddress added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayerAddress(_payerAddress string) error

SetPayerAddress is PayerAddress Setter 消费者地址

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayerBankaccount added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayerBankaccount(_payerBankaccount string) error

SetPayerBankaccount is PayerBankaccount Setter 付款方开票开户银行及账号

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayerEmail added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayerEmail(_payerEmail string) error

SetPayerEmail is PayerEmail Setter 消费者电子邮箱

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayerName added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayerName(_payerName string) error

SetPayerName is PayerName Setter 付款方名称, 对应发票台头

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayerPhone added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayerPhone(_payerPhone string) error

SetPayerPhone is PayerPhone Setter 消费者联系电话

func (*AlibabaeinvoicecreatereqAPIRequest) SetPayerRegisterNo added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error

SetPayerRegisterNo is PayerRegisterNo Setter 付款方税务登记证号。对企业开具电子发票时必填。

func (*AlibabaeinvoicecreatereqAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码)

func (*AlibabaeinvoicecreatereqAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 电商平台对应的主订单号

func (*AlibabaeinvoicecreatereqAPIRequest) SetRedNoticeNo added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetRedNoticeNo(_redNoticeNo string) error

SetRedNoticeNo is RedNoticeNo Setter 红字通知单号,专票冲红时需要,商家跟税局申请

func (*AlibabaeinvoicecreatereqAPIRequest) SetRequestRole added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetRequestRole(_requestRole string) error

SetRequestRole is RequestRole Setter 开票角色,supplier=供应商,只有platform_code=TB|TM时生效,供应商开票时允许使用A店铺开具B店铺的订单号

func (*AlibabaeinvoicecreatereqAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。请调用平台统一流水号获取接口,alibaba.einvoice.serialno.generate。

func (*AlibabaeinvoicecreatereqAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 合计金额(新版中为必传) <span style="color:red;font-weight: bold;">当开红票时,该字段为负数</span>

func (*AlibabaeinvoicecreatereqAPIRequest) SetSumTax added in v1.3.1

func (r *AlibabaeinvoicecreatereqAPIRequest) SetSumTax(_sumTax string) error

SetSumTax is SumTax Setter 合计税额 <span style="color:red;font-weight: bold;">当开红票时,该字段为负数</span>

type AlibabaeinvoicecreatereqAPIResponse added in v1.3.1

type AlibabaeinvoicecreatereqAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicecreatereqAPIResponseModel
}

AlibabaeinvoicecreatereqAPIResponse ERP开票请求接口 API返回值 alibaba.einvoice.createreq

ERP发起开票请求

type AlibabaeinvoicecreatereqAPIResponseModel added in v1.3.1

type AlibabaeinvoicecreatereqAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_createreq_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票信息是否成功接受
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicecreatereqAPIResponseModel is ERP开票请求接口 成功返回结果

type AlibabaeinvoicecreateresultgetAPIRequest added in v1.3.1

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

AlibabaeinvoicecreateresultgetAPIRequest ERP开票结果获取 API请求 alibaba.einvoice.create.result.get

ERP开票结果获取

func NewAlibabaeinvoicecreateresultgetRequest added in v1.3.1

func NewAlibabaeinvoicecreateresultgetRequest() *AlibabaeinvoicecreateresultgetAPIRequest

NewAlibabaeinvoicecreateresultgetRequest 初始化AlibabaeinvoicecreateresultgetAPIRequest对象

func (AlibabaeinvoicecreateresultgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicecreateresultgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicecreateresultgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicecreateresultgetAPIRequest) GetOutShopName added in v1.3.1

GetOutShopName OutShopName Getter

func (AlibabaeinvoicecreateresultgetAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicecreateresultgetAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicecreateresultgetAPIRequest) GetPlatformCode added in v1.3.1

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicecreateresultgetAPIRequest) GetPlatformTid added in v1.3.1

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoicecreateresultgetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicecreateresultgetAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (*AlibabaeinvoicecreateresultgetAPIRequest) SetOutShopName added in v1.3.1

func (r *AlibabaeinvoicecreateresultgetAPIRequest) SetOutShopName(_outShopName string) error

SetOutShopName is OutShopName Setter 外部平台店铺名称,需要在阿里发票平台配置,只有当platform_code不为TB和TM时,这个字段才生效。注意:后台配置的店铺平台必须和入参platform_code一致

func (*AlibabaeinvoicecreateresultgetAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicecreateresultgetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoicecreateresultgetAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicecreateresultgetAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 电商平台代码。淘宝:taobao,天猫:tmall

func (*AlibabaeinvoicecreateresultgetAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoicecreateresultgetAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 电商平台对应的订单号

func (*AlibabaeinvoicecreateresultgetAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicecreateresultgetAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高

type AlibabaeinvoicecreateresultgetAPIResponse added in v1.3.1

type AlibabaeinvoicecreateresultgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicecreateresultgetAPIResponseModel
}

AlibabaeinvoicecreateresultgetAPIResponse ERP开票结果获取 API返回值 alibaba.einvoice.create.result.get

ERP开票结果获取

type AlibabaeinvoicecreateresultgetAPIResponseModel added in v1.3.1

type AlibabaeinvoicecreateresultgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_create_result_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票返回结果数据列表
	InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"`
}

AlibabaeinvoicecreateresultgetAPIResponseModel is ERP开票结果获取 成功返回结果

type AlibabaeinvoicecreateresultsincrementgetAPIRequest added in v1.3.1

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

AlibabaeinvoicecreateresultsincrementgetAPIRequest ERP增量开票结果获取 API请求 alibaba.einvoice.create.results.increment.get

增量开票结果获取

func NewAlibabaeinvoicecreateresultsincrementgetRequest added in v1.3.1

func NewAlibabaeinvoicecreateresultsincrementgetRequest() *AlibabaeinvoicecreateresultsincrementgetAPIRequest

NewAlibabaeinvoicecreateresultsincrementgetRequest 初始化AlibabaeinvoicecreateresultsincrementgetAPIRequest对象

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetEndModified added in v1.3.1

GetEndModified EndModified Getter

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetPayeeRegisterNo added in v1.3.1

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetStartModified added in v1.3.1

GetStartModified StartModified Getter

func (AlibabaeinvoicecreateresultsincrementgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (*AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetEndModified added in v1.3.1

func (r *AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 终止查询时间

func (*AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 显示的页码

func (*AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetPageSize added in v1.3.1

SetPageSize is PageSize Setter 页面大小(不能超过200)

func (*AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetStartModified added in v1.3.1

func (r *AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 起始查询时间

func (*AlibabaeinvoicecreateresultsincrementgetAPIRequest) SetStatus added in v1.3.1

SetStatus is Status Setter 开票状态 (waiting = 开票中) 、(create_success = 开票成功)、(create_failed = 开票失败)

type AlibabaeinvoicecreateresultsincrementgetAPIResponse added in v1.3.1

type AlibabaeinvoicecreateresultsincrementgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicecreateresultsincrementgetAPIResponseModel
}

AlibabaeinvoicecreateresultsincrementgetAPIResponse ERP增量开票结果获取 API返回值 alibaba.einvoice.create.results.increment.get

增量开票结果获取

type AlibabaeinvoicecreateresultsincrementgetAPIResponseModel added in v1.3.1

type AlibabaeinvoicecreateresultsincrementgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_create_results_increment_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票结果返回列表
	InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"`
	// 符合条件的开票总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

AlibabaeinvoicecreateresultsincrementgetAPIResponseModel is ERP增量开票结果获取 成功返回结果

type AlibabaeinvoicedeductgetAPIRequest added in v1.3.1

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

AlibabaeinvoicedeductgetAPIRequest 发票扣减的接口 API请求 alibaba.einvoice.deduct.get

获取历史发票扣减量、每日发票扣减量的接口

func NewAlibabaeinvoicedeductgetRequest added in v1.3.1

func NewAlibabaeinvoicedeductgetRequest() *AlibabaeinvoicedeductgetAPIRequest

NewAlibabaeinvoicedeductgetRequest 初始化AlibabaeinvoicedeductgetAPIRequest对象

func (AlibabaeinvoicedeductgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicedeductgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicedeductgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicedeductgetAPIRequest) GetBizDate added in v1.3.1

GetBizDate BizDate Getter

func (AlibabaeinvoicedeductgetAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicedeductgetAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicedeductgetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicedeductgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*AlibabaeinvoicedeductgetAPIRequest) SetBizDate added in v1.3.1

func (r *AlibabaeinvoicedeductgetAPIRequest) SetBizDate(_bizDate string) error

SetBizDate is BizDate Setter 业务日期

func (*AlibabaeinvoicedeductgetAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicedeductgetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税号

func (*AlibabaeinvoicedeductgetAPIRequest) SetType added in v1.3.1

SetType is Type Setter 类型 1:所有 2:当日

type AlibabaeinvoicedeductgetAPIResponse added in v1.3.1

type AlibabaeinvoicedeductgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicedeductgetAPIResponseModel
}

AlibabaeinvoicedeductgetAPIResponse 发票扣减的接口 API返回值 alibaba.einvoice.deduct.get

获取历史发票扣减量、每日发票扣减量的接口

type AlibabaeinvoicedeductgetAPIResponseModel added in v1.3.1

type AlibabaeinvoicedeductgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_deduct_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *AlibabaeinvoicedeductgetResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicedeductgetAPIResponseModel is 发票扣减的接口 成功返回结果

type AlibabaeinvoicedeductgetResultSet added in v1.3.1

type AlibabaeinvoicedeductgetResultSet struct {
	// errorMessage
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 业务日期
	BizDate string `json:"biz_date,omitempty" xml:"biz_date,omitempty"`
	// 税号
	PackageRegisterNo string `json:"package_register_no,omitempty" xml:"package_register_no,omitempty"`
	// result
	Result *AlibabaeinvoicedeductgetResultSet `json:"result,omitempty" xml:"result,omitempty"`
	// totalCount
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 实际扣减
	Deduct int64 `json:"deduct,omitempty" xml:"deduct,omitempty"`
	// 应扣减
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
}

AlibabaeinvoicedeductgetResultSet 结构体

type AlibabaeinvoicedeviceorderqueryAPIRequest added in v1.3.1

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

AlibabaeinvoicedeviceorderqueryAPIRequest 查询税控设备加盘订购单详情 API请求 alibaba.einvoice.device.order.query

查询税控设备订购单详情

func NewAlibabaeinvoicedeviceorderqueryRequest added in v1.3.1

func NewAlibabaeinvoicedeviceorderqueryRequest() *AlibabaeinvoicedeviceorderqueryAPIRequest

NewAlibabaeinvoicedeviceorderqueryRequest 初始化AlibabaeinvoicedeviceorderqueryAPIRequest对象

func (AlibabaeinvoicedeviceorderqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicedeviceorderqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicedeviceorderqueryAPIRequest) GetFlowId added in v1.3.1

GetFlowId FlowId Getter

func (AlibabaeinvoicedeviceorderqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicedeviceorderqueryAPIRequest) SetFlowId added in v1.3.1

SetFlowId is FlowId Setter 税控设备订购单ID

type AlibabaeinvoicedeviceorderqueryAPIResponse added in v1.3.1

type AlibabaeinvoicedeviceorderqueryAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicedeviceorderqueryAPIResponseModel
}

AlibabaeinvoicedeviceorderqueryAPIResponse 查询税控设备加盘订购单详情 API返回值 alibaba.einvoice.device.order.query

查询税控设备订购单详情

type AlibabaeinvoicedeviceorderqueryAPIResponseModel added in v1.3.1

type AlibabaeinvoicedeviceorderqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_device_order_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统返回的通用结果类
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicedeviceorderqueryAPIResponseModel is 查询税控设备加盘订购单详情 成功返回结果

type AlibabaeinvoicedeviceorderupdateAPIRequest added in v1.3.1

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

AlibabaeinvoicedeviceorderupdateAPIRequest 回传/更新设备订购单 API请求 alibaba.einvoice.device.order.update

更新设备订购单,同步税控设备信息

func NewAlibabaeinvoicedeviceorderupdateRequest added in v1.3.1

func NewAlibabaeinvoicedeviceorderupdateRequest() *AlibabaeinvoicedeviceorderupdateAPIRequest

NewAlibabaeinvoicedeviceorderupdateRequest 初始化AlibabaeinvoicedeviceorderupdateAPIRequest对象

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetAction added in v1.3.1

GetAction Action Getter

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetDeviceId added in v1.3.1

GetDeviceId DeviceId Getter

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetExtJson added in v1.3.1

GetExtJson ExtJson Getter

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetFlowId added in v1.3.1

GetFlowId FlowId Getter

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicedeviceorderupdateAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicedeviceorderupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicedeviceorderupdateAPIRequest) SetAction added in v1.3.1

SetAction is Action Setter 订购单工单事件: deploy_finish: 设备就绪,部署完成 isv_reject: 服务商驳回订购单

func (*AlibabaeinvoicedeviceorderupdateAPIRequest) SetDeviceId added in v1.3.1

func (r *AlibabaeinvoicedeviceorderupdateAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 税控设备ID

func (*AlibabaeinvoicedeviceorderupdateAPIRequest) SetExtJson added in v1.3.1

SetExtJson is ExtJson Setter 拓展字段。 ①当action=deploy_finish时,拓展字段中必须包含: serv_start_time: 服务有效周期-起始时间 serv_end_time: 服务有效周期-结束时间 时间格式:yyyy-MM-dd HH:mm:ss ②当action=isv_reject时,拓展字段中必须包含: message: 驳回原因

func (*AlibabaeinvoicedeviceorderupdateAPIRequest) SetFlowId added in v1.3.1

SetFlowId is FlowId Setter 订购开通单ID

func (*AlibabaeinvoicedeviceorderupdateAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicedeviceorderupdateAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税号

type AlibabaeinvoicedeviceorderupdateAPIResponse added in v1.3.1

type AlibabaeinvoicedeviceorderupdateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicedeviceorderupdateAPIResponseModel
}

AlibabaeinvoicedeviceorderupdateAPIResponse 回传/更新设备订购单 API返回值 alibaba.einvoice.device.order.update

更新设备订购单,同步税控设备信息

type AlibabaeinvoicedeviceorderupdateAPIResponseModel added in v1.3.1

type AlibabaeinvoicedeviceorderupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_device_order_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作结果
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicedeviceorderupdateAPIResponseModel is 回传/更新设备订购单 成功返回结果

type AlibabaeinvoiceflowrefundAPIRequest added in v1.3.1

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

AlibabaeinvoiceflowrefundAPIRequest 退订工单(入驻、加盘、续约) API请求 alibaba.einvoice.flow.refund

电子发票工单系统,工单退订能力开放

func NewAlibabaeinvoiceflowrefundRequest added in v1.3.1

func NewAlibabaeinvoiceflowrefundRequest() *AlibabaeinvoiceflowrefundAPIRequest

NewAlibabaeinvoiceflowrefundRequest 初始化AlibabaeinvoiceflowrefundAPIRequest对象

func (AlibabaeinvoiceflowrefundAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceflowrefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceflowrefundAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceflowrefundAPIRequest) GetInvoiceFlowRefund added in v1.3.1

GetInvoiceFlowRefund InvoiceFlowRefund Getter

func (AlibabaeinvoiceflowrefundAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceflowrefundAPIRequest) SetInvoiceFlowRefund added in v1.3.1

func (r *AlibabaeinvoiceflowrefundAPIRequest) SetInvoiceFlowRefund(_invoiceFlowRefund *InvoiceFlowRefundDto) error

SetInvoiceFlowRefund is InvoiceFlowRefund Setter 退订请求参数

type AlibabaeinvoiceflowrefundAPIResponse added in v1.3.1

type AlibabaeinvoiceflowrefundAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceflowrefundAPIResponseModel
}

AlibabaeinvoiceflowrefundAPIResponse 退订工单(入驻、加盘、续约) API返回值 alibaba.einvoice.flow.refund

电子发票工单系统,工单退订能力开放

type AlibabaeinvoiceflowrefundAPIResponseModel added in v1.3.1

type AlibabaeinvoiceflowrefundAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_flow_refund_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回参数
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceflowrefundAPIResponseModel is 退订工单(入驻、加盘、续约) 成功返回结果

type AlibabaeinvoiceflowrenewAPIRequest added in v1.3.1

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

AlibabaeinvoiceflowrenewAPIRequest 工单(入驻、加盘、续约)续约 API请求 alibaba.einvoice.flow.renew

工单(含入驻、加盘、续约工单)续约能力开放

func NewAlibabaeinvoiceflowrenewRequest added in v1.3.1

func NewAlibabaeinvoiceflowrenewRequest() *AlibabaeinvoiceflowrenewAPIRequest

NewAlibabaeinvoiceflowrenewRequest 初始化AlibabaeinvoiceflowrenewAPIRequest对象

func (AlibabaeinvoiceflowrenewAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceflowrenewAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceflowrenewAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceflowrenewAPIRequest) GetInvoiceFlowRenewDto added in v1.3.1

func (r AlibabaeinvoiceflowrenewAPIRequest) GetInvoiceFlowRenewDto() *InvoiceFlowRenewDto

GetInvoiceFlowRenewDto InvoiceFlowRenewDto Getter

func (AlibabaeinvoiceflowrenewAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceflowrenewAPIRequest) SetInvoiceFlowRenewDto added in v1.3.1

func (r *AlibabaeinvoiceflowrenewAPIRequest) SetInvoiceFlowRenewDto(_invoiceFlowRenewDto *InvoiceFlowRenewDto) error

SetInvoiceFlowRenewDto is InvoiceFlowRenewDto Setter 续约请求参数

type AlibabaeinvoiceflowrenewAPIResponse added in v1.3.1

type AlibabaeinvoiceflowrenewAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceflowrenewAPIResponseModel
}

AlibabaeinvoiceflowrenewAPIResponse 工单(入驻、加盘、续约)续约 API返回值 alibaba.einvoice.flow.renew

工单(含入驻、加盘、续约工单)续约能力开放

type AlibabaeinvoiceflowrenewAPIResponseModel added in v1.3.1

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

AlibabaeinvoiceflowrenewAPIResponseModel is 工单(入驻、加盘、续约)续约 成功返回结果

type AlibabaeinvoiceflowtaxcreateAPIRequest added in v1.3.1

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

AlibabaeinvoiceflowtaxcreateAPIRequest 创建税控开通工单 API请求 alibaba.einvoice.flow.tax.create

商户在业务前台订购税控产品后,调用阿里发票此接口,提交税号的入驻开通工单。此接口返回为工单的提交结果,非真正入驻结果。开通结果会在商户完成设备的部署安装 入驻完成后,由阿里发票通过消息异步通知到业务前台。

func NewAlibabaeinvoiceflowtaxcreateRequest added in v1.3.1

func NewAlibabaeinvoiceflowtaxcreateRequest() *AlibabaeinvoiceflowtaxcreateAPIRequest

NewAlibabaeinvoiceflowtaxcreateRequest 初始化AlibabaeinvoiceflowtaxcreateAPIRequest对象

func (AlibabaeinvoiceflowtaxcreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceflowtaxcreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceflowtaxcreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceflowtaxcreateAPIRequest) GetInvoiceTaxFlowCreateDto added in v1.3.1

func (r AlibabaeinvoiceflowtaxcreateAPIRequest) GetInvoiceTaxFlowCreateDto() *InvoiceTaxFlowCreateDto

GetInvoiceTaxFlowCreateDto InvoiceTaxFlowCreateDto Getter

func (AlibabaeinvoiceflowtaxcreateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceflowtaxcreateAPIRequest) SetInvoiceTaxFlowCreateDto added in v1.3.1

func (r *AlibabaeinvoiceflowtaxcreateAPIRequest) SetInvoiceTaxFlowCreateDto(_invoiceTaxFlowCreateDto *InvoiceTaxFlowCreateDto) error

SetInvoiceTaxFlowCreateDto is InvoiceTaxFlowCreateDto Setter 工单请求

type AlibabaeinvoiceflowtaxcreateAPIResponse added in v1.3.1

type AlibabaeinvoiceflowtaxcreateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceflowtaxcreateAPIResponseModel
}

AlibabaeinvoiceflowtaxcreateAPIResponse 创建税控开通工单 API返回值 alibaba.einvoice.flow.tax.create

商户在业务前台订购税控产品后,调用阿里发票此接口,提交税号的入驻开通工单。此接口返回为工单的提交结果,非真正入驻结果。开通结果会在商户完成设备的部署安装 入驻完成后,由阿里发票通过消息异步通知到业务前台。

type AlibabaeinvoiceflowtaxcreateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceflowtaxcreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_flow_tax_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 工单ID,发票中台生成
	FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"`
}

AlibabaeinvoiceflowtaxcreateAPIResponseModel is 创建税控开通工单 成功返回结果

type AlibabaeinvoiceflowtaxgetAPIRequest added in v1.3.1

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

AlibabaeinvoiceflowtaxgetAPIRequest 查询税控开通工单详情 API请求 alibaba.einvoice.flow.tax.get

查询税控开通工单详情,接口返回工单状态、开票商户信息以及税控设备信息。 场景使用:1、业务前台收到入驻成功消息后,调用此接口查询最终的商户信息和设备信息;2、主动补偿查询:当工单长时间未收到事件通知,可能存在丢消息的情况,此时可主动查询该工单,更新本地工单状态。

func NewAlibabaeinvoiceflowtaxgetRequest added in v1.3.1

func NewAlibabaeinvoiceflowtaxgetRequest() *AlibabaeinvoiceflowtaxgetAPIRequest

NewAlibabaeinvoiceflowtaxgetRequest 初始化AlibabaeinvoiceflowtaxgetAPIRequest对象

func (AlibabaeinvoiceflowtaxgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceflowtaxgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceflowtaxgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceflowtaxgetAPIRequest) GetFlowId added in v1.3.1

GetFlowId FlowId Getter

func (AlibabaeinvoiceflowtaxgetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceflowtaxgetAPIRequest) SetFlowId added in v1.3.1

func (r *AlibabaeinvoiceflowtaxgetAPIRequest) SetFlowId(_flowId string) error

SetFlowId is FlowId Setter 入驻开通工单ID

type AlibabaeinvoiceflowtaxgetAPIResponse added in v1.3.1

type AlibabaeinvoiceflowtaxgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceflowtaxgetAPIResponseModel
}

AlibabaeinvoiceflowtaxgetAPIResponse 查询税控开通工单详情 API返回值 alibaba.einvoice.flow.tax.get

查询税控开通工单详情,接口返回工单状态、开票商户信息以及税控设备信息。 场景使用:1、业务前台收到入驻成功消息后,调用此接口查询最终的商户信息和设备信息;2、主动补偿查询:当工单长时间未收到事件通知,可能存在丢消息的情况,此时可主动查询该工单,更新本地工单状态。

type AlibabaeinvoiceflowtaxgetAPIResponseModel added in v1.3.1

type AlibabaeinvoiceflowtaxgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_flow_tax_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统返回的通用结果类
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceflowtaxgetAPIResponseModel is 查询税控开通工单详情 成功返回结果

type AlibabaeinvoiceincomeagentcheckAPIRequest added in v1.3.1

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

AlibabaeinvoiceincomeagentcheckAPIRequest agent注册校验 API请求 alibaba.einvoice.income.agent.check

agent注册是,需要交易用户填写的agentId是否有效

func NewAlibabaeinvoiceincomeagentcheckRequest added in v1.3.1

func NewAlibabaeinvoiceincomeagentcheckRequest() *AlibabaeinvoiceincomeagentcheckAPIRequest

NewAlibabaeinvoiceincomeagentcheckRequest 初始化AlibabaeinvoiceincomeagentcheckAPIRequest对象

func (AlibabaeinvoiceincomeagentcheckAPIRequest) GetAgentId added in v1.3.1

GetAgentId AgentId Getter

func (AlibabaeinvoiceincomeagentcheckAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincomeagentcheckAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincomeagentcheckAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceincomeagentcheckAPIRequest) SetAgentId added in v1.3.1

func (r *AlibabaeinvoiceincomeagentcheckAPIRequest) SetAgentId(_agentId string) error

SetAgentId is AgentId Setter 阿里发票平台分配的agentId

type AlibabaeinvoiceincomeagentcheckAPIResponse added in v1.3.1

type AlibabaeinvoiceincomeagentcheckAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincomeagentcheckAPIResponseModel
}

AlibabaeinvoiceincomeagentcheckAPIResponse agent注册校验 API返回值 alibaba.einvoice.income.agent.check

agent注册是,需要交易用户填写的agentId是否有效

type AlibabaeinvoiceincomeagentcheckAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincomeagentcheckAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_agent_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否调用成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincomeagentcheckAPIResponseModel is agent注册校验 成功返回结果

type AlibabaeinvoiceincomecertificatereturnAPIRequest added in v1.3.1

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

AlibabaeinvoiceincomecertificatereturnAPIRequest 服务商回传进项认证结果 API请求 alibaba.einvoice.income.certificate.return

服务商回传客户端agent所处环境的设备列表,比如扫描仪

func NewAlibabaeinvoiceincomecertificatereturnRequest added in v1.3.1

func NewAlibabaeinvoiceincomecertificatereturnRequest() *AlibabaeinvoiceincomecertificatereturnAPIRequest

NewAlibabaeinvoiceincomecertificatereturnRequest 初始化AlibabaeinvoiceincomecertificatereturnAPIRequest对象

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetErrorCode added in v1.3.1

GetErrorCode ErrorCode Getter

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetErrorMessage added in v1.3.1

GetErrorMessage ErrorMessage Getter

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetStep added in v1.3.1

GetStep Step Getter

func (AlibabaeinvoiceincomecertificatereturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (*AlibabaeinvoiceincomecertificatereturnAPIRequest) SetErrorCode added in v1.3.1

SetErrorCode is ErrorCode Setter 错误码,success=false时必填

func (*AlibabaeinvoiceincomecertificatereturnAPIRequest) SetErrorMessage added in v1.3.1

func (r *AlibabaeinvoiceincomecertificatereturnAPIRequest) SetErrorMessage(_errorMessage string) error

SetErrorMessage is ErrorMessage Setter 错误信息,success=false时必填

func (*AlibabaeinvoiceincomecertificatereturnAPIRequest) SetReqIndex added in v1.3.1

SetReqIndex is ReqIndex Setter 请求标识

func (*AlibabaeinvoiceincomecertificatereturnAPIRequest) SetStep added in v1.3.1

SetStep is Step Setter 认证步骤,1=勾选,2=汇总,3=确认

func (*AlibabaeinvoiceincomecertificatereturnAPIRequest) SetSuccess added in v1.3.1

SetSuccess is Success Setter 认证结果,true=成功,false=失败

type AlibabaeinvoiceincomecertificatereturnAPIResponse added in v1.3.1

type AlibabaeinvoiceincomecertificatereturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincomecertificatereturnAPIResponseModel
}

AlibabaeinvoiceincomecertificatereturnAPIResponse 服务商回传进项认证结果 API返回值 alibaba.einvoice.income.certificate.return

服务商回传客户端agent所处环境的设备列表,比如扫描仪

type AlibabaeinvoiceincomecertificatereturnAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincomecertificatereturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_certificate_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口是否调用成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincomecertificatereturnAPIResponseModel is 服务商回传进项认证结果 成功返回结果

type AlibabaeinvoiceincomedevicereturnAPIRequest added in v1.3.1

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

AlibabaeinvoiceincomedevicereturnAPIRequest 服务商回传客户端设备列表 API请求 alibaba.einvoice.income.device.return

服务商回传客户端agent所处环境的设备列表,比如扫描仪

func NewAlibabaeinvoiceincomedevicereturnRequest added in v1.3.1

func NewAlibabaeinvoiceincomedevicereturnRequest() *AlibabaeinvoiceincomedevicereturnAPIRequest

NewAlibabaeinvoiceincomedevicereturnRequest 初始化AlibabaeinvoiceincomedevicereturnAPIRequest对象

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetDeviceList added in v1.3.1

GetDeviceList DeviceList Getter

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetErrorCode added in v1.3.1

GetErrorCode ErrorCode Getter

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetErrorMessage added in v1.3.1

GetErrorMessage ErrorMessage Getter

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoiceincomedevicereturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (*AlibabaeinvoiceincomedevicereturnAPIRequest) SetDeviceList added in v1.3.1

func (r *AlibabaeinvoiceincomedevicereturnAPIRequest) SetDeviceList(_deviceList []string) error

SetDeviceList is DeviceList Setter 设备列表,success=true时必填

func (*AlibabaeinvoiceincomedevicereturnAPIRequest) SetErrorCode added in v1.3.1

func (r *AlibabaeinvoiceincomedevicereturnAPIRequest) SetErrorCode(_errorCode string) error

SetErrorCode is ErrorCode Setter 错误码,success=false时必填

func (*AlibabaeinvoiceincomedevicereturnAPIRequest) SetErrorMessage added in v1.3.1

func (r *AlibabaeinvoiceincomedevicereturnAPIRequest) SetErrorMessage(_errorMessage string) error

SetErrorMessage is ErrorMessage Setter 错误信息,success=false时必填

func (*AlibabaeinvoiceincomedevicereturnAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoiceincomedevicereturnAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 请求标识

func (*AlibabaeinvoiceincomedevicereturnAPIRequest) SetSuccess added in v1.3.1

func (r *AlibabaeinvoiceincomedevicereturnAPIRequest) SetSuccess(_success bool) error

SetSuccess is Success Setter 查询设备是否成功,true=成功,false=失败

type AlibabaeinvoiceincomedevicereturnAPIResponse added in v1.3.1

type AlibabaeinvoiceincomedevicereturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincomedevicereturnAPIResponseModel
}

AlibabaeinvoiceincomedevicereturnAPIResponse 服务商回传客户端设备列表 API返回值 alibaba.einvoice.income.device.return

服务商回传客户端agent所处环境的设备列表,比如扫描仪

type AlibabaeinvoiceincomedevicereturnAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincomedevicereturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_device_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口是否调用成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincomedevicereturnAPIResponseModel is 服务商回传客户端设备列表 成功返回结果

type AlibabaeinvoiceincomeocrreturnAPIRequest added in v1.3.1

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

AlibabaeinvoiceincomeocrreturnAPIRequest 服务商回传发票ocr的结果 API请求 alibaba.einvoice.income.ocr.return

服务商回传发票ocr的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的ocr回传

func NewAlibabaeinvoiceincomeocrreturnRequest added in v1.3.1

func NewAlibabaeinvoiceincomeocrreturnRequest() *AlibabaeinvoiceincomeocrreturnAPIRequest

NewAlibabaeinvoiceincomeocrreturnRequest 初始化AlibabaeinvoiceincomeocrreturnAPIRequest对象

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceincomeocrreturnAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetChecksum added in v1.3.1

GetChecksum Checksum Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetErrorCode added in v1.3.1

GetErrorCode ErrorCode Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetErrorMessage added in v1.3.1

GetErrorMessage ErrorMessage Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetImageData added in v1.3.1

GetImageData ImageData Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetImageId added in v1.3.1

GetImageId ImageId Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetInvoiceCode added in v1.3.1

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetInvoiceDate added in v1.3.1

GetInvoiceDate InvoiceDate Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetInvoiceKind added in v1.3.1

GetInvoiceKind InvoiceKind Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (AlibabaeinvoiceincomeocrreturnAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetChecksum added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetChecksum(_checksum string) error

SetChecksum is Checksum Setter 校验码,ocr结果为普票,success=true并且invoiceKind=1时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetErrorCode added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetErrorCode(_errorCode string) error

SetErrorCode is ErrorCode Setter 错误码,success=false是必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetErrorMessage added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetErrorMessage(_errorMessage string) error

SetErrorMessage is ErrorMessage Setter 错误消息,success=false是必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetImageData added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetImageData(_imageData *model.File) error

SetImageData is ImageData Setter 发票ocr影像文件,type=1时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetImageId added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetImageId(_imageId string) error

SetImageId is ImageId Setter 发票ocr影像编号,type=1时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码,success=true时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceDate added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceDate(_invoiceDate string) error

SetInvoiceDate is InvoiceDate Setter 开票日期,格式为yyyy-MM-dd,success=true时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceKind added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceKind(_invoiceKind int64) error

SetInvoiceKind is InvoiceKind Setter 发票种类,1=普票,2=专票,success=true时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码,success=true时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 开票请求标识,扫描驱动回传type=1时填批次号

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetSuccess added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetSuccess(_success bool) error

SetSuccess is Success Setter ocr结果,true=成功,false=失败

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoiceincomeocrreturnAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 不含税金额,ocr结果为专票,success=true并且invoiceKind=2时必填

func (*AlibabaeinvoiceincomeocrreturnAPIRequest) SetType added in v1.3.1

SetType is Type Setter 请求类型,0=阿里主动发起的cor,1=扫描驱动服务商主动回传ocr结果

type AlibabaeinvoiceincomeocrreturnAPIResponse added in v1.3.1

type AlibabaeinvoiceincomeocrreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincomeocrreturnAPIResponseModel
}

AlibabaeinvoiceincomeocrreturnAPIResponse 服务商回传发票ocr的结果 API返回值 alibaba.einvoice.income.ocr.return

服务商回传发票ocr的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的ocr回传

type AlibabaeinvoiceincomeocrreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincomeocrreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_ocr_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口调用结果,true=成功,false=失败,subCode以isp开头时需要服务商重试
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincomeocrreturnAPIResponseModel is 服务商回传发票ocr的结果 成功返回结果

type AlibabaeinvoiceincomescanreturnAPIRequest added in v1.3.1

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

AlibabaeinvoiceincomescanreturnAPIRequest 进项扫描状态回传 API请求 alibaba.einvoice.income.scan.return

回传进项扫描每个阶段的状态,比如ocr开始,ocr结束,查验开始,查验结束等

func NewAlibabaeinvoiceincomescanreturnRequest added in v1.3.1

func NewAlibabaeinvoiceincomescanreturnRequest() *AlibabaeinvoiceincomescanreturnAPIRequest

NewAlibabaeinvoiceincomescanreturnRequest 初始化AlibabaeinvoiceincomescanreturnAPIRequest对象

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetBatchNo added in v1.3.1

GetBatchNo BatchNo Getter

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetErrorCode added in v1.3.1

GetErrorCode ErrorCode Getter

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetErrorMessage added in v1.3.1

GetErrorMessage ErrorMessage Getter

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetInvoiceCount added in v1.3.1

GetInvoiceCount InvoiceCount Getter

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (AlibabaeinvoiceincomescanreturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (*AlibabaeinvoiceincomescanreturnAPIRequest) SetBatchNo added in v1.3.1

func (r *AlibabaeinvoiceincomescanreturnAPIRequest) SetBatchNo(_batchNo string) error

SetBatchNo is BatchNo Setter 扫描的批次号

func (*AlibabaeinvoiceincomescanreturnAPIRequest) SetErrorCode added in v1.3.1

func (r *AlibabaeinvoiceincomescanreturnAPIRequest) SetErrorCode(_errorCode string) error

SetErrorCode is ErrorCode Setter 错误码,success=false时填入

func (*AlibabaeinvoiceincomescanreturnAPIRequest) SetErrorMessage added in v1.3.1

func (r *AlibabaeinvoiceincomescanreturnAPIRequest) SetErrorMessage(_errorMessage string) error

SetErrorMessage is ErrorMessage Setter 错误信息,success=false时必填

func (*AlibabaeinvoiceincomescanreturnAPIRequest) SetInvoiceCount added in v1.3.1

func (r *AlibabaeinvoiceincomescanreturnAPIRequest) SetInvoiceCount(_invoiceCount int64) error

SetInvoiceCount is InvoiceCount Setter 该批次对应的发票数量,扫描结束和查验结束status=1,3时必填

func (*AlibabaeinvoiceincomescanreturnAPIRequest) SetStatus added in v1.3.1

SetStatus is Status Setter 扫描状态,0=开始ocr,1=ocr结束,2=开始查验,3=查验结束

func (*AlibabaeinvoiceincomescanreturnAPIRequest) SetSuccess added in v1.3.1

func (r *AlibabaeinvoiceincomescanreturnAPIRequest) SetSuccess(_success bool) error

SetSuccess is Success Setter 驱动是否成功,true=成功,false=失败

type AlibabaeinvoiceincomescanreturnAPIResponse added in v1.3.1

type AlibabaeinvoiceincomescanreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincomescanreturnAPIResponseModel
}

AlibabaeinvoiceincomescanreturnAPIResponse 进项扫描状态回传 API返回值 alibaba.einvoice.income.scan.return

回传进项扫描每个阶段的状态,比如ocr开始,ocr结束,查验开始,查验结束等

type AlibabaeinvoiceincomescanreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincomescanreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_scan_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否回传成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincomescanreturnAPIResponseModel is 进项扫描状态回传 成功返回结果

type AlibabaeinvoiceincometokenreturnAPIRequest added in v1.3.1

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

AlibabaeinvoiceincometokenreturnAPIRequest 服务商回传税号token API请求 alibaba.einvoice.income.token.return

服务商回传税号token,用来勾选抵扣认证

func NewAlibabaeinvoiceincometokenreturnRequest added in v1.3.1

func NewAlibabaeinvoiceincometokenreturnRequest() *AlibabaeinvoiceincometokenreturnAPIRequest

NewAlibabaeinvoiceincometokenreturnRequest 初始化AlibabaeinvoiceincometokenreturnAPIRequest对象

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetArea added in v1.3.1

GetArea Area Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetErrorCode added in v1.3.1

GetErrorCode ErrorCode Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetErrorMessage added in v1.3.1

GetErrorMessage ErrorMessage Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetExpireTime added in v1.3.1

GetExpireTime ExpireTime Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetPayeeName added in v1.3.1

GetPayeeName PayeeName Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoiceincometokenreturnAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (AlibabaeinvoiceincometokenreturnAPIRequest) GetToken added in v1.3.1

GetToken Token Getter

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetArea added in v1.3.1

SetArea is Area Setter 税局所在区域,success=true时必填

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetErrorCode added in v1.3.1

func (r *AlibabaeinvoiceincometokenreturnAPIRequest) SetErrorCode(_errorCode string) error

SetErrorCode is ErrorCode Setter 错误码,success=false时必填

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetErrorMessage added in v1.3.1

func (r *AlibabaeinvoiceincometokenreturnAPIRequest) SetErrorMessage(_errorMessage string) error

SetErrorMessage is ErrorMessage Setter 错误信息,success=false时必填

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetExpireTime added in v1.3.1

func (r *AlibabaeinvoiceincometokenreturnAPIRequest) SetExpireTime(_expireTime string) error

SetExpireTime is ExpireTime Setter token过期时间,success=true时必填

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetPayeeName added in v1.3.1

func (r *AlibabaeinvoiceincometokenreturnAPIRequest) SetPayeeName(_payeeName string) error

SetPayeeName is PayeeName Setter 销售方企业名称,success=true时必填

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceincometokenreturnAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销售方纳税人识别号,success=true时必填

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetSuccess added in v1.3.1

func (r *AlibabaeinvoiceincometokenreturnAPIRequest) SetSuccess(_success bool) error

SetSuccess is Success Setter token是否获取成功,true=成功, false=失败

func (*AlibabaeinvoiceincometokenreturnAPIRequest) SetToken added in v1.3.1

SetToken is Token Setter token,success=true时必填

type AlibabaeinvoiceincometokenreturnAPIResponse added in v1.3.1

type AlibabaeinvoiceincometokenreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincometokenreturnAPIResponseModel
}

AlibabaeinvoiceincometokenreturnAPIResponse 服务商回传税号token API返回值 alibaba.einvoice.income.token.return

服务商回传税号token,用来勾选抵扣认证

type AlibabaeinvoiceincometokenreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincometokenreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_token_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result接口是否调用成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincometokenreturnAPIResponseModel is 服务商回传税号token 成功返回结果

type AlibabaeinvoiceincomeverifyreturnAPIRequest added in v1.3.1

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

AlibabaeinvoiceincomeverifyreturnAPIRequest 服务商回传发票查验的结果 API请求 alibaba.einvoice.income.verify.return

服务商回传发票查验的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的查验回传

func NewAlibabaeinvoiceincomeverifyreturnRequest added in v1.3.1

func NewAlibabaeinvoiceincomeverifyreturnRequest() *AlibabaeinvoiceincomeverifyreturnAPIRequest

NewAlibabaeinvoiceincomeverifyreturnRequest 初始化AlibabaeinvoiceincomeverifyreturnAPIRequest对象

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetChecksum added in v1.3.1

GetChecksum Checksum Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetErrorCode added in v1.3.1

GetErrorCode ErrorCode Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetErrorMessage added in v1.3.1

GetErrorMessage ErrorMessage Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetImageId added in v1.3.1

GetImageId ImageId Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceAmount added in v1.3.1

GetInvoiceAmount InvoiceAmount Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceCode added in v1.3.1

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceDate added in v1.3.1

GetInvoiceDate InvoiceDate Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceItems added in v1.3.1

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceMemo added in v1.3.1

GetInvoiceMemo InvoiceMemo Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetInvoiceStatus added in v1.3.1

GetInvoiceStatus InvoiceStatus Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetMachineNo added in v1.3.1

GetMachineNo MachineNo Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeAddressPhone added in v1.3.1

func (r AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeAddressPhone() string

GetPayeeAddressPhone PayeeAddressPhone Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeBankAccount added in v1.3.1

func (r AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeBankAccount() string

GetPayeeBankAccount PayeeBankAccount Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeChecker added in v1.3.1

GetPayeeChecker PayeeChecker Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeName added in v1.3.1

GetPayeeName PayeeName Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeOperator added in v1.3.1

GetPayeeOperator PayeeOperator Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeReceiver added in v1.3.1

GetPayeeReceiver PayeeReceiver Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerAddressPhone added in v1.3.1

func (r AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerAddressPhone() string

GetPayerAddressPhone PayerAddressPhone Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerBankAccount added in v1.3.1

func (r AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerBankAccount() string

GetPayerBankAccount PayerBankAccount Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerName added in v1.3.1

GetPayerName PayerName Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerRegisterNo added in v1.3.1

func (r AlibabaeinvoiceincomeverifyreturnAPIRequest) GetPayerRegisterNo() string

GetPayerRegisterNo PayerRegisterNo Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetSumTax added in v1.3.1

GetSumTax SumTax Getter

func (AlibabaeinvoiceincomeverifyreturnAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetChecksum added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetChecksum(_checksum string) error

SetChecksum is Checksum Setter 校验码,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetErrorCode added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetErrorCode(_errorCode string) error

SetErrorCode is ErrorCode Setter 错误码,success=false时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetErrorMessage added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetErrorMessage(_errorMessage string) error

SetErrorMessage is ErrorMessage Setter 错误信息,success=false时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetImageId added in v1.3.1

SetImageId is ImageId Setter 发票影像编号,type=1时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceAmount added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceAmount(_invoiceAmount string) error

SetInvoiceAmount is InvoiceAmount Setter 价税合计金额,success=true时必填,invoiceAmount=sumPrice+sumTax

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceDate added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceDate(_invoiceDate string) error

SetInvoiceDate is InvoiceDate Setter 开票日期,格式为yyyy-MM-dd,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceItem) error

SetInvoiceItems is InvoiceItems Setter 发票明细

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceMemo added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceMemo(_invoiceMemo string) error

SetInvoiceMemo is InvoiceMemo Setter 发票备注

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceStatus added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetInvoiceStatus(_invoiceStatus int64) error

SetInvoiceStatus is InvoiceStatus Setter 发票状态,0=无效(作废),1=有效

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetMachineNo added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetMachineNo(_machineNo string) error

SetMachineNo is MachineNo Setter 机器编号

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeAddressPhone added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeAddressPhone(_payeeAddressPhone string) error

SetPayeeAddressPhone is PayeeAddressPhone Setter 销售方地址电话

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeBankAccount added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeBankAccount(_payeeBankAccount string) error

SetPayeeBankAccount is PayeeBankAccount Setter 销售方银行及账号

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeChecker added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeChecker(_payeeChecker string) error

SetPayeeChecker is PayeeChecker Setter 复核人

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeName added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeName(_payeeName string) error

SetPayeeName is PayeeName Setter 销售方名称,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeOperator added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeOperator(_payeeOperator string) error

SetPayeeOperator is PayeeOperator Setter 开票人

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeReceiver added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeReceiver(_payeeReceiver string) error

SetPayeeReceiver is PayeeReceiver Setter 收款人

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销售方纳税人识别号,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerAddressPhone added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerAddressPhone(_payerAddressPhone string) error

SetPayerAddressPhone is PayerAddressPhone Setter 购买方地址电话

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerBankAccount added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerBankAccount(_payerBankAccount string) error

SetPayerBankAccount is PayerBankAccount Setter 购买方银行及账号

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerName added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerName(_payerName string) error

SetPayerName is PayerName Setter 购买方名称,即发票抬头,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error

SetPayerRegisterNo is PayerRegisterNo Setter 购买方纳税人识别号

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 开票请求标识,扫描驱动回传type=1时填批次号

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetSuccess added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetSuccess(_success bool) error

SetSuccess is Success Setter 查验结果,true=成功,false=失败

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoiceincomeverifyreturnAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 发票不含税金额,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetSumTax added in v1.3.1

SetSumTax is SumTax Setter 发票税额,success=true时必填

func (*AlibabaeinvoiceincomeverifyreturnAPIRequest) SetType added in v1.3.1

SetType is Type Setter 请求类型,0=阿里主动发起的查验,1=扫描驱动服务商主动回传查验结果

type AlibabaeinvoiceincomeverifyreturnAPIResponse added in v1.3.1

type AlibabaeinvoiceincomeverifyreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceincomeverifyreturnAPIResponseModel
}

AlibabaeinvoiceincomeverifyreturnAPIResponse 服务商回传发票查验的结果 API返回值 alibaba.einvoice.income.verify.return

服务商回传发票查验的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的查验回传

type AlibabaeinvoiceincomeverifyreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoiceincomeverifyreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_income_verify_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口调用结果,true=成功,false=失败,subCode以isp开头时需要服务商重试
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceincomeverifyreturnAPIResponseModel is 服务商回传发票查验的结果 成功返回结果

type AlibabaeinvoiceinvoiceapplygetAPIRequest added in v1.3.1

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

AlibabaeinvoiceinvoiceapplygetAPIRequest 获取商家的开票申请 API请求 alibaba.einvoice.invoiceapply.get

开票服务商接收到商家发起的开票申请消息后,调用此接口拉取商家详细的开票申请内容

func NewAlibabaeinvoiceinvoiceapplygetRequest added in v1.3.1

func NewAlibabaeinvoiceinvoiceapplygetRequest() *AlibabaeinvoiceinvoiceapplygetAPIRequest

NewAlibabaeinvoiceinvoiceapplygetRequest 初始化AlibabaeinvoiceinvoiceapplygetAPIRequest对象

func (AlibabaeinvoiceinvoiceapplygetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceinvoiceapplygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceinvoiceapplygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceinvoiceapplygetAPIRequest) GetApplyId added in v1.3.1

GetApplyId ApplyId Getter

func (AlibabaeinvoiceinvoiceapplygetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceinvoiceapplygetAPIRequest) SetApplyId added in v1.3.1

func (r *AlibabaeinvoiceinvoiceapplygetAPIRequest) SetApplyId(_applyId string) error

SetApplyId is ApplyId Setter 开票申请id

type AlibabaeinvoiceinvoiceapplygetAPIResponse added in v1.3.1

type AlibabaeinvoiceinvoiceapplygetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceinvoiceapplygetAPIResponseModel
}

AlibabaeinvoiceinvoiceapplygetAPIResponse 获取商家的开票申请 API返回值 alibaba.einvoice.invoiceapply.get

开票服务商接收到商家发起的开票申请消息后,调用此接口拉取商家详细的开票申请内容

type AlibabaeinvoiceinvoiceapplygetAPIResponseModel added in v1.3.1

type AlibabaeinvoiceinvoiceapplygetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_invoiceapply_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票申请查询结果
	Result *UserInvoiceApplyDto `json:"result,omitempty" xml:"result,omitempty"`
	// totalCount
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

AlibabaeinvoiceinvoiceapplygetAPIResponseModel is 获取商家的开票申请 成功返回结果

type AlibabaeinvoiceinvoiceapplyupdateAPIRequest added in v1.3.1

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

AlibabaeinvoiceinvoiceapplyupdateAPIRequest 商家开票申请单状态回传 API请求 alibaba.einvoice.invoiceapply.update

开票服务商更新商家开票申请单状态

func NewAlibabaeinvoiceinvoiceapplyupdateRequest added in v1.3.1

func NewAlibabaeinvoiceinvoiceapplyupdateRequest() *AlibabaeinvoiceinvoiceapplyupdateAPIRequest

NewAlibabaeinvoiceinvoiceapplyupdateRequest 初始化AlibabaeinvoiceinvoiceapplyupdateAPIRequest对象

func (AlibabaeinvoiceinvoiceapplyupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceinvoiceapplyupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceinvoiceapplyupdateAPIRequest) GetApplyId added in v1.3.1

GetApplyId ApplyId Getter

func (AlibabaeinvoiceinvoiceapplyupdateAPIRequest) GetExInfo added in v1.3.1

GetExInfo ExInfo Getter

func (AlibabaeinvoiceinvoiceapplyupdateAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceinvoiceapplyupdateAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (*AlibabaeinvoiceinvoiceapplyupdateAPIRequest) SetApplyId added in v1.3.1

SetApplyId is ApplyId Setter 申请单id

func (*AlibabaeinvoiceinvoiceapplyupdateAPIRequest) SetExInfo added in v1.3.1

SetExInfo is ExInfo Setter 扩展信息,目前用于回传文本及物流消息

func (*AlibabaeinvoiceinvoiceapplyupdateAPIRequest) SetStatus added in v1.3.1

SetStatus is Status Setter 申请单状态:1:待确认,2:开票中,3:拒绝开票,4:发票已发出,0:完成开票

type AlibabaeinvoiceinvoiceapplyupdateAPIResponse added in v1.3.1

type AlibabaeinvoiceinvoiceapplyupdateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceinvoiceapplyupdateAPIResponseModel
}

AlibabaeinvoiceinvoiceapplyupdateAPIResponse 商家开票申请单状态回传 API返回值 alibaba.einvoice.invoiceapply.update

开票服务商更新商家开票申请单状态

type AlibabaeinvoiceinvoiceapplyupdateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceinvoiceapplyupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_invoiceapply_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// totalCount
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 更新结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceinvoiceapplyupdateAPIResponseModel is 商家开票申请单状态回传 成功返回结果

type AlibabaeinvoiceitemupdateAPIRequest added in v1.3.1

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

AlibabaeinvoiceitemupdateAPIRequest 修改商品开票信息 API请求 alibaba.einvoice.item.update

ERP通过接口将商品的开票信息同步给阿里发票平台,自动开票时将读取这些开票信息,需要联系阿里小二开通对应的权限

func NewAlibabaeinvoiceitemupdateRequest added in v1.3.1

func NewAlibabaeinvoiceitemupdateRequest() *AlibabaeinvoiceitemupdateAPIRequest

NewAlibabaeinvoiceitemupdateRequest 初始化AlibabaeinvoiceitemupdateAPIRequest对象

func (AlibabaeinvoiceitemupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceitemupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceitemupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceitemupdateAPIRequest) GetInvoiceName added in v1.3.1

func (r AlibabaeinvoiceitemupdateAPIRequest) GetInvoiceName() string

GetInvoiceName InvoiceName Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetItemNo added in v1.3.1

GetItemNo ItemNo Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceitemupdateAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetSpecification added in v1.3.1

func (r AlibabaeinvoiceitemupdateAPIRequest) GetSpecification() string

GetSpecification Specification Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetTaxRate added in v1.3.1

GetTaxRate TaxRate Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetUnit added in v1.3.1

GetUnit Unit Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetUpdateSku added in v1.3.1

func (r AlibabaeinvoiceitemupdateAPIRequest) GetUpdateSku() bool

GetUpdateSku UpdateSku Getter

func (AlibabaeinvoiceitemupdateAPIRequest) GetZeroRateFlag added in v1.3.1

func (r AlibabaeinvoiceitemupdateAPIRequest) GetZeroRateFlag() string

GetZeroRateFlag ZeroRateFlag Getter

func (*AlibabaeinvoiceitemupdateAPIRequest) SetInvoiceName added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetInvoiceName(_invoiceName string) error

SetInvoiceName is InvoiceName Setter 商品的开票名称,对应发票的货物劳务名称,值DELETE时表示删除

func (*AlibabaeinvoiceitemupdateAPIRequest) SetItemId added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id,优先级高于outerId,商品必须归属于店铺,itemId和outerId不能同时为空

func (*AlibabaeinvoiceitemupdateAPIRequest) SetItemNo added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetItemNo(_itemNo string) error

SetItemNo is ItemNo Setter 税收分类编码,需要精确到叶子节点,必须和taxRate同时修改或删除,值DELETE时表示删除

func (*AlibabaeinvoiceitemupdateAPIRequest) SetOuterId added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商家外部商品id,如果outerId对应了多个天猫sku,则会更新所有的sku开票信息。itemId和outerId不能同时为空

func (*AlibabaeinvoiceitemupdateAPIRequest) SetSkuId added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter skuId,必须是itemId下的sku,填写skuId后,修改和删除sku的开票信息

func (*AlibabaeinvoiceitemupdateAPIRequest) SetSpecification added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetSpecification(_specification string) error

SetSpecification is Specification Setter 规格型号,值DELETE时表示删除

func (*AlibabaeinvoiceitemupdateAPIRequest) SetTaxRate added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetTaxRate(_taxRate string) error

SetTaxRate is TaxRate Setter 税率,可选值0,3,4,5,6,10,11,13, 16,17,必须和itemNo同时修改或删除,值为DELETE时表示删除

func (*AlibabaeinvoiceitemupdateAPIRequest) SetUnit added in v1.3.1

SetUnit is Unit Setter 单位,值DELETE时表示删除

func (*AlibabaeinvoiceitemupdateAPIRequest) SetUpdateSku added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetUpdateSku(_updateSku bool) error

SetUpdateSku is UpdateSku Setter 是否根据outerId更新所有对应sku的开票信息,true=更新,false=开票信息维护在发票平台;自动开票时,根据skuId获取outerId,再根据outerId查询开票信息。outerId不为空时必填

func (*AlibabaeinvoiceitemupdateAPIRequest) SetZeroRateFlag added in v1.3.1

func (r *AlibabaeinvoiceitemupdateAPIRequest) SetZeroRateFlag(_zeroRateFlag string) error

SetZeroRateFlag is ZeroRateFlag Setter 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率,值为DELETE时表示删除

type AlibabaeinvoiceitemupdateAPIResponse added in v1.3.1

type AlibabaeinvoiceitemupdateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceitemupdateAPIResponseModel
}

AlibabaeinvoiceitemupdateAPIResponse 修改商品开票信息 API返回值 alibaba.einvoice.item.update

ERP通过接口将商品的开票信息同步给阿里发票平台,自动开票时将读取这些开票信息,需要联系阿里小二开通对应的权限

type AlibabaeinvoiceitemupdateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceitemupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_item_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 修改结果
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceitemupdateAPIResponseModel is 修改商品开票信息 成功返回结果

type AlibabaeinvoicemerchantaddAPIRequest added in v1.3.1

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

AlibabaeinvoicemerchantaddAPIRequest 发票中台-同平台授权税号适用商户 API请求 alibaba.einvoice.merchant.add

适用于以下场景: 业务税号入驻成功后,需要将税号授权给同平台下其他商户,使得其他商户也具备开票能力

func NewAlibabaeinvoicemerchantaddRequest added in v1.3.1

func NewAlibabaeinvoicemerchantaddRequest() *AlibabaeinvoicemerchantaddAPIRequest

NewAlibabaeinvoicemerchantaddRequest 初始化AlibabaeinvoicemerchantaddAPIRequest对象

func (AlibabaeinvoicemerchantaddAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicemerchantaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicemerchantaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicemerchantaddAPIRequest) GetDeviceIds added in v1.3.1

func (r AlibabaeinvoicemerchantaddAPIRequest) GetDeviceIds() []string

GetDeviceIds DeviceIds Getter

func (AlibabaeinvoicemerchantaddAPIRequest) GetMerchantName added in v1.3.1

func (r AlibabaeinvoicemerchantaddAPIRequest) GetMerchantName() string

GetMerchantName MerchantName Getter

func (AlibabaeinvoicemerchantaddAPIRequest) GetMerchantUserId added in v1.3.1

func (r AlibabaeinvoicemerchantaddAPIRequest) GetMerchantUserId() string

GetMerchantUserId MerchantUserId Getter

func (AlibabaeinvoicemerchantaddAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (AlibabaeinvoicemerchantaddAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicemerchantaddAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicemerchantaddAPIRequest) GetPlatformCode added in v1.3.1

func (r AlibabaeinvoicemerchantaddAPIRequest) GetPlatformCode() string

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicemerchantaddAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicemerchantaddAPIRequest) GetTaxToken added in v1.3.1

GetTaxToken TaxToken Getter

func (*AlibabaeinvoicemerchantaddAPIRequest) SetDeviceIds added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetDeviceIds(_deviceIds []string) error

SetDeviceIds is DeviceIds Setter 税盘列表

func (*AlibabaeinvoicemerchantaddAPIRequest) SetMerchantName added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetMerchantName(_merchantName string) error

SetMerchantName is MerchantName Setter 业务平台门店名称

func (*AlibabaeinvoicemerchantaddAPIRequest) SetMerchantUserId added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetMerchantUserId(_merchantUserId string) error

SetMerchantUserId is MerchantUserId Setter 业务平台门店ID

func (*AlibabaeinvoicemerchantaddAPIRequest) SetOuterId added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 业务方发起新增门店的唯一幂等ID, 由业务方生成。只能由字母和数字组成。

func (*AlibabaeinvoicemerchantaddAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税务登记号

func (*AlibabaeinvoicemerchantaddAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 业务平台code, 由阿里发票分配

func (*AlibabaeinvoicemerchantaddAPIRequest) SetTaxToken added in v1.3.1

func (r *AlibabaeinvoicemerchantaddAPIRequest) SetTaxToken(_taxToken string) error

SetTaxToken is TaxToken Setter 验证码,门店绑定已入驻税号接口返回的taxToken

type AlibabaeinvoicemerchantaddAPIResponse added in v1.3.1

type AlibabaeinvoicemerchantaddAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicemerchantaddAPIResponseModel
}

AlibabaeinvoicemerchantaddAPIResponse 发票中台-同平台授权税号适用商户 API返回值 alibaba.einvoice.merchant.add

适用于以下场景: 业务税号入驻成功后,需要将税号授权给同平台下其他商户,使得其他商户也具备开票能力

type AlibabaeinvoicemerchantaddAPIResponseModel added in v1.3.1

type AlibabaeinvoicemerchantaddAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_merchant_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 新增成功的业务平台门店ID
	MerchantUserId string `json:"merchant_user_id,omitempty" xml:"merchant_user_id,omitempty"`
}

AlibabaeinvoicemerchantaddAPIResponseModel is 发票中台-同平台授权税号适用商户 成功返回结果

type AlibabaeinvoicemerchantbindcompanyAPIRequest added in v1.3.1

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

AlibabaeinvoicemerchantbindcompanyAPIRequest 发票中台-跨平台绑定已入驻税号与商户 API请求 alibaba.einvoice.merchant.bindcompany

税号在阿里发票平台入驻成功后,允许业务方通过本接口跨业务平台绑定入驻税号和业务平台商户,绑定成功后该商户可以使用该税号的盘进行开票。绑定成功后,可以使用同平台授权、取消授权税号适用商户接口来变更税号和商户关系。

func NewAlibabaeinvoicemerchantbindcompanyRequest added in v1.3.1

func NewAlibabaeinvoicemerchantbindcompanyRequest() *AlibabaeinvoicemerchantbindcompanyAPIRequest

NewAlibabaeinvoicemerchantbindcompanyRequest 初始化AlibabaeinvoicemerchantbindcompanyAPIRequest对象

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetActivationCode added in v1.3.1

GetActivationCode ActivationCode Getter

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetMerchantName added in v1.3.1

GetMerchantName MerchantName Getter

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetMerchantUserId added in v1.3.1

GetMerchantUserId MerchantUserId Getter

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetPayeeRegisterNo added in v1.3.1

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetPlatformCode added in v1.3.1

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicemerchantbindcompanyAPIRequest) GetSourcePlatformCode added in v1.3.1

func (r AlibabaeinvoicemerchantbindcompanyAPIRequest) GetSourcePlatformCode() string

GetSourcePlatformCode SourcePlatformCode Getter

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetActivationCode added in v1.3.1

func (r *AlibabaeinvoicemerchantbindcompanyAPIRequest) SetActivationCode(_activationCode string) error

SetActivationCode is ActivationCode Setter 激活码

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetMerchantName added in v1.3.1

func (r *AlibabaeinvoicemerchantbindcompanyAPIRequest) SetMerchantName(_merchantName string) error

SetMerchantName is MerchantName Setter 业务平台门店名称

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetMerchantUserId added in v1.3.1

func (r *AlibabaeinvoicemerchantbindcompanyAPIRequest) SetMerchantUserId(_merchantUserId string) error

SetMerchantUserId is MerchantUserId Setter 业务平台商户ID

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetOuterId added in v1.3.1

SetOuterId is OuterId Setter 业务方发起首次绑定门店的唯一幂等ID, 由业务方生成。只能由字母和数字组成。

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicemerchantbindcompanyAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税务登记号

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicemerchantbindcompanyAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 业务平台code, 由阿里发票分配

func (*AlibabaeinvoicemerchantbindcompanyAPIRequest) SetSourcePlatformCode added in v1.3.1

func (r *AlibabaeinvoicemerchantbindcompanyAPIRequest) SetSourcePlatformCode(_sourcePlatformCode string) error

SetSourcePlatformCode is SourcePlatformCode Setter 税号已入驻的原业务平台code

type AlibabaeinvoicemerchantbindcompanyAPIResponse added in v1.3.1

type AlibabaeinvoicemerchantbindcompanyAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicemerchantbindcompanyAPIResponseModel
}

AlibabaeinvoicemerchantbindcompanyAPIResponse 发票中台-跨平台绑定已入驻税号与商户 API返回值 alibaba.einvoice.merchant.bindcompany

税号在阿里发票平台入驻成功后,允许业务方通过本接口跨业务平台绑定入驻税号和业务平台商户,绑定成功后该商户可以使用该税号的盘进行开票。绑定成功后,可以使用同平台授权、取消授权税号适用商户接口来变更税号和商户关系。

type AlibabaeinvoicemerchantbindcompanyAPIResponseModel added in v1.3.1

type AlibabaeinvoicemerchantbindcompanyAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_merchant_bindcompany_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// token,此token用于税号适用门店新增和删除接口,需要业务方保存
	TaxToken string `json:"tax_token,omitempty" xml:"tax_token,omitempty"`
}

AlibabaeinvoicemerchantbindcompanyAPIResponseModel is 发票中台-跨平台绑定已入驻税号与商户 成功返回结果

type AlibabaeinvoicemerchantcreatereqAPIRequest added in v1.3.1

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

AlibabaeinvoicemerchantcreatereqAPIRequest 商家自研ERP开票请求接口 API请求 alibaba.einvoice.merchant.createreq

商家自研ERP发起开票请求,无需授权,API只能使用商家入驻的税号进行开票

func NewAlibabaeinvoicemerchantcreatereqRequest added in v1.3.1

func NewAlibabaeinvoicemerchantcreatereqRequest() *AlibabaeinvoicemerchantcreatereqAPIRequest

NewAlibabaeinvoicemerchantcreatereqRequest 初始化AlibabaeinvoicemerchantcreatereqAPIRequest对象

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetApplyId added in v1.3.1

GetApplyId ApplyId Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetBusinessType added in v1.3.1

GetBusinessType BusinessType Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetErpTid added in v1.3.1

GetErpTid ErpTid Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetInvoiceAmount added in v1.3.1

GetInvoiceAmount InvoiceAmount Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetInvoiceItems added in v1.3.1

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetInvoiceKind added in v1.3.1

GetInvoiceKind InvoiceKind Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetInvoiceMemo added in v1.3.1

GetInvoiceMemo InvoiceMemo Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetInvoiceType added in v1.3.1

GetInvoiceType InvoiceType Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetNormalInvoiceCode added in v1.3.1

func (r AlibabaeinvoicemerchantcreatereqAPIRequest) GetNormalInvoiceCode() string

GetNormalInvoiceCode NormalInvoiceCode Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetNormalInvoiceNo added in v1.3.1

func (r AlibabaeinvoicemerchantcreatereqAPIRequest) GetNormalInvoiceNo() string

GetNormalInvoiceNo NormalInvoiceNo Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeAddress added in v1.3.1

GetPayeeAddress PayeeAddress Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeBankaccount added in v1.3.1

func (r AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeBankaccount() string

GetPayeeBankaccount PayeeBankaccount Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeChecker added in v1.3.1

GetPayeeChecker PayeeChecker Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeName added in v1.3.1

GetPayeeName PayeeName Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeOperator added in v1.3.1

GetPayeeOperator PayeeOperator Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeePhone added in v1.3.1

GetPayeePhone PayeePhone Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeReceiver added in v1.3.1

GetPayeeReceiver PayeeReceiver Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerAddress added in v1.3.1

GetPayerAddress PayerAddress Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerBankaccount added in v1.3.1

func (r AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerBankaccount() string

GetPayerBankaccount PayerBankaccount Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerEmail added in v1.3.1

GetPayerEmail PayerEmail Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerName added in v1.3.1

GetPayerName PayerName Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerPhone added in v1.3.1

GetPayerPhone PayerPhone Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerRegisterNo added in v1.3.1

func (r AlibabaeinvoicemerchantcreatereqAPIRequest) GetPayerRegisterNo() string

GetPayerRegisterNo PayerRegisterNo Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPlatformCode added in v1.3.1

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetPlatformTid added in v1.3.1

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetRedNoticeNo added in v1.3.1

GetRedNoticeNo RedNoticeNo Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (AlibabaeinvoicemerchantcreatereqAPIRequest) GetSumTax added in v1.3.1

GetSumTax SumTax Getter

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetApplyId added in v1.3.1

SetApplyId is ApplyId Setter 开票申请ID,接收了开票申请消息后,需要把apply_id带上

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetBusinessType added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetBusinessType(_businessType int64) error

SetBusinessType is BusinessType Setter 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1;

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetErpTid added in v1.3.1

SetErpTid is ErpTid Setter ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceAmount added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceAmount(_invoiceAmount string) error

SetInvoiceAmount is InvoiceAmount Setter 开票金额; <span style="color:red;font-weight: bold;">当开红票时,该字段为负数</span>

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceItem) error

SetInvoiceItems is InvoiceItems Setter 电子发票明细

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceKind added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceKind(_invoiceKind int64) error

SetInvoiceKind is InvoiceKind Setter 发票种类,0=电子发票,1=纸质发票,2=专票

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceMemo added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceMemo(_invoiceMemo string) error

SetInvoiceMemo is InvoiceMemo Setter 发票备注,有些省市会把此信息打印到PDF中

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceType added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetInvoiceType(_invoiceType string) error

SetInvoiceType is InvoiceType Setter 发票(开票)类型,蓝票blue,红票red,默认blue

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetNormalInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error

SetNormalInvoiceCode is NormalInvoiceCode Setter 原发票代码(开红票时传入)

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetNormalInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error

SetNormalInvoiceNo is NormalInvoiceNo Setter 原发票号码(开红票时传入)

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeAddress added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeAddress(_payeeAddress string) error

SetPayeeAddress is PayeeAddress Setter 开票方地址(新版中为必传)

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeBankaccount added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeBankaccount(_payeeBankaccount string) error

SetPayeeBankaccount is PayeeBankaccount Setter 开票方银行及 帐号

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeChecker added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeChecker(_payeeChecker string) error

SetPayeeChecker is PayeeChecker Setter 复核人

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeName added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeName(_payeeName string) error

SetPayeeName is PayeeName Setter 开票方名称,公司名(如:XX商城)

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeOperator added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeOperator(_payeeOperator string) error

SetPayeeOperator is PayeeOperator Setter 开票人

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeePhone added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeePhone(_payeePhone string) error

SetPayeePhone is PayeePhone Setter 收款方电话

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeReceiver added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeReceiver(_payeeReceiver string) error

SetPayeeReceiver is PayeeReceiver Setter 收款人

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerAddress added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerAddress(_payerAddress string) error

SetPayerAddress is PayerAddress Setter 消费者地址

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerBankaccount added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerBankaccount(_payerBankaccount string) error

SetPayerBankaccount is PayerBankaccount Setter 付款方开票开户银行及账号

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerEmail added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerEmail(_payerEmail string) error

SetPayerEmail is PayerEmail Setter 消费者电子邮箱

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerName added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerName(_payerName string) error

SetPayerName is PayerName Setter 付款方名称, 对应发票台头

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerPhone added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerPhone(_payerPhone string) error

SetPayerPhone is PayerPhone Setter 消费者联系电话

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerRegisterNo added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error

SetPayerRegisterNo is PayerRegisterNo Setter 付款方税务登记证号。对企业开具电子发票时必填。目前北京地区暂未开放对企业开具电子发票,若北京地区放开后,对于向企业开具的情况,付款方税务登记证号和名称也不能为空

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码)

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 电商平台对应的主订单号

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetRedNoticeNo added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetRedNoticeNo(_redNoticeNo string) error

SetRedNoticeNo is RedNoticeNo Setter 红字通知单号,冲红时需要,商家跟税局申请

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。请调用平台统一流水号获取接口,alibaba.einvoice.serialno.generate。

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoicemerchantcreatereqAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 合计金额(新版中为必传) <span style="color:red;font-weight: bold;">当开红票时,该字段为负数</span>

func (*AlibabaeinvoicemerchantcreatereqAPIRequest) SetSumTax added in v1.3.1

SetSumTax is SumTax Setter 合计税额 <span style="color:red;font-weight: bold;">当开红票时,该字段为负数</span>

type AlibabaeinvoicemerchantcreatereqAPIResponse added in v1.3.1

type AlibabaeinvoicemerchantcreatereqAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicemerchantcreatereqAPIResponseModel
}

AlibabaeinvoicemerchantcreatereqAPIResponse 商家自研ERP开票请求接口 API返回值 alibaba.einvoice.merchant.createreq

商家自研ERP发起开票请求,无需授权,API只能使用商家入驻的税号进行开票

type AlibabaeinvoicemerchantcreatereqAPIResponseModel added in v1.3.1

type AlibabaeinvoicemerchantcreatereqAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_merchant_createreq_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票信息是否成功接受
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicemerchantcreatereqAPIResponseModel is 商家自研ERP开票请求接口 成功返回结果

type AlibabaeinvoicemerchantdeleteAPIRequest added in v1.3.1

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

AlibabaeinvoicemerchantdeleteAPIRequest 发票中台-同平台取消授权税号适用商户 API请求 alibaba.einvoice.merchant.delete

税号授权给同平台下其他商户使用后,可以使用此接口取消授权,被取消授权的商户失去开票能力

func NewAlibabaeinvoicemerchantdeleteRequest added in v1.3.1

func NewAlibabaeinvoicemerchantdeleteRequest() *AlibabaeinvoicemerchantdeleteAPIRequest

NewAlibabaeinvoicemerchantdeleteRequest 初始化AlibabaeinvoicemerchantdeleteAPIRequest对象

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicemerchantdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetMerchantUserId added in v1.3.1

func (r AlibabaeinvoicemerchantdeleteAPIRequest) GetMerchantUserId() string

GetMerchantUserId MerchantUserId Getter

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicemerchantdeleteAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetPlatformCode added in v1.3.1

func (r AlibabaeinvoicemerchantdeleteAPIRequest) GetPlatformCode() string

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicemerchantdeleteAPIRequest) GetTaxToken added in v1.3.1

GetTaxToken TaxToken Getter

func (*AlibabaeinvoicemerchantdeleteAPIRequest) SetMerchantUserId added in v1.3.1

func (r *AlibabaeinvoicemerchantdeleteAPIRequest) SetMerchantUserId(_merchantUserId string) error

SetMerchantUserId is MerchantUserId Setter 业务平台商户ID

func (*AlibabaeinvoicemerchantdeleteAPIRequest) SetOuterId added in v1.3.1

func (r *AlibabaeinvoicemerchantdeleteAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 业务方发起删除商户的唯一幂等ID, 由业务方生成。只能由字母和数字组成。

func (*AlibabaeinvoicemerchantdeleteAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicemerchantdeleteAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 税号

func (*AlibabaeinvoicemerchantdeleteAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicemerchantdeleteAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 业务平台code, 由阿里发票分配

func (*AlibabaeinvoicemerchantdeleteAPIRequest) SetTaxToken added in v1.3.1

func (r *AlibabaeinvoicemerchantdeleteAPIRequest) SetTaxToken(_taxToken string) error

SetTaxToken is TaxToken Setter 验证码,商户首次绑定已入驻税号接口返回的taxToken

type AlibabaeinvoicemerchantdeleteAPIResponse added in v1.3.1

type AlibabaeinvoicemerchantdeleteAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicemerchantdeleteAPIResponseModel
}

AlibabaeinvoicemerchantdeleteAPIResponse 发票中台-同平台取消授权税号适用商户 API返回值 alibaba.einvoice.merchant.delete

税号授权给同平台下其他商户使用后,可以使用此接口取消授权,被取消授权的商户失去开票能力

type AlibabaeinvoicemerchantdeleteAPIResponseModel added in v1.3.1

type AlibabaeinvoicemerchantdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_merchant_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 删除成功的业务平台商户ID
	MerchantUserId string `json:"merchant_user_id,omitempty" xml:"merchant_user_id,omitempty"`
}

AlibabaeinvoicemerchantdeleteAPIResponseModel is 发票中台-同平台取消授权税号适用商户 成功返回结果

type AlibabaeinvoicemerchantresultgetAPIRequest added in v1.3.1

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

AlibabaeinvoicemerchantresultgetAPIRequest 商家自研ERP开票结果获取 API请求 alibaba.einvoice.merchant.result.get

商家自研ERP开票结果获取

func NewAlibabaeinvoicemerchantresultgetRequest added in v1.3.1

func NewAlibabaeinvoicemerchantresultgetRequest() *AlibabaeinvoicemerchantresultgetAPIRequest

NewAlibabaeinvoicemerchantresultgetRequest 初始化AlibabaeinvoicemerchantresultgetAPIRequest对象

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicemerchantresultgetAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetPlatformCode added in v1.3.1

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetPlatformTid added in v1.3.1

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicemerchantresultgetAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (*AlibabaeinvoicemerchantresultgetAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicemerchantresultgetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoicemerchantresultgetAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicemerchantresultgetAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 电商平台代码。淘宝:taobao,天猫:tmall

func (*AlibabaeinvoicemerchantresultgetAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoicemerchantresultgetAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 电商平台对应的订单号

func (*AlibabaeinvoicemerchantresultgetAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicemerchantresultgetAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高

type AlibabaeinvoicemerchantresultgetAPIResponse added in v1.3.1

type AlibabaeinvoicemerchantresultgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicemerchantresultgetAPIResponseModel
}

AlibabaeinvoicemerchantresultgetAPIResponse 商家自研ERP开票结果获取 API返回值 alibaba.einvoice.merchant.result.get

商家自研ERP开票结果获取

type AlibabaeinvoicemerchantresultgetAPIResponseModel added in v1.3.1

type AlibabaeinvoicemerchantresultgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_merchant_result_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 开票返回结果数据列表
	InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"`
}

AlibabaeinvoicemerchantresultgetAPIResponseModel is 商家自研ERP开票结果获取 成功返回结果

type AlibabaeinvoiceorderrefundupdateAPIRequest added in v1.3.1

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

AlibabaeinvoiceorderrefundupdateAPIRequest 回传订单退款审核结果 API请求 alibaba.einvoice.order.refund.update

ISV回传订单退款审核结果

func NewAlibabaeinvoiceorderrefundupdateRequest added in v1.3.1

func NewAlibabaeinvoiceorderrefundupdateRequest() *AlibabaeinvoiceorderrefundupdateAPIRequest

NewAlibabaeinvoiceorderrefundupdateRequest 初始化AlibabaeinvoiceorderrefundupdateAPIRequest对象

func (AlibabaeinvoiceorderrefundupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceorderrefundupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceorderrefundupdateAPIRequest) GetOrderRefundResultDto added in v1.3.1

GetOrderRefundResultDto OrderRefundResultDto Getter

func (AlibabaeinvoiceorderrefundupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceorderrefundupdateAPIRequest) SetOrderRefundResultDto added in v1.3.1

func (r *AlibabaeinvoiceorderrefundupdateAPIRequest) SetOrderRefundResultDto(_orderRefundResultDto *InvoiceOrderRefundResultDto) error

SetOrderRefundResultDto is OrderRefundResultDto Setter 退款审核结果DTO

type AlibabaeinvoiceorderrefundupdateAPIResponse added in v1.3.1

type AlibabaeinvoiceorderrefundupdateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceorderrefundupdateAPIResponseModel
}

AlibabaeinvoiceorderrefundupdateAPIResponse 回传订单退款审核结果 API返回值 alibaba.einvoice.order.refund.update

ISV回传订单退款审核结果

type AlibabaeinvoiceorderrefundupdateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceorderrefundupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_order_refund_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceorderrefundupdateAPIResponseModel is 回传订单退款审核结果 成功返回结果

type AlibabaeinvoicepapercommonreturnAPIRequest added in v1.3.1

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

AlibabaeinvoicepapercommonreturnAPIRequest 纸票通用回传接口 API请求 alibaba.einvoice.paper.common.return

纸票通用回传接口(打印回传、注册回传等),只返回成功or失败

func NewAlibabaeinvoicepapercommonreturnRequest added in v1.3.1

func NewAlibabaeinvoicepapercommonreturnRequest() *AlibabaeinvoicepapercommonreturnAPIRequest

NewAlibabaeinvoicepapercommonreturnRequest 初始化AlibabaeinvoicepapercommonreturnAPIRequest对象

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetBizErrorCode added in v1.3.1

GetBizErrorCode BizErrorCode Getter

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetBizErrorMsg added in v1.3.1

GetBizErrorMsg BizErrorMsg Getter

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetExtProps added in v1.3.1

GetExtProps ExtProps Getter

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoicepapercommonreturnAPIRequest) GetSuccess added in v1.3.1

GetSuccess Success Getter

func (*AlibabaeinvoicepapercommonreturnAPIRequest) SetBizErrorCode added in v1.3.1

func (r *AlibabaeinvoicepapercommonreturnAPIRequest) SetBizErrorCode(_bizErrorCode string) error

SetBizErrorCode is BizErrorCode Setter 错误码,success=false时必填

func (*AlibabaeinvoicepapercommonreturnAPIRequest) SetBizErrorMsg added in v1.3.1

func (r *AlibabaeinvoicepapercommonreturnAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error

SetBizErrorMsg is BizErrorMsg Setter 错误信息,success=false时必填

func (*AlibabaeinvoicepapercommonreturnAPIRequest) SetExtProps added in v1.3.1

func (r *AlibabaeinvoicepapercommonreturnAPIRequest) SetExtProps(_extProps string) error

SetExtProps is ExtProps Setter 扩展信息

func (*AlibabaeinvoicepapercommonreturnAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoicepapercommonreturnAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 请求索引

func (*AlibabaeinvoicepapercommonreturnAPIRequest) SetSuccess added in v1.3.1

func (r *AlibabaeinvoicepapercommonreturnAPIRequest) SetSuccess(_success bool) error

SetSuccess is Success Setter 回传结果

type AlibabaeinvoicepapercommonreturnAPIResponse added in v1.3.1

type AlibabaeinvoicepapercommonreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepapercommonreturnAPIResponseModel
}

AlibabaeinvoicepapercommonreturnAPIResponse 纸票通用回传接口 API返回值 alibaba.einvoice.paper.common.return

纸票通用回传接口(打印回传、注册回传等),只返回成功or失败

type AlibabaeinvoicepapercommonreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoicepapercommonreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_paper_common_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 回传接收结果
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicepapercommonreturnAPIResponseModel is 纸票通用回传接口 成功返回结果

type AlibabaeinvoicepaperinvalidAPIRequest added in v1.3.1

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

AlibabaeinvoicepaperinvalidAPIRequest 纸票作废接口 API请求 alibaba.einvoice.paper.invalid

作废一张已开具的纸票,开票日期在当月,产生逆向时作废即可,开票日期跨月则冲红蓝票

func NewAlibabaeinvoicepaperinvalidRequest added in v1.3.1

func NewAlibabaeinvoicepaperinvalidRequest() *AlibabaeinvoicepaperinvalidAPIRequest

NewAlibabaeinvoicepaperinvalidRequest 初始化AlibabaeinvoicepaperinvalidAPIRequest对象

func (AlibabaeinvoicepaperinvalidAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicepaperinvalidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepaperinvalidAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepaperinvalidAPIRequest) GetInvalidOperator added in v1.3.1

func (r AlibabaeinvoicepaperinvalidAPIRequest) GetInvalidOperator() string

GetInvalidOperator InvalidOperator Getter

func (AlibabaeinvoicepaperinvalidAPIRequest) GetInvalidType added in v1.3.1

func (r AlibabaeinvoicepaperinvalidAPIRequest) GetInvalidType() int64

GetInvalidType InvalidType Getter

func (AlibabaeinvoicepaperinvalidAPIRequest) GetInvoiceCode added in v1.3.1

func (r AlibabaeinvoicepaperinvalidAPIRequest) GetInvoiceCode() string

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoicepaperinvalidAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoicepaperinvalidAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicepaperinvalidAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicepaperinvalidAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicepaperinvalidAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (*AlibabaeinvoicepaperinvalidAPIRequest) SetInvalidOperator added in v1.3.1

func (r *AlibabaeinvoicepaperinvalidAPIRequest) SetInvalidOperator(_invalidOperator string) error

SetInvalidOperator is InvalidOperator Setter 作废操作人

func (*AlibabaeinvoicepaperinvalidAPIRequest) SetInvalidType added in v1.3.1

func (r *AlibabaeinvoicepaperinvalidAPIRequest) SetInvalidType(_invalidType int64) error

SetInvalidType is InvalidType Setter 作废类型, 0=空白发票(有残缺 的纸张发票,不能做为有效报销)作废, 1=已开发票作废

func (*AlibabaeinvoicepaperinvalidAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicepaperinvalidAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码,空白作废时必填

func (*AlibabaeinvoicepaperinvalidAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicepaperinvalidAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码,空白作废时必填

func (*AlibabaeinvoicepaperinvalidAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicepaperinvalidAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销售方纳税人识别号

func (*AlibabaeinvoicepaperinvalidAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicepaperinvalidAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 开票流水号

type AlibabaeinvoicepaperinvalidAPIResponse added in v1.3.1

type AlibabaeinvoicepaperinvalidAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepaperinvalidAPIResponseModel
}

AlibabaeinvoicepaperinvalidAPIResponse 纸票作废接口 API返回值 alibaba.einvoice.paper.invalid

作废一张已开具的纸票,开票日期在当月,产生逆向时作废即可,开票日期跨月则冲红蓝票

type AlibabaeinvoicepaperinvalidAPIResponseModel added in v1.3.1

type AlibabaeinvoicepaperinvalidAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_paper_invalid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口调用是否成功,操作结果tmc异步返回alibaba_invoice_PaperOpsReturn
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicepaperinvalidAPIResponseModel is 纸票作废接口 成功返回结果

type AlibabaeinvoicepaperprintAPIRequest added in v1.3.1

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

AlibabaeinvoicepaperprintAPIRequest 纸票打印接口 API请求 alibaba.einvoice.paper.print

打印一张已开具成功的纸票

func NewAlibabaeinvoicepaperprintRequest added in v1.3.1

func NewAlibabaeinvoicepaperprintRequest() *AlibabaeinvoicepaperprintAPIRequest

NewAlibabaeinvoicepaperprintRequest 初始化AlibabaeinvoicepaperprintAPIRequest对象

func (AlibabaeinvoicepaperprintAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicepaperprintAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepaperprintAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepaperprintAPIRequest) GetDialogSettingFlag added in v1.3.1

func (r AlibabaeinvoicepaperprintAPIRequest) GetDialogSettingFlag() int64

GetDialogSettingFlag DialogSettingFlag Getter

func (AlibabaeinvoicepaperprintAPIRequest) GetForcePrint added in v1.3.1

func (r AlibabaeinvoicepaperprintAPIRequest) GetForcePrint() bool

GetForcePrint ForcePrint Getter

func (AlibabaeinvoicepaperprintAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicepaperprintAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicepaperprintAPIRequest) GetPrintFlag added in v1.3.1

func (r AlibabaeinvoicepaperprintAPIRequest) GetPrintFlag() int64

GetPrintFlag PrintFlag Getter

func (AlibabaeinvoicepaperprintAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicepaperprintAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (*AlibabaeinvoicepaperprintAPIRequest) SetDialogSettingFlag added in v1.3.1

func (r *AlibabaeinvoicepaperprintAPIRequest) SetDialogSettingFlag(_dialogSettingFlag int64) error

SetDialogSettingFlag is DialogSettingFlag Setter 打印框设置,0=不弹打印设置框,1=弹出打印设置框

func (*AlibabaeinvoicepaperprintAPIRequest) SetForcePrint added in v1.3.1

func (r *AlibabaeinvoicepaperprintAPIRequest) SetForcePrint(_forcePrint bool) error

SetForcePrint is ForcePrint Setter 是否强制打印,一般发票只能打印一次,但是因为打印机发票号码与待打印发票号码不一致,导致打印错误,需要重新打印

func (*AlibabaeinvoicepaperprintAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicepaperprintAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销售方纳税人识别号

func (*AlibabaeinvoicepaperprintAPIRequest) SetPrintFlag added in v1.3.1

func (r *AlibabaeinvoicepaperprintAPIRequest) SetPrintFlag(_printFlag int64) error

SetPrintFlag is PrintFlag Setter 打印标记,0=打印发票;1=打印清单。发票明细超过8行时会生成清单页,需要打印清单。

func (*AlibabaeinvoicepaperprintAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicepaperprintAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 开票流水号

type AlibabaeinvoicepaperprintAPIResponse added in v1.3.1

type AlibabaeinvoicepaperprintAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepaperprintAPIResponseModel
}

AlibabaeinvoicepaperprintAPIResponse 纸票打印接口 API返回值 alibaba.einvoice.paper.print

打印一张已开具成功的纸票

type AlibabaeinvoicepaperprintAPIResponseModel added in v1.3.1

type AlibabaeinvoicepaperprintAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_paper_print_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 调用结果,打印结果tmc消息alibaba_invoice_PaperOpsReturn异步通知
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicepaperprintAPIResponseModel is 纸票打印接口 成功返回结果

type AlibabaeinvoicepaperreturnAPIRequest added in v1.3.1

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

AlibabaeinvoicepaperreturnAPIRequest 纸质发票结果回传 API请求 alibaba.einvoice.paper.return

纸质发票结果回传

func NewAlibabaeinvoicepaperreturnRequest added in v1.3.1

func NewAlibabaeinvoicepaperreturnRequest() *AlibabaeinvoicepaperreturnAPIRequest

NewAlibabaeinvoicepaperreturnRequest 初始化AlibabaeinvoicepaperreturnAPIRequest对象

func (AlibabaeinvoicepaperreturnAPIRequest) GetAntiFakeCode added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetAntiFakeCode() string

GetAntiFakeCode AntiFakeCode Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepaperreturnAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepaperreturnAPIRequest) GetBizErrorCode added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetBizErrorCode() string

GetBizErrorCode BizErrorCode Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetBizErrorMsg added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetBizErrorMsg() string

GetBizErrorMsg BizErrorMsg Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetCiphertext added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetCiphertext() string

GetCiphertext Ciphertext Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetCreateResult added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetCreateResult() string

GetCreateResult CreateResult Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetDeviceNo added in v1.3.1

GetDeviceNo DeviceNo Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetInvoiceCode added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetInvoiceCode() string

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetInvoiceDate added in v1.3.1

func (r AlibabaeinvoicepaperreturnAPIRequest) GetInvoiceDate() string

GetInvoiceDate InvoiceDate Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoicepaperreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicepaperreturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (*AlibabaeinvoicepaperreturnAPIRequest) SetAntiFakeCode added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetAntiFakeCode(_antiFakeCode string) error

SetAntiFakeCode is AntiFakeCode Setter 防伪码

func (*AlibabaeinvoicepaperreturnAPIRequest) SetBizErrorCode added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetBizErrorCode(_bizErrorCode string) error

SetBizErrorCode is BizErrorCode Setter 错误码

func (*AlibabaeinvoicepaperreturnAPIRequest) SetBizErrorMsg added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error

SetBizErrorMsg is BizErrorMsg Setter 错误信息

func (*AlibabaeinvoicepaperreturnAPIRequest) SetCiphertext added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetCiphertext(_ciphertext string) error

SetCiphertext is Ciphertext Setter 发票密文,密码区的字符串

func (*AlibabaeinvoicepaperreturnAPIRequest) SetCreateResult added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetCreateResult(_createResult string) error

SetCreateResult is CreateResult Setter 开票结果"success"或者"fail"

func (*AlibabaeinvoicepaperreturnAPIRequest) SetDeviceNo added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetDeviceNo(_deviceNo string) error

SetDeviceNo is DeviceNo Setter 税控设备编号(新版电子发票有)

func (*AlibabaeinvoicepaperreturnAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码

func (*AlibabaeinvoicepaperreturnAPIRequest) SetInvoiceDate added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetInvoiceDate(_invoiceDate string) error

SetInvoiceDate is InvoiceDate Setter 发票日期

func (*AlibabaeinvoicepaperreturnAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码

func (*AlibabaeinvoicepaperreturnAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoicepaperreturnAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 开票请求的唯一索引

type AlibabaeinvoicepaperreturnAPIResponse added in v1.3.1

type AlibabaeinvoicepaperreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepaperreturnAPIResponseModel
}

AlibabaeinvoicepaperreturnAPIResponse 纸质发票结果回传 API返回值 alibaba.einvoice.paper.return

纸质发票结果回传

type AlibabaeinvoicepaperreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoicepaperreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_paper_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务端接收开票回传数据的结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicepaperreturnAPIResponseModel is 纸质发票结果回传 成功返回结果

type AlibabaeinvoicepartnerreturnAPIRequest added in v1.3.1

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

AlibabaeinvoicepartnerreturnAPIRequest 开票商回传开票结果 API请求 alibaba.einvoice.partner.return

开票商返回开票结果数据

func NewAlibabaeinvoicepartnerreturnRequest added in v1.3.1

func NewAlibabaeinvoicepartnerreturnRequest() *AlibabaeinvoicepartnerreturnAPIRequest

NewAlibabaeinvoicepartnerreturnRequest 初始化AlibabaeinvoicepartnerreturnAPIRequest对象

func (AlibabaeinvoicepartnerreturnAPIRequest) GetAntiFakeCode added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetAntiFakeCode() string

GetAntiFakeCode AntiFakeCode Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepartnerreturnAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepartnerreturnAPIRequest) GetBizErrorCode added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetBizErrorCode() string

GetBizErrorCode BizErrorCode Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetBizErrorMsg added in v1.3.1

GetBizErrorMsg BizErrorMsg Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetCiphertext added in v1.3.1

GetCiphertext Ciphertext Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetCreateResult added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetCreateResult() string

GetCreateResult CreateResult Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetDeviceNo added in v1.3.1

GetDeviceNo DeviceNo Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetErpTid added in v1.3.1

GetErpTid ErpTid Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetFileDataType added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetFileDataType() string

GetFileDataType FileDataType Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceAmount added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceAmount() string

GetInvoiceAmount InvoiceAmount Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceCode added in v1.3.1

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceDate added in v1.3.1

GetInvoiceDate InvoiceDate Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceFileData added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceFileData() *model.File

GetInvoiceFileData InvoiceFileData Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetInvoiceTime added in v1.3.1

GetInvoiceTime InvoiceTime Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetPlatformCode added in v1.3.1

func (r AlibabaeinvoicepartnerreturnAPIRequest) GetPlatformCode() string

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetPlatformTid added in v1.3.1

GetPlatformTid PlatformTid Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetQrCode added in v1.3.1

GetQrCode QrCode Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicepartnerreturnAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoicepartnerreturnAPIRequest) GetSerialNo added in v1.3.1

GetSerialNo SerialNo Getter

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetAntiFakeCode added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetAntiFakeCode(_antiFakeCode string) error

SetAntiFakeCode is AntiFakeCode Setter 防伪码

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetBizErrorCode added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetBizErrorCode(_bizErrorCode string) error

SetBizErrorCode is BizErrorCode Setter 错误码

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetBizErrorMsg added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error

SetBizErrorMsg is BizErrorMsg Setter 错误信息

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetCiphertext added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetCiphertext(_ciphertext string) error

SetCiphertext is Ciphertext Setter 发票密文,密码区的字符串

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetCreateResult added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetCreateResult(_createResult string) error

SetCreateResult is CreateResult Setter 开票结果"success"或者"fail"

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetDeviceNo added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetDeviceNo(_deviceNo string) error

SetDeviceNo is DeviceNo Setter 税控设备编号(新版电子发票有)

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetErpTid added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetErpTid(_erpTid string) error

SetErpTid is ErpTid Setter erp自定义单据号

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetFileDataType added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetFileDataType(_fileDataType string) error

SetFileDataType is FileDataType Setter 文件类型(pdf,jpg,png)

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceAmount added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceAmount(_invoiceAmount string) error

SetInvoiceAmount is InvoiceAmount Setter 开票金额

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceDate added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceDate(_invoiceDate string) error

SetInvoiceDate is InvoiceDate Setter 发票日期

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceFileData added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceFileData(_invoiceFileData *model.File) error

SetInvoiceFileData is InvoiceFileData Setter 发票文件PDF内容,PDF的byte[]字段串。

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceTime added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetInvoiceTime(_invoiceTime string) error

SetInvoiceTime is InvoiceTime Setter 开票时间,格式为HH:mm:ss

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 电商平台身份标识码,TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码)

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetPlatformTid added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetPlatformTid(_platformTid string) error

SetPlatformTid is PlatformTid Setter 电商平台对应的订单号

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetQrCode added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetQrCode(_qrCode string) error

SetQrCode is QrCode Setter 二维码

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 开票请求的唯一索引

func (*AlibabaeinvoicepartnerreturnAPIRequest) SetSerialNo added in v1.3.1

func (r *AlibabaeinvoicepartnerreturnAPIRequest) SetSerialNo(_serialNo string) error

SetSerialNo is SerialNo Setter 流水号

type AlibabaeinvoicepartnerreturnAPIResponse added in v1.3.1

type AlibabaeinvoicepartnerreturnAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepartnerreturnAPIResponseModel
}

AlibabaeinvoicepartnerreturnAPIResponse 开票商回传开票结果 API返回值 alibaba.einvoice.partner.return

开票商返回开票结果数据

type AlibabaeinvoicepartnerreturnAPIResponseModel added in v1.3.1

type AlibabaeinvoicepartnerreturnAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_partner_return_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务端接收开票回传数据的结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicepartnerreturnAPIResponseModel is 开票商回传开票结果 成功返回结果

type AlibabaeinvoicepartneruploadAPIRequest added in v1.3.1

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

AlibabaeinvoicepartneruploadAPIRequest 服务商发票上传接口(非授权) API请求 alibaba.einvoice.partner.upload

服务商发票上传接口(非授权)

func NewAlibabaeinvoicepartneruploadRequest added in v1.3.1

func NewAlibabaeinvoicepartneruploadRequest() *AlibabaeinvoicepartneruploadAPIRequest

NewAlibabaeinvoicepartneruploadRequest 初始化AlibabaeinvoicepartneruploadAPIRequest对象

func (AlibabaeinvoicepartneruploadAPIRequest) GetAntiFakeCode added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetAntiFakeCode() string

GetAntiFakeCode AntiFakeCode Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepartneruploadAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepartneruploadAPIRequest) GetCipherText added in v1.3.1

GetCipherText CipherText Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetDeviceNo added in v1.3.1

GetDeviceNo DeviceNo Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetFileDataType added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetFileDataType() string

GetFileDataType FileDataType Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceCode added in v1.3.1

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceDate added in v1.3.1

GetInvoiceDate InvoiceDate Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceFileData added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceFileData() *model.File

GetInvoiceFileData InvoiceFileData Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceKind added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceKind() int64

GetInvoiceKind InvoiceKind Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetNormalInvoiceCode added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetNormalInvoiceCode() string

GetNormalInvoiceCode NormalInvoiceCode Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetNormalInvoiceNo added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetNormalInvoiceNo() string

GetNormalInvoiceNo NormalInvoiceNo Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoicepartneruploadAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicepartneruploadAPIRequest) GetReqIndex added in v1.3.1

GetReqIndex ReqIndex Getter

func (AlibabaeinvoicepartneruploadAPIRequest) GetUploadType added in v1.3.1

GetUploadType UploadType Getter

func (*AlibabaeinvoicepartneruploadAPIRequest) SetAntiFakeCode added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetAntiFakeCode(_antiFakeCode string) error

SetAntiFakeCode is AntiFakeCode Setter 校验码

func (*AlibabaeinvoicepartneruploadAPIRequest) SetCipherText added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetCipherText(_cipherText string) error

SetCipherText is CipherText Setter 密码区

func (*AlibabaeinvoicepartneruploadAPIRequest) SetDeviceNo added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetDeviceNo(_deviceNo string) error

SetDeviceNo is DeviceNo Setter 机器编号

func (*AlibabaeinvoicepartneruploadAPIRequest) SetFileDataType added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetFileDataType(_fileDataType string) error

SetFileDataType is FileDataType Setter 发票类型,upload_type=0且invoiceKind=0电子发票时必填,暂时只支持pdf

func (*AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码,upload_type=0时必填

func (*AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceDate added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceDate(_invoiceDate string) error

SetInvoiceDate is InvoiceDate Setter 开票日期,upload_type=0时必填

func (*AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceFileData added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceFileData(_invoiceFileData *model.File) error

SetInvoiceFileData is InvoiceFileData Setter 发票数据,upload_type=0且invoiceKind=0电子发票时必填

func (*AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceKind added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceKind(_invoiceKind int64) error

SetInvoiceKind is InvoiceKind Setter 发票种类,0=电子发票,1=纸质普票,2=纸质专票

func (*AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码,upload_type=0时必填

func (*AlibabaeinvoicepartneruploadAPIRequest) SetNormalInvoiceCode added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error

SetNormalInvoiceCode is NormalInvoiceCode Setter 原蓝票发票代码

func (*AlibabaeinvoicepartneruploadAPIRequest) SetNormalInvoiceNo added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error

SetNormalInvoiceNo is NormalInvoiceNo Setter 原蓝票发票号码

func (*AlibabaeinvoicepartneruploadAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销方税号

func (*AlibabaeinvoicepartneruploadAPIRequest) SetReqIndex added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetReqIndex(_reqIndex string) error

SetReqIndex is ReqIndex Setter 原蓝票的reqIndex

func (*AlibabaeinvoicepartneruploadAPIRequest) SetUploadType added in v1.3.1

func (r *AlibabaeinvoicepartneruploadAPIRequest) SetUploadType(_uploadType int64) error

SetUploadType is UploadType Setter 上传的类型,0=冲红上传,1=作废上传

type AlibabaeinvoicepartneruploadAPIResponse added in v1.3.1

type AlibabaeinvoicepartneruploadAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepartneruploadAPIResponseModel
}

AlibabaeinvoicepartneruploadAPIResponse 服务商发票上传接口(非授权) API返回值 alibaba.einvoice.partner.upload

服务商发票上传接口(非授权)

type AlibabaeinvoicepartneruploadAPIResponseModel added in v1.3.1

type AlibabaeinvoicepartneruploadAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_partner_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 上传结果
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicepartneruploadAPIResponseModel is 服务商发票上传接口(非授权) 成功返回结果

type AlibabaeinvoicepayoutgetAPIRequest added in v1.3.1

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

AlibabaeinvoicepayoutgetAPIRequest 获取赔付计时列表数据 API请求 alibaba.einvoice.payout.get

获取赔付计时列表数据

func NewAlibabaeinvoicepayoutgetRequest added in v1.3.1

func NewAlibabaeinvoicepayoutgetRequest() *AlibabaeinvoicepayoutgetAPIRequest

NewAlibabaeinvoicepayoutgetRequest 初始化AlibabaeinvoicepayoutgetAPIRequest对象

func (AlibabaeinvoicepayoutgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicepayoutgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicepayoutgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicepayoutgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (AlibabaeinvoicepayoutgetAPIRequest) GetPageSize added in v1.3.1

func (r AlibabaeinvoicepayoutgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (AlibabaeinvoicepayoutgetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicepayoutgetAPIRequest) SetPageNo added in v1.3.1

func (r *AlibabaeinvoicepayoutgetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 当前页码

func (*AlibabaeinvoicepayoutgetAPIRequest) SetPageSize added in v1.3.1

func (r *AlibabaeinvoicepayoutgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页大小,最大50

type AlibabaeinvoicepayoutgetAPIResponse added in v1.3.1

type AlibabaeinvoicepayoutgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicepayoutgetAPIResponseModel
}

AlibabaeinvoicepayoutgetAPIResponse 获取赔付计时列表数据 API返回值 alibaba.einvoice.payout.get

获取赔付计时列表数据

type AlibabaeinvoicepayoutgetAPIResponseModel added in v1.3.1

type AlibabaeinvoicepayoutgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_payout_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *OrderRightsResult `json:"result,omitempty" xml:"result,omitempty"`
	// 查询结果
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoicepayoutgetAPIResponseModel is 获取赔付计时列表数据 成功返回结果

type AlibabaeinvoiceprodapplyAPIRequest added in v1.3.1

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

AlibabaeinvoiceprodapplyAPIRequest 提交发票申请 API请求 alibaba.einvoice.prod.apply

提交开票申请,如果商户授权自动开票则自动转开票,否则等待商户审核。

func NewAlibabaeinvoiceprodapplyRequest added in v1.3.1

func NewAlibabaeinvoiceprodapplyRequest() *AlibabaeinvoiceprodapplyAPIRequest

NewAlibabaeinvoiceprodapplyRequest 初始化AlibabaeinvoiceprodapplyAPIRequest对象

func (AlibabaeinvoiceprodapplyAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceprodapplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceprodapplyAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceprodapplyAPIRequest) GetParamInvoiceApplyDto added in v1.3.1

func (r AlibabaeinvoiceprodapplyAPIRequest) GetParamInvoiceApplyDto() *InvoiceApplyDto

GetParamInvoiceApplyDto ParamInvoiceApplyDto Getter

func (AlibabaeinvoiceprodapplyAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceprodapplyAPIRequest) SetParamInvoiceApplyDto added in v1.3.1

func (r *AlibabaeinvoiceprodapplyAPIRequest) SetParamInvoiceApplyDto(_paramInvoiceApplyDto *InvoiceApplyDto) error

SetParamInvoiceApplyDto is ParamInvoiceApplyDto Setter 申请开票请求

type AlibabaeinvoiceprodapplyAPIResponse added in v1.3.1

type AlibabaeinvoiceprodapplyAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceprodapplyAPIResponseModel
}

AlibabaeinvoiceprodapplyAPIResponse 提交发票申请 API返回值 alibaba.einvoice.prod.apply

提交开票申请,如果商户授权自动开票则自动转开票,否则等待商户审核。

type AlibabaeinvoiceprodapplyAPIResponseModel added in v1.3.1

type AlibabaeinvoiceprodapplyAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_prod_apply_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// alinkappserver系统返回的通用结果类
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceprodapplyAPIResponseModel is 提交发票申请 成功返回结果

type AlibabaeinvoiceprodapplygetAPIRequest added in v1.3.1

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

AlibabaeinvoiceprodapplygetAPIRequest 查询发票申请 API请求 alibaba.einvoice.prod.apply.get

查询申请的详细信息,包含申请所关联的发票摘要信息+板式文件+预览图; 场景使用:1、业务前台收到申请状态变更消息后,调用此接口查询申请详情;2、主动补偿查询:当指定了自动开票,且发票申请长时间未收到状态变更通知时,可能存在丢消息的情况,此时可主动查询该申请,然后更新本地工单状态。

func NewAlibabaeinvoiceprodapplygetRequest added in v1.3.1

func NewAlibabaeinvoiceprodapplygetRequest() *AlibabaeinvoiceprodapplygetAPIRequest

NewAlibabaeinvoiceprodapplygetRequest 初始化AlibabaeinvoiceprodapplygetAPIRequest对象

func (AlibabaeinvoiceprodapplygetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceprodapplygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceprodapplygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceprodapplygetAPIRequest) GetInvoiceApplyQueryDto added in v1.3.1

GetInvoiceApplyQueryDto InvoiceApplyQueryDto Getter

func (AlibabaeinvoiceprodapplygetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceprodapplygetAPIRequest) SetInvoiceApplyQueryDto added in v1.3.1

func (r *AlibabaeinvoiceprodapplygetAPIRequest) SetInvoiceApplyQueryDto(_invoiceApplyQueryDto *InvoiceApplyDtlQueryDto) error

SetInvoiceApplyQueryDto is InvoiceApplyQueryDto Setter 查询申请请求

type AlibabaeinvoiceprodapplygetAPIResponse added in v1.3.1

type AlibabaeinvoiceprodapplygetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceprodapplygetAPIResponseModel
}

AlibabaeinvoiceprodapplygetAPIResponse 查询发票申请 API返回值 alibaba.einvoice.prod.apply.get

查询申请的详细信息,包含申请所关联的发票摘要信息+板式文件+预览图; 场景使用:1、业务前台收到申请状态变更消息后,调用此接口查询申请详情;2、主动补偿查询:当指定了自动开票,且发票申请长时间未收到状态变更通知时,可能存在丢消息的情况,此时可主动查询该申请,然后更新本地工单状态。

type AlibabaeinvoiceprodapplygetAPIResponseModel added in v1.3.1

type AlibabaeinvoiceprodapplygetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_prod_apply_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统返回的通用结果类
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceprodapplygetAPIResponseModel is 查询发票申请 成功返回结果

type AlibabaeinvoiceprodresultfileurlgetAPIRequest added in v1.3.1

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

AlibabaeinvoiceprodresultfileurlgetAPIRequest 发票中台-发票文件下载地址查询 API请求 alibaba.einvoice.prod.result.fileurl.get

发票文件下载地址查询,外部ISV通过该接口可以查对应发票文件

func NewAlibabaeinvoiceprodresultfileurlgetRequest added in v1.3.1

func NewAlibabaeinvoiceprodresultfileurlgetRequest() *AlibabaeinvoiceprodresultfileurlgetAPIRequest

NewAlibabaeinvoiceprodresultfileurlgetRequest 初始化AlibabaeinvoiceprodresultfileurlgetAPIRequest对象

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetFileType added in v1.3.1

GetFileType FileType Getter

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetInvoiceCode added in v1.3.1

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetPlatformCode added in v1.3.1

GetPlatformCode PlatformCode Getter

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetPlatformUserId added in v1.3.1

GetPlatformUserId PlatformUserId Getter

func (AlibabaeinvoiceprodresultfileurlgetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetFileType added in v1.3.1

SetFileType is FileType Setter 发票文件类型,小写,pdf/ofd/jpg

func (*AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 发票代码

func (*AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 发票号码

func (*AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetPlatformCode added in v1.3.1

func (r *AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetPlatformCode(_platformCode string) error

SetPlatformCode is PlatformCode Setter 业务平台code, 由发票中台分配

func (*AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetPlatformUserId added in v1.3.1

func (r *AlibabaeinvoiceprodresultfileurlgetAPIRequest) SetPlatformUserId(_platformUserId string) error

SetPlatformUserId is PlatformUserId Setter 业务平台商户ID/卖家用户ID

type AlibabaeinvoiceprodresultfileurlgetAPIResponse added in v1.3.1

type AlibabaeinvoiceprodresultfileurlgetAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceprodresultfileurlgetAPIResponseModel
}

AlibabaeinvoiceprodresultfileurlgetAPIResponse 发票中台-发票文件下载地址查询 API返回值 alibaba.einvoice.prod.result.fileurl.get

发票文件下载地址查询,外部ISV通过该接口可以查对应发票文件

type AlibabaeinvoiceprodresultfileurlgetAPIResponseModel added in v1.3.1

type AlibabaeinvoiceprodresultfileurlgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_prod_result_fileurl_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 发票版式文件下载地址。下载链接是一次性链接,有效期1天。请发票文件下载后本地保存, 若异常导致需要再次下载文件,请再次请求接口获取。
	FileDownloadUrl string `json:"file_download_url,omitempty" xml:"file_download_url,omitempty"`
}

AlibabaeinvoiceprodresultfileurlgetAPIResponseModel is 发票中台-发票文件下载地址查询 成功返回结果

type AlibabaeinvoiceqrcodecreateAPIRequest added in v1.3.1

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

AlibabaeinvoiceqrcodecreateAPIRequest 扫码开票二维码生成 API请求 alibaba.einvoice.qrcode.create

扫码开票功能中的二维码生成接口,pos机等发起请求生成二维码

func NewAlibabaeinvoiceqrcodecreateRequest added in v1.3.1

func NewAlibabaeinvoiceqrcodecreateRequest() *AlibabaeinvoiceqrcodecreateAPIRequest

NewAlibabaeinvoiceqrcodecreateRequest 初始化AlibabaeinvoiceqrcodecreateAPIRequest对象

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceqrcodecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetHeight added in v1.3.1

GetHeight Height Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetInvoiceItems added in v1.3.1

func (r AlibabaeinvoiceqrcodecreateAPIRequest) GetInvoiceItems() []BillItemDo

GetInvoiceItems InvoiceItems Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetOrderId added in v1.3.1

GetOrderId OrderId Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoiceqrcodecreateAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetPlatform added in v1.3.1

GetPlatform Platform Getter

GetQrLogo QrLogo Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetQrType added in v1.3.1

GetQrType QrType Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetSourceId added in v1.3.1

GetSourceId SourceId Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetSumPrice added in v1.3.1

GetSumPrice SumPrice Getter

func (AlibabaeinvoiceqrcodecreateAPIRequest) GetWidth added in v1.3.1

GetWidth Width Getter

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetHeight added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetHeight(_height int64) error

SetHeight is Height Setter 二维码图片高度,默认=450

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetInvoiceItems added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetInvoiceItems(_invoiceItems []BillItemDo) error

SetInvoiceItems is InvoiceItems Setter 发票商品明细

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetOrderId added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetOrderId(_orderId string) error

SetOrderId is OrderId Setter 开票的订单号,同结算单订单号

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 收款方税务登记证号

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetPlatform added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetPlatform(_platform string) error

SetPlatform is Platform Setter 请求方ERP系统平台,同结算单同步的platform,不填默认=platform

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetQrLogo(_qrLogo string) error

SetQrLogo is QrLogo Setter 二维码图片中间的logo

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetQrType added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetQrType(_qrType int64) error

SetQrType is QrType Setter 二维码返回类型:1=二维码背后的URL,2=二维码图片CDN URL,3=二维码二进制数据流

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetSourceId added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetSourceId(_sourceId string) error

SetSourceId is SourceId Setter 请求方唯一标识ID,例如POS机编码

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetSumPrice added in v1.3.1

func (r *AlibabaeinvoiceqrcodecreateAPIRequest) SetSumPrice(_sumPrice string) error

SetSumPrice is SumPrice Setter 开票金额

func (*AlibabaeinvoiceqrcodecreateAPIRequest) SetWidth added in v1.3.1

SetWidth is Width Setter 二维码图片宽度,默认=450

type AlibabaeinvoiceqrcodecreateAPIResponse added in v1.3.1

type AlibabaeinvoiceqrcodecreateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceqrcodecreateAPIResponseModel
}

AlibabaeinvoiceqrcodecreateAPIResponse 扫码开票二维码生成 API返回值 alibaba.einvoice.qrcode.create

扫码开票功能中的二维码生成接口,pos机等发起请求生成二维码

type AlibabaeinvoiceqrcodecreateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceqrcodecreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_qrcode_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *AlibabaeinvoiceqrcodecreateResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceqrcodecreateAPIResponseModel is 扫码开票二维码生成 成功返回结果

type AlibabaeinvoiceqrcodecreateResultSet added in v1.3.1

type AlibabaeinvoiceqrcodecreateResultSet struct {
	// errorMessage
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// result
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
}

AlibabaeinvoiceqrcodecreateResultSet 结构体

type AlibabaeinvoiceredcreatereqAPIRequest added in v1.3.1

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

AlibabaeinvoiceredcreatereqAPIRequest 发票冲红接口 API请求 alibaba.einvoice.red.createreq

发票冲红接口,通过蓝票流水号或者发票号码+发票代码进行冲红

func NewAlibabaeinvoiceredcreatereqRequest added in v1.3.1

func NewAlibabaeinvoiceredcreatereqRequest() *AlibabaeinvoiceredcreatereqAPIRequest

NewAlibabaeinvoiceredcreatereqRequest 初始化AlibabaeinvoiceredcreatereqAPIRequest对象

func (AlibabaeinvoiceredcreatereqAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceredcreatereqAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceredcreatereqAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceredcreatereqAPIRequest) GetBlueSerialNo added in v1.3.1

func (r AlibabaeinvoiceredcreatereqAPIRequest) GetBlueSerialNo() string

GetBlueSerialNo BlueSerialNo Getter

func (AlibabaeinvoiceredcreatereqAPIRequest) GetInvoiceCode added in v1.3.1

func (r AlibabaeinvoiceredcreatereqAPIRequest) GetInvoiceCode() string

GetInvoiceCode InvoiceCode Getter

func (AlibabaeinvoiceredcreatereqAPIRequest) GetInvoiceNo added in v1.3.1

GetInvoiceNo InvoiceNo Getter

func (AlibabaeinvoiceredcreatereqAPIRequest) GetPayeeRegisterNo added in v1.3.1

func (r AlibabaeinvoiceredcreatereqAPIRequest) GetPayeeRegisterNo() string

GetPayeeRegisterNo PayeeRegisterNo Getter

func (AlibabaeinvoiceredcreatereqAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoiceredcreatereqAPIRequest) GetRedSerialNo added in v1.3.1

func (r AlibabaeinvoiceredcreatereqAPIRequest) GetRedSerialNo() string

GetRedSerialNo RedSerialNo Getter

func (*AlibabaeinvoiceredcreatereqAPIRequest) SetBlueSerialNo added in v1.3.1

func (r *AlibabaeinvoiceredcreatereqAPIRequest) SetBlueSerialNo(_blueSerialNo string) error

SetBlueSerialNo is BlueSerialNo Setter 蓝票流水号,优先级高于发票代码+发票号码

func (*AlibabaeinvoiceredcreatereqAPIRequest) SetInvoiceCode added in v1.3.1

func (r *AlibabaeinvoiceredcreatereqAPIRequest) SetInvoiceCode(_invoiceCode string) error

SetInvoiceCode is InvoiceCode Setter 蓝票发票代码

func (*AlibabaeinvoiceredcreatereqAPIRequest) SetInvoiceNo added in v1.3.1

func (r *AlibabaeinvoiceredcreatereqAPIRequest) SetInvoiceNo(_invoiceNo string) error

SetInvoiceNo is InvoiceNo Setter 蓝票发票号码

func (*AlibabaeinvoiceredcreatereqAPIRequest) SetPayeeRegisterNo added in v1.3.1

func (r *AlibabaeinvoiceredcreatereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error

SetPayeeRegisterNo is PayeeRegisterNo Setter 销售方税号

func (*AlibabaeinvoiceredcreatereqAPIRequest) SetRedSerialNo added in v1.3.1

func (r *AlibabaeinvoiceredcreatereqAPIRequest) SetRedSerialNo(_redSerialNo string) error

SetRedSerialNo is RedSerialNo Setter 红票流水号

type AlibabaeinvoiceredcreatereqAPIResponse added in v1.3.1

type AlibabaeinvoiceredcreatereqAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceredcreatereqAPIResponseModel
}

AlibabaeinvoiceredcreatereqAPIResponse 发票冲红接口 API返回值 alibaba.einvoice.red.createreq

发票冲红接口,通过蓝票流水号或者发票号码+发票代码进行冲红

type AlibabaeinvoiceredcreatereqAPIResponseModel added in v1.3.1

type AlibabaeinvoiceredcreatereqAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_red_createreq_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否冲红成功
	IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaeinvoiceredcreatereqAPIResponseModel is 发票冲红接口 成功返回结果

type AlibabaeinvoiceserialnobatchgenerateAPIRequest added in v1.3.1

type AlibabaeinvoiceserialnobatchgenerateAPIRequest struct {
	model.Params
}

AlibabaeinvoiceserialnobatchgenerateAPIRequest 开票流水号批量生成接口 API请求 alibaba.einvoice.serialno.batch.generate

批量获取开票流水号接口。此接口1次返回1000条开票流水号,每个应用每天限流1000次调用。 优先使用alibaba.einvoice.serial.generate。

func NewAlibabaeinvoiceserialnobatchgenerateRequest added in v1.3.1

func NewAlibabaeinvoiceserialnobatchgenerateRequest() *AlibabaeinvoiceserialnobatchgenerateAPIRequest

NewAlibabaeinvoiceserialnobatchgenerateRequest 初始化AlibabaeinvoiceserialnobatchgenerateAPIRequest对象

func (AlibabaeinvoiceserialnobatchgenerateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceserialnobatchgenerateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceserialnobatchgenerateAPIRequest) GetRawParams added in v1.3.1

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

type AlibabaeinvoiceserialnobatchgenerateAPIResponse added in v1.3.1

type AlibabaeinvoiceserialnobatchgenerateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceserialnobatchgenerateAPIResponseModel
}

AlibabaeinvoiceserialnobatchgenerateAPIResponse 开票流水号批量生成接口 API返回值 alibaba.einvoice.serialno.batch.generate

批量获取开票流水号接口。此接口1次返回1000条开票流水号,每个应用每天限流1000次调用。 优先使用alibaba.einvoice.serial.generate。

type AlibabaeinvoiceserialnobatchgenerateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceserialnobatchgenerateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_serialno_batch_generate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	SerialNoList []string `json:"serial_no_list,omitempty" xml:"serial_no_list>string,omitempty"`
}

AlibabaeinvoiceserialnobatchgenerateAPIResponseModel is 开票流水号批量生成接口 成功返回结果

type AlibabaeinvoiceserialnogenerateAPIRequest added in v1.3.1

type AlibabaeinvoiceserialnogenerateAPIRequest struct {
	model.Params
}

AlibabaeinvoiceserialnogenerateAPIRequest 获取统一开票流水号 API请求 alibaba.einvoice.serialno.generate

erp调用开票请求时需要一个开票流水号,此接口就提供了统一的开票流水号,避免了不同系统的冲突

func NewAlibabaeinvoiceserialnogenerateRequest added in v1.3.1

func NewAlibabaeinvoiceserialnogenerateRequest() *AlibabaeinvoiceserialnogenerateAPIRequest

NewAlibabaeinvoiceserialnogenerateRequest 初始化AlibabaeinvoiceserialnogenerateAPIRequest对象

func (AlibabaeinvoiceserialnogenerateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceserialnogenerateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceserialnogenerateAPIRequest) GetRawParams added in v1.3.1

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

type AlibabaeinvoiceserialnogenerateAPIResponse added in v1.3.1

type AlibabaeinvoiceserialnogenerateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceserialnogenerateAPIResponseModel
}

AlibabaeinvoiceserialnogenerateAPIResponse 获取统一开票流水号 API返回值 alibaba.einvoice.serialno.generate

erp调用开票请求时需要一个开票流水号,此接口就提供了统一的开票流水号,避免了不同系统的冲突

type AlibabaeinvoiceserialnogenerateAPIResponseModel added in v1.3.1

type AlibabaeinvoiceserialnogenerateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_serialno_generate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"`
}

AlibabaeinvoiceserialnogenerateAPIResponseModel is 获取统一开票流水号 成功返回结果

type AlibabaeinvoicetaxauthqueryAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxauthqueryAPIRequest 发票中台授权信息获取 API请求 alibaba.einvoice.tax.auth.query

发票中台授权信息获取

func NewAlibabaeinvoicetaxauthqueryRequest added in v1.3.1

func NewAlibabaeinvoicetaxauthqueryRequest() *AlibabaeinvoicetaxauthqueryAPIRequest

NewAlibabaeinvoicetaxauthqueryRequest 初始化AlibabaeinvoicetaxauthqueryAPIRequest对象

func (AlibabaeinvoicetaxauthqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoicetaxauthqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxauthqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxauthqueryAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicetaxauthqueryAPIRequest) GetTaxAuthTokenQueryDto added in v1.3.1

func (r AlibabaeinvoicetaxauthqueryAPIRequest) GetTaxAuthTokenQueryDto() *TaxAuthTokenQueryDto

GetTaxAuthTokenQueryDto TaxAuthTokenQueryDto Getter

func (*AlibabaeinvoicetaxauthqueryAPIRequest) SetTaxAuthTokenQueryDto added in v1.3.1

func (r *AlibabaeinvoicetaxauthqueryAPIRequest) SetTaxAuthTokenQueryDto(_taxAuthTokenQueryDto *TaxAuthTokenQueryDto) error

SetTaxAuthTokenQueryDto is TaxAuthTokenQueryDto Setter 授权信息查询请求

type AlibabaeinvoicetaxauthqueryAPIResponse added in v1.3.1

type AlibabaeinvoicetaxauthqueryAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxauthqueryAPIResponseModel
}

AlibabaeinvoicetaxauthqueryAPIResponse 发票中台授权信息获取 API返回值 alibaba.einvoice.tax.auth.query

发票中台授权信息获取

type AlibabaeinvoicetaxauthqueryAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxauthqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_auth_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// alinkappserver系统返回的通用结果类
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicetaxauthqueryAPIResponseModel is 发票中台授权信息获取 成功返回结果

type AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest 税筹业务账单文件下载URL查询 API请求 alibaba.einvoice.tax.opt.billdownloadurl.query

税筹业务账单文件下载的URL查询

func NewAlibabaeinvoicetaxoptbilldownloadurlqueryRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptbilldownloadurlqueryRequest() *AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest

NewAlibabaeinvoicetaxoptbilldownloadurlqueryRequest 初始化AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest对象

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetBelongingBusinessScenario added in v1.3.1

func (r AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetBelongingBusinessScenario() string

GetBelongingBusinessScenario BelongingBusinessScenario Getter

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetBillDate added in v1.3.1

GetBillDate BillDate Getter

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetCompanyCode added in v1.3.1

GetCompanyCode CompanyCode Getter

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) GetUserType added in v1.3.1

GetUserType UserType Getter

func (*AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) SetBelongingBusinessScenario added in v1.3.1

func (r *AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) SetBelongingBusinessScenario(_belongingBusinessScenario string) error

SetBelongingBusinessScenario is BelongingBusinessScenario Setter 供应商提供服务的的合作企业的公司编码,当user_type为CONTRACTOR时,建议提供此参数。特别是供应商使用同一主体编码面向多个企业提供服务,务必提供此参数,用于明确区分需要下载哪个合作企业的业务账单。

func (*AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) SetBillDate added in v1.3.1

SetBillDate is BillDate Setter 指定账单的日期

func (*AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) SetCompanyCode added in v1.3.1

func (r *AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) SetCompanyCode(_companyCode string) error

SetCompanyCode is CompanyCode Setter 平台提供的公司编码

func (*AlibabaeinvoicetaxoptbilldownloadurlqueryAPIRequest) SetUserType added in v1.3.1

SetUserType is UserType Setter 用户类型,建议传递,供应商请传递固定值:CONTRACTOR

type AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponseModel
}

AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponse 税筹业务账单文件下载URL查询 API返回值 alibaba.einvoice.tax.opt.billdownloadurl.query

税筹业务账单文件下载的URL查询

type AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_billdownloadurl_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// alinkappserver系统返回的通用结果类
	Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicetaxoptbilldownloadurlqueryAPIResponseModel is 税筹业务账单文件下载URL查询 成功返回结果

type AlibabaeinvoicetaxoptesignresultqueryAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptesignresultqueryAPIRequest 查询用户签约税优结果 API请求 alibaba.einvoice.tax.opt.esignresult.query

查询用户是否已经签约

func NewAlibabaeinvoicetaxoptesignresultqueryRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptesignresultqueryRequest() *AlibabaeinvoicetaxoptesignresultqueryAPIRequest

NewAlibabaeinvoicetaxoptesignresultqueryRequest 初始化AlibabaeinvoicetaxoptesignresultqueryAPIRequest对象

func (AlibabaeinvoicetaxoptesignresultqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptesignresultqueryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptesignresultqueryAPIRequest) GetEmployerCode added in v1.3.1

GetEmployerCode EmployerCode Getter

func (AlibabaeinvoicetaxoptesignresultqueryAPIRequest) GetIdentificationInBelongingEmployer added in v1.3.1

func (r AlibabaeinvoicetaxoptesignresultqueryAPIRequest) GetIdentificationInBelongingEmployer() string

GetIdentificationInBelongingEmployer IdentificationInBelongingEmployer Getter

func (AlibabaeinvoicetaxoptesignresultqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptesignresultqueryAPIRequest) SetEmployerCode added in v1.3.1

func (r *AlibabaeinvoicetaxoptesignresultqueryAPIRequest) SetEmployerCode(_employerCode string) error

SetEmployerCode is EmployerCode Setter 业务方编码

func (*AlibabaeinvoicetaxoptesignresultqueryAPIRequest) SetIdentificationInBelongingEmployer added in v1.3.1

func (r *AlibabaeinvoicetaxoptesignresultqueryAPIRequest) SetIdentificationInBelongingEmployer(_identificationInBelongingEmployer string) error

SetIdentificationInBelongingEmployer is IdentificationInBelongingEmployer Setter 用户在业务方平台的userid

type AlibabaeinvoicetaxoptesignresultqueryAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptesignresultqueryAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptesignresultqueryAPIResponseModel
}

AlibabaeinvoicetaxoptesignresultqueryAPIResponse 查询用户签约税优结果 API返回值 alibaba.einvoice.tax.opt.esignresult.query

查询用户是否已经签约

type AlibabaeinvoicetaxoptesignresultqueryAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptesignresultqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_esignresult_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果
	Results []AgreementInfoDto `json:"results,omitempty" xml:"results>agreement_info_dto,omitempty"`
}

AlibabaeinvoicetaxoptesignresultqueryAPIResponseModel is 查询用户签约税优结果 成功返回结果

type AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest 查询用户的发薪账号 API请求 alibaba.einvoice.tax.opt.salaryaccount.query

查询用户的发薪账号状态

func NewAlibabaeinvoicetaxoptsalaryaccountqueryRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptsalaryaccountqueryRequest() *AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest

NewAlibabaeinvoicetaxoptsalaryaccountqueryRequest 初始化AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest对象

func (AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) GetParamTaxOptimizationQueryPaySalaryAccountDTO added in v1.3.1

func (r AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) GetParamTaxOptimizationQueryPaySalaryAccountDTO() *TaxOptimizationQueryPaySalaryAccountDto

GetParamTaxOptimizationQueryPaySalaryAccountDTO ParamTaxOptimizationQueryPaySalaryAccountDTO Getter

func (AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) SetParamTaxOptimizationQueryPaySalaryAccountDTO added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalaryaccountqueryAPIRequest) SetParamTaxOptimizationQueryPaySalaryAccountDTO(_paramTaxOptimizationQueryPaySalaryAccountDTO *TaxOptimizationQueryPaySalaryAccountDto) error

SetParamTaxOptimizationQueryPaySalaryAccountDTO is ParamTaxOptimizationQueryPaySalaryAccountDTO Setter 入参

type AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponseModel
}

AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponse 查询用户的发薪账号 API返回值 alibaba.einvoice.tax.opt.salaryaccount.query

查询用户的发薪账号状态

type AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryaccount_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参
	Result *TaxOptimizationQueryAlipayAccountResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicetaxoptsalaryaccountqueryAPIResponseModel is 查询用户的发薪账号 成功返回结果

type AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest 更新用户发薪资产 API请求 alibaba.einvoice.tax.opt.salaryaccount.update

更新用户的发薪账号

func NewAlibabaeinvoicetaxoptsalaryaccountupdateRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptsalaryaccountupdateRequest() *AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest

NewAlibabaeinvoicetaxoptsalaryaccountupdateRequest 初始化AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest对象

func (AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) GetParamTaxOptimizationEmployeeAssetUpdateDTO added in v1.3.1

func (r AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) GetParamTaxOptimizationEmployeeAssetUpdateDTO() *TaxOptimizationEmployeeAssetUpdateDto

GetParamTaxOptimizationEmployeeAssetUpdateDTO ParamTaxOptimizationEmployeeAssetUpdateDTO Getter

func (AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) SetParamTaxOptimizationEmployeeAssetUpdateDTO added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalaryaccountupdateAPIRequest) SetParamTaxOptimizationEmployeeAssetUpdateDTO(_paramTaxOptimizationEmployeeAssetUpdateDTO *TaxOptimizationEmployeeAssetUpdateDto) error

SetParamTaxOptimizationEmployeeAssetUpdateDTO is ParamTaxOptimizationEmployeeAssetUpdateDTO Setter 入参

type AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponseModel
}

AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponse 更新用户发薪资产 API返回值 alibaba.einvoice.tax.opt.salaryaccount.update

更新用户的发薪账号

type AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryaccount_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参
	Result *TaxOptimizationEmployeeAssetUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicetaxoptsalaryaccountupdateAPIResponseModel is 更新用户发薪资产 成功返回结果

type AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest 提交发薪账单 API请求 alibaba.einvoice.tax.opt.salarybill.commitbill

提交发薪账单

func NewAlibabaeinvoicetaxoptsalarybillcommitbillRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptsalarybillcommitbillRequest() *AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest

NewAlibabaeinvoicetaxoptsalarybillcommitbillRequest 初始化AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest对象

func (AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) GetParamTaxOptimizationSalaryBillCommitReqDTO added in v1.3.1

func (r AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) GetParamTaxOptimizationSalaryBillCommitReqDTO() *TaxOptimizationSalaryBillCommitReqDto

GetParamTaxOptimizationSalaryBillCommitReqDTO ParamTaxOptimizationSalaryBillCommitReqDTO Getter

func (AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) SetParamTaxOptimizationSalaryBillCommitReqDTO added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalarybillcommitbillAPIRequest) SetParamTaxOptimizationSalaryBillCommitReqDTO(_paramTaxOptimizationSalaryBillCommitReqDTO *TaxOptimizationSalaryBillCommitReqDto) error

SetParamTaxOptimizationSalaryBillCommitReqDTO is ParamTaxOptimizationSalaryBillCommitReqDTO Setter 入参

type AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponseModel
}

AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponse 提交发薪账单 API返回值 alibaba.einvoice.tax.opt.salarybill.commitbill

提交发薪账单

type AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salarybill_commitbill_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 承包商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 明细id
	DetailId string `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 用户在业务方平台userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 错误原因
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

AlibabaeinvoicetaxoptsalarybillcommitbillAPIResponseModel is 提交发薪账单 成功返回结果

type AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest 受理发薪 API请求 alibaba.einvoice.tax.opt.salaryrequest.acceptpayment

发薪受理接口

func NewAlibabaeinvoicetaxoptsalaryrequestacceptpaymentRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptsalaryrequestacceptpaymentRequest() *AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest

NewAlibabaeinvoicetaxoptsalaryrequestacceptpaymentRequest 初始化AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest对象

func (AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest) GetParamTaxOptimizationSalaryPaymentAccessReqDTO added in v1.3.1

GetParamTaxOptimizationSalaryPaymentAccessReqDTO ParamTaxOptimizationSalaryPaymentAccessReqDTO Getter

func (AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest) SetParamTaxOptimizationSalaryPaymentAccessReqDTO added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIRequest) SetParamTaxOptimizationSalaryPaymentAccessReqDTO(_paramTaxOptimizationSalaryPaymentAccessReqDTO *TaxOptimizationSalaryPaymentAccessReqDto) error

SetParamTaxOptimizationSalaryPaymentAccessReqDTO is ParamTaxOptimizationSalaryPaymentAccessReqDTO Setter 请求入参

type AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponseModel
}

AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponse 受理发薪 API返回值 alibaba.einvoice.tax.opt.salaryrequest.acceptpayment

发薪受理接口

type AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryrequest_acceptpayment_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务出参
	Result *TaxOptimizationSalaryPaymentAccessResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicetaxoptsalaryrequestacceptpaymentAPIResponseModel is 受理发薪 成功返回结果

type AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest 单明细发薪受理 API请求 alibaba.einvoice.tax.opt.salaryrequest.singleaccept

单明细发薪受理

func NewAlibabaeinvoicetaxoptsalaryrequestsingleacceptRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptsalaryrequestsingleacceptRequest() *AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest

NewAlibabaeinvoicetaxoptsalaryrequestsingleacceptRequest 初始化AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest对象

func (AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) GetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO added in v1.3.1

func (r AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) GetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO() *TaxOptimizationSingleDetailSalaryPaymentAccessDto

GetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO ParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO Getter

func (AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) SetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIRequest) SetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO(_paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO *TaxOptimizationSingleDetailSalaryPaymentAccessDto) error

SetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO is ParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO Setter 入参

type AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIResponseModel
}

AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIResponse 单明细发薪受理 API返回值 alibaba.einvoice.tax.opt.salaryrequest.singleaccept

单明细发薪受理

type AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIResponseModel added in v1.3.1

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

AlibabaeinvoicetaxoptsalaryrequestsingleacceptAPIResponseModel is 单明细发薪受理 成功返回结果

type AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest added in v1.3.1

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

AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest 查询发薪结果 API请求 alibaba.einvoice.tax.opt.salaryresult.query

查询发薪结果

func NewAlibabaeinvoicetaxoptsalaryresultqueryRequest added in v1.3.1

func NewAlibabaeinvoicetaxoptsalaryresultqueryRequest() *AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest

NewAlibabaeinvoicetaxoptsalaryresultqueryRequest 初始化AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest对象

func (AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) GetDetailIdList added in v1.3.1

GetDetailIdList DetailIdList Getter

func (AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) GetEmployerCode added in v1.3.1

GetEmployerCode EmployerCode Getter

func (AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) SetDetailIdList added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) SetDetailIdList(_detailIdList []string) error

SetDetailIdList is DetailIdList Setter 发薪流水号

func (*AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) SetEmployerCode added in v1.3.1

func (r *AlibabaeinvoicetaxoptsalaryresultqueryAPIRequest) SetEmployerCode(_employerCode string) error

SetEmployerCode is EmployerCode Setter 业务方编码

type AlibabaeinvoicetaxoptsalaryresultqueryAPIResponse added in v1.3.1

type AlibabaeinvoicetaxoptsalaryresultqueryAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoicetaxoptsalaryresultqueryAPIResponseModel
}

AlibabaeinvoicetaxoptsalaryresultqueryAPIResponse 查询发薪结果 API返回值 alibaba.einvoice.tax.opt.salaryresult.query

查询发薪结果

type AlibabaeinvoicetaxoptsalaryresultqueryAPIResponseModel added in v1.3.1

type AlibabaeinvoicetaxoptsalaryresultqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryresult_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参
	Result *TaxOptimizationSalaryPayResultQueryResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoicetaxoptsalaryresultqueryAPIResponseModel is 查询发薪结果 成功返回结果

type AlibabaeinvoiceunitordercheckAPIRequest added in v1.3.1

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

AlibabaeinvoiceunitordercheckAPIRequest 服务商订购单上传核对 API请求 alibaba.einvoice.unitorder.check

开票服务商回传收到的订购单用于电子发票平台核对

func NewAlibabaeinvoiceunitordercheckRequest added in v1.3.1

func NewAlibabaeinvoiceunitordercheckRequest() *AlibabaeinvoiceunitordercheckAPIRequest

NewAlibabaeinvoiceunitordercheckRequest 初始化AlibabaeinvoiceunitordercheckAPIRequest对象

func (AlibabaeinvoiceunitordercheckAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaeinvoiceunitordercheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaeinvoiceunitordercheckAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaeinvoiceunitordercheckAPIRequest) GetBegin added in v1.3.1

GetBegin Begin Getter

func (AlibabaeinvoiceunitordercheckAPIRequest) GetEnd added in v1.3.1

GetEnd End Getter

func (AlibabaeinvoiceunitordercheckAPIRequest) GetOrders added in v1.3.1

GetOrders Orders Getter

func (AlibabaeinvoiceunitordercheckAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaeinvoiceunitordercheckAPIRequest) SetBegin added in v1.3.1

SetBegin is Begin Setter 开始时间,来自于查询消息

func (*AlibabaeinvoiceunitordercheckAPIRequest) SetEnd added in v1.3.1

SetEnd is End Setter 结束时间,来自于查询消息

func (*AlibabaeinvoiceunitordercheckAPIRequest) SetOrders added in v1.3.1

SetOrders is Orders Setter 订购单列表

type AlibabaeinvoiceunitordercheckAPIResponse added in v1.3.1

type AlibabaeinvoiceunitordercheckAPIResponse struct {
	model.CommonResponse
	AlibabaeinvoiceunitordercheckAPIResponseModel
}

AlibabaeinvoiceunitordercheckAPIResponse 服务商订购单上传核对 API返回值 alibaba.einvoice.unitorder.check

开票服务商回传收到的订购单用于电子发票平台核对

type AlibabaeinvoiceunitordercheckAPIResponseModel added in v1.3.1

type AlibabaeinvoiceunitordercheckAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_einvoice_unitorder_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 上传结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaeinvoiceunitordercheckAPIResponseModel is 服务商订购单上传核对 成功返回结果

type Apply added in v1.2.9

type Apply struct {
	// 发票明细
	InvoiceItems []InvoiceItem `json:"invoice_items,omitempty" xml:"invoice_items>invoice_item,omitempty"`
	// 电商平台代码,TB,TM,ALIPAY,JD
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 买家备注
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 买家抬头
	PayerName string `json:"payer_name,omitempty" xml:"payer_name,omitempty"`
	// 电商平台对应的订单号
	PlatformTid string `json:"platform_tid,omitempty" xml:"platform_tid,omitempty"`
	// 买家税号
	PayerRegisterNo string `json:"payer_register_no,omitempty" xml:"payer_register_no,omitempty"`
	// 开票申请的触发类型,buyer_payed=卖家已付款,sent_goods=卖家已发货,buyer_confirm=买家确认收货,refund_seller_confirm=卖家同意退款,invoice_supply=买家申请补开发票,invoice_change=买家申请改抬头,change_paper=电换纸
	TriggerStatus string `json:"trigger_status,omitempty" xml:"trigger_status,omitempty"`
	// 发票(开票)类型,蓝票blue,红票red,默认blue
	InvoiceType string `json:"invoice_type,omitempty" xml:"invoice_type,omitempty"`
	// 开票金额
	InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"`
	// 不含税总金额
	SumPrice string `json:"sum_price,omitempty" xml:"sum_price,omitempty"`
	// 总税额
	SumTax string `json:"sum_tax,omitempty" xml:"sum_tax,omitempty"`
	// 购买方联系电话
	PayerPhone string `json:"payer_phone,omitempty" xml:"payer_phone,omitempty"`
	// 购买方地址
	PayerAddress string `json:"payer_address,omitempty" xml:"payer_address,omitempty"`
	// 购买方开户行账号
	PayerBankaccount string `json:"payer_bankaccount,omitempty" xml:"payer_bankaccount,omitempty"`
	// 购买方开户银行
	PayerBank string `json:"payer_bank,omitempty" xml:"payer_bank,omitempty"`
	// 发票申请修改时间
	GmtModifiedStr string `json:"gmt_modified_str,omitempty" xml:"gmt_modified_str,omitempty"`
	// 扩展属性
	ExtendProps string `json:"extend_props,omitempty" xml:"extend_props,omitempty"`
	// 发票申请创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 开票申请状态,0=已拒绝,1=申请中,2=已同意
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 发票种类,0=电子发票,1=纸质发票,2=专票,3=电子专用发票,4=全电普通发票,5=全电专用发票
	InvoiceKind int64 `json:"invoice_kind,omitempty" xml:"invoice_kind,omitempty"`
	// 抬头类型,0=个人,1=企业
	BusinessType int64 `json:"business_type,omitempty" xml:"business_type,omitempty"`
}

Apply 结构体

type BillItemDo

type BillItemDo struct {
	// 价税合计
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商品数量
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 规格型号,可选
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// 商品单位
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 1 折扣行 2被折扣行 0普通行
	RowType int64 `json:"row_type,omitempty" xml:"row_type,omitempty"`
}

BillItemDo 结构体

type EinvoiceAmountCheckResult

type EinvoiceAmountCheckResult struct {
	// 税号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 开票日期
	InvoiceDate string `json:"invoice_date,omitempty" xml:"invoice_date,omitempty"`
	// 开票含税总金额
	TotalAmount string `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 开票不含税总金额
	TotalPrice string `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 开票总税额
	TotalTax string `json:"total_tax,omitempty" xml:"total_tax,omitempty"`
	// 发票类型,蓝票=blue,红票=red
	InvoiceType string `json:"invoice_type,omitempty" xml:"invoice_type,omitempty"`
	// 开票量
	InvoiceCount int64 `json:"invoice_count,omitempty" xml:"invoice_count,omitempty"`
}

EinvoiceAmountCheckResult 结构体

type InvoiceApplyDtlDto

type InvoiceApplyDtlDto struct {
	// 该申请单 请求开票的结果,拆单的场景下可能有多笔发票请求  当apply_status为creating_inv, inv_failed, inv_success, inv_part_success 时返回该字段
	CreateInvResults []InvoiceCreateSimpleResultDto `json:"create_inv_results,omitempty" xml:"create_inv_results>invoice_create_simple_result_dto,omitempty"`
	// 申请明细列表
	InvoiceItems []InvoiceApplyItemsDto `json:"invoice_items,omitempty" xml:"invoice_items>invoice_apply_items_dto,omitempty"`
	// 合计实付金额(申请开票的总金额,含税),格式为2位小数。开红票时传正数。  需满足公式:开票总金额(invoiceAmount) = 各项明细的交易金额(amount)之和 - 各项明细的优惠金额(discount)之和。  当指定auto_create_invoice=true或商户配置为自动开票时该字段必填。
	ApplyAmount string `json:"apply_amount,omitempty" xml:"apply_amount,omitempty"`
	// 发票申请ID
	ApplyId string `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 发票申请模式,可选值:  pre_apply_url: URL预申请模式;适用于扫码开票(一单一码)的业务场景:业务前台提交开票金额等信息,请求阿里发票平台生成一个对应的发票申请页面URL。用户可在该页面中填写抬头等信息,然后提交正式的发票申请。  normal(默认为此模式): 正式提交用户的发票申请,商户根据此发票申请自动或审核开票。
	ApplyMode string `json:"apply_mode,omitempty" xml:"apply_mode,omitempty"`
	// 申请状态,可选值:  applying: 申请中,初始状态  cancelled: 申请已取消  confirmed: 商户已确认,待开/待录入发票  creating_inv: 开票中,待发票结果回传  inv_failed: 开票失败  inv_success: 开票成功  inv_part_success: 部分成功(拆单场景下存在。举例:发票申请拆单之后有10张票,其中有1张开票成功时,此时申请状态即为inv_part_success,当10张票全部成功申请状态则为inv_success)
	ApplyStatus string `json:"apply_status,omitempty" xml:"apply_status,omitempty"`
	// 申请创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 申请最近修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 发票备注
	InvoiceMemo string `json:"invoice_memo,omitempty" xml:"invoice_memo,omitempty"`
	// 发票(开票)类型,可选值:  blue: 蓝票  red: 红票
	InvoiceType string `json:"invoice_type,omitempty" xml:"invoice_type,omitempty"`
	// 原发票代码;  申请红票时必传
	NormalInvoiceCode string `json:"normal_invoice_code,omitempty" xml:"normal_invoice_code,omitempty"`
	// 原发票号码;  申请红票时必传
	NormalInvoiceNo string `json:"normal_invoice_no,omitempty" xml:"normal_invoice_no,omitempty"`
	// 外部业务方创建入驻工单的唯一幂等ID, 由业务方自己生成。  由字母数字组成
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 纳税人识别号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 购方地址,  专票必填。
	PayerAddress string `json:"payer_address,omitempty" xml:"payer_address,omitempty"`
	// 购方银行账号,  专票必填。
	PayerBankAccountId string `json:"payer_bank_account_id,omitempty" xml:"payer_bank_account_id,omitempty"`
	// 购方开户行名称,  专票必填。
	PayerBankName string `json:"payer_bank_name,omitempty" xml:"payer_bank_name,omitempty"`
	// 购方电子邮箱
	PayerEmail string `json:"payer_email,omitempty" xml:"payer_email,omitempty"`
	// 购方开票备注。不会显示在票面
	PayerMemo string `json:"payer_memo,omitempty" xml:"payer_memo,omitempty"`
	// 购方抬头
	PayerName string `json:"payer_name,omitempty" xml:"payer_name,omitempty"`
	// 购方联系电话,  专票必填。
	PayerPhone string `json:"payer_phone,omitempty" xml:"payer_phone,omitempty"`
	// 购方方税务登记证号,  开企业抬头时必填,  专票必填。
	PayerRegisterNo string `json:"payer_register_no,omitempty" xml:"payer_register_no,omitempty"`
	// 购方UID
	PayerUid string `json:"payer_uid,omitempty" xml:"payer_uid,omitempty"`
	// 业务前台的业务标记。  提供给业务前台打上特殊的业务标识,解决前台一些特殊场景,阿里发票不关心该字段的业务含义。
	PlatformBizFlag string `json:"platform_biz_flag,omitempty" xml:"platform_biz_flag,omitempty"`
	// 业务平台code, 由发票中台分配
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 业务平台发票申请对应的订单号
	PlatformTid string `json:"platform_tid,omitempty" xml:"platform_tid,omitempty"`
	// 业务平台商户ID
	PlatformUserId string `json:"platform_user_id,omitempty" xml:"platform_user_id,omitempty"`
	// 红字发票信息表编号。  专票冲红时需要,商家跟税局申请
	RedNoticeNo string `json:"red_notice_no,omitempty" xml:"red_notice_no,omitempty"`
	// 抬头类型。可选值:  0:个人  1:企业
	BusinessType int64 `json:"business_type,omitempty" xml:"business_type,omitempty"`
	// 请求开票的销方信息  间联开票模式下,该字段无值。若调用方需要获取开具发票的销方信息,可调用查询发票详情接口
	CreateInvPayeeInfo *InvoiceCreatePayeeInfoDto `json:"create_inv_payee_info,omitempty" xml:"create_inv_payee_info,omitempty"`
	// 申请开票类型,可选值:  0: 电票  1:纸质普票  2:纸质专票
	InvoiceKind int64 `json:"invoice_kind,omitempty" xml:"invoice_kind,omitempty"`
	// 当前申请单是否为已终结状态。true: 是,false: 否。  主要用于区分inv_part_success状态下是终态还是中间态。
	IsFinally bool `json:"is_finally,omitempty" xml:"is_finally,omitempty"`
}

InvoiceApplyDtlDto 结构体

type InvoiceApplyDtlQueryDto

type InvoiceApplyDtlQueryDto struct {
	// 中台发票申请ID,由中台生成。字母或数字组成。  可用于查询发票申请的详情。
	ApplyId string `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 是否需要生成发票板式文件的下载链接。默认为:false不生成。  调用方请根据使用场景而定。  true: 生成新的发票下载链接,拆单情况下生成多张发票链接响应时间较长,建议设置超时时间为6s.   false: 不生成下载链接,查询响应时间更快。调用方如果不需要发票链接,或者有对接查询发票详情接口时,此处建议传false
	NeedDownloadUrl bool `json:"need_download_url,omitempty" xml:"need_download_url,omitempty"`
}

InvoiceApplyDtlQueryDto 结构体

type InvoiceApplyDto

type InvoiceApplyDto struct {
	// 开票明细
	InvoiceItems []InvoiceApplyItemsDto `json:"invoice_items,omitempty" xml:"invoice_items>invoice_apply_items_dto,omitempty"`
	// 合计实付金额(申请开票的总金额,含税),格式为2位小数。开红票时传正数。需满足公式:开票总金额(invoiceAmount) = 各项明细的交易金额(amount)之和 - 各项明细的优惠金额(discount)之和
	ApplyAmount string `json:"apply_amount,omitempty" xml:"apply_amount,omitempty"`
	// 发票申请模式,可选值:  pre_apply_url: URL预申请模式;适用于扫码开票(一单一码)的业务场景:业务前台提交开票金额等信息,请求阿里发票平台生成一个对应的发票申请页面URL。用户可在该页面中填写抬头等信息,然后提交正式的发票申请。  normal(默认为此模式): 正式提交用户的发票申请,商户根据此发票申请自动或审核开票。
	ApplyMode string `json:"apply_mode,omitempty" xml:"apply_mode,omitempty"`
	// 请求来源:order: 下单
	ApplySource string `json:"apply_source,omitempty" xml:"apply_source,omitempty"`
	// 指定的开票税控设备ID 传了此参数,则使用传入的设备ID进行开票。 未传则会使用商户维护在阿里发票平台的默认设备开票。 业务前台请根据商户在哪维护税控设备进行选择,推荐后者。
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
	// 发票备注,会显示在票面
	InvoiceMemo string `json:"invoice_memo,omitempty" xml:"invoice_memo,omitempty"`
	// 发票(开票)类型,可选值:blue: 蓝票red: 红票
	InvoiceType string `json:"invoice_type,omitempty" xml:"invoice_type,omitempty"`
	// 原发票代码(开红票时使用)
	NormalInvoiceCode string `json:"normal_invoice_code,omitempty" xml:"normal_invoice_code,omitempty"`
	// 原发票号码(开红票时使用)
	NormalInvoiceNo string `json:"normal_invoice_no,omitempty" xml:"normal_invoice_no,omitempty"`
	// 外部业务方发起开票申请的唯一幂等ID,?由调用平台生成。只能由字母和数字组成。
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 销方税务登记证号,长度要求15~20位。  传了此参数,则阿里发票平台会使用传入的销方税号进行开票。  未传则阿里发票平台会自动选择商户入驻的税号进行开票。
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 购方地址,专票必填。
	PayerAddress string `json:"payer_address,omitempty" xml:"payer_address,omitempty"`
	// 购方银行账号,专票必填。
	PayerBankAccountId string `json:"payer_bank_account_id,omitempty" xml:"payer_bank_account_id,omitempty"`
	// 购方开户行名称,专票必填。
	PayerBankName string `json:"payer_bank_name,omitempty" xml:"payer_bank_name,omitempty"`
	// 购方电子邮箱,需满足邮箱格式。  格式要求:\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*
	PayerEmail string `json:"payer_email,omitempty" xml:"payer_email,omitempty"`
	// 购方开票备注。不会显示在票面
	PayerMemo string `json:"payer_memo,omitempty" xml:"payer_memo,omitempty"`
	// 购方抬头;当apply_mode=pre_apply_url时可选
	PayerName string `json:"payer_name,omitempty" xml:"payer_name,omitempty"`
	// 购方联系电话,专票必填。
	PayerPhone string `json:"payer_phone,omitempty" xml:"payer_phone,omitempty"`
	// 购方方税务登记证号,由大写字母或数字组成,长度要求15~20位。开企业抬头时必填,专票必填。
	PayerRegisterNo string `json:"payer_register_no,omitempty" xml:"payer_register_no,omitempty"`
	// 购方UID
	PayerUid string `json:"payer_uid,omitempty" xml:"payer_uid,omitempty"`
	// 购方联系电话,专票必填。
	PhoneNumber string `json:"phone_number,omitempty" xml:"phone_number,omitempty"`
	// 业务前台的业务标记。提供给业务前台打上特殊的业务标识,解决前台一些特殊场景,中台不关心该字段的业务含义。
	PlatformBizFlag string `json:"platform_biz_flag,omitempty" xml:"platform_biz_flag,omitempty"`
	// 请求来源平台Code, 由发票中台分配
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 业务平台发票申请对应的订单号。
	PlatformTid string `json:"platform_tid,omitempty" xml:"platform_tid,omitempty"`
	// 业务平台商户ID/用户ID
	PlatformUserId string `json:"platform_user_id,omitempty" xml:"platform_user_id,omitempty"`
	// 红字通知单号,专票冲红时需要,商家跟税局申请
	RedNoticeNo string `json:"red_notice_no,omitempty" xml:"red_notice_no,omitempty"`
	// 来源标识
	SourceFlag string `json:"source_flag,omitempty" xml:"source_flag,omitempty"`
	// 业务来源平台, 由发票中台分配
	SourcePlatformCode string `json:"source_platform_code,omitempty" xml:"source_platform_code,omitempty"`
	// 特殊票种标识,可选值:02: 农产品收购票
	SpecialFlag string `json:"special_flag,omitempty" xml:"special_flag,omitempty"`
	// 交易时间
	TradeTime string `json:"trade_time,omitempty" xml:"trade_time,omitempty"`
	// 抬头类型。可选值:0:个人1:企业;当apply_mode=pre_apply_url时可选
	BusinessType int64 `json:"business_type,omitempty" xml:"business_type,omitempty"`
	// 请求开票的销方信息。 传了此参数,则使用传入的销方信息进行开票。 未传则会以商户维护在阿里发票平台的销方信息为准。 业务前台请根据商户在哪维护销方信息进行选择,推荐后者。
	CreateInvPayeeInfo *InvoiceCreatePayeeInfoDto `json:"create_inv_payee_info,omitempty" xml:"create_inv_payee_info,omitempty"`
	// 开票发票类型可选值:0: 电票1:纸质普票2:纸质专票
	InvoiceKind int64 `json:"invoice_kind,omitempty" xml:"invoice_kind,omitempty"`
	// 征税方式,0普通征收,1减按征收,2差额征收
	LevyType int64 `json:"levy_type,omitempty" xml:"levy_type,omitempty"`
	// 购方收票物流信息,用于纸票场景。
	PayerLogisticsInfo *PayerLogisticsInfoDto `json:"payer_logistics_info,omitempty" xml:"payer_logistics_info,omitempty"`
	// 当前申请单是否自动开票。当业务前台传入了该字段时,以前台传入的值为准。当前台未传值时,中台会读取商户在中台维护的自动开票配置。true: 申请单会自动转开票请求,调用税控进行开票。false: 申请单数据会在中台落地,状态为申请中。不会发起开票请求。适用于商户需要人工审核之后,再确认开票的场景。
	AutoCreateInvoice bool `json:"auto_create_invoice,omitempty" xml:"auto_create_invoice,omitempty"`
}

InvoiceApplyDto 结构体

type InvoiceApplyItemsDto

type InvoiceApplyItemsDto struct {
	// 交易金额(含税)=?单价*数量。单位:元,格式为2位小数,精度2位小数。开红票时传正数。
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 开票明细备注
	BizMemo string `json:"biz_memo,omitempty" xml:"biz_memo,omitempty"`
	// 优惠金额(含税)可为0,交易金额-优惠金额=实付金额。单位:元,格式为2位小数,精度2位小数。开红票时传正数。
	Discount string `json:"discount,omitempty" xml:"discount,omitempty"`
	// 商品ID.当商户配置了按照商品ID匹配税编的税编规则时,该字段可用于税编规则匹配
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品名称/货物名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 发票项目编号(或商品编号)业务前台未传值中台会做税编规则匹配。业务前台有传值则优先取前台传入的值。
	ItemNo string `json:"item_no,omitempty" xml:"item_no,omitempty"`
	// 商品类型名称,如新零售、餐饮等等。当商户配置了按照类型匹配税编的税编规则时,该字段可用于税编规则匹配
	ItemType string `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 数量,最多6位小数
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 规格型号
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// 单价(含税),格式为2位小数。最大支持6位小数,不足2位小数时需转化为2位小数格式。
	TaxPrice string `json:"tax_price,omitempty" xml:"tax_price,omitempty"`
	// 税率。格式为2位小数,业务前台未传值中台会做税编规则匹配。业务前台有传值则优先取前台传入的值。
	TaxRate string `json:"tax_rate,omitempty" xml:"tax_rate,omitempty"`
	// 单位
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率
	ZeroRateFlag string `json:"zero_rate_flag,omitempty" xml:"zero_rate_flag,omitempty"`
}

InvoiceApplyItemsDto 结构体

type InvoiceApplyResultDto

type InvoiceApplyResultDto struct {
	// 开票结果
	CreateInvResultList []InvoiceCreateSimpleResultDto `json:"create_inv_result_list,omitempty" xml:"create_inv_result_list>invoice_create_simple_result_dto,omitempty"`
	// 中台发票申请ID,由中台生成。字母或数字组成
	ApplyId string `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 申请状态,可选值:  applying: 申请中,初始状态;  cancelled: 申请已取消;  confirmed: 商户已确认,待开/录入发票;  craeting_inv: 开票中,待发票结果回传;  inv_failed: 开票失败;  inv_success: 开票成功;  inv_part_success: 部分成功(拆单场景下存在。举例:发票申请拆单之后有10张票,其中有1张开票成功时,此时申请状态即为inv_part_success,当10张票全部成功申请状态则为inv_success)
	ApplyStatus string `json:"apply_status,omitempty" xml:"apply_status,omitempty"`
	// 生成的发票申请页面URL, 用户可在该页面中填写抬头等信息,然后提交正式的发票申请。  当apply_mode=create_apply_url 时必须返回。
	ApplyUrl string `json:"apply_url,omitempty" xml:"apply_url,omitempty"`
}

InvoiceApplyResultDto 结构体

type InvoiceCompanyDto

type InvoiceCompanyDto struct {
	// 企业所在区
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 开户行账号,注意:开户行账号与名称必须拆开2个字段
	BankAccountId string `json:"bank_account_id,omitempty" xml:"bank_account_id,omitempty"`
	// 开户行名称,开户行账号加名称不超出100字符注意:开户行账号与名称必须拆开2个字段
	BankName string `json:"bank_name,omitempty" xml:"bank_name,omitempty"`
	// 企业所在城市。  请提交完整的城市名称,正确示例:杭州市,错误示例:杭州
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 企业名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 默认商品名称
	DefaultItemName string `json:"default_item_name,omitempty" xml:"default_item_name,omitempty"`
	// 默认税收分类编码
	DefaultTaxCode string `json:"default_tax_code,omitempty" xml:"default_tax_code,omitempty"`
	// 税率,格式为小数
	DefaultTaxRate string `json:"default_tax_rate,omitempty" xml:"default_tax_rate,omitempty"`
	// 企业地址
	DetailedAddress string `json:"detailed_address,omitempty" xml:"detailed_address,omitempty"`
	// 企业电话
	InvoicePhone string `json:"invoice_phone,omitempty" xml:"invoice_phone,omitempty"`
	// 复核人
	PayeeChecker string `json:"payee_checker,omitempty" xml:"payee_checker,omitempty"`
	// 默认开票人
	PayeeOperator string `json:"payee_operator,omitempty" xml:"payee_operator,omitempty"`
	// 收款人
	PayeeReceiver string `json:"payee_receiver,omitempty" xml:"payee_receiver,omitempty"`
	// 销方纳税人识别号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 企业所在省/直辖市
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率
	ZeroTaxRateFlag string `json:"zero_tax_rate_flag,omitempty" xml:"zero_tax_rate_flag,omitempty"`
	// 企业类型,可选值:  一般纳税人:1;  小规模纳税人:2;  起征点以下纳税人:3;
	CompanyType int64 `json:"company_type,omitempty" xml:"company_type,omitempty"`
}

InvoiceCompanyDto 结构体

type InvoiceContactDto

type InvoiceContactDto struct {
	// 联系人姓名
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 联系人电话
	ContactMobile string `json:"contact_mobile,omitempty" xml:"contact_mobile,omitempty"`
	// 联系人地址
	ContactAddr string `json:"contact_addr,omitempty" xml:"contact_addr,omitempty"`
	// 联系人邮件
	ContactMail string `json:"contact_mail,omitempty" xml:"contact_mail,omitempty"`
}

InvoiceContactDto 结构体

type InvoiceCreatePayeeInfoDto

type InvoiceCreatePayeeInfoDto struct {
	// 销方地址,销方电话加地址不超出100字符
	PayeeAddress string `json:"payee_address,omitempty" xml:"payee_address,omitempty"`
	// 销方银行帐号
	PayeeBankAccountId string `json:"payee_bank_account_id,omitempty" xml:"payee_bank_account_id,omitempty"`
	// 销方开户行名称,开户行账号加名称不超出100字符
	PayeeBankName string `json:"payee_bank_name,omitempty" xml:"payee_bank_name,omitempty"`
	// 复核人
	PayeeChecker string `json:"payee_checker,omitempty" xml:"payee_checker,omitempty"`
	// 销方名称,公司名
	PayeeName string `json:"payee_name,omitempty" xml:"payee_name,omitempty"`
	// 开票人
	PayeeOperator string `json:"payee_operator,omitempty" xml:"payee_operator,omitempty"`
	// 销方电话
	PayeePhone string `json:"payee_phone,omitempty" xml:"payee_phone,omitempty"`
	// 收款人
	PayeeReceiver string `json:"payee_receiver,omitempty" xml:"payee_receiver,omitempty"`
	// 销方税务登记证号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
}

InvoiceCreatePayeeInfoDto 结构体

type InvoiceCreateSimpleResultDto

type InvoiceCreateSimpleResultDto struct {
	// 错误码
	BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"`
	// 错误描述
	BizErrorMsg string `json:"biz_error_msg,omitempty" xml:"biz_error_msg,omitempty"`
	// 开票状态
	CreateStatus string `json:"create_status,omitempty" xml:"create_status,omitempty"`
	// 错误类型
	ErrorType string `json:"error_type,omitempty" xml:"error_type,omitempty"`
	// 实际开票金额
	InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"`
	// 销售方名称
	PayeeName string `json:"payee_name,omitempty" xml:"payee_name,omitempty"`
	// 销方税号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 税控产品
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 单张票序列号
	SingleSerialNo string `json:"single_serial_no,omitempty" xml:"single_serial_no,omitempty"`
	// 合计金额(不含税)
	SumPrice string `json:"sum_price,omitempty" xml:"sum_price,omitempty"`
	// 合计税额,格式为2位小数
	SumTax string `json:"sum_tax,omitempty" xml:"sum_tax,omitempty"`
	// 防伪码
	AntiFakeCode string `json:"anti_fake_code,omitempty" xml:"anti_fake_code,omitempty"`
	// 发票板式文件的下载地址。  need_download_url=true时返回。默认不生成。
	DownloadUrl string `json:"download_url,omitempty" xml:"download_url,omitempty"`
	// 发票板式文件下载地址(download_url)和预览图地址(invoice_image_url)的失效时间。  过期之后板式文件下载地址将无法访问,可以重新调用此接口,重新生成访问链接。  格式为:yyyy-MM-dd HH:mm:ss
	DownloadUrlExpires string `json:"download_url_expires,omitempty" xml:"download_url_expires,omitempty"`
	// 发票代码
	InvoiceCode string `json:"invoice_code,omitempty" xml:"invoice_code,omitempty"`
	// 开票日期;  当开票成功时必选
	InvoiceDate string `json:"invoice_date,omitempty" xml:"invoice_date,omitempty"`
	// 发票预览图的下载地址。  need_download_url=true时返回。默认不生成。
	InvoiceImageUrl string `json:"invoice_image_url,omitempty" xml:"invoice_image_url,omitempty"`
	// 发票号码
	InvoiceNo string `json:"invoice_no,omitempty" xml:"invoice_no,omitempty"`
	// 红票申请ID
	RedApplyId string `json:"red_apply_id,omitempty" xml:"red_apply_id,omitempty"`
	// 红票申请状态,定义同create_status
	RedCreateStatus string `json:"red_create_status,omitempty" xml:"red_create_status,omitempty"`
	// 开票发票类型,可选值:  0: 电票  1:纸质普票  2:纸质专票
	InvoiceKind int64 `json:"invoice_kind,omitempty" xml:"invoice_kind,omitempty"`
}

InvoiceCreateSimpleResultDto 结构体

type InvoiceFlowRefundDto

type InvoiceFlowRefundDto struct {
	// 工单id(入驻、续约、加盘)
	FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"`
	// 业务平台码
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 退款备注信息
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
}

InvoiceFlowRefundDto 结构体

type InvoiceFlowRenewDto

type InvoiceFlowRenewDto struct {
	// 外部幂等ID
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 被续约工单ID
	ParentFlowId string `json:"parent_flow_id,omitempty" xml:"parent_flow_id,omitempty"`
	// 请求来源平台code,由中台生成
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 服务的有效天数,单位为天
	ServiceValidDays int64 `json:"service_valid_days,omitempty" xml:"service_valid_days,omitempty"`
}

InvoiceFlowRenewDto 结构体

type InvoiceFlowRenewResultDto

type InvoiceFlowRenewResultDto struct {
	// 续约工单ID
	FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"`
	// 续约单结束时间
	ServEndTime string `json:"serv_end_time,omitempty" xml:"serv_end_time,omitempty"`
	// 续约单开始时间
	ServStartTime string `json:"serv_start_time,omitempty" xml:"serv_start_time,omitempty"`
}

InvoiceFlowRenewResultDto 结构体

type InvoiceFwOrderDto

type InvoiceFwOrderDto struct {
	// 订购时间,格式yyyy-MM-dd HH:mm:ss
	BuyDate string `json:"buy_date,omitempty" xml:"buy_date,omitempty"`
	// 实付总金额,单位元,最多2位小数
	FactTotalFee string `json:"fact_total_fee,omitempty" xml:"fact_total_fee,omitempty"`
	// 商品规格ID
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 订购商品ID
	ArticleId string `json:"article_id,omitempty" xml:"article_id,omitempty"`
	// 服务市场订单号
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 产品Code,中台定义的税控产品Code
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 纳税人识别号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 税控设备订购单ID
	FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"`
	// 入驻类型,可选值: 新订购:new,已有税控初始化:online
	RegisterType string `json:"register_type,omitempty" xml:"register_type,omitempty"`
	// 服务结束时间,格式yyyy-MM-dd HH:mm:ss
	ServEndTime string `json:"serv_end_time,omitempty" xml:"serv_end_time,omitempty"`
	// 服务起始时间,格式yyyy-MM-dd HH:mm:ss
	ServStartTime string `json:"serv_start_time,omitempty" xml:"serv_start_time,omitempty"`
	// 商品名称
	ArticleName string `json:"article_name,omitempty" xml:"article_name,omitempty"`
	// 联系人对象
	InvoiceContact *InvoiceContactDto `json:"invoice_contact,omitempty" xml:"invoice_contact,omitempty"`
}

InvoiceFwOrderDto 结构体

type InvoiceItem

type InvoiceItem struct {
	// 发票项目名称(或商品名称)
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 价税合计。(等于sumPrice和tax之和)
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 发票行性质。0表示正常行,1表示折扣行,2表示被折扣行。比如充电器单价100元,折扣10元,则明细为2行,充电器行性质为2,折扣行性质为1。如果充电器没有折扣,则值应为0
	RowType string `json:"row_type,omitempty" xml:"row_type,omitempty"`
	// 规格型号,可选
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// 总价,格式:100.00(不含税)
	SumPrice string `json:"sum_price,omitempty" xml:"sum_price,omitempty"`
	// 税额
	Tax string `json:"tax,omitempty" xml:"tax,omitempty"`
	// 单价,格式:100.00(不含税)
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 数量
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 税率。税率只能为0或0.03或0.04或0.06或0.11或0.13或0.17
	TaxRate string `json:"tax_rate,omitempty" xml:"tax_rate,omitempty"`
	// 单位
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 发票项目编号(或商品编号)
	ItemNo string `json:"item_no,omitempty" xml:"item_no,omitempty"`
	// 淘宝子订单号
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 零税率标识,0=出口零税率,1=免税,2=不征收,3=普通零税率
	ZeroRateFlag string `json:"zero_rate_flag,omitempty" xml:"zero_rate_flag,omitempty"`
	// 商品的外部系统id,如果有sku则取sku的outerId,否则取item的outerId,,阿里发票平台自动开票时才有
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 商品IMIE号(不用传,将废弃)
	Imei string `json:"imei,omitempty" xml:"imei,omitempty"`
	// 是否运费行标识,true:运费行,false:非运费行
	IsPostFeeRow bool `json:"is_post_fee_row,omitempty" xml:"is_post_fee_row,omitempty"`
}

InvoiceItem 结构体

type InvoiceItems

type InvoiceItems struct {
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 数量
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 价税合计
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 规格型号
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// 单位
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
}

InvoiceItems 结构体

type InvoiceMerchantDto

type InvoiceMerchantDto struct {
	// 企业所在区
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 开户行账号
	BankAccountId string `json:"bank_account_id,omitempty" xml:"bank_account_id,omitempty"`
	// 开户行名称,开户行账号加名称不超出100字符
	BankName string `json:"bank_name,omitempty" xml:"bank_name,omitempty"`
	// 企业所在城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 企业名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 系统自动生成
	CompanyPlatformCode string `json:"company_platform_code,omitempty" xml:"company_platform_code,omitempty"`
	// 默认商品名称
	DefaultItemName string `json:"default_item_name,omitempty" xml:"default_item_name,omitempty"`
	// 默认税收分类编码
	DefaultTaxCode string `json:"default_tax_code,omitempty" xml:"default_tax_code,omitempty"`
	// 税率,格式为小数
	DefaultTaxRate string `json:"default_tax_rate,omitempty" xml:"default_tax_rate,omitempty"`
	// 企业地址,当flow_status=success时必选;
	DetailedAddress string `json:"detailed_address,omitempty" xml:"detailed_address,omitempty"`
	// 企业电话,当flow_status=success时必选;
	InvoicePhone string `json:"invoice_phone,omitempty" xml:"invoice_phone,omitempty"`
	// 复核人
	PayeeChecker string `json:"payee_checker,omitempty" xml:"payee_checker,omitempty"`
	// 默认开票人  当flow_status=success时必选;
	PayeeOperator string `json:"payee_operator,omitempty" xml:"payee_operator,omitempty"`
	// 收款人
	PayeeReceiver string `json:"payee_receiver,omitempty" xml:"payee_receiver,omitempty"`
	// 销方纳税人识别号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 企业所在省/直辖市
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 由阿里发票平台生成的tax_token, 后续通过平店铺授权时需要使用该token, 作为商户的身份认证。
	TaxToken string `json:"tax_token,omitempty" xml:"tax_token,omitempty"`
	// 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率
	ZeroTaxRateFlag string `json:"zero_tax_rate_flag,omitempty" xml:"zero_tax_rate_flag,omitempty"`
	// 企业类型,可选值:  一般纳税人:1;  小规模纳税人:2;  起征点以下纳税人:3;
	CompanyType int64 `json:"company_type,omitempty" xml:"company_type,omitempty"`
}

InvoiceMerchantDto 结构体

type InvoiceOrderRefundResultDto

type InvoiceOrderRefundResultDto struct {
	// 拒绝退款原因,拒绝退款时必传
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 退款工单事件:  refund_agree: 服务商同意退款,  refund_reject: 服务商拒绝退单
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 退款工单流程ID
	FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"`
}

InvoiceOrderRefundResultDto 结构体

type InvoiceOrderSimpleDto

type InvoiceOrderSimpleDto struct {
	// 所绑定的税控设备ID;  入驻成功 & 单机版税控产品时,包含该字段。
	DeviceId string `json:"device_id,omitempty" xml:"device_id,omitempty"`
	// 订购单ID
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 税控产品,产品码由中台定义。
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 服务结束时间,格式yyyy-MM-dd HH:mm:ss 当flow_status=success时必选;
	ServEndTime string `json:"serv_end_time,omitempty" xml:"serv_end_time,omitempty"`
	// 服务起始时间,格式yyyy-MM-dd HH:mm:ss  当flow_status=success时必选;
	ServStartTime string `json:"serv_start_time,omitempty" xml:"serv_start_time,omitempty"`
}

InvoiceOrderSimpleDto 结构体

type InvoiceResult

type InvoiceResult struct {
	// 电子发票明细,erp开票默认不返回,如果erp需要获取阿里发票平台自动开票的结果,需要先找阿里小二开通权限
	InvoiceItems []InvoiceItem `json:"invoice_items,omitempty" xml:"invoice_items>invoice_item,omitempty"`
	// 防伪码
	AntiFakeCode string `json:"anti_fake_code,omitempty" xml:"anti_fake_code,omitempty"`
	// 发票密文,密码区的字符串
	Ciphertext string `json:"ciphertext,omitempty" xml:"ciphertext,omitempty"`
	// 税控设备编号(新版电子发票有)
	DeviceNo string `json:"device_no,omitempty" xml:"device_no,omitempty"`
	// erp自定义单据号
	ErpTid string `json:"erp_tid,omitempty" xml:"erp_tid,omitempty"`
	// 文件类型(pdf,jpg,png)
	FileDataType string `json:"file_data_type,omitempty" xml:"file_data_type,omitempty"`
	// 发票PDF的下载地址(仅在单个查询接口上显示,批量查询不显示)
	FilePath string `json:"file_path,omitempty" xml:"file_path,omitempty"`
	// 开票金额
	InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"`
	// 发票代码
	InvoiceCode string `json:"invoice_code,omitempty" xml:"invoice_code,omitempty"`
	// 开票日期
	InvoiceDate string `json:"invoice_date,omitempty" xml:"invoice_date,omitempty"`
	// 发票号码
	InvoiceNo string `json:"invoice_no,omitempty" xml:"invoice_no,omitempty"`
	// 电商平台代码。淘宝:taobao,天猫:tmall
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 电商平台订单号
	PlatformTid string `json:"platform_tid,omitempty" xml:"platform_tid,omitempty"`
	// 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。
	SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"`
	// 开票状态 (waiting = 开票中) 、(create_success = 开票成功)、(create_failed = 开票失败)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 错误编码
	BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"`
	// 错误信息
	BizErrorMsg string `json:"biz_error_msg,omitempty" xml:"biz_error_msg,omitempty"`
	// 发票类型,blue=蓝票,red=红票
	InvoiceType string `json:"invoice_type,omitempty" xml:"invoice_type,omitempty"`
	// 原蓝票发票代码,invoiceType=red时有值
	NormalInvoiceCode string `json:"normal_invoice_code,omitempty" xml:"normal_invoice_code,omitempty"`
	// 原蓝票发票号码,invoiceType=red时有值
	NormalInvoiceNo string `json:"normal_invoice_no,omitempty" xml:"normal_invoice_no,omitempty"`
	// 开票人,erp开票不返回,用来erp获取自动开票结果
	PayeeOperator string `json:"payee_operator,omitempty" xml:"payee_operator,omitempty"`
	// 收款人,erp开票不返回,用来erp获取自动开票结果
	PayeeReceiver string `json:"payee_receiver,omitempty" xml:"payee_receiver,omitempty"`
	// 复核人,erp开票不返回,用来erp获取自动开票结果
	PayeeChecker string `json:"payee_checker,omitempty" xml:"payee_checker,omitempty"`
	// 购买方抬头,erp开票不返回,用来erp获取自动开票结果
	PayerName string `json:"payer_name,omitempty" xml:"payer_name,omitempty"`
	// 购买方税号,erp开票不返回,用来erp获取自动开票结果
	PayerRegisterNo string `json:"payer_register_no,omitempty" xml:"payer_register_no,omitempty"`
	// 购买方企业电话,erp开票不返回,用来erp获取自动开票结果
	PayerPhone string `json:"payer_phone,omitempty" xml:"payer_phone,omitempty"`
	// 购买方企业地址,erp开票不返回,用来erp获取自动开票结果
	PayerAddress string `json:"payer_address,omitempty" xml:"payer_address,omitempty"`
	// 购买方企业银行及账号,erp开票不返回,用来erp获取自动开票结果
	PayerBankaccount string `json:"payer_bankaccount,omitempty" xml:"payer_bankaccount,omitempty"`
	// 销售方税号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 开票时间,时分秒格式(注意:2019-04-11之后开具的发票才返回)
	InvoiceTime string `json:"invoice_time,omitempty" xml:"invoice_time,omitempty"`
	// 二维码
	QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"`
	// 发票种类,0=电子发票,1=纸质发票,2=纸质专票
	InvoiceKind int64 `json:"invoice_kind,omitempty" xml:"invoice_kind,omitempty"`
}

InvoiceResult 结构体

type InvoiceResultItemDto

type InvoiceResultItemDto struct {
	// 数量,最多6位小数。  折扣行此参数不能传,非折扣行必传。存在则需>0
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 单价(不含税),格式为2位小数。最大支持6位小数,不足2位小数时需转化为2位小数格式。折扣行此参数不能传,非折扣行必传
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 税率。格式为2位小数,如:0.00, 0.03, 0.13等等
	TaxRate string `json:"tax_rate,omitempty" xml:"tax_rate,omitempty"`
	// 发票项目编号(或商品编号)
	ItemNo string `json:"item_no,omitempty" xml:"item_no,omitempty"`
	// 发票项目名称(或商品名称)
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 含税总金额 (等于sum_price和tax之和),  单位:元,格式为2位小数,精度2位小数
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 单位。折扣行不能传,非折扣行必传
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 规格型号
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率
	ZeroRateFlag string `json:"zero_rate_flag,omitempty" xml:"zero_rate_flag,omitempty"`
	// 税额, 格式为2位小数
	Tax string `json:"tax,omitempty" xml:"tax,omitempty"`
	// 不含税总金额,格式为2位小数  单位:元,精度2位小数
	SumPrice string `json:"sum_price,omitempty" xml:"sum_price,omitempty"`
	// 发票行性质。0表示正常行,1表示折扣行,2表示被折扣行。  比如充电器单价100元,折扣10元,则明细为2行,充电器行性质为2,折扣行性质为1。如果充电器没有折扣,则值应为0
	RowType int64 `json:"row_type,omitempty" xml:"row_type,omitempty"`
}

InvoiceResultItemDto 结构体

type InvoiceTaxFlowCreateDto

type InvoiceTaxFlowCreateDto struct {
	// 外部业务方创建税控开通工单的唯一幂等ID(即:相同outer_id 会被视为同一个请求,被幂等处理), 由业务方自己生成。  只能由字母数字组成
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 业务平台code, 由阿里发票小二分配
	PlatformCode string `json:"platform_code,omitempty" xml:"platform_code,omitempty"`
	// 业务平台商户ID
	PlatformUserId string `json:"platform_user_id,omitempty" xml:"platform_user_id,omitempty"`
	// 税控产品,产品码由中台定义。
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 企业税务信息
	InvoiceCompany *InvoiceCompanyDto `json:"invoice_company,omitempty" xml:"invoice_company,omitempty"`
	// 联系人信息
	InvoiceContact *InvoiceContactDto `json:"invoice_contact,omitempty" xml:"invoice_contact,omitempty"`
	// 服务的有效天数,单位为天。  阿里发票服务周期计算规则为:服务起始时间=部署完成时的系统时间,服务截止时间=服务起始时间+serviceValidDays
	ServiceValidDays int64 `json:"service_valid_days,omitempty" xml:"service_valid_days,omitempty"`
}

InvoiceTaxFlowCreateDto 结构体

type OrderRightsInfo added in v1.2.8

type OrderRightsInfo struct {
	// 订单号
	Tid string `json:"tid,omitempty" xml:"tid,omitempty"`
	// 订单应开票时间
	ExceptInvoiceTime string `json:"except_invoice_time,omitempty" xml:"except_invoice_time,omitempty"`
}

OrderRightsInfo 结构体

type OrderRightsResult added in v1.2.8

type OrderRightsResult struct {
	// 赔付列表
	PayoutList []OrderRightsInfo `json:"payout_list,omitempty" xml:"payout_list>order_rights_info,omitempty"`
	// 赔付列表总数,超过系统最大展示数量是以200+的格式返回,
	TotalCount string `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

OrderRightsResult 结构体

type PayerLogisticsInfoDto

type PayerLogisticsInfoDto struct {
	// 收件人地址
	ContactAddr string `json:"contact_addr,omitempty" xml:"contact_addr,omitempty"`
	// 收件人电话
	ContactMobile string `json:"contact_mobile,omitempty" xml:"contact_mobile,omitempty"`
	// 收件人姓名
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
}

PayerLogisticsInfoDto 结构体

type QrCodeDo

type QrCodeDo struct {
	QrLogo string `json:"qr_logo,omitempty" xml:"qr_logo,omitempty"`
	// 二维码返回数据类型:1=二维码背后的URL,2=二维码图片CDN URL,3=二维码二进制数据流
	QrType int64 `json:"qr_type,omitempty" xml:"qr_type,omitempty"`
	// 二维码宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 二维码高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
}

QrCodeDo 结构体

type ResultList

type ResultList struct {
	// 开票明细列表
	InvoiceItems []InvoiceItems `json:"invoice_items,omitempty" xml:"invoice_items>invoice_items,omitempty"`
	// 付款方税号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 付款方平台
	Platform string `json:"platform,omitempty" xml:"platform,omitempty"`
	// 订单id
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 开票金额
	SumPrice string `json:"sum_price,omitempty" xml:"sum_price,omitempty"`
	// seriNo
	SeriNo string `json:"seri_no,omitempty" xml:"seri_no,omitempty"`
	// invoiceStatus
	InvoiceStatus int64 `json:"invoice_status,omitempty" xml:"invoice_status,omitempty"`
}

ResultList 结构体

type SalaryDetailDto

type SalaryDetailDto struct {
	// 账期
	AccountDate string `json:"account_date,omitempty" xml:"account_date,omitempty"`
	// 收款账号
	AssetSymbol string `json:"asset_symbol,omitempty" xml:"asset_symbol,omitempty"`
	// 账号类型
	AssetType string `json:"asset_type,omitempty" xml:"asset_type,omitempty"`
	// 业务时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 明细流水号
	DetailId string `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 业务编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 发薪失败原因
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 用户在业务方平台上的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 执行时间
	ProcessTime string `json:"process_time,omitempty" xml:"process_time,omitempty"`
	// 发薪状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 发薪金额
	ApplyAmount int64 `json:"apply_amount,omitempty" xml:"apply_amount,omitempty"`
	// 已发金额
	SalaryAmount int64 `json:"salary_amount,omitempty" xml:"salary_amount,omitempty"`
}

SalaryDetailDto 结构体

type ServiceResult

type ServiceResult struct {
	// 操作结果对象
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 系统自动生成
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 订购单信息
	Result *InvoiceFwOrderDto `json:"result,omitempty" xml:"result,omitempty"`
	// 续约返回结果
	InvoiceFlowRenewResult *InvoiceFlowRenewResultDto `json:"invoice_flow_renew_result,omitempty" xml:"invoice_flow_renew_result,omitempty"`
	// 工单详情
	TaxFlowQueryResult *TaxFlowQueryResult `json:"tax_flow_query_result,omitempty" xml:"tax_flow_query_result,omitempty"`
	// 申请结果
	ApplyResultDto *InvoiceApplyResultDto `json:"apply_result_dto,omitempty" xml:"apply_result_dto,omitempty"`
	// 发票申请详情
	InvoiceApplyDtl *InvoiceApplyDtlDto `json:"invoice_apply_dtl,omitempty" xml:"invoice_apply_dtl,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ServiceResult 结构体

type SimpleUnitOrder

type SimpleUnitOrder struct {
	// 订购单号
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 税盘编号
	TaxDiskNo string `json:"tax_disk_no,omitempty" xml:"tax_disk_no,omitempty"`
	// 状态-0:待部署,1:部署,2:变更,3:释放
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

SimpleUnitOrder 结构体

type TaxAuthTokenQueryDto added in v1.2.5

type TaxAuthTokenQueryDto struct {
	// 税控产品码
	ProductCode string `json:"product_code,omitempty" xml:"product_code,omitempty"`
	// 服务商平台授权商户的税号
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
}

TaxAuthTokenQueryDto 结构体

type TaxFlowQueryResult

type TaxFlowQueryResult struct {
	// 入驻开通工单ID
	FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"`
	// 入驻开通工单状态:  process: 入驻中;  success: 入驻成功;  closed: 入驻失败(发生退订或驳回工单)
	FlowStatus string `json:"flow_status,omitempty" xml:"flow_status,omitempty"`
	// 开票商户信息
	InvoiceMerchant *InvoiceMerchantDto `json:"invoice_merchant,omitempty" xml:"invoice_merchant,omitempty"`
	// 订购单信息
	InvoiceOrder *InvoiceOrderSimpleDto `json:"invoice_order,omitempty" xml:"invoice_order,omitempty"`
}

TaxFlowQueryResult 结构体

type TaxOptimizationBillDownloadUrlResultDto added in v1.2.5

type TaxOptimizationBillDownloadUrlResultDto struct {
	// 账单文件的下载地址,请求成功后20s内有效
	DownloadUrl string `json:"download_url,omitempty" xml:"download_url,omitempty"`
}

TaxOptimizationBillDownloadUrlResultDto 结构体

type TaxOptimizationEmployeeAssetUpdateDto

type TaxOptimizationEmployeeAssetUpdateDto struct {
	// 需要更新的资产账号
	AssetSymbol string `json:"asset_symbol,omitempty" xml:"asset_symbol,omitempty"`
	// 需要更新的资产类型
	AssetType string `json:"asset_type,omitempty" xml:"asset_type,omitempty"`
	// 承包商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 用户在业务方平台的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 税优模式
	TaxOptimizationMode string `json:"tax_optimization_mode,omitempty" xml:"tax_optimization_mode,omitempty"`
}

TaxOptimizationEmployeeAssetUpdateDto 结构体

type TaxOptimizationEmployeeAssetUpdateResultDto

type TaxOptimizationEmployeeAssetUpdateResultDto struct {
	// 承包商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 需要更新的资产账号
	CurrentBindedAssetSymbol string `json:"current_binded_asset_symbol,omitempty" xml:"current_binded_asset_symbol,omitempty"`
	// 需要更新的资产类型
	CurrentBindedAssetType string `json:"current_binded_asset_type,omitempty" xml:"current_binded_asset_type,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 用户在业务方平台的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 当前资产账号
	PreviousBindedAssetSymbol string `json:"previous_binded_asset_symbol,omitempty" xml:"previous_binded_asset_symbol,omitempty"`
	// 当前资产类型
	PreviousBindedAssetType string `json:"previous_binded_asset_type,omitempty" xml:"previous_binded_asset_type,omitempty"`
	// 税优模式
	TaxOptimizationMode string `json:"tax_optimization_mode,omitempty" xml:"tax_optimization_mode,omitempty"`
}

TaxOptimizationEmployeeAssetUpdateResultDto 结构体

type TaxOptimizationQueryAlipayAccountResultDto

type TaxOptimizationQueryAlipayAccountResultDto struct {
	// 认证类型
	CertTypeEnum string `json:"cert_type_enum,omitempty" xml:"cert_type_enum,omitempty"`
	// 账号状态
	EnableStatusEnum string `json:"enable_status_enum,omitempty" xml:"enable_status_enum,omitempty"`
	// 发薪账号
	PaySalaryAlipayAccount string `json:"pay_salary_alipay_account,omitempty" xml:"pay_salary_alipay_account,omitempty"`
	// 账号类型
	AccountTypeEnum int64 `json:"account_type_enum,omitempty" xml:"account_type_enum,omitempty"`
	// 是否正常发薪
	CanPay bool `json:"can_pay,omitempty" xml:"can_pay,omitempty"`
	// 是否实人认证
	Certified bool `json:"certified,omitempty" xml:"certified,omitempty"`
}

TaxOptimizationQueryAlipayAccountResultDto 结构体

type TaxOptimizationQueryPaySalaryAccountDto

type TaxOptimizationQueryPaySalaryAccountDto struct {
	// 承包商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 用户在业务方平台的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 税优模式
	TaxOptimizationMode string `json:"tax_optimization_mode,omitempty" xml:"tax_optimization_mode,omitempty"`
}

TaxOptimizationQueryPaySalaryAccountDto 结构体

type TaxOptimizationSalaryBillCommitReqDto

type TaxOptimizationSalaryBillCommitReqDto struct {
	// 发薪明细
	DetailList []TaxOptimizationSalaryDetailInfoDto `json:"detail_list,omitempty" xml:"detail_list>tax_optimization_salary_detail_info_dto,omitempty"`
	// 账期
	AccountDate string `json:"account_date,omitempty" xml:"account_date,omitempty"`
	// 发薪isv对应的发薪额度
	ContractorAppliedDutiableAmount string `json:"contractor_applied_dutiable_amount,omitempty" xml:"contractor_applied_dutiable_amount,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 总账单明细数
	TotalDetailCount int64 `json:"total_detail_count,omitempty" xml:"total_detail_count,omitempty"`
	// 是否关闭账期
	CloseAccountDate bool `json:"close_account_date,omitempty" xml:"close_account_date,omitempty"`
	// 是否开启账单
	StartAccountDate bool `json:"start_account_date,omitempty" xml:"start_account_date,omitempty"`
}

TaxOptimizationSalaryBillCommitReqDto 结构体

type TaxOptimizationSalaryDetailInfoDto

type TaxOptimizationSalaryDetailInfoDto struct {
	// 承包商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 明细id
	DetailId string `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 用户在业务平台的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 明细金额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
}

TaxOptimizationSalaryDetailInfoDto 结构体

type TaxOptimizationSalaryPayResultQueryResultDto

type TaxOptimizationSalaryPayResultQueryResultDto struct {
	// 结果列表
	SalaryDetailList []SalaryDetailDto `json:"salary_detail_list,omitempty" xml:"salary_detail_list>salary_detail_dto,omitempty"`
}

TaxOptimizationSalaryPayResultQueryResultDto 结构体

type TaxOptimizationSalaryPaymentAccessReqDto

type TaxOptimizationSalaryPaymentAccessReqDto struct {
	// 发薪明细列表
	DetailIdList []string `json:"detail_id_list,omitempty" xml:"detail_id_list>string,omitempty"`
	// 账期
	AccountDate string `json:"account_date,omitempty" xml:"account_date,omitempty"`
	// 发薪金额
	ApplyAmount string `json:"apply_amount,omitempty" xml:"apply_amount,omitempty"`
	// 业务时间
	BusinessTime string `json:"business_time,omitempty" xml:"business_time,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 用户在业务方平台的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 发薪模式
	PaySalaryMode string `json:"pay_salary_mode,omitempty" xml:"pay_salary_mode,omitempty"`
	// 请求id
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
}

TaxOptimizationSalaryPaymentAccessReqDto 结构体

type TaxOptimizationSalaryPaymentAccessResultDto

type TaxOptimizationSalaryPaymentAccessResultDto struct {
	// 发薪状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 失败的个数
	FailCount int64 `json:"fail_count,omitempty" xml:"fail_count,omitempty"`
	// 正在处理的个数
	ProcessingCount int64 `json:"processing_count,omitempty" xml:"processing_count,omitempty"`
	// 成功的个数
	SuccessCount int64 `json:"success_count,omitempty" xml:"success_count,omitempty"`
	// 总的发薪个数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaxOptimizationSalaryPaymentAccessResultDto 结构体

type TaxOptimizationSingleDetailPaymentAccessResultDto

type TaxOptimizationSingleDetailPaymentAccessResultDto struct {
	// 服务返回结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaxOptimizationSingleDetailPaymentAccessResultDto 结构体

type TaxOptimizationSingleDetailSalaryPaymentAccessDto

type TaxOptimizationSingleDetailSalaryPaymentAccessDto struct {
	// 业务提交时间
	BusinessTime string `json:"business_time,omitempty" xml:"business_time,omitempty"`
	// 承包商编码
	ContractorCode string `json:"contractor_code,omitempty" xml:"contractor_code,omitempty"`
	// 发薪流水id
	DetailId string `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 业务方编码
	EmployerCode string `json:"employer_code,omitempty" xml:"employer_code,omitempty"`
	// 用户在业务方的userid
	IdentificationInBelongingEmployer string `json:"identification_in_belonging_employer,omitempty" xml:"identification_in_belonging_employer,omitempty"`
	// 业务自定义发薪备注
	SalaryRemark string `json:"salary_remark,omitempty" xml:"salary_remark,omitempty"`
	// 发薪金额
	ApplyAmount int64 `json:"apply_amount,omitempty" xml:"apply_amount,omitempty"`
}

TaxOptimizationSingleDetailSalaryPaymentAccessDto 结构体

type UserInvoiceApplyDto

type UserInvoiceApplyDto struct {
	// 开票明细列表
	InvoiceItemList []UserInvoiceItemDto `json:"invoice_item_list,omitempty" xml:"invoice_item_list>user_invoice_item_dto,omitempty"`
	// 开票申请id
	ApplyId string `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 开票金额
	InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"`
	// 税号,表示商家是为此税号的账单开票
	PayeeRegisterNo string `json:"payee_register_no,omitempty" xml:"payee_register_no,omitempty"`
	// 企业名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 申请企业开户行
	Bank string `json:"bank,omitempty" xml:"bank,omitempty"`
	// 申请企业开户账号
	BankAccount string `json:"bank_account,omitempty" xml:"bank_account,omitempty"`
	// 商家收货地址
	ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"`
	// 商家收货人
	ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"`
	// 商家收货电话
	ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"`
	// 服务商发货人
	SenderName string `json:"sender_name,omitempty" xml:"sender_name,omitempty"`
	// 服务商发货人电话
	SenderPhone string `json:"sender_phone,omitempty" xml:"sender_phone,omitempty"`
	// 服务商发货物流
	SenderLogisticsCompany string `json:"sender_logistics_company,omitempty" xml:"sender_logistics_company,omitempty"`
	// 服务商发货快递单号
	SenderLogisticsNo string `json:"sender_logistics_no,omitempty" xml:"sender_logistics_no,omitempty"`
	// 购方票面税号
	InvoicePayeeRegisterNo string `json:"invoice_payee_register_no,omitempty" xml:"invoice_payee_register_no,omitempty"`
	// 购方票面地址
	InvoiceAddress string `json:"invoice_address,omitempty" xml:"invoice_address,omitempty"`
	// 购方票面电话
	InvoicePhone string `json:"invoice_phone,omitempty" xml:"invoice_phone,omitempty"`
	// 申请单状态:1:待确认,2:开票中,3:拒绝开票,4:发票已发出,0:完成开票
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 发票类型:1:增值税普通发票,2:增值税专用发票
	InvoiceType int64 `json:"invoice_type,omitempty" xml:"invoice_type,omitempty"`
}

UserInvoiceApplyDto 结构体

type UserInvoiceItemDto

type UserInvoiceItemDto struct {
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商品金额
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 订单日
	BillDate string `json:"bill_date,omitempty" xml:"bill_date,omitempty"`
	// 商品类型:1. 税控单元,2.开票日账单
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
}

UserInvoiceItemDto 结构体

Source Files

Jump to

Keyboard shortcuts

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