forked from go-pay/gopay
/
model_zhima.go
286 lines (245 loc) · 11.2 KB
/
model_zhima.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
package alipay
type ZhimaCreditScoreGetResponse struct {
Response *ScoreGet `json:"zhima_credit_score_get_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditEpSceneRatingInitializeRsp struct {
Response *ZhimaCreditEpSceneRatingInitialize `json:"zhima_credit_ep_scene_rating_initialize_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditEpSceneFulfillmentSyncRsp struct {
Response *ZhimaCreditEpSceneFulfillmentSync `json:"zhima_credit_ep_scene_fulfillment_sync_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditEpSceneAgreementUseRsp struct {
Response *ZhimaCreditEpSceneAgreementUse `json:"zhima_credit_ep_scene_agreement_use_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditEpSceneAgreementCancelRsp struct {
Response *ZhimaCreditEpSceneAgreementCancel `json:"zhima_credit_ep_scene_agreement_cancel_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditEpSceneFulfillmentlistSyncRsp struct {
Response *ZhimaCreditEpSceneFulfillmentlistSync `json:"zhima_credit_ep_scene_fulfillmentlist_sync_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoCumulationSyncRsp struct {
Response *ZhimaCreditPeZmgoCumulationSync `json:"zhima_credit_pe_zmgo_cumulation_sync_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaMerchantZmgoCumulateSyncRsp struct {
Response *ZhimaMerchantZmgoCumulateSync `json:"zhima_merchant_zmgo_cumulate_sync_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaMerchantZmgoCumulateQueryRsp struct {
Response *ZhimaMerchantZmgoCumulateQuery `json:"zhima_merchant_zmgo_cumulate_query_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoBizoptCloseRsp struct {
Response *ZhimaCreditPeZmgoBizoptClose `json:"zhima_credit_pe_zmgo_bizopt_close_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoSettleRefundRsp struct {
Response *ZhimaCreditPeZmgoSettleRefund `json:"zhima_credit_pe_zmgo_settle_refund_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoPreorderCreateRsp struct {
Response *ZhimaCreditPeZmgoPreorderCreate `json:"zhima_credit_pe_zmgo_preorder_create_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoAgreementUnsignRsp struct {
Response *ZhimaCreditPeZmgoAgreementUnsign `json:"zhima_credit_pe_zmgo_agreement_unsign_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoAgreementQueryRsp struct {
Response *ZhimaCreditPeZmgoAgreementQuery `json:"zhima_credit_pe_zmgo_agreement_query_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoSettleUnfreezeRsp struct {
Response *ZhimaCreditPeZmgoSettleUnfreeze `json:"zhima_credit_pe_zmgo_settle_unfreeze_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoPaysignApplyRsp struct {
Response *ZhimaCreditPeZmgoPaysignApply `json:"zhima_credit_pe_zmgo_paysign_apply_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCreditPeZmgoPaysignConfirmRsp struct {
Response *ZhimaCreditPeZmgoPaysignConfirm `json:"zhima_credit_pe_zmgo_paysign_confirm_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCustomerJobworthAdapterQueryRsp struct {
Response *ZhimaCustomerJobworthAdapterQuery `json:"zhima_customer_jobworth_adapter_query_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type ZhimaCustomerJobworthSceneUseRsp struct {
Response *ZhimaCustomerJobworthSceneUse `json:"zhima_customer_jobworth_scene_use_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
// =========================================================分割=========================================================
type ScoreGet struct {
ErrorResponse
BizNo string `json:"biz_no,omitempty"`
ZmScore string `json:"zm_score,omitempty"`
}
type ZhimaCreditEpSceneRatingInitialize struct {
ErrorResponse
OrderNo string `json:"order_no"`
}
type ZhimaCreditEpSceneFulfillmentSync struct {
ErrorResponse
FulfillmentOrderNo string `json:"fulfillment_order_no"`
}
type ZhimaCreditEpSceneAgreementUse struct {
ErrorResponse
CreditOrderNo string `json:"credit_order_no"`
}
type ZhimaCreditEpSceneAgreementCancel struct {
ErrorResponse
CreditOrderNo string `json:"credit_order_no"`
}
type ZhimaCreditEpSceneFulfillmentlistSync struct {
ErrorResponse
FulfillmentResultList []*FulfillmentResult `json:"fulfillment_result_list"`
}
type FulfillmentResult struct {
FulfillmentOrderNo string `json:"fulfillment_order_no"`
OutOrderNo string `json:"out_order_no"`
}
type ZhimaCreditPeZmgoCumulationSync struct {
ErrorResponse
OutBizNo string `json:"out_biz_no,omitempty"`
AagreementNo string `json:"aagreement_no,omitempty"`
UserId string `json:"user_id,omitempty"`
FailReason string `json:"fail_reason,omitempty"`
}
type ZhimaMerchantZmgoCumulateSync struct {
ErrorResponse
AgreementId string `json:"agreement_id"`
OutBizNo string `json:"out_biz_no"`
FailReason string `json:"fail_reason,omitempty"`
}
type ZhimaMerchantZmgoCumulateQuery struct {
ErrorResponse
AgreementId string `json:"agreement_id"`
AggrAmount string `json:"aggr_amount"`
AggrTimes int64 `json:"aggr_times"`
AggrDiscountAmount string `json:"aggr_discount_amount"`
PageNo int64 `json:"page_no"`
PageSize int64 `json:"page_size"`
DetailList []*CumulateDataDetail `json:"detail_list,omitempty"`
FailReason string `json:"fail_reason,omitempty"`
}
type CumulateDataDetail struct {
OutBizNo string `json:"out_biz_no,omitempty"`
ReferOutBizNo string `json:"refer_out_biz_no,omitempty"`
BizTime string `json:"biz_time,omitempty"`
ActionType string `json:"action_type,omitempty"`
DataType string `json:"data_type,omitempty"`
SubDataType string `json:"sub_data_type,omitempty"`
TaskDesc string `json:"task_desc,omitempty"`
TaskAmount string `json:"task_amount,omitempty"`
TaskTimes int64 `json:"task_times,omitempty"`
DiscountDesc string `json:"discount_desc,omitempty"`
DiscountAmount string `json:"discount_amount,omitempty"`
}
type ZhimaCreditPeZmgoBizoptClose struct {
ErrorResponse
UserId string `json:"user_id"`
BizOptNo string `json:"biz_opt_no,omitempty"`
PartnerId string `json:"partner_id"`
OutRequestNo string `json:"out_request_no"`
}
type ZhimaCreditPeZmgoSettleRefund struct {
ErrorResponse
OutRequestNo string `json:"out_request_no"`
WithholdPlanNo string `json:"withhold_plan_no"`
RefundAmount string `json:"refund_amount"`
FailReason string `json:"fail_reason,omitempty"`
Retry bool `json:"retry,omitempty"`
}
type ZhimaCreditPeZmgoPreorderCreate struct {
ErrorResponse
PreorderNo string `json:"preorder_no"`
PartnerId string `json:"partner_id"`
BizType string `json:"biz_type"`
}
type ZhimaCreditPeZmgoAgreementUnsign struct {
ErrorResponse
AgreementId string `json:"agreement_id"`
WithholdPlanNo string `json:"withhold_plan_no"`
}
type ZhimaCreditPeZmgoAgreementQuery struct {
ErrorResponse
AgreementId string `json:"agreement_id"`
AgreementName string `json:"agreement_name"`
AlipayUserId string `json:"alipay_user_id"`
AgreementStatus string `json:"agreement_status"`
}
type ZhimaCreditPeZmgoSettleUnfreeze struct {
ErrorResponse
UnfreezeStatus string `json:"unfreeze_status"`
FailReaseon string `json:"fail_reaseon,omitempty"`
Retry string `json:"retry,omitempty"`
UnfreezeAmount string `json:"unfreeze_amount,omitempty"`
}
type ZhimaCreditPeZmgoPaysignApply struct {
ErrorResponse
BizType string `json:"biz_type"`
ZmgoOptNo string `json:"zmgo_opt_no,omitempty"`
Idempotent bool `json:"idempotent,omitempty"`
AgreementId string `json:"agreement_id,omitempty"`
}
type ZhimaCreditPeZmgoPaysignConfirm struct {
ErrorResponse
AgreementId string `json:"agreement_id,omitempty"`
}
type ZhimaCustomerJobworthAdapterQuery struct {
ErrorResponse
AdapterScore string `json:"adapter_score,omitempty"`
SubCode string `json:"sub_code,omitempty"`
SubMsg string `json:"sub_msg,omitempty"`
Url string `json:"url,omitempty"`
}
type ZhimaCustomerJobworthSceneUse struct {
ErrorResponse
SubCode string `json:"sub_code"`
SubMsg string `json:"sub_msg"`
}