Documentation
¶
Index ¶
- Constants
- type AppTransactionReq
- type AppTransactionResp
- type AuditDetailItem
- type ErrorResp
- type JsApiTransactionReq
- type JsApiTransactionResp
- type MchApiV3
- type NativeTransactionReq
- type NativeTransactionResp
- type NotifyPayResult
- type NotifyResource
- type NotifyResp
- type OtherCertificatesResp
- type OtherUploadResp
- type PartnerApplymentBankAccountType
- type PartnerApplymentIDType
- type PartnerApplymentQueryResp
- type PartnerApplymentReq
- type PartnerApplymentResp
- type PartnerApplymentState
- type PartnerApplymentSubjectType
- type PartnerJsApiTransactionReq
- type PartnerJsApiTransactionResp
- type PartnerPayer
- type ProfitSharingMerchantConfigsResp
- type ProfitSharingOrdersAddReq
- type ProfitSharingOrdersDeleteReq
- type ProfitSharingOrdersQueryResp
- type ProfitSharingOrdersReq
- type ProfitSharingOrdersReqReceiver
- type ProfitSharingOrdersResp
- type ProfitSharingOrdersRespReceiver
- type ProfitSharingOrdersUnfreezeReq
- type ProfitSharingOrdersUnfreezeResp
- type TransactionAmount
- type TransactionPayer
- type TransactionSettleInfo
- type TransferBatchesDetailItem
- type TransferBatchesReq
- type TransferBatchesResp
Constants ¶
View Source
const ( // OtherCertificates 获取平台证书列表 OtherCertificates = "certificates" OtherUploadImage = "merchant/media/upload" OtherUploadVideo = "merchant/media/video_upload" // PartnerApplyment4Sub 特约商户进件申请单 PartnerApplyment4Sub = "applyment4sub/applyment/" // PartnerApplymentQuery 特约商户进件申请状态查询 PartnerApplymentQuery = "applyment4sub/applyment/business_code/" // PartnerJsApiTransaction 服务商JSAPI下单 PartnerJsApiTransaction = "pay/partner/transactions/jsapi" // PartnerAppTransaction 服务商App下单 PartnerAppTransaction = "pay/partner/transactions/app" // JsApiTransaction JSAPI下单 JsApiTransaction = "pay/transactions/jsapi" // NativeTransaction App下单 NativeTransaction = "pay/transactions/native" // AppTransaction App下单 AppTransaction = "pay/transactions/app" // ProfitSharingOrders 请求分账 ProfitSharingOrders = "profitsharing/orders" // ProfitSharingOrdersUnfreeze 解冻剩余资金 ProfitSharingOrdersUnfreeze = "profitsharing/orders/unfreeze" // ProfitSharingOrdersAdd 添加分账接收方 ProfitSharingOrdersAdd = "profitsharing/receivers/add" // ProfitSharingOrdersDelete 删除分账接收方 ProfitSharingOrdersDelete = "profitsharing/receivers/delete" // ProfitSharingMerchantConfigs 查询最大分账比例 ProfitSharingMerchantConfigs = "profitsharing/merchant-configs" // TransferBatches 发起商家转账 TransferBatches = "transfer/batches" )
View Source
const ( // PartnerApplymentSubjectTypePerson 个体户 PartnerApplymentSubjectTypePerson = "SUBJECT_TYPE_INDIVIDUAL" // PartnerApplymentSubjectTypeEnterprise 企业 PartnerApplymentSubjectTypeEnterprise = "SUBJECT_TYPE_ENTERPRISE" )
View Source
const ( // PartnerApplymentBankAccountTypeCorporate 对公银行账户 PartnerApplymentBankAccountTypeCorporate = "BANK_ACCOUNT_TYPE_CORPORATE" // PartnerApplymentBankAccountTypePersonal 经营者个人银行卡 PartnerApplymentBankAccountTypePersonal = "BANK_ACCOUNT_TYPE_PERSONAL" )
View Source
const ( PartnerApplymentStateEditing = "APPLYMENT_STATE_EDITTING" PartnerApplymentStateAuditing = "APPLYMENT_STATE_AUDITING" PartnerApplymentStateRejected = "APPLYMENT_STATE_REJECTED" PartnerApplymentStateBeConfirm = "APPLYMENT_STATE_TO_BE_CONFIRMED" PartnerApplymentStateBeSigned = "APPLYMENT_STATE_TO_BE_SIGNED" PartnerApplymentStateSigning = "APPLYMENT_STATE_SIGNING" PartnerApplymentStateFinished = "APPLYMENT_STATE_FINISHED" PartnerApplymentStateCanceled = "APPLYMENT_STATE_CANCELED" )
View Source
const PartnerApplymentIDCard = "IDENTIFICATION_TYPE_IDCARD"
PartnerApplymentIDCard 银行账户类型
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppTransactionReq ¶
type AppTransactionReq JsApiTransactionReq
type AppTransactionResp ¶
type AppTransactionResp JsApiTransactionResp
type AuditDetailItem ¶ added in v1.3.2
type JsApiTransactionReq ¶
type JsApiTransactionReq struct {
AppId string `json:"appid"`
MchId string `json:"mchid"`
Description string `json:"description"`
OutTradeNo string `json:"out_trade_no"`
TimeExpire string `json:"time_expire,omitempty"`
Attach string `json:"attach,omitempty"`
NotifyUrl string `json:"notify_url"`
GoodsTag string `json:"goods_tag,omitempty"`
Amount TransactionAmount `json:"amount"`
Payer *TransactionPayer `json:"payer,omitempty"`
SettleInfo *TransactionSettleInfo `json:"settle_info,omitempty"`
}
type JsApiTransactionResp ¶
type JsApiTransactionResp struct {
PrepayId string `json:"prepay_id"`
}
type NativeTransactionReq ¶ added in v1.3.2
type NativeTransactionReq JsApiTransactionReq
type NativeTransactionResp ¶ added in v1.3.2
type NativeTransactionResp struct {
CodeUrl string `json:"code_url"`
}
type NotifyPayResult ¶
type NotifyPayResult struct {
Id string `json:"id"`
CreateTime string `json:"create_time"`
EventType string `json:"event_type"`
ResourceType string `json:"resource_type"`
Summary string `json:"summary"`
Resource struct {
Algorithm string `json:"algorithm"`
Ciphertext string `json:"ciphertext"`
AssociatedData string `json:"associated_data,omitempty"`
OriginalType string `json:"original_type"`
Nonce string `json:"nonce"`
} `json:"resource"`
}
type NotifyResource ¶
type NotifyResource struct {
Appid string `json:"appid,omitempty"`
Mchid string `json:"mchid,omitempty"`
SpAppid string `json:"sp_appid,omitempty"`
SpMchid string `json:"sp_mchid,omitempty"`
SubAppid string `json:"sub_appid,omitempty"`
SubMchid string `json:"sub_mchid,omitempty"`
OutTradeNo string `json:"out_trade_no"`
TransactionId string `json:"transaction_id"`
TradeType string `json:"trade_type"`
TradeState string `json:"trade_state"`
TradeStatDesc string `json:"trade_stat_desc"`
BankType string `json:"bank_type"`
Attach string `json:"attach,omitempty"`
SuccessTime time.Time `json:"success_time"`
Amount struct {
Total int64 `json:"total"`
PayerTotal int64 `json:"payer_total"`
Currency string `json:"currency"`
PayerCurrency string `json:"payer_currency"`
} `json:"amount"`
Payer struct {
Openid string `json:"openid,omitempty"`
SpOpenid string `json:"sp_openid,omitempty"`
SubOpenid string `json:"sub_openid,omitempty"`
} `json:"payer"`
SceneInfo struct {
DeviceId string `json:"device_id,omitempty"`
} `json:"scene_info,omitempty"`
}
type NotifyResp ¶
type OtherCertificatesResp ¶
type OtherCertificatesResp struct {
Data []struct {
SerialNo string `json:"serial_no"`
EffectiveTime time.Time `json:"effective_time"`
ExpireTime time.Time `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"`
} `json:"data"`
}
type OtherUploadResp ¶
type OtherUploadResp struct {
MediaId string `json:"media_id"`
}
type PartnerApplymentBankAccountType ¶
type PartnerApplymentBankAccountType string
PartnerApplymentBankAccountType 银行账户类型
type PartnerApplymentQueryResp ¶
type PartnerApplymentQueryResp struct {
BusinessCode string `json:"business_code"`
ApplymentId int64 `json:"applyment_id"`
SubMchid *string `json:"sub_mchid,omitempty"`
SignUrl *string `json:"sign_url,omitempty"`
ApplymentState PartnerApplymentState `json:"applyment_state"`
ApplymentStateMsg string `json:"applyment_state_msg"`
AuditDetail []AuditDetailItem `json:"audit_detail,omitempty"`
}
type PartnerApplymentReq ¶
type PartnerApplymentReq struct {
BusinessCode string `json:"business_code"`
ContactInfo struct {
ContactType string `json:"contact_type"`
ContactName string `json:"contact_name"`
ContactIdNumber string `json:"contact_id_number,omitempty"`
OpenId string `json:"open_id,omitempty"`
MobilePhone string `json:"mobile_phone"`
ContactEmail string `json:"contact_email"`
} `json:"contact_info"`
SubjectInfo struct {
SubjectType PartnerApplymentSubjectType `json:"subject_type"`
BusinessLicenseInfo struct {
LicenseCopy string `json:"license_copy"`
LicenseNumber string `json:"license_number"`
MerchantName string `json:"merchant_name"`
LegalPerson string `json:"legal_person"`
PeriodBegin *string `json:"period_begin,omitempty"`
PeriodEnd *string `json:"period_end,omitempty"`
} `json:"business_license_info,omitempty"`
IdentityInfo struct {
IdDocType PartnerApplymentIDType `json:"id_doc_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"`
IdCardAddress string `json:"id_card_address"`
CardPeriodBegin string `json:"card_period_begin"`
CardPeriodEnd string `json:"card_period_end"`
} `json:"id_card_info"`
Owner *bool `json:"owner,omitempty"`
} `json:"identity_info"`
} `json:"subject_info"`
BusinessInfo struct {
MerchantShortname string `json:"merchant_shortname"`
ServicePhone string `json:"service_phone"`
SalesInfo struct {
SalesScenesType []string `json:"sales_scenes_type"`
BizStoreInfo struct {
BizStoreName string `json:"biz_store_name"`
BizAddressCode string `json:"biz_address_code"`
BizStoreAddress string `json:"biz_store_address"`
StoreEntrancePic []string `json:"store_entrance_pic"`
IndoorPic []string `json:"indoor_pic"`
BizSubAppid string `json:"biz_sub_appid,omitempty"`
} `json:"biz_store_info"`
} `json:"sales_info"`
} `json:"business_info"`
SettlementInfo struct {
SettlementId string `json:"settlement_id"`
QualificationType string `json:"qualification_type"`
Qualifications []string `json:"qualifications,omitempty"`
ActivitiesId string `json:"activities_id,omitempty"`
ActivitiesRate string `json:"activities_rate,omitempty"`
ActivitiesAdditions []string `json:"activities_additions,omitempty"`
} `json:"settlement_info"`
BankAccountInfo struct {
BankAccountType PartnerApplymentBankAccountType `json:"bank_account_type"`
AccountName string `json:"account_name"`
AccountBank string `json:"account_bank"`
BankAddressCode string `json:"bank_address_code,omitempty"`
BankBranchId string `json:"bank_branch_id,omitempty"`
BankName string `json:"bank_name,omitempty"`
AccountNumber string `json:"account_number"`
} `json:"bank_account_info"`
AdditionInfo struct {
BusinessAdditionPics []string `json:"business_addition_pics,omitempty"`
} `json:"addition_info,omitempty"`
}
PartnerApplymentReq 进件申请单
type PartnerApplymentResp ¶
type PartnerApplymentResp struct {
ApplymentId int64 `json:"applyment_id"`
}
type PartnerApplymentState ¶
type PartnerApplymentState string
type PartnerApplymentSubjectType ¶
type PartnerApplymentSubjectType string
PartnerApplymentSubjectType 主体类型
type PartnerJsApiTransactionReq ¶
type PartnerJsApiTransactionReq struct {
SpAppId string `json:"sp_appid"`
SpMchId string `json:"sp_mchid"`
SubAppid string `json:"sub_appid,omitempty"`
SubMchId string `json:"sub_mchid"`
Description string `json:"description"`
OutTradeNo string `json:"out_trade_no"`
TimeExpire string `json:"time_expire,omitempty"`
Attach string `json:"attach,omitempty"`
NotifyUrl string `json:"notify_url"`
GoodsTag string `json:"goods_tag,omitempty"`
Amount TransactionAmount `json:"amount"`
Payer PartnerPayer `json:"payer"`
SettleInfo *TransactionSettleInfo `json:"settle_info,omitempty"`
}
type PartnerJsApiTransactionResp ¶
type PartnerJsApiTransactionResp JsApiTransactionResp
type PartnerPayer ¶
type ProfitSharingMerchantConfigsResp ¶ added in v1.3.1
type ProfitSharingOrdersAddReq ¶ added in v1.3.1
type ProfitSharingOrdersAddReq struct {
SubMchid string `json:"sub_mchid,omitempty"`
AppId string `json:"appid"`
SubAppid string `json:"sub_appid,omitempty"`
Type string `json:"type"`
Account string `json:"account"`
Name string `json:"name,omitempty"`
RelationType string `json:"relation_type"`
CustomRelation string `json:"custom_relation,omitempty"`
}
type ProfitSharingOrdersDeleteReq ¶ added in v1.3.1
type ProfitSharingOrdersQueryResp ¶ added in v1.3.1
type ProfitSharingOrdersReq ¶ added in v1.3.1
type ProfitSharingOrdersReq struct {
SubMchid string `json:"sub_mchid,omitempty"`
AppId string `json:"appid"`
SubAppid string `json:"sub_appid,omitempty"`
TransactionId string `json:"transaction_id"`
OutOrderNo string `json:"out_order_no"`
UnfreezeUnsplit bool `json:"unfreeze_unsplit"`
Receivers []ProfitSharingOrdersReqReceiver `json:"receivers"`
}
type ProfitSharingOrdersReqReceiver ¶ added in v1.3.1
type ProfitSharingOrdersResp ¶ added in v1.3.1
type ProfitSharingOrdersResp struct {
SubMchId string `json:"sub_mch_id,omitempty"`
TransactionId string `json:"transaction_id"`
OutOrderNo string `json:"out_order_no"`
OrderId string `json:"order_id"`
State string `json:"state"`
Receivers *[]ProfitSharingOrdersRespReceiver `json:"receivers,omitempty"`
}
type ProfitSharingOrdersRespReceiver ¶ added in v1.3.1
type ProfitSharingOrdersUnfreezeReq ¶ added in v1.3.1
type ProfitSharingOrdersUnfreezeResp ¶ added in v1.3.1
type ProfitSharingOrdersUnfreezeResp ProfitSharingOrdersQueryResp
type TransactionAmount ¶ added in v1.3.1
type TransactionPayer ¶ added in v1.3.1
type TransactionPayer struct {
OpenId string `json:"openid,omitempty"`
}
type TransactionSettleInfo ¶ added in v1.3.1
type TransactionSettleInfo struct {
ProfitSharing bool `json:"profit_sharing"`
}
type TransferBatchesDetailItem ¶ added in v1.3.2
type TransferBatchesReq ¶ added in v1.3.2
type TransferBatchesReq struct {
AppId string `json:"appid"`
OutBatchNo string `json:"out_batch_no"`
BatchName string `json:"batch_name"`
BatchRemark string `json:"batch_remark"`
TotalAmount int `json:"total_amount"`
TotalNum int `json:"total_num"`
TransferDetailList []TransferBatchesDetailItem `json:"transfer_detail_list"`
TransferSceneId string `json:"transfer_scene_id,omitempty"`
NotifyUrl string `json:"notify_url,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.