Documentation ¶
Index ¶
- Constants
- func CreateSignature(method string, url string, ts int, nounce string, body []byte, ...) (signature string, err error)
- func GetKeyFromCertificate(certContent string) (rsaPublicKey *rsa.PublicKey)
- func ParseP12Cert(content []byte, password string) (rsaPublicKey *rsa.PublicKey, rsaPrivateKey *rsa.PrivateKey, err error)
- func RandStringBytesMaskImprSrc(n int) string
- func VerifyWechatSignature(ts string, nonce string, body []byte, b64Sig string, pub *rsa.PublicKey) (pass bool)
- type AccountInfo
- type ApplymentQueryResponse
- type BaseClient
- type BatchTransferQueryByOutNoRequest
- type BatchTransferQueryByOutNoResponse
- type BatchTransferRequest
- type BatchTransferResponse
- type BusinessLicenseInfo
- type CipherBlockResource
- type CloseOrderRequest
- type ContactInfo
- type ContentType
- type ErrBody
- type ErrDetail
- type EventTypeEnum
- type GetCertificatesResp
- type IDCardInfo
- type IDDocInfo
- type ImageFileSuffix
- type JsApiPayRequest
- type JsApiPayResponse
- type JsApiPrepayRequest
- type MediaUploadRequest
- type MediaUploadResponse
- type MerchantApiClient
- func (c MerchantApiClient) ApplymentQueryByID(ctx context.Context, req QueryApplymentByIDRequest) (resp *ApplymentQueryResponse, err error)
- func (c MerchantApiClient) ApplymentQueryByOutRequestNo(ctx context.Context, req QueryApplymentByOutRequestNoRequest) (resp *ApplymentQueryResponse, err error)
- func (c MerchantApiClient) ApplymentSubmit(ctx context.Context, req SubmitApplymentRequest) (resp *SubmitApplymentResp, err error)
- func (c MerchantApiClient) BatchTransfer(ctx context.Context, req BatchTransferRequest) (resp *BatchTransferResponse, err error)
- func (c MerchantApiClient) BatchTransferQueryByOutNo(ctx context.Context, req BatchTransferQueryByOutNoRequest) (resp *BatchTransferQueryByOutNoResponse, err error)
- func (c MerchantApiClient) Close(ctx context.Context, req CloseOrderRequest) (err error)
- func (c MerchantApiClient) GenJsApiPayRequest(req JsApiPayRequest) (resp *JsApiPayResponse, err error)
- func (c MerchantApiClient) GetResourcePlainText(r CipherBlockResource) (plainText []byte, err error)
- func (c MerchantApiClient) JsApiPrepay(ctx context.Context, req JsApiPrepayRequest) (resp *PrepayPayResponse, err error)
- func (c MerchantApiClient) MediaUpload(ctx context.Context, req MediaUploadRequest) (resp *MediaUploadResponse, err error)
- func (c MerchantApiClient) PayResultQueryByOutRequestNo(ctx context.Context, req QueryPayResultByOutRequestNoRequest) (resp *QueryPayResultResponse, err error)
- func (c MerchantApiClient) PayResultQueryByTransactionID(ctx context.Context, req QueryPayResultByTransactionIDRequest) (resp *QueryPayResultResponse, err error)
- func (c MerchantApiClient) PlatformBalanceQuery(ctx context.Context, req PlatformBalanceQueryRequest) (resp *PlatformBalanceQueryResponse, err error)
- func (c MerchantApiClient) PlatformEndDayBalanceQuery(ctx context.Context, req PlatformEndDayBalanceQueryRequest) (resp *PlatformEndDayBalanceQueryResponse, err error)
- func (c MerchantApiClient) ProfitReturnApply(ctx context.Context, req ProfitReturnApplyRequest) (resp *ProfitReturnApplyResponse, err error)
- func (c MerchantApiClient) ProfitReturnQuery(ctx context.Context, req ProfitReturnQueryRequest) (resp ProfitReturnQueryResponse, err error)
- func (c MerchantApiClient) ProfitShareApply(ctx context.Context, req ProfitShareApplyRequest) (resp *ProfitShareApplyResponse, err error)
- func (c MerchantApiClient) ProfitShareFinish(ctx context.Context, req ProfitShareFinishRequest) (resp *ProfitShareFinishResponse, err error)
- func (c MerchantApiClient) ProfitShareQuery(ctx context.Context, req ProfitShareQueryRequest) (resp *ProfitShareQueryResponse, err error)
- func (c MerchantApiClient) ProfitShareUnSplitAmountQuery(ctx context.Context, req ProfitShareUnSplitAmountQueryRequest) (resp *ProfitShareUnSplitAmountQueryResponse, err error)
- func (c MerchantApiClient) QueryRefundByID(ctx context.Context, req QueryRefundByIDRequest) (resp *QueryRefundResponse, err error)
- func (c MerchantApiClient) QueryRefundByOutRefundNo(ctx context.Context, req QueryRefundByOutRefundNoRequest) (resp *QueryRefundResponse, err error)
- func (c MerchantApiClient) ReceiversAdd(ctx context.Context, req ReceiversAddRequest) (resp *ReceiversAddResponse, err error)
- func (c MerchantApiClient) ReceiversDelete(ctx context.Context, req ReceiversDeleteRequest) (resp *ReceiversDeleteResponse, err error)
- func (c MerchantApiClient) RefundApply(ctx context.Context, req RefundRequest) (resp *RefundResponse, err error)
- func (c MerchantApiClient) SettlementModify(ctx context.Context, req ModifySettlementRequest) (err error)
- func (c MerchantApiClient) SettlementQuery(ctx context.Context, req QuerySettlementRequest) (resp *QuerySettlementResponse, err error)
- func (c MerchantApiClient) SubMchBalanceQuery(ctx context.Context, req SubMchBalanceQueryRequest) (resp *SubMchBalanceQueryResponse, err error)
- func (c MerchantApiClient) SubMchEndDayBalanceQuery(ctx context.Context, req SubMchEndDayBalanceQueryRequest) (resp *SubMchEndDayBalanceQueryResponse, err error)
- func (c MerchantApiClient) SubMchWithdraw(ctx context.Context, req SubMchWithdrawRequest) (resp *SubMchWithdrawResponse, err error)
- func (c MerchantApiClient) SubMchWithdrawQueryByOutRequestNo(ctx context.Context, req SubMchWithdrawQueryByOutRequestNoRequest) (resp *SubMchWithdrawQueryResponse, err error)
- func (c MerchantApiClient) SubMchWithdrawQueryByWithdrawID(ctx context.Context, req SubMchWithdrawQueryByWithdrawIDRequest) (resp *SubMchWithdrawQueryResponse, err error)
- type ModifySettlementRequest
- type Notification
- type OrganizationCertInfo
- type PayNotification
- type PlatformBalanceQueryRequest
- type PlatformBalanceQueryResponse
- type PlatformCertificatesMap
- type PlatformEndDayBalanceQueryRequest
- type PlatformEndDayBalanceQueryResponse
- type PrepayPayResponse
- type ProfitReturnApplyRequest
- type ProfitReturnApplyResponse
- type ProfitReturnQueryRequest
- type ProfitReturnQueryResponse
- type ProfitShareApplyRequest
- type ProfitShareApplyResponse
- type ProfitShareFinishRequest
- type ProfitShareFinishResponse
- type ProfitShareQueryRequest
- type ProfitShareQueryResponse
- type ProfitShareUnSplitAmountQueryRequest
- type ProfitShareUnSplitAmountQueryResponse
- type ProfitSharingNotification
- type QueryApplymentByIDRequest
- type QueryApplymentByOutRequestNoRequest
- type QueryPayResultByOutRequestNoRequest
- type QueryPayResultByTransactionIDRequest
- type QueryPayResultResponse
- type QueryRefundByIDRequest
- type QueryRefundByOutRefundNoRequest
- type QueryRefundResponse
- type QuerySettlementRequest
- type QuerySettlementResponse
- type ReceiverInProfitShareRequest
- type ReceiverInProfitShareResponse
- type ReceiversAddRequest
- type ReceiversAddResponse
- type ReceiversDeleteRequest
- type ReceiversDeleteResponse
- type RefundNotification
- type RefundRequest
- type RefundResponse
- type SalesSceneInfo
- type SubMchBalanceQueryRequest
- type SubMchBalanceQueryResponse
- type SubMchEndDayBalanceQueryRequest
- type SubMchEndDayBalanceQueryResponse
- type SubMchWithdrawQueryByOutRequestNoRequest
- type SubMchWithdrawQueryByWithdrawIDRequest
- type SubMchWithdrawQueryResponse
- type SubMchWithdrawRequest
- type SubMchWithdrawResponse
- type SubmitApplymentRequest
- type SubmitApplymentResp
- type TransferBatch
- type TransferDetail
- type TransferDetailItem
Constants ¶
const AUTHTYPE = "WECHATPAY2-SHA256-RSA2048"
const AccountNeedVerifyState = `ACCOUNT_NEED_VERIFY`
const BOUNDARY = "boundary"
Variables ¶
This section is empty.
Functions ¶
func CreateSignature ¶
func CreateSignature(method string, url string, ts int, nounce string, body []byte, priKey *rsa.PrivateKey) (signature string, err error)
生成API调用时需要的签名
func GetKeyFromCertificate ¶
从平台证书中获取公钥
func ParseP12Cert ¶
func ParseP12Cert(content []byte, password string) (rsaPublicKey *rsa.PublicKey, rsaPrivateKey *rsa.PrivateKey, err error)
从P12证书文件内容获取商户证书的公钥和私钥
Types ¶
type AccountInfo ¶
type AccountInfo struct { // 账户类型 BankAccountType string `json:"bank_account_type"` // 开户银行 AccountBank string `json:"account_bank"` // 开户名称 AccountName string `json:"account_name"` // 开户银行省市编码 BankAddressCode string `json:"bank_address_code"` // 开户银行联行号 BankBranchID string `json:"bank_branch_id,omitempty"` // 开户银行全称 (含支行) BankName string `json:"bank_name,omitempty"` // 银行帐号 AccountNumber string `json:"account_number"` }
type ApplymentQueryResponse ¶
type ApplymentQueryResponse struct { // 申请状态 ApplymentState string `json:"applyment_state"` // 申请状态描述 ApplymentStateDesc string `json:"applyment_state_desc"` // 签约链接 SignUrl string `json:"sign_url"` // 电商平台二级商户号 SubMchID string `json:"sub_mchid"` // 汇款账户验证信息 AccountValidation struct { // 付款户名 AccountName string `json:"account_name"` // 付款卡号 AccountNo string `json:"account_no"` // 汇款金额 (以分为单位) PayAmount string `json:"pay_amount"` // 收款卡号 DestinationAccountNumber string `json:"destination_account_number"` // 收款户名 DestinationAccountName string `json:"destination_account_name"` // 开户银行 DestinationAccountBank string `json:"destination_account_bank"` // 省市信息 City string `json:"city"` // 备注信息 Remark string `json:"remark"` // 汇款截止时间 Deadline string `json:"deadline"` } `json:"account_validation"` // 驳回原因详情 AuditDetail []struct { // 参数名称 ParamName string `json:"param_name"` // 驳回原因 RejectReason string `json:"reject_reason"` } `json:"audit_detail"` // 法人验证链接 LegalValidationUrl string `json:"legal_validation_url"` // 业务申请编号 OutRequestNo string `json:"out_request_no"` // 微信支付申请单号 ApplymentID uint `json:"applyment_id"` }
type BaseClient ¶ added in v0.0.5
type BaseClient struct {
// contains filtered or unexported fields
}
func NewBaseClient ¶ added in v0.0.5
func (BaseClient) GetCertificates ¶ added in v0.0.5
func (c BaseClient) GetCertificates() (resp *GetCertificatesResp, err error)
获取平台证书列表
type BatchTransferQueryByOutNoRequest ¶ added in v0.0.18
type BatchTransferQueryByOutNoResponse ¶ added in v0.0.18
type BatchTransferQueryByOutNoResponse struct { TransferBatch TransferBatch `json:"transfer_batch"` TransferDetails []TransferDetailItem `json:"transfer_detail_list"` Offset int64 `json:"offset"` Limit int64 `json:"limit"` }
type BatchTransferRequest ¶ added in v0.0.14
type BatchTransferRequest struct { // 直连商户的AppID AppID string `json:"appid"` // 商家批次单号 OutBatchNo string `json:"out_batch_no"` // 批次名称 BatchName string `json:"batch_name"` // 批次备注 BatchRemark string `json:"batch_remark"` // 转账总金额 TotalAmount uint `json:"total_amount"` // 转账总笔数 TotalNum uint `json:"total_num"` TransferDetailList []TransferDetail `json:"transfer_detail_list"` }
type BatchTransferResponse ¶ added in v0.0.14
type BusinessLicenseInfo ¶
type BusinessLicenseInfo struct { // 证件扫描件 - MediaID BusinessLicenseCopy string `json:"business_license_copy"` // 证件注册号 BusinessLicenseNumber string `json:"business_license_number"` // 商户名称 MerchantName string `json:"merchant_name"` // 经营者/法定代表人姓名 LegalPerson string `json:"legal_person"` // 注册地址 CompanyAddress string `json:"company_address,omitempty"` // 营业期限 BusinessTime string `json:"business_time,omitempty"` }
type CipherBlockResource ¶
type CipherBlockResource struct { // 加密算法类型 Algorithm string `json:"algorithm"` // 数据密文 Ciphertext string `json:"ciphertext"` // 附加数据 AssociatedData string `json:"associated_data"` // 随机串 Nonce string `json:"nonce"` }
加密块
type CloseOrderRequest ¶ added in v0.0.11
type ContactInfo ¶
type ContactInfo struct { // 超级管理员类型 ContactType string `json:"contact_type"` // 超级管理员姓名 ContactName string `json:"contact_name"` // 超级管理员身份证件号码 ContactIDCardNumber string `json:"contact_id_card_number"` // 超级管理员手机 MobilePhone string `json:"mobile_phone"` // 超级管理员邮箱 ContactEmail string `json:"contact_email,omitempty"` }
type ContentType ¶
type ContentType string
const ContentTypeBMP ContentType = "image/bmp"
const ContentTypeJPG ContentType = "image/jpg"
const ContentTypePNG ContentType = "image/png"
type ErrBody ¶
type ErrBody struct { Code string `json:"code"` Message string `json:"message"` Detail ErrDetail `json:"detail"` }
当请求处理失败时,除了HTTP状态码表示错误之外,API将在消息体返回错误相应说明具体的错误原因。 code:详细错误码 message:错误描述,使用易理解的文字表示错误的原因。 field: 指示错误参数的位置。当错误参数位于请求body的JSON时,填写指向参数的JSON Pointer 。当错误参数位于请求的url或者querystring时,填写参数的变量名。 value:错误的值 issue:具体错误原因
func (*ErrBody) IsIdempotent ¶
type EventTypeEnum ¶
type EventTypeEnum string
普通支付通知 退款通知 分账动账通知
通知类型枚举
const EVENTTYPE_REFUND_ABNORMAL EventTypeEnum = "REFUND.ABNORMAL"
退款异常
const EVENTTYPE_REFUND_CLOSED EventTypeEnum = "REFUND.CLOSED"
退款关闭
const EVENTTYPE_REFUND_SUCCESS EventTypeEnum = "REFUND.SUCCESS"
退款成功
const EVENTTYPE_TRANSACTION_RETURN EventTypeEnum = "TRANSACTION.RETURN"
分账回退
const EVENTTYPE_TRANSACTION_SUCCESS EventTypeEnum = "TRANSACTION.SUCCESS"
支付成功
type GetCertificatesResp ¶
type GetCertificatesResp struct { Data []struct { SerialNo string `json:"serial_no"` EffectiveTime string `json:"effective_time"` ExpireTime string `json:"expire_time"` EncryptCertificate struct { Algorithm string `json:"algorithm"` Nonce string `json:"nonce"` AssociatedData string `json:"associated_data"` Ciphertext string `json:"ciphertext"` } `json:"encrypt_certificate"` CertContent string } `json:"data"` }
type IDCardInfo ¶
type IDCardInfo struct { // 身份证人像面照片 IDCardCopy string `json:"id_card_copy"` // 身份证国徽面照片 IDCardNational string `json:"id_card_national"` // 身份证姓名 IDCardName string `json:"id_card_name"` // 身份证号码 IDCardNumber string `json:"id_card_number"` // 身份证有效期限 IDCardValidTime string `json:"id_card_valid_time"` }
type ImageFileSuffix ¶
type ImageFileSuffix string
const BMPSuffix ImageFileSuffix = "bmp"
const JPGSuffix ImageFileSuffix = "jpg"
const PNGSuffix ImageFileSuffix = "png"
type JsApiPayRequest ¶ added in v0.0.9
type JsApiPayResponse ¶ added in v0.0.9
type JsApiPrepayRequest ¶
type JsApiPrepayRequest struct { // 服务商公众号ID SpAppID string `json:"sp_appid"` // 服务商户号 SpMchID string `json:"sp_mchid"` // 二级商户公众号ID SubAppID string `json:"sub_appid"` // 二级商户号 SubMchID string `json:"sub_mchid"` // 商品描述 Description string `json:"description"` // 商户订单号 OutTradeNo string `json:"out_trade_no"` // 交易结束时间 TimeExpire string `json:"time_expire"` // 附加数据 Attach string `json:"attach"` // 通知地址 NotifyUrl string `json:"notify_url"` // 订单优惠标记 GoodsTag string `json:"goods_tag"` // 结算信息 SettleInfo struct { // 是否指定分账 ProfitSharing bool `json:"profit_sharing"` // 补差金额 SubsidyAmount int `json:"subsidy_amount"` } `json:"settle_info"` // 订单金额 Amount struct { // 总金额 Total uint `json:"total"` // 货币类型 Currency string `json:"currency"` } `json:"amount"` // 支付者 Payer struct { // 用户服务标识 SpOpenID string `json:"sp_openid"` // 用户子标识 SubOpenID string `json:"sub_openid"` } `json:"payer"` // 优惠功能 Detail *struct { // 订单原价 CostPrice uint `json:"cost_price"` // 商品小票ID InvoiceID string `json:"invoice_id"` // 单品列表 GoodsDetail []struct { // 商户侧商品编码 MerchantGoodsID string `json:"merchant_goods_id"` // 微信侧商品编码 WechatpayGoodsID string `json:"wechatpay_goods_id"` // 商品名称 GoodsName string `json:"goods_name"` // 商品数量 Quantity uint `json:"quantity"` // 商品单价 UnitPrice uint `json:"unit_price"` } `json:"goods_detail,omitempty"` } `json:"detail,omitempty"` // 场景信息 SceneInfo *struct { // 用户终端IP PayerClientIP string `json:"payer_client_ip"` // 商户端设备号 DeviceID string `json:"device_id"` // 商户门店信息 StoreInfo struct { // 门店编号 ID string `json:"id"` // 门店名称 Name string `json:"name"` // 地区编码 AreaCode string `json:"area_code"` // 详细地址 Address string `json:"address"` } `json:"store_info"` } `json:"scene_info,omitempty"` }
type MediaUploadRequest ¶
type MediaUploadResponse ¶
type MediaUploadResponse struct { // 媒体文件标识 Id MediaID string `json:"media_id"` }
type MerchantApiClient ¶
type MerchantApiClient struct { BaseClient // contains filtered or unexported fields }
func NewMerchantApiClient ¶
func NewMerchantApiClient(mchID string, certSerialNo string, apiCert string, baseUrl string, timeout time.Duration, certMap PlatformCertificatesMap, platformNo string, apiSecret string) (client MerchantApiClient)
func (MerchantApiClient) ApplymentQueryByID ¶
func (c MerchantApiClient) ApplymentQueryByID(ctx context.Context, req QueryApplymentByIDRequest) (resp *ApplymentQueryResponse, err error)
通过申请单ID查询申请状态
func (MerchantApiClient) ApplymentQueryByOutRequestNo ¶
func (c MerchantApiClient) ApplymentQueryByOutRequestNo(ctx context.Context, req QueryApplymentByOutRequestNoRequest) (resp *ApplymentQueryResponse, err error)
通过业务申请编号查询申请状态
func (MerchantApiClient) ApplymentSubmit ¶
func (c MerchantApiClient) ApplymentSubmit(ctx context.Context, req SubmitApplymentRequest) (resp *SubmitApplymentResp, err error)
二级商户进件
func (MerchantApiClient) BatchTransfer ¶ added in v0.0.14
func (c MerchantApiClient) BatchTransfer(ctx context.Context, req BatchTransferRequest) (resp *BatchTransferResponse, err error)
func (MerchantApiClient) BatchTransferQueryByOutNo ¶ added in v0.0.18
func (c MerchantApiClient) BatchTransferQueryByOutNo(ctx context.Context, req BatchTransferQueryByOutNoRequest) (resp *BatchTransferQueryByOutNoResponse, err error)
func (MerchantApiClient) Close ¶ added in v0.0.11
func (c MerchantApiClient) Close(ctx context.Context, req CloseOrderRequest) (err error)
关闭订单
func (MerchantApiClient) GenJsApiPayRequest ¶ added in v0.0.9
func (c MerchantApiClient) GenJsApiPayRequest(req JsApiPayRequest) (resp *JsApiPayResponse, err error)
生成JSAPI调起起支付的request结构体
func (MerchantApiClient) GetResourcePlainText ¶
func (c MerchantApiClient) GetResourcePlainText(r CipherBlockResource) (plainText []byte, err error)
func (MerchantApiClient) JsApiPrepay ¶
func (c MerchantApiClient) JsApiPrepay(ctx context.Context, req JsApiPrepayRequest) (resp *PrepayPayResponse, err error)
JSAPI下单API
func (MerchantApiClient) MediaUpload ¶
func (c MerchantApiClient) MediaUpload(ctx context.Context, req MediaUploadRequest) (resp *MediaUploadResponse, err error)
图片上传API
func (MerchantApiClient) PayResultQueryByOutRequestNo ¶
func (c MerchantApiClient) PayResultQueryByOutRequestNo(ctx context.Context, req QueryPayResultByOutRequestNoRequest) (resp *QueryPayResultResponse, err error)
商户订单号查询交易结果
func (MerchantApiClient) PayResultQueryByTransactionID ¶
func (c MerchantApiClient) PayResultQueryByTransactionID(ctx context.Context, req QueryPayResultByTransactionIDRequest) (resp *QueryPayResultResponse, err error)
微信支付订单号查询交易结果
func (MerchantApiClient) PlatformBalanceQuery ¶ added in v0.0.15
func (c MerchantApiClient) PlatformBalanceQuery(ctx context.Context, req PlatformBalanceQueryRequest) (resp *PlatformBalanceQueryResponse, err error)
电商平台账户实时余额查询
func (MerchantApiClient) PlatformEndDayBalanceQuery ¶ added in v0.0.15
func (c MerchantApiClient) PlatformEndDayBalanceQuery(ctx context.Context, req PlatformEndDayBalanceQueryRequest) (resp *PlatformEndDayBalanceQueryResponse, err error)
电商平台账户日终余额查询
func (MerchantApiClient) ProfitReturnApply ¶
func (c MerchantApiClient) ProfitReturnApply(ctx context.Context, req ProfitReturnApplyRequest) (resp *ProfitReturnApplyResponse, err error)
请求分账回退API
func (MerchantApiClient) ProfitReturnQuery ¶
func (c MerchantApiClient) ProfitReturnQuery(ctx context.Context, req ProfitReturnQueryRequest) (resp ProfitReturnQueryResponse, err error)
查询分账回退结果API
func (MerchantApiClient) ProfitShareApply ¶
func (c MerchantApiClient) ProfitShareApply(ctx context.Context, req ProfitShareApplyRequest) (resp *ProfitShareApplyResponse, err error)
请求分账API
func (MerchantApiClient) ProfitShareFinish ¶
func (c MerchantApiClient) ProfitShareFinish(ctx context.Context, req ProfitShareFinishRequest) (resp *ProfitShareFinishResponse, err error)
完结分账API
func (MerchantApiClient) ProfitShareQuery ¶
func (c MerchantApiClient) ProfitShareQuery(ctx context.Context, req ProfitShareQueryRequest) (resp *ProfitShareQueryResponse, err error)
查询分账结果API
func (MerchantApiClient) ProfitShareUnSplitAmountQuery ¶
func (c MerchantApiClient) ProfitShareUnSplitAmountQuery(ctx context.Context, req ProfitShareUnSplitAmountQueryRequest) (resp *ProfitShareUnSplitAmountQueryResponse, err error)
查询订单剩余待分金额API
func (MerchantApiClient) QueryRefundByID ¶
func (c MerchantApiClient) QueryRefundByID(ctx context.Context, req QueryRefundByIDRequest) (resp *QueryRefundResponse, err error)
通过微信支付退款单号查询退款
func (MerchantApiClient) QueryRefundByOutRefundNo ¶
func (c MerchantApiClient) QueryRefundByOutRefundNo(ctx context.Context, req QueryRefundByOutRefundNoRequest) (resp *QueryRefundResponse, err error)
通过商户退款单号查询退款
func (MerchantApiClient) ReceiversAdd ¶ added in v0.0.14
func (c MerchantApiClient) ReceiversAdd(ctx context.Context, req ReceiversAddRequest) (resp *ReceiversAddResponse, err error)
添加分账接受方API
func (MerchantApiClient) ReceiversDelete ¶ added in v0.0.14
func (c MerchantApiClient) ReceiversDelete(ctx context.Context, req ReceiversDeleteRequest) (resp *ReceiversDeleteResponse, err error)
删除分账接受方API
func (MerchantApiClient) RefundApply ¶
func (c MerchantApiClient) RefundApply(ctx context.Context, req RefundRequest) (resp *RefundResponse, err error)
申请退款
func (MerchantApiClient) SettlementModify ¶
func (c MerchantApiClient) SettlementModify(ctx context.Context, req ModifySettlementRequest) (err error)
修改结算帐号API
func (MerchantApiClient) SettlementQuery ¶
func (c MerchantApiClient) SettlementQuery(ctx context.Context, req QuerySettlementRequest) (resp *QuerySettlementResponse, err error)
查询结算账户API
func (MerchantApiClient) SubMchBalanceQuery ¶ added in v0.0.15
func (c MerchantApiClient) SubMchBalanceQuery(ctx context.Context, req SubMchBalanceQueryRequest) (resp *SubMchBalanceQueryResponse, err error)
二级商户账户实时余额查询
func (MerchantApiClient) SubMchEndDayBalanceQuery ¶ added in v0.0.15
func (c MerchantApiClient) SubMchEndDayBalanceQuery(ctx context.Context, req SubMchEndDayBalanceQueryRequest) (resp *SubMchEndDayBalanceQueryResponse, err error)
二级商户账户日终余额
func (MerchantApiClient) SubMchWithdraw ¶ added in v0.0.17
func (c MerchantApiClient) SubMchWithdraw(ctx context.Context, req SubMchWithdrawRequest) (resp *SubMchWithdrawResponse, err error)
二级商户提现
func (MerchantApiClient) SubMchWithdrawQueryByOutRequestNo ¶ added in v0.0.17
func (c MerchantApiClient) SubMchWithdrawQueryByOutRequestNo(ctx context.Context, req SubMchWithdrawQueryByOutRequestNoRequest) (resp *SubMchWithdrawQueryResponse, err error)
根据商户提现单号查询二级商户提现状态
func (MerchantApiClient) SubMchWithdrawQueryByWithdrawID ¶ added in v0.0.17
func (c MerchantApiClient) SubMchWithdrawQueryByWithdrawID(ctx context.Context, req SubMchWithdrawQueryByWithdrawIDRequest) (resp *SubMchWithdrawQueryResponse, err error)
根据微信提现单号查询二级商户提现状态
type ModifySettlementRequest ¶
type ModifySettlementRequest struct { // 特约商户号 SubMchID string // 账户类型 AccountType string `json:"account_type"` // 开户银行 AccountBank string `json:"account_bank"` // 开户银行省市编码 BankAddressCode string `json:"bank_address_code"` // 开户银行全称(含支行) BankName string `json:"bank_name"` // 开户银行联行号 BankBranchID string `json:"bank_branch_id"` // 银行账号 AccountNumber string `json:"account_number"` }
type Notification ¶
type Notification struct { // 通知ID ID string `json:"id"` // 通知创建时间 CreateTime string `json:"create_time"` // 通知类型 EventType string `json:"event_type"` // 通知数据类型 ResourceType string `json:"resource_type"` // 通知数据(需要解密) Resource CipherBlockResource `json:"resource"` // 回调摘要 Summary string `json:"summary"` }
通知报文
type OrganizationCertInfo ¶
type PayNotification ¶
type PayNotification struct { // 服务商公众号ID SpAppID string `json:"sp_appid"` // 服务商户号 SpMchID string `json:"sp_mchid"` // 二级商户公众号ID SubAppID string `json:"sub_appid"` // 二级商户号 SubMchID string `json:"sub_mchid"` // 商户订单号 OutTradeNo string `json:"out_trade_no"` // 微信支付订单号 TransactionID string `json:"transaction_id"` // 交易类型 TradeType string `json:"trade_type"` // 交易状态 TradeState string `json:"trade_state"` // 交易状态描述 TradeStateDesc string `json:"trade_state_desc"` // 付款银行 BankType string `json:"bank_type"` // 附加数据 Attach string `json:"attach"` // 支付完成时间 SuccessTime string `json:"success_time"` // 支付者 Payer struct { // 用户服务标识 SpOpenID string `json:"sp_openid"` // 用户子标识 SubOpenID string `json:"sub_openid"` } `json:"payer"` // 订单金额 Amount struct { // 总金额 Total uint `json:"total"` // 用户支付金额 PayerTotal uint `json:"payer_total"` // 货币类型 Currency string `json:"currency"` // 用户支付币种 PayerCurrency string `json:"payer_currency"` } `json:"amount"` // 场景信息 SceneInfo struct { // 商户端设备号 DeviceID string `json:"device_id"` } `json:"scene_info"` // 优惠功能 PromotionDetail struct { // 券ID CouponID string `json:"coupon_id"` // 优惠名称 Name string `json:"name"` // 优惠范围 Scope string `json:"scope"` // 优惠类型 Type string `json:"type"` // 优惠券面额 Amount uint `json:"amount"` // 活动ID StockID string `json:"stock_id"` // 微信出资 WechatpayContribute uint `json:"wechatpay_contribute"` // 商户出资 MerchantContribute uint `json:"merchant_contribute"` // 其他出资 OtherContribute uint `json:"other_contribute"` // 优惠币种 Currency string `json:"currency"` // 单品列表 GoodsDetail []struct { // 商品编码 GoodsID string `json:"goods_id"` // 商品数量 Quantity uint `json:"quantity"` // 商品单价 UnitPrice uint `json:"unit_price"` // 商品优惠金额 DiscountAmount uint `json:"discount_amount"` // 商品备注 GoodsRemark string `json:"goods_remark"` } `json:"goods_detail"` } `json:"promotion_detail"` }
支付成功通知参数
type PlatformBalanceQueryRequest ¶ added in v0.0.15
type PlatformBalanceQueryRequest struct { // 账户类型 BASIC:基本账户 OPERATION:运营账户 FEES:手续费账户 AccountType string `json:"account_type"` }
电商平台账户实时余额查询请求
type PlatformBalanceQueryResponse ¶ added in v0.0.15
type PlatformBalanceQueryResponse struct { // 可用余额 AvailableAmount int64 `json:"available_amount"` // 不可用余额 PendingAmount int64 `json:"pending_amount"` }
电商平台账户实时余额查询返回
type PlatformCertificatesMap ¶
type PlatformEndDayBalanceQueryRequest ¶ added in v0.0.15
type PlatformEndDayBalanceQueryRequest struct { // 账户类型 BASIC:基本账户 OPERATION:运营账户 FEES:手续费账户 AccountType string `json:"account_type"` // 日期 示例值:2019-08-17 Date string `json:"date"` }
电商平台账户日终余额查询请求
type PlatformEndDayBalanceQueryResponse ¶ added in v0.0.15
type PlatformEndDayBalanceQueryResponse struct { // 可用余额 AvailableAmount int64 `json:"available_amount"` // 不可用余额 PendingAmount int64 `json:"pending_amount"` }
电商平台账户日终余额查询返回
type PrepayPayResponse ¶
type PrepayPayResponse struct { // 预支付交易会话标识 PrepayID string `json:"prepay_id"` }
type ProfitReturnApplyRequest ¶
type ProfitReturnApplyRequest struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 微信分账单号 OrderID string `json:"order_id"` // 商户分账单号 OutOrderNo string `json:"out_order_no"` // 商户回退单号 OutReturnNo string `json:"out_return_no"` // 回退商户号 ReturnMchID string `json:"return_mchid"` // 回退金额 Amount uint `json:"amount"` // 回退描述 Description string `json:"description"` }
分账回退参数
type ProfitReturnApplyResponse ¶
type ProfitReturnApplyResponse struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 微信分账单号 OrderID string `json:"order_id"` // 商户分账单号 OutOrderNo string `json:"out_order_no"` // 商户回退单号 OutReturnNo string `json:"out_return_no"` // 回退商户号 ReturnMchID string `json:"return_mchid"` // 回退金额 Amount uint `json:"amount"` // 微信回退单号 ReturnNo string `json:"return_no"` // 回退结果 Result string `json:"result"` // 失败原因 FailReason string `json:"fail_reason"` // 分账回退完成时间 FinishTime string `json:"finish_time"` }
分账回退返回
type ProfitReturnQueryRequest ¶
type ProfitReturnQueryRequest struct { // 二级商户号 SubMchID string // 微信分账单号 OrderID string // 商户分账单号 OutOrderNo string // 商户回退单号 OutReturnNo string }
查询分账回退结果参数
type ProfitReturnQueryResponse ¶
type ProfitReturnQueryResponse struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 微信分账单号 OrderID string `json:"order_id"` // 商户分账单号 OutOrderNo string `json:"out_order_no"` // 商户回退单号 OutReturnNo string `json:"out_return_no"` // 回退商户号 ReturnMchID string `json:"return_mchid"` // 回退金额 Amount uint `json:"amount"` // 微信回退单号 ReturnNo string `json:"return_no"` // 回退结果 Result string `json:"result"` // 失败原因 FailReason string `json:"fail_reason"` // 分账回退完成时间 FinishTime string `json:"finish_time"` }
type ProfitShareApplyRequest ¶
type ProfitShareApplyRequest struct { string `json:"appid"` SubMchID string `json:"sub_mchid"` TransactionID string `json:"transaction_id"` OutOrderNo string `json:"out_order_no"` Receivers []ReceiverInProfitShareRequest `json:"receivers"` Finish bool `json:"finish"` }SpAppID
请求分账参数
type ProfitShareFinishRequest ¶
type ProfitShareFinishRequest struct { string `json:"sub_mchid"` TransactionID string `json:"transaction_id"` OutOrderNo string `json:"out_order_no"` Description string `json:"description"` }SubMchID
完结分账参数
type ProfitShareFinishResponse ¶
type ProfitShareFinishResponse struct { string `json:"sub_mchid"` TransactionID string `json:"transaction_id"` OutOrderNo string `json:"out_order_no"` OrderID string `json:"order_id"` }SubMchID
完结分账返回
type ProfitShareQueryRequest ¶
type ProfitShareQueryResponse ¶
type ProfitShareQueryResponse struct { string `json:"sub_mchid"` TransactionID string `json:"transaction_id"` OutOrderNo string `json:"out_order_no"` OrderID string `json:"order_id"` Status string `json:"status"` Receivers []ReceiverInProfitShareResponse `json:"receivers"` CloseReason string `json:"close_reason"` FinishAmount uint `json:"finish_amount"` FinishDescription uint `json:"finish_description"` }SubMchID
type ProfitShareUnSplitAmountQueryRequest ¶
type ProfitShareUnSplitAmountQueryRequest struct { string `json:"transaction_id"` }TransactionID
查询订单剩余待分账金额参数
type ProfitShareUnSplitAmountQueryResponse ¶
type ProfitShareUnSplitAmountQueryResponse struct { string `json:"transaction_id"` UnSplitAmount uint `json:"unsplit_amount"` }TransactionID
查询订单剩余待分账金额返回
type ProfitSharingNotification ¶
type ProfitSharingNotification struct { // 直连商户号 MchID string `json:"mchid"` // 服务商户号 SpMchID string `json:"sp_mchid"` // 二级商户号 SubMchID string `json:"sub_mchid"` // 微信订单号 TransactionID string `json:"transaction_id"` // 微信分账/回退单号 OrderID string `json:"order_id"` // 商户分账/回退单号 OutOrderNo string `json:"out_order_no"` // 分账接收方列表 Receivers []struct { // 分账接收方类型 Type string `json:"type"` // 分账接收方帐号 Account string `json:"account"` // 分账动账金额 Amount uint `json:"amount"` // 分账/回退描述 Description string `json:"description"` } `json:"receivers"` // 成功时间 SuccessTime string `json:"success_time"` }
分账动账通知
type QueryApplymentByIDRequest ¶
type QueryApplymentByIDRequest struct { // 微信支付申请单号 ApplymentID uint }
type QueryApplymentByOutRequestNoRequest ¶
type QueryApplymentByOutRequestNoRequest struct { // 业务申请编号 OutRequestNo string }
type QueryPayResultResponse ¶
type QueryPayResultResponse struct { // 服务商公众号ID SpAppID string `json:"sp_appid"` // 服务商户号 SpMchID string `json:"sp_mchid"` // 二级商户公众号ID SubAppID string `json:"sub_appid"` // 二级商户号 SubMchID string `json:"sub_mchid"` // 商户订单号 OutTradeNo string `json:"out_trade_no"` // 微信支付订单号 TransactionID string `json:"transaction_id"` // 交易类型 TradeType string `json:"trade_type"` // 交易状态 TradeState string `json:"trade_state"` // 交易状态描述 TradeStateDesc string `json:"trade_state_desc"` // 付款银行 BankType string `json:"bank_type"` // 附加数据 Attach string `json:"attach"` // 支付完成时间 SuccessTime string `json:"success_time"` // 支付者 Payer struct { // 用户服务标识 SpOpenID string `json:"sp_openid"` // 用户子标识 SubOpenID string `json:"sub_openid"` } `json:"payer"` // 订单金额 Amount struct { // 总金额 Total uint `json:"total"` // 用户支付金额 PayerTotal uint `json:"payer_total"` // 货币类型 Currency string `json:"currency"` // 用户支付币种 PayerCurrency string `json:"payer_currency"` } `json:"amount"` // 场景信息 SceneInfo struct { // 商户端设备号 DeviceID string `json:"device_id"` } `json:"scene_info"` // 优惠功能 PromotionDetail struct { // 券ID CouponID string `json:"coupon_id"` // 优惠名称 Name string `json:"name"` // 优惠范围 Scope string `json:"scope"` // 优惠类型 Type string `json:"type"` // 优惠券面额 Amount uint `json:"amount"` // 活动ID StockID string `json:"stock_id"` // 微信出资 WechatpayContribute uint `json:"wechatpay_contribute"` // 商户出资 MerchantContribute uint `json:"merchant_contribute"` // 其他出资 OtherContribute uint `json:"other_contribute"` // 优惠币种 Currency string `json:"currency"` // 单品列表 GoodsDetail []struct { // 商品编码 GoodsID string `json:"goods_id"` // 商品数量 Quantity uint `json:"quantity"` // 商品单价 UnitPrice uint `json:"unit_price"` // 商品优惠金额 DiscountAmount uint `json:"discount_amount"` // 商品备注 GoodsRemark string `json:"goods_remark"` } `json:"goods_detail"` } `json:"promotion_detail"` }
type QueryRefundByIDRequest ¶
type QueryRefundResponse ¶
type QueryRefundResponse struct { // 微信退款单号 RefundID string `json:"refund_id"` // 商户退款单号 OutRefundNo string `json:"out_refund_no"` // 微信订单号 TransactionID string `json:"transaction_id"` // 商户订单号 OutTradeNo string `json:"out_trade_no"` // 退款渠道 Channel string `json:"channel"` // 退款入账账户 UserReceivedAccount string `json:"user_received_account"` // 退款成功时间 SuccessTime string `json:"success_time"` // 退款创建时间 CreateTime string `json:"create_time"` // 退款状态 Status string `json:"status"` // 金额信息 Amount struct { // 退款金额 Refund uint `json:"refund"` // 用户退款金额 PayerRefund uint `json:"payer_refund"` // 优惠退款金额 DiscountRefund uint `json:"discount_refund"` // 退款币种 Currency string `json:"currency"` } `json:"amount"` // 优惠退款详情 PromotionDetail []struct { // 券ID PromotionID string `json:"promotion_id"` // 优惠范围 Scope string `json:"scope"` // 优惠类型 Type string `json:"type"` // 优惠券面额 Amount uint `json:"amount"` // 优惠退款金额 RefundAmount uint `json:"refund_amount"` } `json:"promotion_detail"` }
type QuerySettlementRequest ¶
type QuerySettlementRequest struct { // 特约商户号 SubMchID string }
type QuerySettlementResponse ¶
type QuerySettlementResponse struct { // 账户类型 AccountType string `json:"account_type"` // 开户银行 AccountBank string `json:"account_bank"` // 开户银行全称(含支行) BankName string `json:"bank_name"` // 开户银行联行号 BankBranchID string `json:"bank_branch_id"` // 银行账号 AccountNumber string `json:"account_number"` // 汇款验证结果 VerifyResult string `json:"verify_result"` }
type ReceiverInProfitShareRequest ¶ added in v0.0.12
type ReceiverInProfitShareResponse ¶ added in v0.0.12
type ReceiverInProfitShareResponse struct { string `json:"receiver_mchid"` Amount uint `json:"amount"` Description string `json:"description"` Result string `json:"result"` FinishTime string `json:"finish_time"` FailReason string `json:"fail_reason"` Type string `json:"type"` Account string `json:"receiver_account"` }ReceiverMchID
type ReceiversAddRequest ¶ added in v0.0.14
type ReceiversAddRequest struct { // 电商平台的appid AppID string `json:"appid"` // 接收方类型 MERCHANT_ID:商户 PERSONAL_OPENID:个人 Type string `json:"type"` // 接收方账号 类型是MERCHANT_ID时,是商户号 类型是PERSONAL_OPENID时,是个人openid Account string `json:"account"` // 接收方账号 当type为MERCHANT_ID时,接收方名称是商户全称。 Name string `json:"name,omitempty"` // 分账接收方的名称,分账接收方类型是PERSONAL_OPENID时,是个人姓名的密文 EncryptedName string `json:"encrypted_name,omitempty"` // 与分账方的关系类型 // SUPPLIER:供应商 // DISTRIBUTOR:分销商 // SERVICE_PROVIDER:服务商 // PLATFORM:平台 // OTHERS:其他 RelationType string `json:"relation_type"` }
添加分账接受方参数
type ReceiversAddResponse ¶ added in v0.0.14
type ReceiversAddResponse struct { // 接收方类型 MERCHANT_ID:商户 PERSONAL_OPENID:个人 Type string `json:"type"` // 接收方账号 类型是MERCHANT_ID时,是商户号 类型是PERSONAL_OPENID时,是个人openid Account string `json:"account"` }
添加分账接受方返回
type ReceiversDeleteRequest ¶ added in v0.0.14
type ReceiversDeleteRequest struct { // 电商平台的appid AppID string `json:"appid"` // 接收方类型 MERCHANT_ID:商户 PERSONAL_OPENID:个人 Type string `json:"type"` // 接收方账号 类型是MERCHANT_ID时,是商户号 类型是PERSONAL_OPENID时,是个人openid Account string `json:"account"` }
删除分账接受方请求
type ReceiversDeleteResponse ¶ added in v0.0.14
type ReceiversDeleteResponse struct { // 接收方类型 MERCHANT_ID:商户 PERSONAL_OPENID:个人 Type string `json:"type"` // 接收方账号 类型是MERCHANT_ID时,是商户号 类型是PERSONAL_OPENID时,是个人openid Account string `json:"account"` }
删除分账接受方返回
type RefundNotification ¶
type RefundNotification struct { // 服务商户号 SpMchID string `json:"sp_mchid"` // 二级商户号 SubMchID string `json:"sub_mchid"` // 商户订单号 OutTradeNo string `json:"out_trade_no"` // 微信支付订单号 TransactionID string `json:"transaction_id"` // 商户退款单号 OutRefundNo string `json:"out_refund_no"` // 微信退款单号 RefundID string `json:"refund_id"` // 退款状态 RefundStatus string `json:"refund_status"` // 退款成功时间 SuccessTime string `json:"success_time"` // 退款入账账户 UserReceivedAccount string `json:"user_received_account"` // 金额信息 Amount struct { // 订单金额 Total uint `json:"total"` // 退款金额 Refund uint `json:"refund"` // 用户支付金额 PayerTotal uint `json:"payer_total"` // 用户退款金额 PayerRefund uint `json:"payer_refund"` } `json:"amount"` }
退款通知参数
type RefundRequest ¶
type RefundRequest struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 电商平台APPID SpAppID string `json:"sp_appid"` // 二级商户APPID SubAppID string `json:"sub_appid,omitempty"` // 微信订单号 TransactionID string `json:"transaction_id,omitempty"` // 商户订单号 OutTradeNo string `json:"out_trade_no,omitempty"` // 商户退款单号 OutRefundNo string `json:"out_refund_no"` // 退款原因 Reason string `json:"reason,omitempty"` //订单金额 Amount struct { // 退款金额 Refund uint `json:"refund"` // 原订单金额 Total uint `json:"total"` // 退款币种 Currency string `json:"currency"` } `json:"amount"` // 退款结果回调url NotifyUrl string `json:"notify_url"` }
type RefundResponse ¶
type RefundResponse struct { // 微信退款单号 RefundID string `json:"refund_id"` // 商户退款单号 OutRefundNo string `json:"out_refund_no"` // 退款创建时间 CreateTime string `json:"create_time"` // 金额信息 Amount struct { // 退款金额 Refund uint `json:"refund"` // 用户退款金额 PayerRefund uint `json:"payer_refund"` // 优惠退款金额 DiscountRefund uint `json:"discount_refund"` // 退款币种 Currency string `json:"currency"` } `json:"amount"` // 优惠退款详情 PromotionDetail []struct { // 券ID PromotionID string `json:"promotion_id"` // 优惠范围 Scope string `json:"scope"` // 优惠类型 Type string `json:"type"` // 优惠券面额 Amount uint `json:"amount"` // 优惠退款金额 RefundAmount uint `json:"refund_amount"` } `json:"promotion_detail"` }
type SalesSceneInfo ¶
type SubMchBalanceQueryRequest ¶ added in v0.0.15
type SubMchBalanceQueryRequest struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 账户类型 BASIC:基本账户 OPERATION:运营账户 FEES:手续费账户 AccountType string `json:"account_type"` }
二级商户账户实时余额查询
type SubMchBalanceQueryResponse ¶ added in v0.0.15
type SubMchEndDayBalanceQueryRequest ¶ added in v0.0.15
type SubMchEndDayBalanceQueryResponse ¶ added in v0.0.15
type SubMchWithdrawQueryByOutRequestNoRequest ¶ added in v0.0.17
type SubMchWithdrawQueryByOutRequestNoRequest struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 商户提现单号 OutRequestNo string `json:"out_request_no"` }
根据商户提现单号查询二级商户提现状态
type SubMchWithdrawQueryByWithdrawIDRequest ¶ added in v0.0.17
type SubMchWithdrawQueryByWithdrawIDRequest struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 微信提现单号 WithdrawID string `json:"withdraw_id"` }
根据微信提现单号查询二级商户提现状态
type SubMchWithdrawQueryResponse ¶ added in v0.0.17
type SubMchWithdrawQueryResponse struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 电商平台商户号 SpMchID string `json:"sp_mchid"` // 提现单状态 Status string `json:"status"` // 微信提现单号 WithdrawID string `json:"withdraw_id"` // 商户提现单号 OutRequestNo string `json:"out_request_no"` // 提现金额 Amount int64 `json:"amount"` // 发起提现时间 CreateTime string `json:"create_time"` // 提现状态更新时间 UpdateTime string `json:"update_time"` // 失败原因 Reason string `json:"reason"` // 提现备注 Remark string `json:"remark"` // 银行附言 BankMemo string `json:"bank_memo"` }
二级商户查询提现状态返回
type SubMchWithdrawRequest ¶ added in v0.0.17
type SubMchWithdrawRequest struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 商户提现单号 OutRequestNo string `json:"out_request_no"` // 提现金额 Amount int64 `json:"amount"` // 提现备注 Remark string `json:"remark,omitempty"` // 银行附言 BankMemo string `json:"bank_memo,omitempty"` }
二级商户提现请求
type SubMchWithdrawResponse ¶ added in v0.0.17
type SubMchWithdrawResponse struct { // 二级商户号 SubMchID string `json:"sub_mchid"` // 商户提现单号 OutRequestNo string `json:"out_request_no"` // 微信提现单号 WithdrawID string `json:"withdraw_id"` }
二级商户提现返回
type SubmitApplymentRequest ¶
type SubmitApplymentRequest struct { // 业务申请编号 OutRequestNo string `json:"out_request_no"` // 主体类型 OrganizationType string `json:"organization_type"` // 营业执照/登记证书信息 BusinessLicenseInfo *BusinessLicenseInfo `json:"business_license_info,omitempty"` // 组织机构代码证信息 OrganizationCertInfo *OrganizationCertInfo `json:"organization_cert_info,omitempty"` // 经营者/法人证件类型 IDDocType string `json:"id_doc_type,omitempty"` // 经营者/法人身份证信息 IDCardInfo *IDCardInfo `json:"id_card_info,omitempty"` // 经营者/法人其他类型证件信息 IDDocInfo *IDDocInfo `json:"id_doc_info,omitempty"` // 是否填写结算银行账户 NeedAccountInfo bool `json:"need_account_info"` // 结算银行账户 AccountInfo *AccountInfo `json:"account_info,omitempty"` // 超级管理员信息 ContactInfo ContactInfo `json:"contact_info"` // 店铺信息 SalesSceneInfo SalesSceneInfo `json:"sales_scene_info"` // 商户简称 MerchantShortname string `json:"merchant_shortname"` // 特殊资质 Qualifications []string `json:"qualifications,omitempty"` // 补充材料 BusinessAdditionPics []string `json:"business_addition_pics,omitempty"` // 补充说明 BusinessAdditionDesc string `json:"business_addition_desc,omitempty"` }
type SubmitApplymentResp ¶
type TransferBatch ¶ added in v0.0.18
type TransferBatch struct { // 直连商户号 MchID string `json:"mch_id"` // 商家批次单号 OutBatchNo string `json:"out_batch_no"` // 微信批次单号 BatchID string `json:"batch_id"` // 直连商户AppID AppID string `json:"app_id"` // 批次状态 BatchStatus string `json:"batch_status"` // 批次类型 BatchType string `json:"batch_type"` // 批次名称 BatchName string `json:"batch_name"` // 批次备注 BatchRemark string `json:"batch_remark"` // 批次关闭原因 CloseReason string `json:"close_reason"` // 转账总金额 TotalAmount int64 `json:"total_amount"` // 转账总笔数 TotalNum int64 `json:"total_num"` // 批次创建时间 CreateTime string `json:"create_time"` // 批次更新时间 UpdateTime string `json:"update_time"` // 成功金额 SuccessAmount int64 `json:"success_amount"` // 成功笔数 SuccessNum int64 `json:"success_num"` // 失败金额 FailAmount int64 `json:"fail_amount"` // 失败笔数 FailNum int64 `json:"fail_num"` }
type TransferDetail ¶ added in v0.0.14
type TransferDetail struct { // 商家明细单号 OutDetailNo string `json:"out_detail_no"` // 转账金额 TransferAmount uint `json:"transfer_amount"` // 转账备注 TransferRemark string `json:"transfer_remark"` // OpenID OpenID string `json:"openid"` // 收款用户姓名 UserName string `json:"user_name"` // 收款用户身份证 UserIDCard string `json:"user_id_card,omitempty"` }