@wilix/billbill-client-js 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/apiClient.d.ts +19 -0
- package/dist/apiClient.d.ts.map +1 -0
- package/dist/apiClient.js +46 -0
- package/dist/apiClient.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/merchant.d.ts +2144 -0
- package/dist/merchant.d.ts.map +1 -0
- package/dist/merchant.js +1819 -0
- package/dist/merchant.js.map +1 -0
- package/dist/system.d.ts +94 -0
- package/dist/system.d.ts.map +1 -0
- package/dist/system.js +100 -0
- package/dist/system.js.map +1 -0
- package/dist/types/edm.d.ts +26 -0
- package/dist/types/edm.d.ts.map +1 -0
- package/dist/types/edm.js +3 -0
- package/dist/types/edm.js.map +1 -0
- package/dist/types/interface.d.ts +8 -0
- package/dist/types/interface.d.ts.map +1 -0
- package/dist/types/interface.js +3 -0
- package/dist/types/interface.js.map +1 -0
- package/dist/types/merchant.d.ts +1916 -0
- package/dist/types/merchant.d.ts.map +1 -0
- package/dist/types/merchant.js +3 -0
- package/dist/types/merchant.js.map +1 -0
- package/dist/types/shared.d.ts +1211 -0
- package/dist/types/shared.d.ts.map +1 -0
- package/dist/types/shared.js +3 -0
- package/dist/types/shared.js.map +1 -0
- package/dist/types/system.d.ts +78 -0
- package/dist/types/system.d.ts.map +1 -0
- package/dist/types/system.js +3 -0
- package/dist/types/system.js.map +1 -0
- package/dist/types/user.d.ts +491 -0
- package/dist/types/user.d.ts.map +1 -0
- package/dist/types/user.js +3 -0
- package/dist/types/user.js.map +1 -0
- package/dist/user.d.ts +589 -0
- package/dist/user.d.ts.map +1 -0
- package/dist/user.js +466 -0
- package/dist/user.js.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,1211 @@
|
|
|
1
|
+
export type DetailMerchantMemberDetail = {
|
|
2
|
+
id?: number;
|
|
3
|
+
merchantId?: number;
|
|
4
|
+
email?: string;
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
createTime?: number;
|
|
8
|
+
mobile?: string;
|
|
9
|
+
isOwner?: boolean;
|
|
10
|
+
status?: number;
|
|
11
|
+
isBlankPasswd?: boolean;
|
|
12
|
+
MemberRoles?: string[];
|
|
13
|
+
MemberGroupPermission?: object;
|
|
14
|
+
};
|
|
15
|
+
export type MerchantRole = {
|
|
16
|
+
id?: number;
|
|
17
|
+
merchantId?: number;
|
|
18
|
+
role?: string;
|
|
19
|
+
permissions?: string[];
|
|
20
|
+
createTime?: number;
|
|
21
|
+
};
|
|
22
|
+
export type MerchantRolePermission = {
|
|
23
|
+
group?: string;
|
|
24
|
+
permissions?: string[];
|
|
25
|
+
};
|
|
26
|
+
export type MerchantCountryConfig = {
|
|
27
|
+
merchantId?: number;
|
|
28
|
+
countryCode?: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
};
|
|
31
|
+
export type CreditConfig = {
|
|
32
|
+
id?: number;
|
|
33
|
+
type?: number;
|
|
34
|
+
currency?: string;
|
|
35
|
+
exchangeRate?: number;
|
|
36
|
+
createTime?: number;
|
|
37
|
+
merchantId?: number;
|
|
38
|
+
recurring?: number;
|
|
39
|
+
discountCodeExclusive?: number;
|
|
40
|
+
logo?: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
logoUrl?: string;
|
|
44
|
+
metaData?: object;
|
|
45
|
+
rechargeEnable?: number;
|
|
46
|
+
payoutEnable?: number;
|
|
47
|
+
previewDefaultUsed?: number;
|
|
48
|
+
totalIncrementAmount?: number;
|
|
49
|
+
totalDecrementAmount?: number;
|
|
50
|
+
};
|
|
51
|
+
export type DetailCreditAccountDetail = {
|
|
52
|
+
id?: number;
|
|
53
|
+
user?: UserAccount;
|
|
54
|
+
type?: number;
|
|
55
|
+
currency?: string;
|
|
56
|
+
amount?: number;
|
|
57
|
+
currencyAmount?: number;
|
|
58
|
+
exchangeRate?: number;
|
|
59
|
+
createTime?: number;
|
|
60
|
+
totalIncrementAmount?: number;
|
|
61
|
+
totalDecrementAmount?: number;
|
|
62
|
+
};
|
|
63
|
+
export type UserAccount = {
|
|
64
|
+
id?: number;
|
|
65
|
+
externalUserId?: string;
|
|
66
|
+
email?: string;
|
|
67
|
+
gatewayId?: string;
|
|
68
|
+
paymentMethod?: string;
|
|
69
|
+
countryCode?: string;
|
|
70
|
+
countryName?: string;
|
|
71
|
+
vATNumber?: string;
|
|
72
|
+
taxPercentage?: number;
|
|
73
|
+
type?: number;
|
|
74
|
+
merchantId?: number;
|
|
75
|
+
gmtCreate?: string;
|
|
76
|
+
gmtModify?: string;
|
|
77
|
+
isDeleted?: number;
|
|
78
|
+
password?: string;
|
|
79
|
+
userName?: string;
|
|
80
|
+
mobile?: string;
|
|
81
|
+
gender?: string;
|
|
82
|
+
avatarUrl?: string;
|
|
83
|
+
reMark?: string;
|
|
84
|
+
isSpecial?: number;
|
|
85
|
+
birthday?: string;
|
|
86
|
+
profession?: string;
|
|
87
|
+
school?: string;
|
|
88
|
+
custom?: string;
|
|
89
|
+
lastLoginAt?: number;
|
|
90
|
+
isRisk?: number;
|
|
91
|
+
version?: number;
|
|
92
|
+
phone?: string;
|
|
93
|
+
address?: string;
|
|
94
|
+
firstName?: string;
|
|
95
|
+
lastName?: string;
|
|
96
|
+
companyName?: string;
|
|
97
|
+
telegram?: string;
|
|
98
|
+
whatsAPP?: string;
|
|
99
|
+
weChat?: string;
|
|
100
|
+
tikTok?: string;
|
|
101
|
+
linkedIn?: string;
|
|
102
|
+
facebook?: string;
|
|
103
|
+
otherSocialInfo?: string;
|
|
104
|
+
subscriptionName?: string;
|
|
105
|
+
planId?: number;
|
|
106
|
+
subscriptionId?: string;
|
|
107
|
+
subscriptionStatus?: number;
|
|
108
|
+
recurringAmount?: number;
|
|
109
|
+
billingType?: number;
|
|
110
|
+
timeZone?: string;
|
|
111
|
+
createTime?: number;
|
|
112
|
+
status?: number;
|
|
113
|
+
city?: string;
|
|
114
|
+
zipCode?: string;
|
|
115
|
+
language?: string;
|
|
116
|
+
metaData?: string;
|
|
117
|
+
registrationNumber?: string;
|
|
118
|
+
};
|
|
119
|
+
export type DetailCreditTransactionDetail = {
|
|
120
|
+
id?: number;
|
|
121
|
+
user?: UserAccount;
|
|
122
|
+
creditAccount?: CreditAccount;
|
|
123
|
+
currency?: string;
|
|
124
|
+
transactionId?: string;
|
|
125
|
+
transactionType?: number;
|
|
126
|
+
creditAmountAfter?: number;
|
|
127
|
+
creditAmountBefore?: number;
|
|
128
|
+
deltaAmount?: number;
|
|
129
|
+
deltaCurrencyAmount?: number;
|
|
130
|
+
exchangeRate?: number;
|
|
131
|
+
bizId?: string;
|
|
132
|
+
name?: string;
|
|
133
|
+
description?: string;
|
|
134
|
+
createTime?: number;
|
|
135
|
+
merchantId?: number;
|
|
136
|
+
invoiceId?: string;
|
|
137
|
+
accountType?: number;
|
|
138
|
+
adminMember?: MerchantMember;
|
|
139
|
+
by?: string;
|
|
140
|
+
};
|
|
141
|
+
export type CreditAccount = {
|
|
142
|
+
id?: number;
|
|
143
|
+
userId?: number;
|
|
144
|
+
type?: number;
|
|
145
|
+
currency?: string;
|
|
146
|
+
amount?: number;
|
|
147
|
+
currencyAmount?: number;
|
|
148
|
+
exchangeRate?: number;
|
|
149
|
+
createTime?: number;
|
|
150
|
+
rechargeEnable?: number;
|
|
151
|
+
payoutEnable?: number;
|
|
152
|
+
totalIncrementAmount?: number;
|
|
153
|
+
totalDecrementAmount?: number;
|
|
154
|
+
};
|
|
155
|
+
export type MerchantMember = {
|
|
156
|
+
id?: number;
|
|
157
|
+
merchantId?: number;
|
|
158
|
+
email?: string;
|
|
159
|
+
firstName?: string;
|
|
160
|
+
lastName?: string;
|
|
161
|
+
createTime?: number;
|
|
162
|
+
mobile?: string;
|
|
163
|
+
isOwner?: boolean;
|
|
164
|
+
isBlankPasswd?: boolean;
|
|
165
|
+
};
|
|
166
|
+
export type CreditTransaction = {
|
|
167
|
+
id?: number;
|
|
168
|
+
userId?: number;
|
|
169
|
+
creditId?: number;
|
|
170
|
+
currency?: string;
|
|
171
|
+
transactionId?: string;
|
|
172
|
+
transactionType?: number;
|
|
173
|
+
creditAmountAfter?: number;
|
|
174
|
+
creditAmountBefore?: number;
|
|
175
|
+
deltaAmount?: number;
|
|
176
|
+
deltaCurrencyAmount?: number;
|
|
177
|
+
exchangeRate?: number;
|
|
178
|
+
bizId?: string;
|
|
179
|
+
name?: string;
|
|
180
|
+
description?: string;
|
|
181
|
+
createTime?: number;
|
|
182
|
+
merchantId?: number;
|
|
183
|
+
invoiceId?: string;
|
|
184
|
+
accountType?: number;
|
|
185
|
+
by?: string;
|
|
186
|
+
};
|
|
187
|
+
export type CreditConfigStatistics = {
|
|
188
|
+
id?: number;
|
|
189
|
+
totalIncrementAmount?: number;
|
|
190
|
+
totalDecrementAmount?: number;
|
|
191
|
+
};
|
|
192
|
+
export type Merchant = {
|
|
193
|
+
id?: number;
|
|
194
|
+
userId?: number;
|
|
195
|
+
type?: number;
|
|
196
|
+
email?: string;
|
|
197
|
+
businessNum?: string;
|
|
198
|
+
name?: string;
|
|
199
|
+
idcard?: string;
|
|
200
|
+
location?: string;
|
|
201
|
+
address?: string;
|
|
202
|
+
companyLogo?: string;
|
|
203
|
+
homeUrl?: string;
|
|
204
|
+
phone?: string;
|
|
205
|
+
createTime?: number;
|
|
206
|
+
timeZone?: string;
|
|
207
|
+
host?: string;
|
|
208
|
+
companyName?: string;
|
|
209
|
+
};
|
|
210
|
+
export type DetailGateway = {
|
|
211
|
+
gatewayId?: number;
|
|
212
|
+
name?: string;
|
|
213
|
+
description?: string;
|
|
214
|
+
gatewayName?: string;
|
|
215
|
+
displayName?: string;
|
|
216
|
+
gatewayIcons?: string[];
|
|
217
|
+
gatewayWebsiteLink?: string;
|
|
218
|
+
gatewayWebhookIntegrationLink?: string;
|
|
219
|
+
gatewayLogo?: string;
|
|
220
|
+
gatewayKey?: string;
|
|
221
|
+
gatewaySecret?: string;
|
|
222
|
+
subGateway?: string;
|
|
223
|
+
gatewayType?: number;
|
|
224
|
+
countryConfig?: object;
|
|
225
|
+
createTime?: number;
|
|
226
|
+
minimumAmount?: number;
|
|
227
|
+
currency?: string;
|
|
228
|
+
bank?: DetailGatewayBank;
|
|
229
|
+
webhookEndpointUrl?: string;
|
|
230
|
+
webhookSecret?: string;
|
|
231
|
+
sort?: number;
|
|
232
|
+
IsSetupFinished?: boolean;
|
|
233
|
+
currencyExchange?: string[];
|
|
234
|
+
currencyExchangeEnabled?: boolean;
|
|
235
|
+
gatewayPaymentTypes?: string[];
|
|
236
|
+
setupGatewayPaymentTypes?: string[];
|
|
237
|
+
archive?: boolean;
|
|
238
|
+
publicKeyName?: string;
|
|
239
|
+
privateSecretName?: string;
|
|
240
|
+
subGatewayName?: string;
|
|
241
|
+
autoChargeEnabled?: boolean;
|
|
242
|
+
};
|
|
243
|
+
export type DetailGatewayBank = {
|
|
244
|
+
accountHolder: string;
|
|
245
|
+
bic: string;
|
|
246
|
+
iban: string;
|
|
247
|
+
address: string;
|
|
248
|
+
};
|
|
249
|
+
export type DetailGatewayCurrencyExchange = {
|
|
250
|
+
from_currency?: string;
|
|
251
|
+
to_currency?: string;
|
|
252
|
+
exchange_rate?: number;
|
|
253
|
+
};
|
|
254
|
+
export type CreditRecharge = {
|
|
255
|
+
id?: number;
|
|
256
|
+
userId?: number;
|
|
257
|
+
creditId?: number;
|
|
258
|
+
rechargeId?: string;
|
|
259
|
+
rechargeStatus?: number;
|
|
260
|
+
currency?: string;
|
|
261
|
+
totalAmount?: number;
|
|
262
|
+
paymentAmount?: string;
|
|
263
|
+
name?: string;
|
|
264
|
+
description?: string;
|
|
265
|
+
paidTime?: number;
|
|
266
|
+
gatewayId?: number;
|
|
267
|
+
invoiceId?: string;
|
|
268
|
+
paymentId?: string;
|
|
269
|
+
totalRefundAmount?: number;
|
|
270
|
+
createTime?: number;
|
|
271
|
+
accountType?: number;
|
|
272
|
+
};
|
|
273
|
+
export type Invoice = {
|
|
274
|
+
id?: number;
|
|
275
|
+
userId?: number;
|
|
276
|
+
invoiceId?: string;
|
|
277
|
+
invoiceName?: string;
|
|
278
|
+
productName?: string;
|
|
279
|
+
discountCode?: string;
|
|
280
|
+
originAmount?: number;
|
|
281
|
+
totalAmount?: number;
|
|
282
|
+
discountAmount?: number;
|
|
283
|
+
totalAmountExcludingTax?: number;
|
|
284
|
+
currency?: string;
|
|
285
|
+
taxAmount?: number;
|
|
286
|
+
taxPercentage?: number;
|
|
287
|
+
subscriptionAmount?: number;
|
|
288
|
+
subscriptionAmountExcludingTax?: number;
|
|
289
|
+
lines?: string[];
|
|
290
|
+
periodEnd?: number;
|
|
291
|
+
periodStart?: number;
|
|
292
|
+
finishTime?: number;
|
|
293
|
+
prorationDate?: number;
|
|
294
|
+
prorationScale?: number;
|
|
295
|
+
sendNote?: string;
|
|
296
|
+
link?: string;
|
|
297
|
+
paymentLink?: string;
|
|
298
|
+
status?: number;
|
|
299
|
+
paymentId?: string;
|
|
300
|
+
refundId?: string;
|
|
301
|
+
subscriptionId?: string;
|
|
302
|
+
bizType?: number;
|
|
303
|
+
cryptoAmount?: number;
|
|
304
|
+
cryptoCurrency?: string;
|
|
305
|
+
sendStatus?: number;
|
|
306
|
+
dayUtilDue?: number;
|
|
307
|
+
discount?: MerchantDiscountCode;
|
|
308
|
+
trialEnd?: number;
|
|
309
|
+
billingCycleAnchor?: number;
|
|
310
|
+
createFrom?: string;
|
|
311
|
+
metadata?: object;
|
|
312
|
+
countryCode?: string;
|
|
313
|
+
vatNumber?: string;
|
|
314
|
+
data?: string;
|
|
315
|
+
autoCharge?: boolean;
|
|
316
|
+
promoCreditAccount?: CreditAccount;
|
|
317
|
+
promoCreditPayout?: CreditPayout;
|
|
318
|
+
promoCreditDiscountAmount?: number;
|
|
319
|
+
creditAccount?: CreditAccount;
|
|
320
|
+
creditPayout?: CreditPayout;
|
|
321
|
+
partialCreditPaidAmount?: number;
|
|
322
|
+
promoCreditTransaction?: CreditTransaction;
|
|
323
|
+
userMetricChargeForInvoice?: UserMetricChargeInvoiceItemEntity;
|
|
324
|
+
};
|
|
325
|
+
export type InvoiceItemSimplify = {
|
|
326
|
+
currency?: string;
|
|
327
|
+
originAmount?: number;
|
|
328
|
+
originUnitAmountExcludeTax?: number;
|
|
329
|
+
discountAmount?: number;
|
|
330
|
+
amount?: number;
|
|
331
|
+
tax?: number;
|
|
332
|
+
amountExcludingTax?: number;
|
|
333
|
+
taxPercentage?: number;
|
|
334
|
+
unitAmountExcludingTax?: number;
|
|
335
|
+
name?: string;
|
|
336
|
+
description?: string;
|
|
337
|
+
pdfDescription?: string;
|
|
338
|
+
proration?: boolean;
|
|
339
|
+
quantity?: number;
|
|
340
|
+
periodEnd?: number;
|
|
341
|
+
periodStart?: number;
|
|
342
|
+
plan?: Plan;
|
|
343
|
+
metricCharge?: UserMetricChargeInvoiceItem;
|
|
344
|
+
};
|
|
345
|
+
export type Plan = {
|
|
346
|
+
id?: number;
|
|
347
|
+
merchantId?: number;
|
|
348
|
+
planName?: string;
|
|
349
|
+
amount?: number;
|
|
350
|
+
currency?: string;
|
|
351
|
+
intervalUnit?: string;
|
|
352
|
+
intervalCount?: number;
|
|
353
|
+
description?: string;
|
|
354
|
+
imageUrl?: string;
|
|
355
|
+
homeUrl?: string;
|
|
356
|
+
taxPercentage?: number;
|
|
357
|
+
type?: number;
|
|
358
|
+
status?: number;
|
|
359
|
+
bindingAddonIds?: string;
|
|
360
|
+
bindingOnetimeAddonIds?: string;
|
|
361
|
+
publishStatus?: number;
|
|
362
|
+
createTime?: number;
|
|
363
|
+
extraMetricData?: string;
|
|
364
|
+
metadata?: object;
|
|
365
|
+
gasPayer?: string;
|
|
366
|
+
trialAmount?: number;
|
|
367
|
+
trialDurationTime?: number;
|
|
368
|
+
trialDemand?: string;
|
|
369
|
+
cancelAtTrialEnd?: number;
|
|
370
|
+
externalPlanId?: string;
|
|
371
|
+
productId?: number;
|
|
372
|
+
metricLimits?: string[];
|
|
373
|
+
metricMeteredCharge?: string[];
|
|
374
|
+
metricRecurringCharge?: string[];
|
|
375
|
+
};
|
|
376
|
+
export type PlanMetricLimitParam = {
|
|
377
|
+
metricId: number;
|
|
378
|
+
metricLimit: number;
|
|
379
|
+
};
|
|
380
|
+
export type PlanMetricMeteredChargeParam = {
|
|
381
|
+
metricId?: number;
|
|
382
|
+
chargeType?: number;
|
|
383
|
+
standardAmount?: number;
|
|
384
|
+
standardStartValue?: number;
|
|
385
|
+
graduatedAmounts?: string[];
|
|
386
|
+
};
|
|
387
|
+
export type MetricPlanChargeGraduatedStep = {
|
|
388
|
+
perAmount?: number;
|
|
389
|
+
startValue?: number;
|
|
390
|
+
endValue?: number;
|
|
391
|
+
flatAmount?: number;
|
|
392
|
+
};
|
|
393
|
+
export type UserMetricChargeInvoiceItem = {
|
|
394
|
+
metricId: number;
|
|
395
|
+
CurrentUsedValue?: number;
|
|
396
|
+
maxEventId?: number;
|
|
397
|
+
minEventId?: number;
|
|
398
|
+
chargePricing?: PlanMetricMeteredChargeParam;
|
|
399
|
+
totalChargeAmount?: number;
|
|
400
|
+
name?: string;
|
|
401
|
+
description?: string;
|
|
402
|
+
};
|
|
403
|
+
export type MerchantDiscountCode = {
|
|
404
|
+
id?: number;
|
|
405
|
+
merchantId?: number;
|
|
406
|
+
name?: string;
|
|
407
|
+
code?: string;
|
|
408
|
+
status?: number;
|
|
409
|
+
billingType?: number;
|
|
410
|
+
discountType?: number;
|
|
411
|
+
discountAmount?: number;
|
|
412
|
+
discountPercentage?: number;
|
|
413
|
+
currency?: string;
|
|
414
|
+
cycleLimit?: number;
|
|
415
|
+
startTime?: number;
|
|
416
|
+
endTime?: number;
|
|
417
|
+
createTime?: number;
|
|
418
|
+
planApplyType?: number;
|
|
419
|
+
planIds?: string[];
|
|
420
|
+
metadata?: object;
|
|
421
|
+
quantity?: number;
|
|
422
|
+
isDeleted?: number;
|
|
423
|
+
advance?: boolean;
|
|
424
|
+
userLimit?: number;
|
|
425
|
+
userScope?: number;
|
|
426
|
+
upgradeOnly?: boolean;
|
|
427
|
+
upgradeLongerOnly?: boolean;
|
|
428
|
+
};
|
|
429
|
+
export type CreditPayout = {
|
|
430
|
+
exchangeRate?: number;
|
|
431
|
+
creditAmount?: number;
|
|
432
|
+
currencyAmount?: number;
|
|
433
|
+
};
|
|
434
|
+
export type UserMetricChargeInvoiceItemEntity = {
|
|
435
|
+
meteredChargeStats?: string[];
|
|
436
|
+
recurringChargeStats?: string[];
|
|
437
|
+
};
|
|
438
|
+
export type Payment = {
|
|
439
|
+
paymentId?: string;
|
|
440
|
+
merchantId?: number;
|
|
441
|
+
userId?: number;
|
|
442
|
+
subscriptionId?: string;
|
|
443
|
+
externalPaymentId?: string;
|
|
444
|
+
currency?: string;
|
|
445
|
+
totalAmount?: number;
|
|
446
|
+
paymentAmount?: number;
|
|
447
|
+
balanceAmount?: number;
|
|
448
|
+
refundAmount?: number;
|
|
449
|
+
status?: number;
|
|
450
|
+
countryCode?: string;
|
|
451
|
+
authorizeStatus?: number;
|
|
452
|
+
authorizeReason?: string;
|
|
453
|
+
gatewayId?: number;
|
|
454
|
+
gatewayPaymentId?: string;
|
|
455
|
+
gatewayPaymentType?: string;
|
|
456
|
+
createTime?: number;
|
|
457
|
+
cancelTime?: number;
|
|
458
|
+
paidTime?: number;
|
|
459
|
+
invoiceId?: string;
|
|
460
|
+
returnUrl?: string;
|
|
461
|
+
automatic?: number;
|
|
462
|
+
failureReason?: string;
|
|
463
|
+
billingReason?: string;
|
|
464
|
+
link?: string;
|
|
465
|
+
metadata?: object;
|
|
466
|
+
gasPayer?: string;
|
|
467
|
+
autoCharge?: boolean;
|
|
468
|
+
gatewayCurrencyExchange?: GatewayCurrencyExchange;
|
|
469
|
+
};
|
|
470
|
+
export type GatewayCurrencyExchange = {
|
|
471
|
+
from_currency?: string;
|
|
472
|
+
to_currency?: string;
|
|
473
|
+
exchange_rate?: number;
|
|
474
|
+
exchange_amount?: number;
|
|
475
|
+
};
|
|
476
|
+
export type DetailMerchantDiscountCodeDetail = {
|
|
477
|
+
id?: number;
|
|
478
|
+
merchantId?: number;
|
|
479
|
+
name?: string;
|
|
480
|
+
code?: string;
|
|
481
|
+
status?: number;
|
|
482
|
+
billingType?: number;
|
|
483
|
+
discountType?: number;
|
|
484
|
+
discountAmount?: number;
|
|
485
|
+
discountPercentage?: number;
|
|
486
|
+
currency?: string;
|
|
487
|
+
cycleLimit?: number;
|
|
488
|
+
startTime?: number;
|
|
489
|
+
endTime?: number;
|
|
490
|
+
createTime?: number;
|
|
491
|
+
planApplyType?: number;
|
|
492
|
+
planIds?: string[];
|
|
493
|
+
plans?: string[];
|
|
494
|
+
metadata?: object;
|
|
495
|
+
liveQuantity?: number;
|
|
496
|
+
quantity?: number;
|
|
497
|
+
quantityUsed?: number;
|
|
498
|
+
isDeleted?: number;
|
|
499
|
+
advance?: boolean;
|
|
500
|
+
userLimit?: number;
|
|
501
|
+
userScope?: number;
|
|
502
|
+
upgradeOnly?: boolean;
|
|
503
|
+
upgradeLongerOnly?: boolean;
|
|
504
|
+
};
|
|
505
|
+
export type DetailMerchantUserDiscountCodeDetail = {
|
|
506
|
+
id?: number;
|
|
507
|
+
merchantId?: number;
|
|
508
|
+
user?: UserAccount;
|
|
509
|
+
code?: string;
|
|
510
|
+
plan?: Plan;
|
|
511
|
+
status?: number;
|
|
512
|
+
subscriptionId?: string;
|
|
513
|
+
paymentId?: string;
|
|
514
|
+
invoiceId?: string;
|
|
515
|
+
createTime?: number;
|
|
516
|
+
applyAmount?: number;
|
|
517
|
+
currency?: string;
|
|
518
|
+
recurring?: number;
|
|
519
|
+
};
|
|
520
|
+
export type MerchantLocalizationEmailTemplate = {
|
|
521
|
+
templateName?: string;
|
|
522
|
+
templateDescription?: string;
|
|
523
|
+
attach?: string;
|
|
524
|
+
localizations?: string[];
|
|
525
|
+
};
|
|
526
|
+
export type EmailLocalizationTemplate = {
|
|
527
|
+
language?: string;
|
|
528
|
+
title?: string;
|
|
529
|
+
content?: string;
|
|
530
|
+
};
|
|
531
|
+
export type MerchantEmailTemplate = {
|
|
532
|
+
id?: number;
|
|
533
|
+
merchantId?: number;
|
|
534
|
+
templateName?: string;
|
|
535
|
+
templateDescription?: string;
|
|
536
|
+
templateTitle?: string;
|
|
537
|
+
templateContent?: string;
|
|
538
|
+
templateAttachName?: string;
|
|
539
|
+
createTime?: number;
|
|
540
|
+
updateTime?: number;
|
|
541
|
+
status?: string;
|
|
542
|
+
gatewayTemplateId?: string;
|
|
543
|
+
languageData?: string;
|
|
544
|
+
};
|
|
545
|
+
export type DetailGatewaySort = {
|
|
546
|
+
gatewayName?: string;
|
|
547
|
+
gatewayId?: number;
|
|
548
|
+
sort?: number;
|
|
549
|
+
};
|
|
550
|
+
export type Currency = {
|
|
551
|
+
Currency?: string;
|
|
552
|
+
Symbol?: string;
|
|
553
|
+
Scale?: number;
|
|
554
|
+
};
|
|
555
|
+
export type Sender = {
|
|
556
|
+
name?: string;
|
|
557
|
+
address?: string;
|
|
558
|
+
};
|
|
559
|
+
export type DetailInvoiceDetail = {
|
|
560
|
+
id?: number;
|
|
561
|
+
merchantId?: number;
|
|
562
|
+
userId?: number;
|
|
563
|
+
subscriptionId?: string;
|
|
564
|
+
invoiceName?: string;
|
|
565
|
+
productName?: string;
|
|
566
|
+
invoiceId?: string;
|
|
567
|
+
gatewayPaymentType?: string;
|
|
568
|
+
uniqueId?: string;
|
|
569
|
+
gmtCreate?: string;
|
|
570
|
+
originAmount?: number;
|
|
571
|
+
totalAmount?: number;
|
|
572
|
+
discountCode?: string;
|
|
573
|
+
discountAmount?: number;
|
|
574
|
+
taxAmount?: number;
|
|
575
|
+
subscriptionAmount?: number;
|
|
576
|
+
currency?: string;
|
|
577
|
+
lines?: string[];
|
|
578
|
+
gatewayId?: number;
|
|
579
|
+
status?: number;
|
|
580
|
+
sendStatus?: number;
|
|
581
|
+
sendEmail?: string;
|
|
582
|
+
sendPdf?: string;
|
|
583
|
+
gmtModify?: string;
|
|
584
|
+
isDeleted?: number;
|
|
585
|
+
link?: string;
|
|
586
|
+
gatewayStatus?: string;
|
|
587
|
+
gatewayPaymentId?: string;
|
|
588
|
+
gatewayUserId?: string;
|
|
589
|
+
gatewayInvoicePdf?: string;
|
|
590
|
+
taxPercentage?: number;
|
|
591
|
+
sendNote?: string;
|
|
592
|
+
totalAmountExcludingTax?: number;
|
|
593
|
+
subscriptionAmountExcludingTax?: number;
|
|
594
|
+
periodStart?: number;
|
|
595
|
+
periodEnd?: number;
|
|
596
|
+
paymentId?: string;
|
|
597
|
+
refundId?: string;
|
|
598
|
+
gateway?: DetailGateway;
|
|
599
|
+
merchant?: Merchant;
|
|
600
|
+
userAccount?: UserAccount;
|
|
601
|
+
userSnapshot?: UserAccount;
|
|
602
|
+
subscription?: Subscription;
|
|
603
|
+
payment?: Payment;
|
|
604
|
+
refund?: Refund;
|
|
605
|
+
discount?: MerchantDiscountCode;
|
|
606
|
+
cryptoAmount?: number;
|
|
607
|
+
cryptoCurrency?: string;
|
|
608
|
+
dayUtilDue?: number;
|
|
609
|
+
billingCycleAnchor?: number;
|
|
610
|
+
createFrom?: string;
|
|
611
|
+
metadata?: object;
|
|
612
|
+
countryCode?: string;
|
|
613
|
+
vatNumber?: string;
|
|
614
|
+
finishTime?: number;
|
|
615
|
+
createTime?: number;
|
|
616
|
+
bizType?: number;
|
|
617
|
+
prorationDate?: number;
|
|
618
|
+
trialEnd?: number;
|
|
619
|
+
autoCharge?: boolean;
|
|
620
|
+
originalPaymentInvoice?: Invoice;
|
|
621
|
+
promoCreditDiscountAmount?: number;
|
|
622
|
+
promoCreditTransaction?: CreditTransaction;
|
|
623
|
+
partialCreditPaidAmount?: number;
|
|
624
|
+
message?: string;
|
|
625
|
+
userMetricChargeForInvoice?: UserMetricChargeInvoiceItemEntity;
|
|
626
|
+
};
|
|
627
|
+
export type Subscription = {
|
|
628
|
+
id?: number;
|
|
629
|
+
subscriptionId?: string;
|
|
630
|
+
externalSubscriptionId?: string;
|
|
631
|
+
userId?: number;
|
|
632
|
+
taskTime?: string;
|
|
633
|
+
amount?: number;
|
|
634
|
+
currency?: string;
|
|
635
|
+
merchantId?: number;
|
|
636
|
+
planId?: number;
|
|
637
|
+
quantity?: number;
|
|
638
|
+
addonData?: string;
|
|
639
|
+
latestInvoiceId?: string;
|
|
640
|
+
type?: number;
|
|
641
|
+
gatewayId?: number;
|
|
642
|
+
status?: number;
|
|
643
|
+
link?: string;
|
|
644
|
+
gatewayStatus?: string;
|
|
645
|
+
features?: string;
|
|
646
|
+
cancelAtPeriodEnd?: number;
|
|
647
|
+
lastUpdateTime?: number;
|
|
648
|
+
currentPeriodStart?: number;
|
|
649
|
+
currentPeriodEnd?: number;
|
|
650
|
+
originalPeriodEnd?: number;
|
|
651
|
+
billingCycleAnchor?: number;
|
|
652
|
+
dunningTime?: number;
|
|
653
|
+
trialEnd?: number;
|
|
654
|
+
returnUrl?: string;
|
|
655
|
+
firstPaidTime?: number;
|
|
656
|
+
cancelReason?: string;
|
|
657
|
+
countryCode?: string;
|
|
658
|
+
vatNumber?: string;
|
|
659
|
+
taxPercentage?: number;
|
|
660
|
+
pendingUpdateId?: string;
|
|
661
|
+
createTime?: number;
|
|
662
|
+
cancelOrExpireTime?: number;
|
|
663
|
+
testClock?: number;
|
|
664
|
+
metadata?: object;
|
|
665
|
+
gasPayer?: string;
|
|
666
|
+
defaultPaymentMethodId?: string;
|
|
667
|
+
productId?: number;
|
|
668
|
+
};
|
|
669
|
+
export type Refund = {
|
|
670
|
+
merchantId?: number;
|
|
671
|
+
userId?: number;
|
|
672
|
+
gatewayId?: number;
|
|
673
|
+
externalRefundId?: string;
|
|
674
|
+
countryCode?: string;
|
|
675
|
+
currency?: string;
|
|
676
|
+
paymentId?: string;
|
|
677
|
+
refundId?: string;
|
|
678
|
+
refundAmount?: number;
|
|
679
|
+
refundComment?: string;
|
|
680
|
+
refundCommentExplain?: string;
|
|
681
|
+
status?: number;
|
|
682
|
+
refundTime?: number;
|
|
683
|
+
gatewayRefundId?: string;
|
|
684
|
+
returnUrl?: string;
|
|
685
|
+
subscriptionId?: string;
|
|
686
|
+
createTime?: number;
|
|
687
|
+
metadata?: object;
|
|
688
|
+
type?: number;
|
|
689
|
+
invoiceId?: string;
|
|
690
|
+
gatewayCurrencyExchange?: GatewayCurrencyExchange;
|
|
691
|
+
};
|
|
692
|
+
export type DetailMerchantOperationLogDetail = {
|
|
693
|
+
id?: number;
|
|
694
|
+
merchantId?: number;
|
|
695
|
+
memberId?: number;
|
|
696
|
+
optAccount?: string;
|
|
697
|
+
optAccountId?: string;
|
|
698
|
+
optAccountType?: number;
|
|
699
|
+
optTarget?: string;
|
|
700
|
+
optContent?: string;
|
|
701
|
+
createTime?: number;
|
|
702
|
+
subscriptionId?: string;
|
|
703
|
+
userId?: number;
|
|
704
|
+
invoiceId?: string;
|
|
705
|
+
planId?: number;
|
|
706
|
+
discountCode?: string;
|
|
707
|
+
member?: DetailMerchantMemberDetail;
|
|
708
|
+
};
|
|
709
|
+
export type MerchantMetric = {
|
|
710
|
+
id?: number;
|
|
711
|
+
merchantId?: number;
|
|
712
|
+
code?: string;
|
|
713
|
+
metricName?: string;
|
|
714
|
+
metricDescription?: string;
|
|
715
|
+
type?: number;
|
|
716
|
+
aggregationType?: number;
|
|
717
|
+
aggregationProperty?: string;
|
|
718
|
+
gmtModify?: number;
|
|
719
|
+
createTime?: number;
|
|
720
|
+
};
|
|
721
|
+
export type MerchantMetricEvent = {
|
|
722
|
+
id?: number;
|
|
723
|
+
merchantId?: number;
|
|
724
|
+
metricId?: number;
|
|
725
|
+
externalEventId?: string;
|
|
726
|
+
userId?: number;
|
|
727
|
+
aggregationPropertyInt?: number;
|
|
728
|
+
aggregationPropertyString?: string;
|
|
729
|
+
createTime?: number;
|
|
730
|
+
aggregationPropertyData?: string;
|
|
731
|
+
subscriptionIds?: string;
|
|
732
|
+
subscriptionPeriodStart?: number;
|
|
733
|
+
subscriptionPeriodEnd?: number;
|
|
734
|
+
metricLimit?: number;
|
|
735
|
+
used?: number;
|
|
736
|
+
chargeInvoiceId?: string;
|
|
737
|
+
eventCharge?: EventMetricCharge;
|
|
738
|
+
};
|
|
739
|
+
export type EventMetricCharge = {
|
|
740
|
+
planId?: number;
|
|
741
|
+
currentValue?: number;
|
|
742
|
+
chargePricing?: PlanMetricMeteredChargeParam;
|
|
743
|
+
totalChargeAmount?: number;
|
|
744
|
+
chargeAmount?: number;
|
|
745
|
+
unitAmount?: number;
|
|
746
|
+
graduatedStep?: MetricPlanChargeGraduatedStep;
|
|
747
|
+
currency?: string;
|
|
748
|
+
};
|
|
749
|
+
export type DetailMerchantMetricEventDetail = {
|
|
750
|
+
id?: number;
|
|
751
|
+
merchantId?: number;
|
|
752
|
+
metricId?: number;
|
|
753
|
+
merchantMetric?: MerchantMetric;
|
|
754
|
+
externalEventId?: string;
|
|
755
|
+
userId?: number;
|
|
756
|
+
user?: UserAccount;
|
|
757
|
+
aggregationPropertyInt?: number;
|
|
758
|
+
aggregationPropertyString?: string;
|
|
759
|
+
createTime?: number;
|
|
760
|
+
aggregationPropertyData?: string;
|
|
761
|
+
subscriptionIds?: string;
|
|
762
|
+
subscriptionPeriodStart?: number;
|
|
763
|
+
subscriptionPeriodEnd?: number;
|
|
764
|
+
metricLimit?: number;
|
|
765
|
+
used?: number;
|
|
766
|
+
chargeInvoiceId?: string;
|
|
767
|
+
chargeInvoice?: Invoice;
|
|
768
|
+
eventCharge?: EventMetricCharge;
|
|
769
|
+
chargeStatus?: number;
|
|
770
|
+
};
|
|
771
|
+
export type DetailMerchantMetricPlanLimitDetail = {
|
|
772
|
+
id?: number;
|
|
773
|
+
merchantId?: number;
|
|
774
|
+
metricId?: number;
|
|
775
|
+
merchantMetric?: MerchantMetric;
|
|
776
|
+
planId?: number;
|
|
777
|
+
metricLimit?: number;
|
|
778
|
+
gmtModify?: number;
|
|
779
|
+
createTime?: number;
|
|
780
|
+
};
|
|
781
|
+
export type DetailUserMetric = {
|
|
782
|
+
isPaid?: boolean;
|
|
783
|
+
product?: Product;
|
|
784
|
+
user?: UserAccount;
|
|
785
|
+
subscription?: Subscription;
|
|
786
|
+
plan?: Plan;
|
|
787
|
+
addons?: string[];
|
|
788
|
+
limitStats?: string[];
|
|
789
|
+
meteredChargeStats?: string[];
|
|
790
|
+
recurringChargeStats?: string[];
|
|
791
|
+
description?: string;
|
|
792
|
+
};
|
|
793
|
+
export type Product = {
|
|
794
|
+
id?: number;
|
|
795
|
+
merchantId?: number;
|
|
796
|
+
productName?: string;
|
|
797
|
+
description?: string;
|
|
798
|
+
imageUrl?: string;
|
|
799
|
+
homeUrl?: string;
|
|
800
|
+
status?: number;
|
|
801
|
+
isDeleted?: number;
|
|
802
|
+
createTime?: number;
|
|
803
|
+
metaData?: string;
|
|
804
|
+
};
|
|
805
|
+
export type PlanAddonDetail = {
|
|
806
|
+
quantity?: number;
|
|
807
|
+
addonPlan?: Plan;
|
|
808
|
+
};
|
|
809
|
+
export type DetailUserMerchantMetricLimitStat = {
|
|
810
|
+
metricLimit?: DetailPlanMetricLimitDetail;
|
|
811
|
+
CurrentUsedValue?: number;
|
|
812
|
+
};
|
|
813
|
+
export type DetailPlanMetricLimitDetail = {
|
|
814
|
+
MerchantId?: number;
|
|
815
|
+
UserId?: number;
|
|
816
|
+
MetricId?: number;
|
|
817
|
+
code?: string;
|
|
818
|
+
metricName?: string;
|
|
819
|
+
type?: number;
|
|
820
|
+
aggregationType?: number;
|
|
821
|
+
aggregationProperty?: string;
|
|
822
|
+
TotalLimit?: number;
|
|
823
|
+
PlanLimits?: string[];
|
|
824
|
+
};
|
|
825
|
+
export type DetailUserMerchantMetricChargeStat = {
|
|
826
|
+
metricId: number;
|
|
827
|
+
merchantMetric?: MerchantMetric;
|
|
828
|
+
CurrentUsedValue?: number;
|
|
829
|
+
maxEventId?: number;
|
|
830
|
+
minEventId?: number;
|
|
831
|
+
chargePricing?: PlanMetricMeteredChargeParam;
|
|
832
|
+
totalChargeAmount?: number;
|
|
833
|
+
graduatedStep?: MetricPlanChargeGraduatedStep;
|
|
834
|
+
};
|
|
835
|
+
export type DetailPaymentDetail = {
|
|
836
|
+
user?: UserAccount;
|
|
837
|
+
payment?: Payment;
|
|
838
|
+
gateway?: DetailGateway;
|
|
839
|
+
invoice?: DetailInvoiceDetail;
|
|
840
|
+
};
|
|
841
|
+
export type PaymentItem = {
|
|
842
|
+
id?: number;
|
|
843
|
+
bizType?: number;
|
|
844
|
+
merchantId?: number;
|
|
845
|
+
userId?: number;
|
|
846
|
+
subscriptionId?: string;
|
|
847
|
+
invoiceId?: string;
|
|
848
|
+
uniqueId?: string;
|
|
849
|
+
currency?: string;
|
|
850
|
+
amount?: number;
|
|
851
|
+
unitAmount?: number;
|
|
852
|
+
quantity?: number;
|
|
853
|
+
paymentId?: string;
|
|
854
|
+
status?: number;
|
|
855
|
+
createTime?: number;
|
|
856
|
+
description?: string;
|
|
857
|
+
name?: string;
|
|
858
|
+
};
|
|
859
|
+
export type PaymentMethod = {
|
|
860
|
+
id?: string;
|
|
861
|
+
type?: string;
|
|
862
|
+
isDefault?: boolean;
|
|
863
|
+
data?: any;
|
|
864
|
+
};
|
|
865
|
+
export type DetailRefundDetail = {
|
|
866
|
+
user?: UserAccount;
|
|
867
|
+
payment?: Payment;
|
|
868
|
+
refund?: Refund;
|
|
869
|
+
};
|
|
870
|
+
export type DetailPaymentTimelineDetail = {
|
|
871
|
+
id?: number;
|
|
872
|
+
merchantId?: number;
|
|
873
|
+
userId?: number;
|
|
874
|
+
subscriptionId?: string;
|
|
875
|
+
invoiceId?: string;
|
|
876
|
+
currency?: string;
|
|
877
|
+
totalAmount?: number;
|
|
878
|
+
gatewayId?: number;
|
|
879
|
+
transactionId?: string;
|
|
880
|
+
paymentId?: string;
|
|
881
|
+
status?: number;
|
|
882
|
+
timelineType?: number;
|
|
883
|
+
createTime?: number;
|
|
884
|
+
refundId?: string;
|
|
885
|
+
fullRefund?: number;
|
|
886
|
+
payment?: Payment;
|
|
887
|
+
refund?: Refund;
|
|
888
|
+
externalTransactionId?: string;
|
|
889
|
+
autoCharge?: boolean;
|
|
890
|
+
};
|
|
891
|
+
export type DetailPlanDetail = {
|
|
892
|
+
product: Product;
|
|
893
|
+
plan: Plan;
|
|
894
|
+
addons: string[] | null;
|
|
895
|
+
addonIds: string[] | null;
|
|
896
|
+
onetimeAddons?: string[];
|
|
897
|
+
onetimeAddonIds?: string[];
|
|
898
|
+
metricPlanLimits?: string[];
|
|
899
|
+
metricMeteredCharge?: string[];
|
|
900
|
+
metricRecurringCharge?: string[];
|
|
901
|
+
};
|
|
902
|
+
export type DetailMerchantMetricPlanChargeDetail = {
|
|
903
|
+
metricId: number;
|
|
904
|
+
merchantMetric?: MerchantMetric;
|
|
905
|
+
chargeType?: number;
|
|
906
|
+
standardAmount?: number;
|
|
907
|
+
standardStartValue?: number;
|
|
908
|
+
graduatedAmounts?: string[];
|
|
909
|
+
};
|
|
910
|
+
export type DetailUserAccountDetail = {
|
|
911
|
+
id?: number;
|
|
912
|
+
merchantId?: number;
|
|
913
|
+
userName?: string;
|
|
914
|
+
mobile?: string;
|
|
915
|
+
email?: string;
|
|
916
|
+
gender?: string;
|
|
917
|
+
avatarUrl?: string;
|
|
918
|
+
isSpecial?: number;
|
|
919
|
+
birthday?: string;
|
|
920
|
+
profession?: string;
|
|
921
|
+
school?: string;
|
|
922
|
+
custom?: string;
|
|
923
|
+
lastLoginAt?: number;
|
|
924
|
+
isRisk?: number;
|
|
925
|
+
gatewayId?: number;
|
|
926
|
+
version?: number;
|
|
927
|
+
phone?: string;
|
|
928
|
+
address?: string;
|
|
929
|
+
firstName?: string;
|
|
930
|
+
lastName?: string;
|
|
931
|
+
companyName?: string;
|
|
932
|
+
vATNumber?: string;
|
|
933
|
+
telegram?: string;
|
|
934
|
+
whatsAPP?: string;
|
|
935
|
+
weChat?: string;
|
|
936
|
+
tikTok?: string;
|
|
937
|
+
linkedIn?: string;
|
|
938
|
+
facebook?: string;
|
|
939
|
+
otherSocialInfo?: string;
|
|
940
|
+
paymentMethod?: string;
|
|
941
|
+
countryCode?: string;
|
|
942
|
+
countryName?: string;
|
|
943
|
+
subscriptionName?: string;
|
|
944
|
+
subscriptionId?: string;
|
|
945
|
+
subscriptionStatus?: number;
|
|
946
|
+
recurringAmount?: number;
|
|
947
|
+
billingType?: number;
|
|
948
|
+
timeZone?: string;
|
|
949
|
+
createTime?: number;
|
|
950
|
+
externalUserId?: string;
|
|
951
|
+
status?: number;
|
|
952
|
+
taxPercentage?: number;
|
|
953
|
+
type?: number;
|
|
954
|
+
gateway?: DetailGateway;
|
|
955
|
+
city?: string;
|
|
956
|
+
zipCode?: string;
|
|
957
|
+
planId?: number;
|
|
958
|
+
language?: string;
|
|
959
|
+
registrationNumber?: string;
|
|
960
|
+
promoCreditAccounts?: string[];
|
|
961
|
+
creditAccounts?: string[];
|
|
962
|
+
metadata?: object;
|
|
963
|
+
gatewayPaymentType?: string;
|
|
964
|
+
};
|
|
965
|
+
export type SubscriptionConfig = {
|
|
966
|
+
downgradeEffectImmediately?: boolean;
|
|
967
|
+
upgradeProration?: boolean;
|
|
968
|
+
incompleteExpireTime?: number;
|
|
969
|
+
invoiceEmail?: boolean;
|
|
970
|
+
invoicePdfGenerate?: boolean;
|
|
971
|
+
tryAutomaticPaymentBeforePeriodEnd?: number;
|
|
972
|
+
gatewayVATRule?: string;
|
|
973
|
+
showZeroInvoice?: boolean;
|
|
974
|
+
fiatExchangeApiKey?: string;
|
|
975
|
+
};
|
|
976
|
+
export type MerchantVatRule = {
|
|
977
|
+
gatewayNames?: string;
|
|
978
|
+
validCountryCodes?: string;
|
|
979
|
+
taxPercentage?: number;
|
|
980
|
+
ignoreVatNumber?: boolean;
|
|
981
|
+
};
|
|
982
|
+
export type NewUser = {
|
|
983
|
+
externalUserId?: string;
|
|
984
|
+
email: string;
|
|
985
|
+
firstName?: string;
|
|
986
|
+
lastName?: string;
|
|
987
|
+
phone?: string;
|
|
988
|
+
address?: string;
|
|
989
|
+
userName?: string;
|
|
990
|
+
countryCode?: string;
|
|
991
|
+
type?: number;
|
|
992
|
+
companyName?: string;
|
|
993
|
+
vatNumber?: string;
|
|
994
|
+
city?: string;
|
|
995
|
+
zipCode?: string;
|
|
996
|
+
language?: string;
|
|
997
|
+
registrationNumber?: string;
|
|
998
|
+
};
|
|
999
|
+
export type PlanAddonParam = {
|
|
1000
|
+
quantity?: number;
|
|
1001
|
+
addonPlanId?: number;
|
|
1002
|
+
};
|
|
1003
|
+
export type ValidResult = {
|
|
1004
|
+
valid?: boolean;
|
|
1005
|
+
vatNumber?: string;
|
|
1006
|
+
countryCode?: string;
|
|
1007
|
+
companyName?: string;
|
|
1008
|
+
companyAddress?: string;
|
|
1009
|
+
validateMessage?: string;
|
|
1010
|
+
};
|
|
1011
|
+
export type DetailSubscriptionDetail = {
|
|
1012
|
+
dayLeft?: number;
|
|
1013
|
+
user?: UserAccount;
|
|
1014
|
+
subscription?: Subscription;
|
|
1015
|
+
plan?: Plan;
|
|
1016
|
+
gateway?: DetailGateway;
|
|
1017
|
+
addonParams?: string[];
|
|
1018
|
+
addons?: string[];
|
|
1019
|
+
latestInvoice?: Invoice;
|
|
1020
|
+
discount?: MerchantDiscountCode;
|
|
1021
|
+
unfinishedSubscriptionPendingUpdate?: DetailSubscriptionPendingUpdateDetail;
|
|
1022
|
+
};
|
|
1023
|
+
export type DetailSubscriptionPendingUpdateDetail = {
|
|
1024
|
+
merchantId?: number;
|
|
1025
|
+
userId?: number;
|
|
1026
|
+
subscriptionId?: string;
|
|
1027
|
+
pendingUpdateId?: string;
|
|
1028
|
+
invoiceId?: string;
|
|
1029
|
+
gmtCreate?: string;
|
|
1030
|
+
amount?: number;
|
|
1031
|
+
status?: number;
|
|
1032
|
+
updateAmount?: number;
|
|
1033
|
+
prorationAmount?: number;
|
|
1034
|
+
currency?: string;
|
|
1035
|
+
updateCurrency?: string;
|
|
1036
|
+
planId?: number;
|
|
1037
|
+
updatePlanId?: number;
|
|
1038
|
+
quantity?: number;
|
|
1039
|
+
updateQuantity?: number;
|
|
1040
|
+
addonData?: string;
|
|
1041
|
+
updateAddonData?: string;
|
|
1042
|
+
gatewayId?: number;
|
|
1043
|
+
gmtModify?: string;
|
|
1044
|
+
paid?: number;
|
|
1045
|
+
link?: string;
|
|
1046
|
+
merchantMember?: DetailMerchantMemberDetail;
|
|
1047
|
+
effectImmediate?: number;
|
|
1048
|
+
effectTime?: number;
|
|
1049
|
+
note?: string;
|
|
1050
|
+
plan?: Plan;
|
|
1051
|
+
addons?: string[];
|
|
1052
|
+
updatePlan?: Plan;
|
|
1053
|
+
updateAddons?: string[];
|
|
1054
|
+
metadata?: object;
|
|
1055
|
+
};
|
|
1056
|
+
export type ExternalDiscountParam = {
|
|
1057
|
+
recurring?: boolean;
|
|
1058
|
+
discountAmount?: number;
|
|
1059
|
+
discountPercentage?: number;
|
|
1060
|
+
cycleLimit?: number;
|
|
1061
|
+
endTime?: number;
|
|
1062
|
+
metadata?: object;
|
|
1063
|
+
};
|
|
1064
|
+
export type PlanProductParam = {
|
|
1065
|
+
name?: string;
|
|
1066
|
+
description?: string;
|
|
1067
|
+
};
|
|
1068
|
+
export type SubscriptionOnetimeAddon = {
|
|
1069
|
+
id?: number;
|
|
1070
|
+
subscriptionId?: string;
|
|
1071
|
+
addonId?: number;
|
|
1072
|
+
quantity?: number;
|
|
1073
|
+
status?: number;
|
|
1074
|
+
isDeleted?: number;
|
|
1075
|
+
createTime?: number;
|
|
1076
|
+
paymentId?: string;
|
|
1077
|
+
paymentLink?: string;
|
|
1078
|
+
metadata?: object;
|
|
1079
|
+
};
|
|
1080
|
+
export type DetailSubscriptionOnetimeAddonDetail = {
|
|
1081
|
+
id?: number;
|
|
1082
|
+
subscriptionId?: string;
|
|
1083
|
+
addonId?: number;
|
|
1084
|
+
addon?: Plan;
|
|
1085
|
+
quantity?: number;
|
|
1086
|
+
status?: number;
|
|
1087
|
+
createTime?: number;
|
|
1088
|
+
payment?: Payment;
|
|
1089
|
+
metadata?: object;
|
|
1090
|
+
user?: UserAccount;
|
|
1091
|
+
};
|
|
1092
|
+
export type DetailSubscriptionTimeLineDetail = {
|
|
1093
|
+
merchantId?: number;
|
|
1094
|
+
userId?: number;
|
|
1095
|
+
subscriptionId?: string;
|
|
1096
|
+
periodStart?: number;
|
|
1097
|
+
periodEnd?: number;
|
|
1098
|
+
periodStartTime?: string;
|
|
1099
|
+
periodEndTime?: string;
|
|
1100
|
+
invoiceId?: string;
|
|
1101
|
+
paymentId?: string;
|
|
1102
|
+
uniqueId?: string;
|
|
1103
|
+
currency?: string;
|
|
1104
|
+
planId?: number;
|
|
1105
|
+
plan?: Plan;
|
|
1106
|
+
quantity?: number;
|
|
1107
|
+
addons?: string[];
|
|
1108
|
+
gatewayId?: number;
|
|
1109
|
+
createTime?: number;
|
|
1110
|
+
status?: number;
|
|
1111
|
+
};
|
|
1112
|
+
export type MerchantBatchExportTemplate = {
|
|
1113
|
+
templateId?: number;
|
|
1114
|
+
name?: string;
|
|
1115
|
+
merchantId?: number;
|
|
1116
|
+
memberId?: number;
|
|
1117
|
+
task?: string;
|
|
1118
|
+
payload?: object;
|
|
1119
|
+
exportColumns?: string[];
|
|
1120
|
+
format?: string;
|
|
1121
|
+
createTime?: number;
|
|
1122
|
+
};
|
|
1123
|
+
export type MerchantBatchTask = {
|
|
1124
|
+
id?: number;
|
|
1125
|
+
merchantId?: number;
|
|
1126
|
+
memberId?: number;
|
|
1127
|
+
taskName?: string;
|
|
1128
|
+
payload?: string;
|
|
1129
|
+
downloadUrl?: string;
|
|
1130
|
+
status?: number;
|
|
1131
|
+
startTime?: number;
|
|
1132
|
+
finishTime?: number;
|
|
1133
|
+
taskCost?: number;
|
|
1134
|
+
failureReason?: string;
|
|
1135
|
+
taskType?: number;
|
|
1136
|
+
successCount?: number;
|
|
1137
|
+
uploadFileUrl?: string;
|
|
1138
|
+
createTime?: number;
|
|
1139
|
+
lastUpdateTime?: number;
|
|
1140
|
+
format?: string;
|
|
1141
|
+
};
|
|
1142
|
+
export type DetailUserAdminNoteDetail = {
|
|
1143
|
+
id?: number;
|
|
1144
|
+
createTime?: number;
|
|
1145
|
+
userId?: number;
|
|
1146
|
+
merchantMemberId?: number;
|
|
1147
|
+
note?: string;
|
|
1148
|
+
userAccount?: UserAccount;
|
|
1149
|
+
merchantMember?: DetailMerchantMemberDetail;
|
|
1150
|
+
};
|
|
1151
|
+
export type UserWallet = {
|
|
1152
|
+
id?: number;
|
|
1153
|
+
merchantId?: number;
|
|
1154
|
+
userId?: number;
|
|
1155
|
+
currency?: string;
|
|
1156
|
+
wallet?: number;
|
|
1157
|
+
gmtCreate?: string;
|
|
1158
|
+
gmtModify?: string;
|
|
1159
|
+
};
|
|
1160
|
+
export type UserWalletTimeline = {
|
|
1161
|
+
id?: number;
|
|
1162
|
+
merchantId?: number;
|
|
1163
|
+
merchantUserId?: number;
|
|
1164
|
+
userId?: number;
|
|
1165
|
+
walletId?: number;
|
|
1166
|
+
amount?: number;
|
|
1167
|
+
reason?: string;
|
|
1168
|
+
note?: string;
|
|
1169
|
+
gmtCreate?: string;
|
|
1170
|
+
gmtModify?: string;
|
|
1171
|
+
user?: UserAccount;
|
|
1172
|
+
wallet?: UserWallet;
|
|
1173
|
+
};
|
|
1174
|
+
export type VatCountryRate = {
|
|
1175
|
+
id?: number;
|
|
1176
|
+
gateway?: string;
|
|
1177
|
+
countryCode?: string;
|
|
1178
|
+
countryName?: string;
|
|
1179
|
+
vatSupport?: boolean;
|
|
1180
|
+
isEU?: boolean;
|
|
1181
|
+
standardTaxPercentage?: number;
|
|
1182
|
+
};
|
|
1183
|
+
export type MerchantWebhookEndpoint = {
|
|
1184
|
+
id?: number;
|
|
1185
|
+
merchantId?: number;
|
|
1186
|
+
webhookUrl?: string;
|
|
1187
|
+
webhookEvents?: string[];
|
|
1188
|
+
gmtModify?: number;
|
|
1189
|
+
createTime?: number;
|
|
1190
|
+
};
|
|
1191
|
+
export type MerchantWebhookLog = {
|
|
1192
|
+
id?: number;
|
|
1193
|
+
merchantId?: number;
|
|
1194
|
+
endpointId?: number;
|
|
1195
|
+
reconsumeCount?: number;
|
|
1196
|
+
webhookUrl?: string;
|
|
1197
|
+
webhookEvent?: string;
|
|
1198
|
+
requestId?: string;
|
|
1199
|
+
body?: string;
|
|
1200
|
+
response?: string;
|
|
1201
|
+
mamo?: string;
|
|
1202
|
+
createTime?: number;
|
|
1203
|
+
};
|
|
1204
|
+
export type StdResponse<T = unknown> = {
|
|
1205
|
+
code: number;
|
|
1206
|
+
message: string;
|
|
1207
|
+
redirect: string;
|
|
1208
|
+
requestOd: string;
|
|
1209
|
+
data: T;
|
|
1210
|
+
};
|
|
1211
|
+
//# sourceMappingURL=shared.d.ts.map
|