-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmerchant_basicdata_query.go
142 lines (137 loc) · 9.65 KB
/
merchant_basicdata_query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package v2
import (
"context"
"github.com/yuewokeji/huifupay/response"
)
// MerchantBasicdataQuery 商户详细信息查询
// https://paas.huifu.com/partners/api#/shgl/shjj/api_shjj_shxxxxcx_kyc
// 最近更新时间:2023.4.26
func (c *Client) MerchantBasicdataQuery(ctx context.Context, req *MerchantBasicdataQueryRequest) (resp *MerchantBasicdataQueryResponse, err error) {
request := newRequest(`/v2/merchant/basicdata/query`, req)
resp = &MerchantBasicdataQueryResponse{
BaseResponse: response.NewBaseResponse(),
}
err = c.DoRequest(ctx, request, resp)
return
}
type MerchantBasicdataQueryRequest struct {
ReqSeqId string `json:"req_seq_id"`
ReqDate string `json:"req_date"`
HuifuId string `json:"huifu_id"`
}
type MerchantBasicdataQueryResponse struct {
*response.BaseResponse
response.Sign
Data struct {
RespCode string `json:"resp_code"`
RespDesc string `json:"resp_desc"`
ProductId string `json:"product_id"`
UpperHuifuId string `json:"upper_huifu_id"`
ExtMerId string `json:"ext_mer_id"`
RegName string `json:"reg_name"`
ShortName string `json:"short_name"`
ReceiptName string `json:"receipt_name"`
Remarks string `json:"remarks"`
CustType string `json:"cust_type"`
EntType string `json:"ent_type"`
BusiType string `json:"busi_type"`
Mcc string `json:"mcc"`
LicenseType string `json:"license_type"`
LicenseCode string `json:"license_code"`
LicenseValidityType string `json:"license_validity_type"`
LicenseBeginDate string `json:"license_begin_date"`
LicenseEndDate string `json:"license_end_date"`
RegProvId string `json:"reg_prov_id"`
RegAreaId string `json:"reg_area_id"`
RegDistrictId string `json:"reg_district_id"`
RegDetail string `json:"reg_detail"`
ProvId string `json:"prov_id"`
AreaId string `json:"area_id"`
DistrictId string `json:"district_id"`
DetailAddr string `json:"detail_addr"`
LegalName string `json:"legal_name"`
LegalCertType string `json:"legal_cert_type"`
LegalCertNo string `json:"legal_cert_no"`
LegalCertValidityType string `json:"legal_cert_validity_type"`
LegalCertBeginDate string `json:"legal_cert_begin_date"`
LegalCertEndDate string `json:"legal_cert_end_date"`
LegalMobileNo string `json:"legal_mobile_no"`
LegalAddr string `json:"legal_addr"`
Occupation string `json:"occupation"`
BeneficiaryInfoList string `json:"beneficiary_info_list"`
ContactName string `json:"contact_name"`
ContactMobileNo string `json:"contact_mobile_no"`
ContactEmail string `json:"contact_email"`
ServicePhone string `json:"service_phone"`
LoginName string `json:"login_name"`
SmsSendFlag string `json:"sms_send_flag"`
MerUrl string `json:"mer_url"`
MerIcp string `json:"mer_icp"`
OpenLicenceNo string `json:"open_licence_no"`
QryCashCardInfoList string `json:"qry_cash_card_info_list"`
QryCashCardInfoListObject []MerchantBasicdataQueryCashCardInfo `autoassign:"QryCashCardInfoList"`
QryCashConfigList string `json:"qry_cash_config_list"`
QrySettleConfigList string `json:"qry_settle_config_list"`
CollectionSettleConfigList string `json:"collection_settle_config_list"`
AgreementInfoList string `json:"agreement_info_list"`
SignUserInfoList string `json:"sign_user_info_list"`
OnlineBusiType string `json:"online_busi_type"`
OnlineMediaInfoList string `json:"online_media_info_list"`
QuickFlag string `json:"quick_flag"`
OnlineFlag string `json:"online_flag"`
WithholdFlag string `json:"withhold_flag"`
PreAuthorizationFlag string `json:"pre_authorization_flag"`
WebFlag string `json:"web_flag"`
BalancePayFlag string `json:"balance_pay_flag"`
QryBalancePayConfig string `json:"qry_balance_pay_config"`
OnlineFeeConfList string `json:"online_fee_conf_list"`
DelayFlag string `json:"delay_flag"`
ForcedDelayFlag string `json:"forced_delay_flag"`
OutFeeFlag string `json:"out_fee_flag"`
OutFeeHuifuId string `json:"out_fee_huifu_id"`
OutFeeAcctType string `json:"out_fee_acct_type"`
QryWxConfList string `json:"qry_wx_conf_list"`
QryAliConfList string `json:"qry_ali_conf_list"`
QryBankCardConf string `json:"qry_bank_card_conf"`
QryUnionConf string `json:"qry_union_conf"`
BankBigAmtPayConfig string `json:"bank_big_amt_pay_config"`
OutOrderFundsMerge string `json:"out_order_funds_merge"`
CombinePayConfig string `json:"combine_pay_config"`
WxZlConf string `json:"wx_zl_conf"`
AliZlConfList string `json:"ali_zl_conf_list"`
FileInfoList string `json:"file_info_list"`
ReconRespAddr string `json:"recon_resp_addr"`
EnterFee float64 `json:"enter_fee"`
EnterFeeFlag string `json:"enter_fee_flag"`
MerIdentity string `json:"mer_Identity"`
MerLevel string `json:"mer_level"`
MerConfigInfo string `json:"mer_config_info"`
ElecAcctConfig string `json:"elec_acct_config"`
TaxConfig string `json:"tax_config"`
OnlineRefund string `json:"online_refund"`
PlatformRefund string `json:"platform_refund"`
SupportRevoke string `json:"support_revoke"`
SplitBillResult string `json:"split_bill_result"`
ShareHolderInfoList string `json:"share_holder_info_list"`
HeadOfficeFlag string `json:"head_office_flag"`
} `json:"data"`
}
type MerchantBasicdataQueryCashCardInfo struct {
CardType string `json:"card_type"`
CardName string `json:"card_name"`
CardNo string `json:"card_no"`
ProvId string `json:"prov_id"`
AreaId string `json:"area_id"`
BankCode string `json:"bank_code"`
BankName string `json:"bank_name"`
BranchCode string `json:"branch_code"`
BranchName string `json:"branch_name"`
CertType string `json:"cert_type"`
CertNo string `json:"cert_no"`
CertValidityType string `json:"cert_validity_type"`
CertBeginDate string `json:"cert_begin_date"`
CertEndDate string `json:"cert_end_date"`
Status string `json:"status"`
TokenNo string `json:"token_no"`
IsSettleDefault string `json:"is_settle_default"`
}