添加文件: intelligence_finance_v1_ga/types.go
This commit is contained in:
parent
d3eb94456c
commit
61cc7b10a7
|
|
@ -0,0 +1,555 @@
|
|||
package intelligence_finance_v1_ga
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
// ==================== 通用 ====================
|
||||
|
||||
// CommonResponse 通用响应结构。
|
||||
type CommonResponse struct {
|
||||
Code int `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
Data json.RawMessage `json:"data"`
|
||||
}
|
||||
|
||||
// ==================== 接口1:订单开票 ====================
|
||||
|
||||
// InvoiceApplyRequest 提交订单开票申请请求。
|
||||
type InvoiceApplyRequest struct {
|
||||
// CompanyCode 开票的企业主体编码,不传则默认主体开票
|
||||
CompanyCode string `json:"companyCode,omitempty"`
|
||||
// OrderID 订单唯一标识(需保证在贵方系统内唯一)
|
||||
OrderID string `json:"orderId"`
|
||||
// InvoiceType 发票类型枚举:1-专用发票;2-普通发票;3-普通发票(电子);4-专用发票(电子);8-数电专票;9-数电普票
|
||||
InvoiceType int `json:"invoiceType"`
|
||||
// Products 货物/服务明细列表,至少一项
|
||||
Products []ProductItem `json:"products"`
|
||||
// Remark 订单备注(非发票备注)
|
||||
Remark string `json:"remark,omitempty"`
|
||||
// Purchaser 购方企业名称
|
||||
Purchaser string `json:"purchaser"`
|
||||
// TaxNum 购方纳税人识别号
|
||||
TaxNum string `json:"taxnum,omitempty"`
|
||||
// PurchaserAddress 购方地址
|
||||
PurchaserAddress string `json:"purchaserAddress,omitempty"`
|
||||
// PurchaserTel 购方电话
|
||||
PurchaserTel string `json:"purchaserTel,omitempty"`
|
||||
// BankName 购方开户行名称
|
||||
BankName string `json:"bankName,omitempty"`
|
||||
// BankAccount 购方银行账号
|
||||
BankAccount string `json:"bankAccount,omitempty"`
|
||||
// Phone 收票人手机号(用于接收电票短信)
|
||||
Phone string `json:"phone,omitempty"`
|
||||
// Email 收票人邮箱(用于接收电票邮件)
|
||||
Email string `json:"email,omitempty"`
|
||||
// ApplyPerson 开票申请人名称
|
||||
ApplyPerson string `json:"applyPerson,omitempty"`
|
||||
// Payee 收款人(发票票面)
|
||||
Payee string `json:"payee,omitempty"`
|
||||
// Reviewer 复核人(发票票面)
|
||||
Reviewer string `json:"reviewer,omitempty"`
|
||||
// InvoiceRemark 发票备注栏内容
|
||||
InvoiceRemark string `json:"invoiceRemark,omitempty"`
|
||||
// NaturalPerson 购买方自然人标识:Y-是,N-否(默认N),数电票可选传
|
||||
NaturalPerson string `json:"naturalPerson,omitempty"`
|
||||
// AdditionInfo 附加信息(JSON数组字符串)
|
||||
AdditionInfo string `json:"additionInfo,omitempty"`
|
||||
}
|
||||
|
||||
// ProductItem 货物/服务明细项。
|
||||
type ProductItem struct {
|
||||
// ProductName 货物或服务名称
|
||||
ProductName string `json:"productName"`
|
||||
// RevenueCode 19位税收分类编码
|
||||
RevenueCode string `json:"revenueCode"`
|
||||
// AmountIncludeTax 单条明细含税总金额(单位:元)
|
||||
AmountIncludeTax float64 `json:"amountIncludeTax"`
|
||||
// Specs 规格型号
|
||||
Specs string `json:"specs,omitempty"`
|
||||
// Unit 计量单位(如:台、个、次)
|
||||
Unit string `json:"unit,omitempty"`
|
||||
// Quantity 数量
|
||||
Quantity float64 `json:"quantity"`
|
||||
// Discount 折扣金额(无折扣传0)
|
||||
Discount float64 `json:"discount,omitempty"`
|
||||
// TaxSign 是否含税:0-不含税;1-含税(默认建议传1)
|
||||
TaxSign int `json:"taxSign,omitempty"`
|
||||
// TaxRate 税率(小数形式,如0.13表示13%)
|
||||
TaxRate float64 `json:"taxRate,omitempty"`
|
||||
}
|
||||
|
||||
// InvoiceApplyResponse 提交订单开票申请响应。
|
||||
type InvoiceApplyResponse struct {
|
||||
// Status 开票状态:0-未开票;1-开票中;2-部分失败;3-开票成功;4-开票失败;5-部分未开;6-未配置数电账号;7-未配置自动开票配置
|
||||
Status int `json:"status"`
|
||||
// ErrorMsg 错误信息(开票失败时返回原因)
|
||||
ErrorMsg string `json:"errorMsg,omitempty"`
|
||||
// DataList 发票数据列表(一张订单可能对应多张发票)
|
||||
DataList []InvoiceData `json:"dataList"`
|
||||
}
|
||||
|
||||
// InvoiceData 发票数据。
|
||||
type InvoiceData struct {
|
||||
DeviceCode string `json:"deviceCode"`
|
||||
Drawer string `json:"drawer"`
|
||||
Email string `json:"email"`
|
||||
InvoiceType string `json:"invoiceType"`
|
||||
IssueType string `json:"issueType"`
|
||||
ListFlag string `json:"listFlag"`
|
||||
Mobile string `json:"mobile"`
|
||||
OriginalInvCode string `json:"originalInvCode,omitempty"`
|
||||
OriginalInvNo string `json:"originalInvNo,omitempty"`
|
||||
AdditionInfo string `json:"additionInfo,omitempty"`
|
||||
Payee string `json:"payee"`
|
||||
PurchaserAddress string `json:"purchaserAddress"`
|
||||
PurchaserBankAccount string `json:"purchaserBankAccount"`
|
||||
PurchaserBankName string `json:"purchaserBankName"`
|
||||
PurchaserName string `json:"purchaserName"`
|
||||
PurchaserTaxNo string `json:"purchaserTaxNo"`
|
||||
PurchaserTel string `json:"purchaserTel"`
|
||||
NaturalPerson string `json:"naturalPerson,omitempty"`
|
||||
Remark string `json:"remark"`
|
||||
Reviewer string `json:"reviewer"`
|
||||
SellerAddress string `json:"sellerAddress,omitempty"`
|
||||
SellerBankAccount string `json:"sellerBankAccount"`
|
||||
SellerBankName string `json:"sellerBankName"`
|
||||
SellerName string `json:"sellerName"`
|
||||
CheckCode string `json:"checkCode"`
|
||||
CipherText string `json:"cipherText"`
|
||||
DrewDate string `json:"drewDate,omitempty"`
|
||||
InvoiceCode string `json:"invoiceCode"`
|
||||
InvoiceNo string `json:"invoiceNo"`
|
||||
InvoiceStatus string `json:"invoiceStatus"`
|
||||
LayoutFileURL string `json:"layoutFileUrl,omitempty"`
|
||||
PDFURL string `json:"pdfUrl,omitempty"`
|
||||
OFDURL string `json:"ofdUrl,omitempty"`
|
||||
XMLURL string `json:"xmlUrl,omitempty"`
|
||||
TotalExcludeTax string `json:"totalExcludeTax"`
|
||||
TotalIncludeTax string `json:"totalIncludeTax"`
|
||||
TotalTaxAmount string `json:"totalTaxAmount"`
|
||||
LevyingType string `json:"levyingType"`
|
||||
Details []InvoiceDetail `json:"details"`
|
||||
}
|
||||
|
||||
// InvoiceDetail 发票商品明细。
|
||||
type InvoiceDetail struct {
|
||||
Amount string `json:"amount,omitempty"`
|
||||
Quantity string `json:"quantity,omitempty"`
|
||||
DeductionAmount string `json:"deductionAmount,omitempty"`
|
||||
TaxAmount string `json:"taxAmount,omitempty"`
|
||||
ItemTitle string `json:"itemTitle"`
|
||||
TaxCode string `json:"taxCode"`
|
||||
ItemType string `json:"itemType"`
|
||||
ItemName string `json:"itemName"`
|
||||
Specs string `json:"specs,omitempty"`
|
||||
TaxFreePolicy string `json:"taxFreePolicy"`
|
||||
PreferentialPolicy string `json:"preferentialPolicy"`
|
||||
TaxRate string `json:"taxRate"`
|
||||
TaxSign string `json:"taxSign"`
|
||||
Unit string `json:"unit,omitempty"`
|
||||
UnitPrice string `json:"unitPrice,omitempty"`
|
||||
}
|
||||
|
||||
// ==================== 接口2:开票状态查询 ====================
|
||||
|
||||
// InvoiceStatusQueryRequest 查询订单开票状态请求。
|
||||
type InvoiceStatusQueryRequest struct {
|
||||
// OrderID 订单唯一标识(需保证在贵方系统内唯一)
|
||||
OrderID string `json:"orderId"`
|
||||
}
|
||||
|
||||
// InvoiceStatusQueryResponse 查询订单开票状态响应。
|
||||
type InvoiceStatusQueryResponse struct {
|
||||
// Status 开票状态(0-未开票,3-成功,4-失败,6-未配置数电账号,7-未配置自动开票)
|
||||
Status int `json:"status"`
|
||||
// Message 状态描述(如"开票成功")
|
||||
Message string `json:"message"`
|
||||
// Data 发票详细列表,结构与回调中的data字段一致
|
||||
Data []InvoiceData `json:"data"`
|
||||
}
|
||||
|
||||
// ==================== 接口3:创建付款单据 ====================
|
||||
|
||||
// CreatePaymentRequest 创建付款单据请求。
|
||||
type CreatePaymentRequest struct {
|
||||
Code string `json:"code"`
|
||||
YidaAppType string `json:"yidaAppType,omitempty"`
|
||||
EmpAccountUserID string `json:"empAccountUserId,omitempty"`
|
||||
Department *Department `json:"department,omitempty"`
|
||||
Usage string `json:"usage,omitempty"`
|
||||
PaymentUserID string `json:"paymentUserId,omitempty"`
|
||||
Customer *Customer `json:"customer,omitempty"`
|
||||
PrincipalID string `json:"principalId,omitempty"`
|
||||
Remark string `json:"remark,omitempty"`
|
||||
Supplier *Supplier `json:"supplier,omitempty"`
|
||||
Title string `json:"title,omitempty"`
|
||||
Project *Project `json:"project,omitempty"`
|
||||
PaymentUserIDListStr string `json:"paymentUserIdListStr,omitempty"`
|
||||
NeedPayment bool `json:"needPayment,omitempty"`
|
||||
PaymentDetailListJSON string `json:"paymentDetailListJsonStr,omitempty"`
|
||||
PaymentDetailList []PaymentDetail `json:"paymentDetailList,omitempty"`
|
||||
Company *Company `json:"company,omitempty"`
|
||||
Amount string `json:"amount,omitempty"`
|
||||
RecipientAccountInfo *RecipientAccount `json:"recipientAccountInfo,omitempty"`
|
||||
EnterpriseAccount *EnterpriseAccount `json:"enterpriseAccount,omitempty"`
|
||||
Category []Category `json:"category,omitempty"`
|
||||
UserID string `json:"userId"`
|
||||
OccurDate int64 `json:"occurDate,omitempty"`
|
||||
Product *Product `json:"product,omitempty"`
|
||||
YidaFormUUID string `json:"yidaFormUuid,omitempty"`
|
||||
CanEditPaymentInfo bool `json:"canEditPaymentInfo,omitempty"`
|
||||
PaymentUserIDList []string `json:"paymentUserIdList,omitempty"`
|
||||
YidaProcInsID string `json:"yidaProcInsId,omitempty"`
|
||||
SyncPaymentOrder bool `json:"syncPaymentOrder,omitempty"`
|
||||
}
|
||||
|
||||
// Department 部门信息。
|
||||
type Department struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Customer 客户信息。
|
||||
type Customer struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Supplier 供应商信息。
|
||||
type Supplier struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Project 项目信息。
|
||||
type Project struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Category 收支类别信息。
|
||||
type Category struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Product 商品信息。
|
||||
type Product struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// Company 企业主体信息。
|
||||
type Company struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// EnterpriseAccount 企业账号信息。
|
||||
type EnterpriseAccount struct {
|
||||
EnterpriseAccountCode string `json:"enterpriseAccountCode,omitempty"`
|
||||
AccountCategory string `json:"accountCategory"`
|
||||
AccountType string `json:"accountType,omitempty"`
|
||||
CardNo string `json:"cardNo,omitempty"`
|
||||
AccountName string `json:"accountName,omitempty"`
|
||||
OfficialNumber string `json:"officialNumber,omitempty"`
|
||||
OfficialName string `json:"officialName,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Code string `json:"code,omitempty"`
|
||||
City string `json:"city,omitempty"`
|
||||
Province string `json:"province,omitempty"`
|
||||
}
|
||||
|
||||
// RecipientAccount 收款账户信息。
|
||||
type RecipientAccount struct {
|
||||
AccountCategory string `json:"accountCategory"`
|
||||
AccountType string `json:"accountType,omitempty"`
|
||||
CardNo string `json:"cardNo,omitempty"`
|
||||
AccountName string `json:"accountName,omitempty"`
|
||||
}
|
||||
|
||||
// PaymentDetail 付款明细。
|
||||
type PaymentDetail struct {
|
||||
Amount string `json:"amount,omitempty"`
|
||||
InvoiceInfo *InvoiceInfo `json:"invoiceInfo,omitempty"`
|
||||
ProductCode string `json:"productCode,omitempty"`
|
||||
ProjectCode string `json:"projectCode,omitempty"`
|
||||
Remark string `json:"remark,omitempty"`
|
||||
PrincipalID string `json:"principalId,omitempty"`
|
||||
Tax string `json:"tax,omitempty"`
|
||||
}
|
||||
|
||||
// InvoiceInfo 付款明细发票信息。
|
||||
type InvoiceInfo struct {
|
||||
InvoiceNo string `json:"invoiceNo,omitempty"`
|
||||
InvoiceCode string `json:"invoiceCode,omitempty"`
|
||||
}
|
||||
|
||||
// CreatePaymentResponse 创建付款单据响应。
|
||||
type CreatePaymentResponse struct {
|
||||
// Code 单据唯一编码
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
// ==================== 接口4:支付完成通知 ====================
|
||||
|
||||
// PaymentNotifyData 支付完成通知数据。
|
||||
type PaymentNotifyData struct {
|
||||
Code string `json:"code"`
|
||||
InstanceID string `json:"instanceId"`
|
||||
CorpID string `json:"corpId"`
|
||||
PaymentStatus string `json:"paymentStatus"`
|
||||
PaymentTime string `json:"paymentTime"`
|
||||
UserID string `json:"userId"`
|
||||
FailReason string `json:"failReason,omitempty"`
|
||||
PayerAccountInfo *PayerAccountInfo `json:"payerAccountInfo,omitempty"`
|
||||
PayeeAccountInfo *PayeeAccountInfo `json:"payeeAccountInfo,omitempty"`
|
||||
RelatedRowNumberList []string `json:"relatedRowNumberList,omitempty"`
|
||||
Source string `json:"source,omitempty"`
|
||||
Template string `json:"template,omitempty"`
|
||||
Amount string `json:"amount,omitempty"`
|
||||
}
|
||||
|
||||
// PayerAccountInfo 付款账户信息。
|
||||
type PayerAccountInfo struct {
|
||||
BankOpenDTO *BankOpenDTO `json:"bankOpenDTO,omitempty"`
|
||||
EnterpriseAccountCode string `json:"enterpriseAccountCode,omitempty"`
|
||||
AccountType string `json:"accountType,omitempty"`
|
||||
}
|
||||
|
||||
// PayeeAccountInfo 收款账户信息。
|
||||
type PayeeAccountInfo struct {
|
||||
BankOpenDTO *BankOpenDTO `json:"bankOpenDTO,omitempty"`
|
||||
}
|
||||
|
||||
// BankOpenDTO 银行信息。
|
||||
type BankOpenDTO struct {
|
||||
BankCode string `json:"bankCode,omitempty"`
|
||||
BankName string `json:"bankName,omitempty"`
|
||||
BankBranchCode string `json:"bankBranchCode,omitempty"`
|
||||
BankBranchName string `json:"bankBranchName,omitempty"`
|
||||
AccountName string `json:"accountName,omitempty"`
|
||||
BankCardNo string `json:"bankCardNo,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// 支付状态枚举。
|
||||
const (
|
||||
PaymentStatusSuccess = "SUCCESS" // 支付成功
|
||||
PaymentStatusFail = "FAIL" // 支付失败
|
||||
PaymentStatusTerminate = "TERMINATE" // 支付取消
|
||||
PaymentStatusWaitPay = "WAIT_PAY" // 待支付
|
||||
PaymentStatusPaying = "PAYING" // 支付中
|
||||
PaymentStatusPartSuccess = "PART_SUCCESS" // 部分支付成功
|
||||
PaymentStatusRefund = "REFUND" // 退款
|
||||
)
|
||||
|
||||
// 来源枚举。
|
||||
const (
|
||||
SourceApproval = "approval" // 审批单
|
||||
SourceOpenAPI = "openapi" // 开发接口
|
||||
)
|
||||
|
||||
// 账户类型枚举。
|
||||
const (
|
||||
AccountTypeAlipay = "ALIPAY" // 支付宝
|
||||
AccountTypeBankCard = "BANKCARD" // 银行卡
|
||||
AccountTypeCorpBankCard = "CORP_BANK_CARD" // 对公银行卡
|
||||
AccountTypePersonalBankCard = "PERSONAL_BANK_CARD" // 对私银行卡
|
||||
)
|
||||
|
||||
// ==================== 接口5:支付状态查询 ====================
|
||||
|
||||
// PaymentStatusQueryRequest 查询支付状态请求。
|
||||
type PaymentStatusQueryRequest struct {
|
||||
Code string `json:"code"`
|
||||
UserID string `json:"userId"`
|
||||
}
|
||||
|
||||
// ==================== 通用通知机制 ====================
|
||||
|
||||
// Notification 通用通知数据。
|
||||
type Notification struct {
|
||||
BizType string `json:"bizType"`
|
||||
BizID string `json:"bizId"`
|
||||
Data string `json:"data,omitempty"`
|
||||
}
|
||||
|
||||
// 通知响应常量。
|
||||
const (
|
||||
NotifyResultSuccess = "SUCCESS" // 成功
|
||||
NotifyResultFailed = "FAILED" // 失败
|
||||
)
|
||||
|
||||
// ==================== 接口6:创建供应商 ====================
|
||||
|
||||
// CreateSupplierRequest 创建供应商请求。
|
||||
type CreateSupplierRequest struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
UserID string `json:"userId"`
|
||||
Data string `json:"data,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
}
|
||||
|
||||
// SupplierBizData 供应商业务数据。
|
||||
type SupplierBizData struct {
|
||||
CorpID string `json:"corpId"`
|
||||
Creator string `json:"creator"`
|
||||
SupplierInfo *SupplierInfo `json:"supplierInfo,omitempty"`
|
||||
}
|
||||
|
||||
// SupplierInfo 供应商数据。
|
||||
type SupplierInfo struct {
|
||||
Name string `json:"name"`
|
||||
CorpID string `json:"corpId"`
|
||||
UserDefineCode string `json:"userDefineCode,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
ContactAddress string `json:"contactAddress,omitempty"`
|
||||
ContactCompanyTelephone string `json:"contactCompanyTelephone,omitempty"`
|
||||
ContactEmail string `json:"contactEmail,omitempty"`
|
||||
ContactName string `json:"contactName,omitempty"`
|
||||
ContactTelephone string `json:"contactTelephone,omitempty"`
|
||||
Creator string `json:"creator"`
|
||||
InvoiceAccount string `json:"invoiceAccount,omitempty"`
|
||||
InvoiceAddress string `json:"invoiceAddress,omitempty"`
|
||||
InvoiceBankName string `json:"invoiceBankName,omitempty"`
|
||||
InvoiceName string `json:"invoiceName,omitempty"`
|
||||
InvoiceTaxNo string `json:"invoiceTaxNo,omitempty"`
|
||||
PurchaserTel string `json:"purchaserTel,omitempty"`
|
||||
BankName string `json:"bankName,omitempty"`
|
||||
InvoiceTelephone string `json:"invoiceTelephone,omitempty"`
|
||||
AccountName string `json:"accountName,omitempty"`
|
||||
AccountType string `json:"accountType,omitempty"`
|
||||
}
|
||||
|
||||
// CreateSupplierResponse 创建供应商响应。
|
||||
type CreateSupplierResponse struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
Data string `json:"data,omitempty"`
|
||||
}
|
||||
|
||||
// SupplierResponseData 供应商响应数据。
|
||||
type SupplierResponseData struct {
|
||||
Result string `json:"result,omitempty"`
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
// SupplierResult 供应商信息(响应)。
|
||||
type SupplierResult struct {
|
||||
SupplierID string `json:"supplierId"`
|
||||
SupplierName string `json:"supplierName"`
|
||||
Name string `json:"name"`
|
||||
CorpID string `json:"corpId"`
|
||||
UserDefineCode string `json:"userDefineCode,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
ContactAddress string `json:"contactAddress,omitempty"`
|
||||
ContactCompanyTelephone string `json:"contactCompanyTelephone,omitempty"`
|
||||
ContactEmail string `json:"contactEmail,omitempty"`
|
||||
ContactName string `json:"contactName,omitempty"`
|
||||
ContactTelephone string `json:"contactTelephone,omitempty"`
|
||||
Creator string `json:"creator"`
|
||||
InvoiceAccount string `json:"invoiceAccount,omitempty"`
|
||||
InvoiceAddress string `json:"invoiceAddress,omitempty"`
|
||||
InvoiceBankName string `json:"invoiceBankName,omitempty"`
|
||||
InvoiceName string `json:"invoiceName,omitempty"`
|
||||
InvoiceTaxNo string `json:"invoiceTaxNo,omitempty"`
|
||||
CreateTime int64 `json:"createTime,omitempty"`
|
||||
ModifiedTime int64 `json:"modifiedTime,omitempty"`
|
||||
Code string `json:"code,omitempty"`
|
||||
ID int64 `json:"id,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// ==================== 接口7:根据名称查询供应商 ====================
|
||||
|
||||
// QuerySupplierByNameRequest 根据名称查询供应商请求。
|
||||
type QuerySupplierByNameRequest struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
UserID string `json:"userId"`
|
||||
Data string `json:"data,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
}
|
||||
|
||||
// QueryByName 按名称查询业务数据。
|
||||
type QueryByName struct {
|
||||
CorpID string `json:"corpId"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
// QuerySupplierByNameResponse 根据名称查询供应商响应。
|
||||
type QuerySupplierByNameResponse struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
Data string `json:"data,omitempty"`
|
||||
Result string `json:"result,omitempty"`
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
// ==================== 接口8:更新供应商 ====================
|
||||
|
||||
// UpdateSupplierRequest 更新供应商请求。
|
||||
type UpdateSupplierRequest struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
UserID string `json:"userId"`
|
||||
Data string `json:"data,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
}
|
||||
|
||||
// UpdateSupplierBizData 更新供应商业务数据。
|
||||
type UpdateSupplierBizData struct {
|
||||
SupplierID string `json:"supplierId"`
|
||||
Name string `json:"name"`
|
||||
CorpID string `json:"corpId"`
|
||||
UserDefineCode string `json:"userDefineCode,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
ContactAddress string `json:"contactAddress,omitempty"`
|
||||
ContactCompanyTelephone string `json:"contactCompanyTelephone,omitempty"`
|
||||
ContactEmail string `json:"contactEmail,omitempty"`
|
||||
ContactName string `json:"contactName,omitempty"`
|
||||
ContactTelephone string `json:"contactTelephone,omitempty"`
|
||||
UserID string `json:"userId"`
|
||||
InvoiceAccount string `json:"invoiceAccount,omitempty"`
|
||||
InvoiceAddress string `json:"invoiceAddress,omitempty"`
|
||||
InvoiceBankName string `json:"invoiceBankName,omitempty"`
|
||||
InvoiceName string `json:"invoiceName,omitempty"`
|
||||
InvoiceTaxNo string `json:"invoiceTaxNo,omitempty"`
|
||||
PurchaserTel string `json:"purchaserTel,omitempty"`
|
||||
BankName string `json:"bankName,omitempty"`
|
||||
InvoiceTelephone string `json:"invoiceTelephone,omitempty"`
|
||||
AccountName string `json:"accountName,omitempty"`
|
||||
AccountType string `json:"accountType,omitempty"`
|
||||
BankBranchCode string `json:"bankBranchCode,omitempty"`
|
||||
BankCode string `json:"bankCode,omitempty"`
|
||||
BankCity string `json:"bankCity,omitempty"`
|
||||
BankProvince string `json:"bankProvince,omitempty"`
|
||||
}
|
||||
|
||||
// UpdateSupplierResponse 更新供应商响应。
|
||||
type UpdateSupplierResponse struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
Data string `json:"data,omitempty"`
|
||||
}
|
||||
|
||||
// ==================== 接口9:根据用户自定义编码查询供应商 ====================
|
||||
|
||||
// QuerySupplierByUserDefineCodeRequest 根据用户自定义编码查询供应商请求。
|
||||
type QuerySupplierByUserDefineCodeRequest struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
UserID string `json:"userId"`
|
||||
Data string `json:"data,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
}
|
||||
|
||||
// QueryByUserDefineCode 按用户自定义编码查询业务数据。
|
||||
type QueryByUserDefineCode struct {
|
||||
CorpID string `json:"corpId"`
|
||||
UserDefineCode string `json:"userDefineCode"`
|
||||
}
|
||||
|
||||
// QuerySupplierByUserDefineCodeResponse 根据用户自定义编码查询供应商响应。
|
||||
type QuerySupplierByUserDefineCodeResponse struct {
|
||||
InvokeID string `json:"invokeId,omitempty"`
|
||||
BizType string `json:"bizType"`
|
||||
Data string `json:"data,omitempty"`
|
||||
}
|
||||
Loading…
Reference in New Issue