Documentation
¶
Index ¶
- Constants
- type Amount
- type AppTransactionReq
- type AppTransactionResp
- type ErrorResp
- type JsApiTransactionReq
- type JsApiTransactionResp
- type MchApiV3
- 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 Payer
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" // AppTransaction App下单 AppTransaction = "pay/transactions/app" )
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 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 Amount `json:"amount"`
Payer Payer `json:"payer,omitempty"`
}
type JsApiTransactionResp ¶
type JsApiTransactionResp struct {
PrepayId string `json:"prepay_id"`
}
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"`
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 uint64 `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 []struct {
Field string `json:"field"`
FieldName string `json:"field_name"`
FieldReason string `json:"field_reason"`
} `json:"audit_detail,omitempty"`
}
type PartnerApplymentReq ¶
type PartnerApplymentReq struct {
BusinessCode string `json:"business_code"`
ContactInfo struct {
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"`
} `json:"business_license_info,omitempty"`
IdentityInfo struct {
IdDocType PartnerApplymentIDType `json:"id_doc_type"`
Owner bool `json:"owner"`
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"`
CardPeriodBegin string `json:"card_period_begin"`
CardPeriodEnd string `json:"card_period_end"`
} `json:"id_card_info"`
} `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"`
} `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"`
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 uint64 `json:"applyment_id"`
}
type PartnerApplymentState ¶
type PartnerApplymentState string
type PartnerApplymentSubjectType ¶
type PartnerApplymentSubjectType string
PartnerApplymentSubjectType 主体类型
type PartnerJsApiTransactionReq ¶
type PartnerJsApiTransactionReq struct {
SpAppId string `json:"sp_app_id"`
SpMchId string `json:"sp_mch_id"`
SubAppid string `json:"sub_appid,omitempty"`
SubMchId string `json:"sub_mch_id"`
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 Amount `json:"amount"`
Payer PartnerPayer `json:"payer"`
}
type PartnerJsApiTransactionResp ¶
type PartnerJsApiTransactionResp JsApiTransactionResp
type PartnerPayer ¶
Click to show internal directories.
Click to hide internal directories.