@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.
Files changed (46) hide show
  1. package/README.md +31 -0
  2. package/dist/apiClient.d.ts +19 -0
  3. package/dist/apiClient.d.ts.map +1 -0
  4. package/dist/apiClient.js +46 -0
  5. package/dist/apiClient.js.map +1 -0
  6. package/dist/index.d.ts +7 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +15 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/merchant.d.ts +2144 -0
  11. package/dist/merchant.d.ts.map +1 -0
  12. package/dist/merchant.js +1819 -0
  13. package/dist/merchant.js.map +1 -0
  14. package/dist/system.d.ts +94 -0
  15. package/dist/system.d.ts.map +1 -0
  16. package/dist/system.js +100 -0
  17. package/dist/system.js.map +1 -0
  18. package/dist/types/edm.d.ts +26 -0
  19. package/dist/types/edm.d.ts.map +1 -0
  20. package/dist/types/edm.js +3 -0
  21. package/dist/types/edm.js.map +1 -0
  22. package/dist/types/interface.d.ts +8 -0
  23. package/dist/types/interface.d.ts.map +1 -0
  24. package/dist/types/interface.js +3 -0
  25. package/dist/types/interface.js.map +1 -0
  26. package/dist/types/merchant.d.ts +1916 -0
  27. package/dist/types/merchant.d.ts.map +1 -0
  28. package/dist/types/merchant.js +3 -0
  29. package/dist/types/merchant.js.map +1 -0
  30. package/dist/types/shared.d.ts +1211 -0
  31. package/dist/types/shared.d.ts.map +1 -0
  32. package/dist/types/shared.js +3 -0
  33. package/dist/types/shared.js.map +1 -0
  34. package/dist/types/system.d.ts +78 -0
  35. package/dist/types/system.d.ts.map +1 -0
  36. package/dist/types/system.js +3 -0
  37. package/dist/types/system.js.map +1 -0
  38. package/dist/types/user.d.ts +491 -0
  39. package/dist/types/user.d.ts.map +1 -0
  40. package/dist/types/user.js +3 -0
  41. package/dist/types/user.js.map +1 -0
  42. package/dist/user.d.ts +589 -0
  43. package/dist/user.d.ts.map +1 -0
  44. package/dist/user.js +466 -0
  45. package/dist/user.js.map +1 -0
  46. package/package.json +76 -0
@@ -0,0 +1,1819 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const apiClient_1 = __importDefault(require("./apiClient"));
7
+ class MerchantApi extends apiClient_1.default {
8
+ /**
9
+ * Password Login
10
+ * @schema AuthLoginReq
11
+ */
12
+ async authSsoLogin(body) {
13
+ return this.call('/merchant/auth/sso/login', null, body, 'POST');
14
+ }
15
+ /**
16
+ * OTP Login
17
+ * @schema AuthLoginOtpReq
18
+ */
19
+ async authSsoLoginOtp(body) {
20
+ return this.call('/merchant/auth/sso/loginOTP', null, body, 'POST');
21
+ }
22
+ /**
23
+ * OTP Login Code Verification
24
+ * @schema AuthLoginOtpVerifyReq
25
+ */
26
+ async authSsoLoginOtpVerify(body) {
27
+ return this.call('/merchant/auth/sso/loginOTPVerify', null, body, 'POST');
28
+ }
29
+ /**
30
+ * OTP Password Forget
31
+ * @schema AuthPasswordForgetOtpReq
32
+ */
33
+ async authSsoPasswordForgetOtp(body) {
34
+ return this.call('/merchant/auth/sso/passwordForgetOTP', null, body, 'POST');
35
+ }
36
+ /**
37
+ * OTP Password Forget Code Verification
38
+ * @schema AuthPasswordForgetOtpVerifyReq
39
+ */
40
+ async authSsoPasswordForgetOtpVerify(body) {
41
+ return this.call('/merchant/auth/sso/passwordForgetOTPVerify', null, body, 'POST');
42
+ }
43
+ /**
44
+ * Password Setup
45
+ * @schema AuthPasswordSetupOtpReq
46
+ */
47
+ async authSsoPasswordSetup(body) {
48
+ return this.call('/merchant/auth/sso/passwordSetup', null, body, 'POST');
49
+ }
50
+ /**
51
+ * Register
52
+ * @schema AuthRegisterReq
53
+ */
54
+ async authSsoRegister(body) {
55
+ return this.call('/merchant/auth/sso/register', null, body, 'POST');
56
+ }
57
+ /**
58
+ * Register Verify
59
+ * @schema AuthRegisterVerifyReq
60
+ */
61
+ async authSsoRegisterVerify(body) {
62
+ return this.call('/merchant/auth/sso/registerVerify', null, body, 'POST');
63
+ }
64
+ /**
65
+ * Edit Country Config
66
+ * @schema ProfileCountryConfigListReq
67
+ */
68
+ async countryConfigList(body) {
69
+ return this.call('/merchant/country_config_list', null, body, 'POST');
70
+ }
71
+ /**
72
+ * Get Credit Config list
73
+ * @types number[] type list of credit account, 1-main account, 2-promo credit account
74
+ * @currency string currency
75
+ */
76
+ async getCreditConfigList(params) {
77
+ return this.call('/merchant/credit/config_list', params, null, 'GET');
78
+ }
79
+ /**
80
+ * Get Credit Config list
81
+ * @schema CreditConfigListReq
82
+ */
83
+ async creditConfigList(body) {
84
+ return this.call('/merchant/credit/config_list', null, body, 'POST');
85
+ }
86
+ /**
87
+ * Get Credit Account List
88
+ * @userId number filter id of user
89
+ * @email string filter email of user
90
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
91
+ * @sortType string Sort Type,asc|desc,Default desc
92
+ * @page number Page, Start 0
93
+ * @count number Count Of Per Page
94
+ * @createTimeStart number CreateTimeStart
95
+ * @createTimeEnd number CreateTimeEnd
96
+ */
97
+ async getCreditCreditAccountList(params) {
98
+ return this.call('/merchant/credit/credit_account_list', params, null, 'GET');
99
+ }
100
+ /**
101
+ * Get Credit Transaction List
102
+ * @accountType number filter type of account, 1-main account, 2-promo credit account
103
+ * @userId number filter id of user
104
+ * @email string filter email of user
105
+ * @currency string filter currency of account
106
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
107
+ * @sortType string Sort Type,asc|desc,Default desc
108
+ * @transactionTypes number[] transaction type。1-recharge income,2-payment out,3-refund income,4-withdraw out,5-withdraw failed income, 6-admin change,7-recharge refund out
109
+ * @page number Page, Start 0
110
+ * @count number Count Of Per Page
111
+ * @createTimeStart number CreateTimeStart
112
+ * @createTimeEnd number CreateTimeEnd
113
+ */
114
+ async getCreditCreditTransactionList(params) {
115
+ return this.call('/merchant/credit/credit_transaction_list', params, null, 'GET');
116
+ }
117
+ /**
118
+ * Get Credit Transaction List
119
+ * @schema CreditCreditTransactionListReq
120
+ */
121
+ async creditCreditTransactionList(body) {
122
+ return this.call('/merchant/credit/credit_transaction_list', null, body, 'POST');
123
+ }
124
+ /**
125
+ * Credit Account Detail
126
+ * @id number The credit account Id
127
+ */
128
+ async getCreditDetail(params) {
129
+ return this.call('/merchant/credit/detail', params, null, 'GET');
130
+ }
131
+ /**
132
+ * Credit Account Detail
133
+ * @schema CreditDetailReq
134
+ */
135
+ async creditDetail(body) {
136
+ return this.call('/merchant/credit/detail', null, body, 'POST');
137
+ }
138
+ /**
139
+ * Edit Credit Config
140
+ * @schema CreditEditConfigReq
141
+ */
142
+ async creditEditConfig(body) {
143
+ return this.call('/merchant/credit/edit_config', null, body, 'POST');
144
+ }
145
+ /**
146
+ * Edit User Credit Account Config
147
+ * @schema CreditEditCreditAccountReq
148
+ */
149
+ async creditEditCreditAccount(body) {
150
+ return this.call('/merchant/credit/edit_credit_account', null, body, 'POST');
151
+ }
152
+ /**
153
+ * Edit Promo Credit Config
154
+ * @schema CreditEditPromoConfigReq
155
+ */
156
+ async creditEditPromoConfig(body) {
157
+ return this.call('/merchant/credit/edit_promo_config', null, body, 'POST');
158
+ }
159
+ /**
160
+ * Get Promo Credit Config
161
+ * @currency string currency
162
+ */
163
+ async getCreditGetPromoConfig(params) {
164
+ return this.call('/merchant/credit/get_promo_config', params, null, 'GET');
165
+ }
166
+ /**
167
+ * Get Promo Credit Config
168
+ * @schema CreditPromoConfigReq
169
+ */
170
+ async creditGetPromoConfig(body) {
171
+ return this.call('/merchant/credit/get_promo_config', null, body, 'POST');
172
+ }
173
+ /**
174
+ * Get Promo Credit Config Statistics
175
+ * @currency string currency
176
+ */
177
+ async getCreditGetPromoConfigStatistics(params) {
178
+ return this.call('/merchant/credit/get_promo_config_statistics', params, null, 'GET');
179
+ }
180
+ /**
181
+ * Get Promo Credit Config Statistics
182
+ * @schema CreditPromoConfigStatisticsReq
183
+ */
184
+ async creditGetPromoConfigStatistics(body) {
185
+ return this.call('/merchant/credit/get_promo_config_statistics', null, body, 'POST');
186
+ }
187
+ /**
188
+ * Setup Credit Config
189
+ * @schema CreditNewConfigReq
190
+ */
191
+ async creditNewConfig(body) {
192
+ return this.call('/merchant/credit/new_config', null, body, 'POST');
193
+ }
194
+ /**
195
+ * New Credit Recharge
196
+ * @schema CreditNewCreditRechargeReq
197
+ */
198
+ async creditNewCreditRecharge(body) {
199
+ return this.call('/merchant/credit/new_credit_recharge', null, body, 'POST');
200
+ }
201
+ /**
202
+ * Promo Credit Decrement
203
+ * @schema CreditPromoCreditDecrementReq
204
+ */
205
+ async creditPromoCreditDecrement(body) {
206
+ return this.call('/merchant/credit/promo_credit_decrement', null, body, 'POST');
207
+ }
208
+ /**
209
+ * Promo Credit Increment
210
+ * @schema CreditPromoCreditIncrementReq
211
+ */
212
+ async creditPromoCreditIncrement(body) {
213
+ return this.call('/merchant/credit/promo_credit_increment', null, body, 'POST');
214
+ }
215
+ /**
216
+ * Activate Discount Code
217
+ * @schema DiscountActivateReq
218
+ */
219
+ async discountActivate(body) {
220
+ return this.call('/merchant/discount/activate', null, body, 'POST');
221
+ }
222
+ /**
223
+ * Deactivate Discount Code
224
+ * @schema DiscountDeactivateReq
225
+ */
226
+ async discountDeactivate(body) {
227
+ return this.call('/merchant/discount/deactivate', null, body, 'POST');
228
+ }
229
+ /**
230
+ * Quantity Decrement
231
+ * @schema DiscountQuantityDecrementReq
232
+ */
233
+ async discountDecreaseQuantity(body) {
234
+ return this.call('/merchant/discount/decrease_quantity', null, body, 'POST');
235
+ }
236
+ /**
237
+ * Delete Discount Code
238
+ * @schema DiscountDeleteReq
239
+ */
240
+ async discountDelete(body) {
241
+ return this.call('/merchant/discount/delete', null, body, 'POST');
242
+ }
243
+ /**
244
+ * Get Merchant Discount Detail
245
+ * @id number The discount's Id
246
+ */
247
+ async getDiscountDetail(params) {
248
+ return this.call('/merchant/discount/detail', params, null, 'GET');
249
+ }
250
+ /**
251
+ * Get Merchant Discount Detail
252
+ * @schema DiscountDetailReq
253
+ */
254
+ async discountDetail(body) {
255
+ return this.call('/merchant/discount/detail', null, body, 'POST');
256
+ }
257
+ /**
258
+ * Edit Discount Code
259
+ * @schema DiscountEditReq
260
+ */
261
+ async discountEdit(body) {
262
+ return this.call('/merchant/discount/edit', null, body, 'POST');
263
+ }
264
+ /**
265
+ * Get Discount Code List
266
+ * @discountType number[] discount_type, 1-percentage, 2-fixed_amount
267
+ * @billingType number[] billing_type, 1-one-time, 2-recurring
268
+ * @status number[] status, 1-editable, 2-active, 3-deactive, 4-expire, 10-archive
269
+ * @code string Filter Code
270
+ * @searchKey string Search Key, code or name
271
+ * @currency string Filter Currency
272
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
273
+ * @sortType string Sort Type,asc|desc,Default desc
274
+ * @page number Page, Start 0
275
+ * @count number Count Of Per Page
276
+ * @createTimeStart number CreateTimeStart
277
+ * @createTimeEnd number CreateTimeEnd
278
+ */
279
+ async getDiscountList(params) {
280
+ return this.call('/merchant/discount/list', params, null, 'GET');
281
+ }
282
+ /**
283
+ * New Discount Code
284
+ * @schema DiscountNewReq
285
+ */
286
+ async discountNew(body) {
287
+ return this.call('/merchant/discount/new', null, body, 'POST');
288
+ }
289
+ /**
290
+ * Plan Apply Preview
291
+ * @schema DiscountPlanApplyPreviewReq
292
+ */
293
+ async discountPlanApplyPreview(body) {
294
+ return this.call('/merchant/discount/plan_apply_preview', null, body, 'POST');
295
+ }
296
+ /**
297
+ * Quantity Increment
298
+ * @schema DiscountQuantityIncrementReq
299
+ */
300
+ async discountQuantityIncrement(body) {
301
+ return this.call('/merchant/discount/quantity_increment', null, body, 'POST');
302
+ }
303
+ /**
304
+ * Get User Discount Code List
305
+ * @id number The discount's Id
306
+ * @userIds number[] Filter UserIds Default All
307
+ * @email string Filter Email Default All
308
+ * @planIds number[] Filter PlanIds Default All
309
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
310
+ * @sortType string Sort Type,asc|desc,Default desc
311
+ * @page number Page, Start 0
312
+ * @count number Count Of Per Page
313
+ * @createTimeStart number CreateTimeStart
314
+ * @createTimeEnd number CreateTimeEnd
315
+ */
316
+ async getDiscountUserDiscountList(params) {
317
+ return this.call('/merchant/discount/user_discount_list', params, null, 'GET');
318
+ }
319
+ /**
320
+ * Get Country Config List
321
+ * @schema ProfileEditCountryConfigReq
322
+ */
323
+ async editCountryConfig(body) {
324
+ return this.call('/merchant/edit_country_config', null, body, 'POST');
325
+ }
326
+ /**
327
+ * Get available EDM's for company'
328
+ * @mode string ul,fl
329
+ * @inn string INN, 2308266448
330
+ * @kpp string KPP, 230801001
331
+ */
332
+ async getEdmGetIdentity(params) {
333
+ return this.call('/merchant/edm/get_identity', params, null, 'GET');
334
+ }
335
+ /**
336
+ * EDM Gateway Setup
337
+ * @schema EdmSetupGatewayReq
338
+ */
339
+ async edmSetupGateway(body) {
340
+ return this.call('/merchant/edm/setup_gateway', null, body, 'POST');
341
+ }
342
+ /**
343
+ * Customize Localization Template Sync
344
+ * @schema EmailCustomizeLocalizationTemplateSyncReq
345
+ */
346
+ async emailCustomLocalizationTemplateSync(body) {
347
+ return this.call('/merchant/email/custom_localization_template_sync', null, body, 'POST');
348
+ }
349
+ /**
350
+ * Email Sender Setup
351
+ * @schema EmailSenderSetupReq
352
+ */
353
+ async emailEmailSenderSetup(body) {
354
+ return this.call('/merchant/email/email_sender_setup', null, body, 'POST');
355
+ }
356
+ /**
357
+ * Email Gateway Setup
358
+ * @schema EmailGatewaySetupReq
359
+ */
360
+ async emailGatewaySetup(body) {
361
+ return this.call('/merchant/email/gateway_setup', null, body, 'POST');
362
+ }
363
+ /**
364
+ * Send Template Email To User
365
+ * @schema EmailSendTemplateEmailToUserReq
366
+ */
367
+ async emailSendTemplateEmailToUser(body) {
368
+ return this.call('/merchant/email/send_template_email_to_user', null, body, 'POST');
369
+ }
370
+ /**
371
+ * Email Template Activate
372
+ * @schema EmailTemplateActivateReq
373
+ */
374
+ async emailTemplateActivate(body) {
375
+ return this.call('/merchant/email/template_activate', null, body, 'POST');
376
+ }
377
+ /**
378
+ * Email Template Deactivate
379
+ * @schema EmailTemplateDeactivateReq
380
+ */
381
+ async emailTemplateDeactivate(body) {
382
+ return this.call('/merchant/email/template_deactivate', null, body, 'POST');
383
+ }
384
+ /**
385
+ * Get Email Template List
386
+ */
387
+ async getEmailTemplateList() {
388
+ return this.call('/merchant/email/template_list', null, null, 'GET');
389
+ }
390
+ /**
391
+ * Setup Email Template Default
392
+ * @schema EmailTemplateSetDefaultReq
393
+ */
394
+ async emailTemplateSetDefault(body) {
395
+ return this.call('/merchant/email/template_set_default', null, body, 'POST');
396
+ }
397
+ /**
398
+ * Email Template Update
399
+ * @schema EmailTemplateUpdateReq
400
+ */
401
+ async emailTemplateUpdate(body) {
402
+ return this.call('/merchant/email/template_update', null, body, 'POST');
403
+ }
404
+ /**
405
+ * Payment Gateway Archive
406
+ * @schema GatewayArchiveReq
407
+ */
408
+ async gatewayArchive(body) {
409
+ return this.call('/merchant/gateway/archive', null, body, 'POST');
410
+ }
411
+ /**
412
+ * Payment Gateway
413
+ * @gatewayId number The id of payment gateway, either gatewayId or gatewayName
414
+ * @gatewayName string The name of payment gateway, , either gatewayId or gatewayName, stripe|paypal|changelly|unitpay|payssion|cryptadium
415
+ */
416
+ async getGatewayDetail(params) {
417
+ return this.call('/merchant/gateway/detail', params, null, 'GET');
418
+ }
419
+ /**
420
+ * Payment Gateway
421
+ * @schema GatewayDetailReq
422
+ */
423
+ async gatewayDetail(body) {
424
+ return this.call('/merchant/gateway/detail', null, body, 'POST');
425
+ }
426
+ /**
427
+ * Payment Gateway Edit
428
+ * @schema GatewayEditReq
429
+ */
430
+ async gatewayEdit(body) {
431
+ return this.call('/merchant/gateway/edit', null, body, 'POST');
432
+ }
433
+ /**
434
+ * Payment Gateway Country Config Edit
435
+ * @schema GatewayEditCountryConfigReq
436
+ */
437
+ async gatewayEditCountryConfig(body) {
438
+ return this.call('/merchant/gateway/edit_country_config', null, body, 'POST');
439
+ }
440
+ /**
441
+ * Edit Payment Gateway Sort
442
+ * @schema GatewayEditSortReq
443
+ */
444
+ async gatewayEditSort(body) {
445
+ return this.call('/merchant/gateway/edit_sort', null, body, 'POST');
446
+ }
447
+ /**
448
+ * Get Payment Gateway List
449
+ * @archive boolean Filter archive gateway or not, default all
450
+ */
451
+ async getGatewayList(params) {
452
+ return this.call('/merchant/gateway/list', params, null, 'GET');
453
+ }
454
+ /**
455
+ * Payment Gateway Setup
456
+ * @schema GatewaySetupReq
457
+ */
458
+ async gatewaySetup(body) {
459
+ return this.call('/merchant/gateway/setup', null, body, 'POST');
460
+ }
461
+ /**
462
+ * Exchange Rate Api Setup
463
+ * @schema GatewaySetupExchangeApiReq
464
+ */
465
+ async gatewaySetupExchangeRateApi(body) {
466
+ return this.call('/merchant/gateway/setup_exchange_rate_api', null, body, 'POST');
467
+ }
468
+ /**
469
+ * Get Payment Gateway Setup List
470
+ */
471
+ async getGatewaySetupList() {
472
+ return this.call('/merchant/gateway/setup_list', null, null, 'GET');
473
+ }
474
+ /**
475
+ * Payment Gateway Webhook Setup
476
+ * @schema GatewaySetupWebhookReq
477
+ */
478
+ async gatewaySetupWebhook(body) {
479
+ return this.call('/merchant/gateway/setup_webhook', null, body, 'POST');
480
+ }
481
+ /**
482
+ * Wire Transfer Edit
483
+ * @schema GatewayWireTransferEditReq
484
+ */
485
+ async gatewayWireTransferEdit(body) {
486
+ return this.call('/merchant/gateway/wire_transfer_edit', null, body, 'POST');
487
+ }
488
+ /**
489
+ * Wire Transfer Setup
490
+ * @schema GatewayWireTransferSetupReq
491
+ */
492
+ async gatewayWireTransferSetup(body) {
493
+ return this.call('/merchant/gateway/wire_transfer_setup', null, body, 'POST');
494
+ }
495
+ /**
496
+ * Get Profile
497
+ */
498
+ async get() {
499
+ return this.call('/merchant/get', null, null, 'GET');
500
+ }
501
+ /**
502
+ * Admin Cancel Invoice
503
+ * @schema InvoiceCancelReq
504
+ */
505
+ async invoiceCancel(body) {
506
+ return this.call('/merchant/invoice/cancel', null, body, 'POST');
507
+ }
508
+ /**
509
+ * Delete Pending Invoice
510
+ * @schema InvoiceDeleteReq
511
+ */
512
+ async invoiceDelete(body) {
513
+ return this.call('/merchant/invoice/delete', null, body, 'POST');
514
+ }
515
+ /**
516
+ * Invoice Detail
517
+ * @invoiceId string The unique id of invoice
518
+ */
519
+ async getInvoiceDetail(params) {
520
+ return this.call('/merchant/invoice/detail', params, null, 'GET');
521
+ }
522
+ /**
523
+ * Invoice Detail
524
+ * @schema InvoiceDetailReq
525
+ */
526
+ async invoiceDetail(body) {
527
+ return this.call('/merchant/invoice/detail', null, body, 'POST');
528
+ }
529
+ /**
530
+ * Invoice Edit
531
+ * @schema InvoiceEditReq
532
+ */
533
+ async invoiceEdit(body) {
534
+ return this.call('/merchant/invoice/edit', null, body, 'POST');
535
+ }
536
+ /**
537
+ * Finish Invoice
538
+ * @schema InvoiceFinishReq
539
+ */
540
+ async invoiceFinish(body) {
541
+ return this.call('/merchant/invoice/finish', null, body, 'POST');
542
+ }
543
+ /**
544
+ * Get Invoice List
545
+ * @firstName string The firstName of invoice
546
+ * @lastName string The lastName of invoice
547
+ * @currency string The currency of invoice
548
+ * @status number[] The status of invoice, 1-pending|2-processing|3-paid | 4-failed | 5-cancelled
549
+ * @amountStart number The filter start amount of invoice
550
+ * @amountEnd number The filter end amount of invoice
551
+ * @userId number The filter userid of invoice
552
+ * @sendEmail string The filter email of invoice
553
+ * @sortField string Filter,em. invoice_id|gmt_create|gmt_modify|period_end|total_amount,Default gmt_modify
554
+ * @sortType string Sort,asc|desc,Default desc
555
+ * @deleteInclude boolean Deleted Involved,Need Admin Permission
556
+ * @type number invoice Type, 0-payment, 1-refund
557
+ * @page number Page, Start 0
558
+ * @count number Count By Page
559
+ * @createTimeStart number CreateTimeStart
560
+ * @createTimeEnd number CreateTimeEnd
561
+ * @reportTimeStart number ReportTimeStart
562
+ * @reportTimeEnd number ReportTimeEnd
563
+ */
564
+ async getInvoiceList(params) {
565
+ return this.call('/merchant/invoice/list', params, null, 'GET');
566
+ }
567
+ /**
568
+ * Get Invoice List
569
+ * @schema InvoiceListReq
570
+ */
571
+ async invoiceList(body) {
572
+ return this.call('/merchant/invoice/list', null, body, 'POST');
573
+ }
574
+ /**
575
+ * Mark Invoice Refund
576
+ * @schema InvoiceMarkRefundReq
577
+ */
578
+ async invoiceMarkRefund(body) {
579
+ return this.call('/merchant/invoice/mark_refund', null, body, 'POST');
580
+ }
581
+ /**
582
+ * Mark Invoice Refund As Success
583
+ * @schema InvoiceMarkRefundInvoiceSuccessReq
584
+ */
585
+ async invoiceMarkRefundSuccess(body) {
586
+ return this.call('/merchant/invoice/mark_refund_success', null, body, 'POST');
587
+ }
588
+ /**
589
+ * Mark Wire Transfer Invoice As Success
590
+ * @schema InvoiceMarkWireTransferSuccessReq
591
+ */
592
+ async invoiceMarkWireTransferSuccess(body) {
593
+ return this.call('/merchant/invoice/mark_wire_transfer_success', null, body, 'POST');
594
+ }
595
+ /**
596
+ * New Invoice
597
+ * @schema InvoiceNewReq
598
+ */
599
+ async invoiceNew(body) {
600
+ return this.call('/merchant/invoice/new', null, body, 'POST');
601
+ }
602
+ /**
603
+ * Generate Invoice PDF
604
+ * @schema InvoicePdfGenerateReq
605
+ */
606
+ async invoicePdfGenerate(body) {
607
+ return this.call('/merchant/invoice/pdf_generate', null, body, 'POST');
608
+ }
609
+ /**
610
+ * Update Invoice PDF
611
+ * @schema InvoicePdfUpdateReq
612
+ */
613
+ async invoicePdfUpdate(body) {
614
+ return this.call('/merchant/invoice/pdf_update', null, body, 'POST');
615
+ }
616
+ /**
617
+ * Admin Reconvert Crypto Data and Send Invoice Email
618
+ * @schema InvoiceReconvertCryptoAndSendReq
619
+ */
620
+ async invoiceReconvertCryptoAndSendEmail(body) {
621
+ return this.call('/merchant/invoice/reconvert_crypto_and_send_email', null, body, 'POST');
622
+ }
623
+ /**
624
+ * Create InvoiceRefund
625
+ * @schema InvoiceRefundReq
626
+ */
627
+ async invoiceRefund(body) {
628
+ return this.call('/merchant/invoice/refund', null, body, 'POST');
629
+ }
630
+ /**
631
+ * Send Invoice Email
632
+ * @schema InvoiceSendEmailReq
633
+ */
634
+ async invoiceSendEmail(body) {
635
+ return this.call('/merchant/invoice/send_email', null, body, 'POST');
636
+ }
637
+ /**
638
+ * Get Member List
639
+ * @roleIds number[] The member roleId if specified'
640
+ * @page number Page, Start With 0
641
+ * @count number Count Of Page
642
+ */
643
+ async getMemberList(params) {
644
+ return this.call('/merchant/member/list', params, null, 'GET');
645
+ }
646
+ /**
647
+ * Get Member List
648
+ * @schema MemberListReq
649
+ */
650
+ async memberList(body) {
651
+ return this.call('/merchant/member/list', null, body, 'POST');
652
+ }
653
+ /**
654
+ * Logout
655
+ * @schema MemberLogoutReq
656
+ */
657
+ async memberLogout(body) {
658
+ return this.call('/merchant/member/logout', null, body, 'POST');
659
+ }
660
+ /**
661
+ * Invite member
662
+ * @schema MemberNewMemberReq
663
+ */
664
+ async memberNewMember(body) {
665
+ return this.call('/merchant/member/new_member', null, body, 'POST');
666
+ }
667
+ /**
668
+ * Get Member Operation Log List
669
+ * @memberFirstName string Filter Member's FirstName Default All
670
+ * @memberLastName string Filter Member's LastName, Default All
671
+ * @memberEmail string Filter Member's Email, Default All
672
+ * @firstName string FirstName
673
+ * @lastName string LastName
674
+ * @email string Email
675
+ * @subscriptionId string subscription_id
676
+ * @invoiceId string invoice id
677
+ * @planId number plan id
678
+ * @discountCode string discount_code
679
+ * @page number Page, Start With 0
680
+ * @count number Count Of Page
681
+ */
682
+ async getMemberOperationLogList(params) {
683
+ return this.call('/merchant/member/operation_log_list', params, null, 'GET');
684
+ }
685
+ /**
686
+ * Member Reset Password
687
+ * @schema MemberPasswordResetReq
688
+ */
689
+ async memberPasswordReset(body) {
690
+ return this.call('/merchant/member/passwordReset', null, body, 'POST');
691
+ }
692
+ /**
693
+ * Get Member Profile
694
+ */
695
+ async getMemberProfile() {
696
+ return this.call('/merchant/member/profile', null, null, 'GET');
697
+ }
698
+ /**
699
+ * Resume Member
700
+ * @schema MemberReleaseReq
701
+ */
702
+ async memberResumeMember(body) {
703
+ return this.call('/merchant/member/resume_member', null, body, 'POST');
704
+ }
705
+ /**
706
+ * Suspend Member
707
+ * @schema MemberFrozenReq
708
+ */
709
+ async memberSuspendMember(body) {
710
+ return this.call('/merchant/member/suspend_member', null, body, 'POST');
711
+ }
712
+ /**
713
+ * Update Member Profile
714
+ * @schema MemberUpdateReq
715
+ */
716
+ async memberUpdate(body) {
717
+ return this.call('/merchant/member/update', null, body, 'POST');
718
+ }
719
+ /**
720
+ * Update Member Role
721
+ * @schema MemberUpdateMemberRoleReq
722
+ */
723
+ async memberUpdateMemberRole(body) {
724
+ return this.call('/merchant/member/update_member_role', null, body, 'POST');
725
+ }
726
+ /**
727
+ * Delete Merchant Metric
728
+ * @schema MetricDeleteReq
729
+ */
730
+ async metricDelete(body) {
731
+ return this.call('/merchant/metric/delete', null, body, 'POST');
732
+ }
733
+ /**
734
+ * Merchant Metric Detail
735
+ * @schema MetricDetailReq
736
+ */
737
+ async metricDetail(body) {
738
+ return this.call('/merchant/metric/detail', null, body, 'POST');
739
+ }
740
+ /**
741
+ * Edit Merchant Metric
742
+ * @schema MetricEditReq
743
+ */
744
+ async metricEdit(body) {
745
+ return this.call('/merchant/metric/edit', null, body, 'POST');
746
+ }
747
+ /**
748
+ * Del Merchant Metric Event
749
+ * @schema MetricDeleteEventReq
750
+ */
751
+ async metricEventDelete(body) {
752
+ return this.call('/merchant/metric/event/delete', null, body, 'POST');
753
+ }
754
+ /**
755
+ * New Merchant Metric Event
756
+ * @schema MetricNewEventReq
757
+ */
758
+ async metricEventNew(body) {
759
+ return this.call('/merchant/metric/event/new', null, body, 'POST');
760
+ }
761
+ /**
762
+ * Metric Event List
763
+ * @userIds number[] Filter UserIds, Default All
764
+ * @metricIds number[] Filter MetricIds, Default All
765
+ * @sortField string Sort,user_id|gmt_create,Default gmt_create
766
+ * @sortType string Sort Type,asc|desc,Default desc
767
+ * @page number Page,Start 0
768
+ * @count number Count OF Page
769
+ * @createTimeStart number CreateTimeStart
770
+ * @createTimeEnd number CreateTimeEnd
771
+ */
772
+ async getMetricEventList(params) {
773
+ return this.call('/merchant/metric/event_list', params, null, 'GET');
774
+ }
775
+ /**
776
+ * Metric Event List
777
+ * @schema MetricEventListReq
778
+ */
779
+ async metricEventList(body) {
780
+ return this.call('/merchant/metric/event_list', null, body, 'POST');
781
+ }
782
+ /**
783
+ * Get Merchant Metric list
784
+ * @sortField string Sort,user_id|gmt_create,Default gmt_create
785
+ * @sortType string Sort Type,asc|desc,Default desc
786
+ * @page number Page,Start 0
787
+ * @count number Count OF Page
788
+ * @createTimeStart number CreateTimeStart
789
+ * @createTimeEnd number CreateTimeEnd
790
+ */
791
+ async getMetricList(params) {
792
+ return this.call('/merchant/metric/list', params, null, 'GET');
793
+ }
794
+ /**
795
+ * Get Merchant Metric list
796
+ * @schema MetricListReq
797
+ */
798
+ async metricList(body) {
799
+ return this.call('/merchant/metric/list', null, body, 'POST');
800
+ }
801
+ /**
802
+ * New Merchant Metric
803
+ * @schema MetricNewReq
804
+ */
805
+ async metricNew(body) {
806
+ return this.call('/merchant/metric/new', null, body, 'POST');
807
+ }
808
+ /**
809
+ * Delete Merchant Metric Plan TotalLimit
810
+ * @schema MetricDeletePlanLimitReq
811
+ */
812
+ async metricPlanLimitDelete(body) {
813
+ return this.call('/merchant/metric/plan/limit/delete', null, body, 'POST');
814
+ }
815
+ /**
816
+ * Edit Merchant Metric Plan TotalLimit
817
+ * @schema MetricEditPlanLimitReq
818
+ */
819
+ async metricPlanLimitEdit(body) {
820
+ return this.call('/merchant/metric/plan/limit/edit', null, body, 'POST');
821
+ }
822
+ /**
823
+ * New Merchant Metric Plan TotalLimit
824
+ * @schema MetricNewPlanLimitReq
825
+ */
826
+ async metricPlanLimitNew(body) {
827
+ return this.call('/merchant/metric/plan/limit/new', null, body, 'POST');
828
+ }
829
+ /**
830
+ * Query User Metric
831
+ * @userId number UserId, One Of UserId|ExternalUserId Needed
832
+ * @externalUserId string ExternalUserId, One Of UserId|ExternalUserId Needed
833
+ * @productId number default product will use if productId not specified and subscriptionId is blank
834
+ */
835
+ async getMetricUserMetric(params) {
836
+ return this.call('/merchant/metric/user/metric', params, null, 'GET');
837
+ }
838
+ /**
839
+ * Query User Metric By Subscription
840
+ * @subscriptionId string SubscriptionId
841
+ */
842
+ async getMetricUserSubMetric(params) {
843
+ return this.call('/merchant/metric/user/sub/metric', params, null, 'GET');
844
+ }
845
+ /**
846
+ * Generate New APIKey
847
+ * @schema ProfileNewApiKeyReq
848
+ */
849
+ async newApikey(body) {
850
+ return this.call('/merchant/new_apikey', null, body, 'POST');
851
+ }
852
+ /**
853
+ * Upload File
854
+ */
855
+ async ossFile() {
856
+ return this.call('/merchant/oss/file', null, null, 'POST');
857
+ }
858
+ /**
859
+ * Cancel Payment
860
+ * @schema PaymentCancelReq
861
+ */
862
+ async paymentCancel(body) {
863
+ return this.call('/merchant/payment/cancel', null, body, 'POST');
864
+ }
865
+ /**
866
+ * Capture Payment
867
+ * @schema PaymentCaptureReq
868
+ */
869
+ async paymentCapture(body) {
870
+ return this.call('/merchant/payment/capture', null, body, 'POST');
871
+ }
872
+ /**
873
+ * Payment Detail
874
+ * @paymentId string The unique id of payment
875
+ */
876
+ async getPaymentDetail(params) {
877
+ return this.call('/merchant/payment/detail', params, null, 'GET');
878
+ }
879
+ /**
880
+ * Get OneTime Payment Item List
881
+ * @userId number Filter UserId, Default All
882
+ * @sortField string Sort,invoice_id|gmt_create|gmt_modify|period_end|total_amount,Default gmt_modify
883
+ * @sortType string Sort Type,asc|desc,Default desc
884
+ * @page number Page,Start 0
885
+ * @count number Count Of Page
886
+ */
887
+ async getPaymentItemList(params) {
888
+ return this.call('/merchant/payment/item/list', params, null, 'GET');
889
+ }
890
+ /**
891
+ * Get Payment List
892
+ * @gatewayId number The filter unique id of gateway
893
+ * @userId number The filter userid of payment
894
+ * @email string The filter email of payment
895
+ * @status number The filter status of payment, 10-Created|20-Success|30-Failed|40-Cancelled
896
+ * @currency string The filter currency of payment
897
+ * @countryCode string The filter country code of payment
898
+ * @sortField string Sort Field,user_id|create_time|status
899
+ * @sortType string Sort Type,asc|desc
900
+ * @page number Page, Start With 0
901
+ * @count number Count Of Page
902
+ */
903
+ async getPaymentList(params) {
904
+ return this.call('/merchant/payment/list', params, null, 'GET');
905
+ }
906
+ /**
907
+ * Delete Payment Method
908
+ * @schema PaymentMethodDeleteReq
909
+ */
910
+ async paymentMethodDelete(body) {
911
+ return this.call('/merchant/payment/method_delete', null, body, 'POST');
912
+ }
913
+ /**
914
+ * Payment Method
915
+ * @gatewayId number The unique id of gateway
916
+ * @userId number The customer's unique id
917
+ * @paymentMethodId string The unique id of payment method
918
+ */
919
+ async getPaymentMethodGet(params) {
920
+ return this.call('/merchant/payment/method_get', params, null, 'GET');
921
+ }
922
+ /**
923
+ * Payment Method List
924
+ * @gatewayId number The unique id of gateway
925
+ * @userId number The id of user
926
+ * @paymentId string The unique id of payment
927
+ */
928
+ async getPaymentMethodList(params) {
929
+ return this.call('/merchant/payment/method_list', params, null, 'GET');
930
+ }
931
+ /**
932
+ * Create New Payment Method
933
+ * @schema PaymentMethodNewReq
934
+ */
935
+ async paymentMethodNew(body) {
936
+ return this.call('/merchant/payment/method_new', null, body, 'POST');
937
+ }
938
+ /**
939
+ * New Payment
940
+ * @schema PaymentNewReq
941
+ */
942
+ async paymentNew(body) {
943
+ return this.call('/merchant/payment/new', null, body, 'POST');
944
+ }
945
+ /**
946
+ * Cancel Payment Refund
947
+ * @schema PaymentRefundCancelReq
948
+ */
949
+ async paymentRefundCancel(body) {
950
+ return this.call('/merchant/payment/refund/cancel', null, body, 'POST');
951
+ }
952
+ /**
953
+ * Payment Refund Detail
954
+ * @refundId string RefundId
955
+ */
956
+ async getPaymentRefundDetail(params) {
957
+ return this.call('/merchant/payment/refund/detail', params, null, 'GET');
958
+ }
959
+ /**
960
+ * Get Payment Refund List
961
+ * @paymentId string PaymentId
962
+ * @status number Status,10-create|20-success|30-Failed|40-Reverse
963
+ * @gatewayId number GatewayId
964
+ * @userId number UserId
965
+ * @email string Email
966
+ * @currency string Currency
967
+ */
968
+ async getPaymentRefundList(params) {
969
+ return this.call('/merchant/payment/refund/list', params, null, 'GET');
970
+ }
971
+ /**
972
+ * New Payment Refund
973
+ * @schema PaymentNewPaymentRefundReq
974
+ */
975
+ async paymentRefundNew(body) {
976
+ return this.call('/merchant/payment/refund/new', null, body, 'POST');
977
+ }
978
+ /**
979
+ * Get Payment TimeLine List
980
+ * @userId number Filter UserId, Default All
981
+ * @amountStart number The filter start amount of timeline
982
+ * @amountEnd number The filter end amount of timeline
983
+ * @status number[] The filter status, 0-pending, 1-success, 2-failure,3-cancel
984
+ * @timelineTypes number[] The filter timelineType, 0-pay, 1-refund
985
+ * @gatewayIds number[] The filter ids of gateway
986
+ * @currency string Currency
987
+ * @sortField string Sort,invoice_id|gmt_create|gmt_modify|period_end|total_amount,Default gmt_modify
988
+ * @sortType string Sort Type,asc|desc,Default desc
989
+ * @page number Page,Start 0
990
+ * @count number Count Of Page
991
+ * @createTimeStart number CreateTimeStart
992
+ * @createTimeEnd number CreateTimeEnd
993
+ */
994
+ async getPaymentTimelineList(params) {
995
+ return this.call('/merchant/payment/timeline/list', params, null, 'GET');
996
+ }
997
+ /**
998
+ * Get Payment TimeLine List
999
+ * @schema PaymentTimeLineListReq
1000
+ */
1001
+ async paymentTimelineList(body) {
1002
+ return this.call('/merchant/payment/timeline/list', null, body, 'POST');
1003
+ }
1004
+ /**
1005
+ * Activate Plan
1006
+ * @schema PlanActivateReq
1007
+ */
1008
+ async planActivate(body) {
1009
+ return this.call('/merchant/plan/activate', null, body, 'POST');
1010
+ }
1011
+ /**
1012
+ * Addon Binding
1013
+ * @schema PlanAddonsBindingReq
1014
+ */
1015
+ async planAddonsBinding(body) {
1016
+ return this.call('/merchant/plan/addons_binding', null, body, 'POST');
1017
+ }
1018
+ /**
1019
+ * Archive Plan
1020
+ * @schema PlanArchiveReq
1021
+ */
1022
+ async planArchive(body) {
1023
+ return this.call('/merchant/plan/archive', null, body, 'POST');
1024
+ }
1025
+ /**
1026
+ * Copy Plan
1027
+ * @schema PlanCopyReq
1028
+ */
1029
+ async planCopy(body) {
1030
+ return this.call('/merchant/plan/copy', null, body, 'POST');
1031
+ }
1032
+ /**
1033
+ * Delete Plan
1034
+ * @schema PlanDeleteReq
1035
+ */
1036
+ async planDelete(body) {
1037
+ return this.call('/merchant/plan/delete', null, body, 'POST');
1038
+ }
1039
+ /**
1040
+ * Plan Detail
1041
+ * @planId number PlanId
1042
+ */
1043
+ async getPlanDetail(params) {
1044
+ return this.call('/merchant/plan/detail', params, null, 'GET');
1045
+ }
1046
+ /**
1047
+ * Plan Detail
1048
+ * @schema PlanDetailReq
1049
+ */
1050
+ async planDetail(body) {
1051
+ return this.call('/merchant/plan/detail', null, body, 'POST');
1052
+ }
1053
+ /**
1054
+ * Edit Plan
1055
+ * @schema PlanEditReq
1056
+ */
1057
+ async planEdit(body) {
1058
+ return this.call('/merchant/plan/edit', null, body, 'POST');
1059
+ }
1060
+ /**
1061
+ * Get Plan List
1062
+ * @productIds number[] filter id list of product, default all
1063
+ * @type number[] 1-main plan,2-addon plan
1064
+ * @status number[] Filter, Default All,,Status,1-Editing,2-Active,3-InActive,4-SoftArchive, 5-HardArchive
1065
+ * @publishStatus number Filter, Default All,PublishStatus,1-UnPublished,2-Published
1066
+ * @currency string Filter Currency
1067
+ * @searchKey string Search Key, plan name or description
1068
+ * @sortField string Sort Field,plan_name|gmt_create|gmt_modify,Default gmt_create
1069
+ * @sortType string Sort Type,asc|desc,Default desc
1070
+ * @page number Page, Start 0
1071
+ * @count number Count Of Per Page
1072
+ */
1073
+ async getPlanList(params) {
1074
+ return this.call('/merchant/plan/list', params, null, 'GET');
1075
+ }
1076
+ /**
1077
+ * Get Plan List
1078
+ * @schema PlanListReq
1079
+ */
1080
+ async planList(body) {
1081
+ return this.call('/merchant/plan/list', null, body, 'POST');
1082
+ }
1083
+ /**
1084
+ * Create Plan
1085
+ * @schema PlanNewReq
1086
+ */
1087
+ async planNew(body) {
1088
+ return this.call('/merchant/plan/new', null, body, 'POST');
1089
+ }
1090
+ /**
1091
+ * Publish Plan
1092
+ * @schema PlanPublishReq
1093
+ */
1094
+ async planPublish(body) {
1095
+ return this.call('/merchant/plan/publish', null, body, 'POST');
1096
+ }
1097
+ /**
1098
+ * UnPublish Plan
1099
+ * @schema PlanUnPublishReq
1100
+ */
1101
+ async planUnpublished(body) {
1102
+ return this.call('/merchant/plan/unpublished', null, body, 'POST');
1103
+ }
1104
+ /**
1105
+ * Activate Product
1106
+ * @schema ProductActivateReq
1107
+ */
1108
+ async productActivate(body) {
1109
+ return this.call('/merchant/product/activate', null, body, 'POST');
1110
+ }
1111
+ /**
1112
+ * Copy Product
1113
+ * @schema ProductCopyReq
1114
+ */
1115
+ async productCopy(body) {
1116
+ return this.call('/merchant/product/copy', null, body, 'POST');
1117
+ }
1118
+ /**
1119
+ * Delete Product
1120
+ * @schema ProductDeleteReq
1121
+ */
1122
+ async productDelete(body) {
1123
+ return this.call('/merchant/product/delete', null, body, 'POST');
1124
+ }
1125
+ /**
1126
+ * Product Detail
1127
+ * @productId number ProductId
1128
+ */
1129
+ async getProductDetail(params) {
1130
+ return this.call('/merchant/product/detail', params, null, 'GET');
1131
+ }
1132
+ /**
1133
+ * Product Detail
1134
+ * @schema ProductDetailReq
1135
+ */
1136
+ async productDetail(body) {
1137
+ return this.call('/merchant/product/detail', null, body, 'POST');
1138
+ }
1139
+ /**
1140
+ * Edit Product
1141
+ * @schema ProductEditReq
1142
+ */
1143
+ async productEdit(body) {
1144
+ return this.call('/merchant/product/edit', null, body, 'POST');
1145
+ }
1146
+ /**
1147
+ * Inactivate Product
1148
+ * @schema ProductInactiveReq
1149
+ */
1150
+ async productInactivate(body) {
1151
+ return this.call('/merchant/product/inactivate', null, body, 'POST');
1152
+ }
1153
+ /**
1154
+ * Get Product List
1155
+ * @status number[] Filter, Default All,,Status,1-active,2-inactive
1156
+ * @sortField string Sort Field,id|create_time|gmt_modify,Default id
1157
+ * @sortType string Sort Type,asc|desc,Default desc
1158
+ * @page number Page, Start 0
1159
+ * @count number Count Of Per Page
1160
+ */
1161
+ async getProductList(params) {
1162
+ return this.call('/merchant/product/list', params, null, 'GET');
1163
+ }
1164
+ /**
1165
+ * Get Product List
1166
+ * @schema ProductListReq
1167
+ */
1168
+ async productList(body) {
1169
+ return this.call('/merchant/product/list', null, body, 'POST');
1170
+ }
1171
+ /**
1172
+ * Create Product
1173
+ * @schema ProductNewReq
1174
+ */
1175
+ async productNew(body) {
1176
+ return this.call('/merchant/product/new', null, body, 'POST');
1177
+ }
1178
+ /**
1179
+ * Delete Role
1180
+ * @schema RoleDeleteReq
1181
+ */
1182
+ async roleDelete(body) {
1183
+ return this.call('/merchant/role/delete', null, body, 'POST');
1184
+ }
1185
+ /**
1186
+ * Edit Role
1187
+ * @schema RoleEditReq
1188
+ */
1189
+ async roleEdit(body) {
1190
+ return this.call('/merchant/role/edit', null, body, 'POST');
1191
+ }
1192
+ /**
1193
+ * Get Role List
1194
+ */
1195
+ async getRoleList() {
1196
+ return this.call('/merchant/role/list', null, null, 'GET');
1197
+ }
1198
+ /**
1199
+ * New Role
1200
+ * @schema RoleNewReq
1201
+ */
1202
+ async roleNew(body) {
1203
+ return this.call('/merchant/role/new', null, body, 'POST');
1204
+ }
1205
+ /**
1206
+ * Search
1207
+ * @searchKey string SearchKey, Will Search UserId|Email|UserName|CompanyName|SubscriptionId|VatNumber|InvoiceId||PaymentId
1208
+ */
1209
+ async getSearchKeySearch(params) {
1210
+ return this.call('/merchant/search/key_search', params, null, 'GET');
1211
+ }
1212
+ /**
1213
+ * Search
1214
+ * @schema SearchSearchReq
1215
+ */
1216
+ async searchKeySearch(body) {
1217
+ return this.call('/merchant/search/key_search', null, body, 'POST');
1218
+ }
1219
+ /**
1220
+ * New Session
1221
+ * @schema SessionNewReq
1222
+ */
1223
+ async sessionNewSession(body) {
1224
+ return this.call('/merchant/session/new_session', null, body, 'POST');
1225
+ }
1226
+ /**
1227
+ * Subscription Active Temporarily
1228
+ * @schema SubscriptionActiveTemporarilyReq
1229
+ */
1230
+ async subscriptionActiveTemporarily(body) {
1231
+ return this.call('/merchant/subscription/active_temporarily', null, body, 'POST');
1232
+ }
1233
+ /**
1234
+ * Append Subscription TrialEnd
1235
+ * @schema SubscriptionAddNewTrialStartReq
1236
+ */
1237
+ async subscriptionAddNewTrialStart(body) {
1238
+ return this.call('/merchant/subscription/add_new_trial_start', null, body, 'POST');
1239
+ }
1240
+ /**
1241
+ * Get Subscription Note List
1242
+ * @subscriptionId string SubscriptionId
1243
+ * @page number Page, Start With 0
1244
+ * @count number Count Of Page
1245
+ */
1246
+ async getSubscriptionAdminNoteList(params) {
1247
+ return this.call('/merchant/subscription/admin_note_list', params, null, 'GET');
1248
+ }
1249
+ /**
1250
+ * Get Subscription Note List
1251
+ * @schema SubscriptionAdminNoteListReq
1252
+ */
1253
+ async subscriptionAdminNoteList(body) {
1254
+ return this.call('/merchant/subscription/admin_note_list', null, body, 'POST');
1255
+ }
1256
+ /**
1257
+ * Cancel Subscription Immediately
1258
+ * @schema SubscriptionCancelReq
1259
+ */
1260
+ async subscriptionCancel(body) {
1261
+ return this.call('/merchant/subscription/cancel', null, body, 'POST');
1262
+ }
1263
+ /**
1264
+ * Cancel Subscription At Period End
1265
+ * @schema SubscriptionCancelAtPeriodEndReq
1266
+ */
1267
+ async subscriptionCancelAtPeriodEnd(body) {
1268
+ return this.call('/merchant/subscription/cancel_at_period_end', null, body, 'POST');
1269
+ }
1270
+ /**
1271
+ * Cancel Last Cancel Subscription At Period End
1272
+ * @schema SubscriptionCancelLastCancelAtPeriodEndReq
1273
+ */
1274
+ async subscriptionCancelLastCancelAtPeriodEnd(body) {
1275
+ return this.call('/merchant/subscription/cancel_last_cancel_at_period_end', null, body, 'POST');
1276
+ }
1277
+ /**
1278
+ * Change Subscription Gateway
1279
+ * @schema SubscriptionChangeGatewayReq
1280
+ */
1281
+ async subscriptionChangeGateway(body) {
1282
+ return this.call('/merchant/subscription/change_gateway', null, body, 'POST');
1283
+ }
1284
+ /**
1285
+ * Subscription Config
1286
+ */
1287
+ async getSubscriptionConfig() {
1288
+ return this.call('/merchant/subscription/config', null, null, 'GET');
1289
+ }
1290
+ /**
1291
+ * Update Merchant Subscription Config
1292
+ * @schema SubscriptionConfigUpdateReq
1293
+ */
1294
+ async subscriptionConfigUpdate(body) {
1295
+ return this.call('/merchant/subscription/config/update', null, body, 'POST');
1296
+ }
1297
+ /**
1298
+ * Create Subscription Preview
1299
+ * @schema SubscriptionCreatePreviewReq
1300
+ */
1301
+ async subscriptionCreatePreview(body) {
1302
+ return this.call('/merchant/subscription/create_preview', null, body, 'POST');
1303
+ }
1304
+ /**
1305
+ * Create Subscription
1306
+ * @schema SubscriptionCreateReq
1307
+ */
1308
+ async subscriptionCreateSubmit(body) {
1309
+ return this.call('/merchant/subscription/create_submit', null, body, 'POST');
1310
+ }
1311
+ /**
1312
+ * Subscription Detail
1313
+ * @subscriptionId string SubscriptionId
1314
+ */
1315
+ async getSubscriptionDetail(params) {
1316
+ return this.call('/merchant/subscription/detail', params, null, 'GET');
1317
+ }
1318
+ /**
1319
+ * Subscription Detail
1320
+ * @schema SubscriptionDetailReq
1321
+ */
1322
+ async subscriptionDetail(body) {
1323
+ return this.call('/merchant/subscription/detail', null, body, 'POST');
1324
+ }
1325
+ /**
1326
+ * Get Subscription List
1327
+ * @userId number UserId
1328
+ * @status number[] Filter, Default All,Status,1-Pending|2-Active|3-Suspend | 4-Cancel | 5-Expire | 6- Suspend| 7-Incomplete | 8-Processing | 9-Failed
1329
+ * @currency string The currency of subscription
1330
+ * @planIds number[] The filter ids of plan
1331
+ * @productIds number[] The filter ids of product
1332
+ * @amountStart number The filter start amount of subscription
1333
+ * @amountEnd number The filter end amount of subscription
1334
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
1335
+ * @sortType string Sort Type,asc|desc,Default desc
1336
+ * @page number Page, Start With 0
1337
+ * @count number Count Of Page
1338
+ * @createTimeStart number CreateTimeStart
1339
+ * @createTimeEnd number CreateTimeEnd
1340
+ */
1341
+ async getSubscriptionList(params) {
1342
+ return this.call('/merchant/subscription/list', params, null, 'GET');
1343
+ }
1344
+ /**
1345
+ * Get Subscription List
1346
+ * @schema SubscriptionListReq
1347
+ */
1348
+ async subscriptionList(body) {
1349
+ return this.call('/merchant/subscription/list', null, body, 'POST');
1350
+ }
1351
+ /**
1352
+ * New Subscription Note
1353
+ * @schema SubscriptionNewAdminNoteReq
1354
+ */
1355
+ async subscriptionNewAdminNote(body) {
1356
+ return this.call('/merchant/subscription/new_admin_note', null, body, 'POST');
1357
+ }
1358
+ /**
1359
+ * New Subscription Onetime Addon Payment
1360
+ * @schema SubscriptionOnetimeAddonNewReq
1361
+ */
1362
+ async subscriptionNewOnetimeAddonPayment(body) {
1363
+ return this.call('/merchant/subscription/new_onetime_addon_payment', null, body, 'POST');
1364
+ }
1365
+ /**
1366
+ * Get Subscription Onetime Addon List
1367
+ * @userId number UserId
1368
+ * @page number Page, Start With 0
1369
+ * @count number Count Of Page
1370
+ */
1371
+ async getSubscriptionOnetimeAddonList(params) {
1372
+ return this.call('/merchant/subscription/onetime_addon_list', params, null, 'GET');
1373
+ }
1374
+ /**
1375
+ * New Subscription Payment
1376
+ * @schema SubscriptionNewPaymentReq
1377
+ */
1378
+ async subscriptionPaymentNew(body) {
1379
+ return this.call('/merchant/subscription/payment/new', null, body, 'POST');
1380
+ }
1381
+ /**
1382
+ * Subscription Pending Update Detail
1383
+ * @subscriptionPendingUpdateId string SubscriptionPendingUpdateId
1384
+ */
1385
+ async getSubscriptionPendingUpdateDetail(params) {
1386
+ return this.call('/merchant/subscription/pending_update_detail', params, null, 'GET');
1387
+ }
1388
+ /**
1389
+ * Get Subscription Pending Update List
1390
+ * @subscriptionId string SubscriptionId
1391
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
1392
+ * @sortType string Sort Type,asc|desc,Default desc
1393
+ * @page number Page, Start With 0
1394
+ * @count number Count Of Page
1395
+ */
1396
+ async getSubscriptionPendingUpdateList(params) {
1397
+ return this.call('/merchant/subscription/pending_update_list', params, null, 'GET');
1398
+ }
1399
+ /**
1400
+ * Get Subscription Pending Update List
1401
+ * @schema SubscriptionPendingUpdateListReq
1402
+ */
1403
+ async subscriptionPendingUpdateList(body) {
1404
+ return this.call('/merchant/subscription/pending_update_list', null, body, 'POST');
1405
+ }
1406
+ /**
1407
+ * Subscription Next Invoice Preview
1408
+ * @subscriptionId string SubscriptionId
1409
+ */
1410
+ async getSubscriptionPreviewSubscriptionNextInvoice(params) {
1411
+ return this.call('/merchant/subscription/preview_subscription_next_invoice', params, null, 'GET');
1412
+ }
1413
+ /**
1414
+ * Renew Subscription
1415
+ * @schema SubscriptionRenewReq
1416
+ */
1417
+ async subscriptionRenew(body) {
1418
+ return this.call('/merchant/subscription/renew', null, body, 'POST');
1419
+ }
1420
+ /**
1421
+ * Get Subscription TimeLine List
1422
+ * @userId number Filter UserId, Default All
1423
+ * @sortField string Sort Field,gmt_create|gmt_modify,Default gmt_modify
1424
+ * @sortType string Sort Type,asc|desc,Default desc
1425
+ * @page number Page, Start With 0
1426
+ * @count number Count Of Page
1427
+ */
1428
+ async getSubscriptionTimelineList(params) {
1429
+ return this.call('/merchant/subscription/timeline_list', params, null, 'GET');
1430
+ }
1431
+ /**
1432
+ * Get Subscription TimeLine List
1433
+ * @schema SubscriptionTimeLineListReq
1434
+ */
1435
+ async subscriptionTimelineList(body) {
1436
+ return this.call('/merchant/subscription/timeline_list', null, body, 'POST');
1437
+ }
1438
+ /**
1439
+ * Update Subscription Preview
1440
+ * @schema SubscriptionUpdatePreviewReq
1441
+ */
1442
+ async subscriptionUpdatePreview(body) {
1443
+ return this.call('/merchant/subscription/update_preview', null, body, 'POST');
1444
+ }
1445
+ /**
1446
+ * Update Subscription
1447
+ * @schema SubscriptionUpdateReq
1448
+ */
1449
+ async subscriptionUpdateSubmit(body) {
1450
+ return this.call('/merchant/subscription/update_submit', null, body, 'POST');
1451
+ }
1452
+ /**
1453
+ * User Pending Crypto Subscription Detail
1454
+ * @userId number UserId
1455
+ * @externalUserId string ExternalUserId, unique, either ExternalUserId&Email or UserId needed
1456
+ * @productId number default product will use if productId not specified and subscriptionId is blank
1457
+ */
1458
+ async getSubscriptionUserPendingCryptoSubscriptionDetail(params) {
1459
+ return this.call('/merchant/subscription/user_pending_crypto_subscription_detail', params, null, 'GET');
1460
+ }
1461
+ /**
1462
+ * User Pending Crypto Subscription Detail
1463
+ * @schema SubscriptionUserPendingCryptoSubscriptionDetailReq
1464
+ */
1465
+ async subscriptionUserPendingCryptoSubscriptionDetail(body) {
1466
+ return this.call('/merchant/subscription/user_pending_crypto_subscription_detail', null, body, 'POST');
1467
+ }
1468
+ /**
1469
+ * User Subscription Detail
1470
+ * @userId number UserId
1471
+ * @externalUserId string ExternalUserId, unique, either ExternalUserId&Email or UserId needed
1472
+ * @productId number default product will use if productId not specified and subscriptionId is blank
1473
+ */
1474
+ async getSubscriptionUserSubscriptionDetail(params) {
1475
+ return this.call('/merchant/subscription/user_subscription_detail', params, null, 'GET');
1476
+ }
1477
+ /**
1478
+ * User Subscription Detail
1479
+ * @schema SubscriptionUserSubscriptionDetailReq
1480
+ */
1481
+ async subscriptionUserSubscriptionDetail(body) {
1482
+ return this.call('/merchant/subscription/user_subscription_detail', null, body, 'POST');
1483
+ }
1484
+ /**
1485
+ * Delete Export Template
1486
+ * @schema TaskDeleteTemplateReq
1487
+ */
1488
+ async taskDeleteExportTemplate(body) {
1489
+ return this.call('/merchant/task/delete_export_template', null, body, 'POST');
1490
+ }
1491
+ /**
1492
+ * Edit Export Template
1493
+ * @schema TaskEditTemplateReq
1494
+ */
1495
+ async taskEditExportTemplate(body) {
1496
+ return this.call('/merchant/task/edit_export_template', null, body, 'POST');
1497
+ }
1498
+ /**
1499
+ * Export Column List
1500
+ * @schema TaskExportColumnListReq
1501
+ */
1502
+ async taskExportColumnList(body) {
1503
+ return this.call('/merchant/task/export_column_list', null, body, 'POST');
1504
+ }
1505
+ /**
1506
+ * Get Export Template List
1507
+ * @task string Filter Task, Optional, InvoiceExport|UserExport|SubscriptionExport|TransactionExport|DiscountExport|UserDiscountExport
1508
+ * @page number Page, Start With 0
1509
+ * @count number Count Of Page
1510
+ */
1511
+ async getTaskExportTemplateList(params) {
1512
+ return this.call('/merchant/task/export_template_list', params, null, 'GET');
1513
+ }
1514
+ /**
1515
+ * Get Export Template List
1516
+ * @schema TaskExportTemplateListReq
1517
+ */
1518
+ async taskExportTemplateList(body) {
1519
+ return this.call('/merchant/task/export_template_list', null, body, 'POST');
1520
+ }
1521
+ /**
1522
+ * Get Task List
1523
+ * @page number Page, Start With 0
1524
+ * @count number Count Of Page
1525
+ */
1526
+ async getTaskList(params) {
1527
+ return this.call('/merchant/task/list', params, null, 'GET');
1528
+ }
1529
+ /**
1530
+ * Get Task List
1531
+ * @schema TaskListReq
1532
+ */
1533
+ async taskList(body) {
1534
+ return this.call('/merchant/task/list', null, body, 'POST');
1535
+ }
1536
+ /**
1537
+ * New Export
1538
+ * @schema TaskNewReq
1539
+ */
1540
+ async taskNewExport(body) {
1541
+ return this.call('/merchant/task/new_export', null, body, 'POST');
1542
+ }
1543
+ /**
1544
+ * New Export Template
1545
+ * @schema TaskNewTemplateReq
1546
+ */
1547
+ async taskNewExportTemplate(body) {
1548
+ return this.call('/merchant/task/new_export_template', null, body, 'POST');
1549
+ }
1550
+ /**
1551
+ * New Import
1552
+ */
1553
+ async taskNewImport() {
1554
+ return this.call('/merchant/task/new_import', null, null, 'POST');
1555
+ }
1556
+ /**
1557
+ * Segment Setup
1558
+ * @schema TrackSetupSegmentReq
1559
+ */
1560
+ async trackSetupSegment(body) {
1561
+ return this.call('/merchant/track/setup_segment', null, body, 'POST');
1562
+ }
1563
+ /**
1564
+ * Update Profile
1565
+ * @schema ProfileUpdateReq
1566
+ */
1567
+ async update(body) {
1568
+ return this.call('/merchant/update', null, body, 'POST');
1569
+ }
1570
+ /**
1571
+ * Get User Admin Note List
1572
+ * @userId number The id of user, either ExternalUserId or UserId needed
1573
+ * @page number Page, Start With 0
1574
+ * @count number Count Of Page
1575
+ */
1576
+ async getUserAdminNoteList(params) {
1577
+ return this.call('/merchant/user/admin_note_list', params, null, 'GET');
1578
+ }
1579
+ /**
1580
+ * Get User Admin Note List
1581
+ * @schema UserAdminNoteListReq
1582
+ */
1583
+ async userAdminNoteList(body) {
1584
+ return this.call('/merchant/user/admin_note_list', null, body, 'POST');
1585
+ }
1586
+ /**
1587
+ * Change User Email
1588
+ * @schema UserChangeEmailReq
1589
+ */
1590
+ async userChangeEmail(body) {
1591
+ return this.call('/merchant/user/change_email', null, body, 'POST');
1592
+ }
1593
+ /**
1594
+ * Change User Default Gateway
1595
+ * @schema UserChangeGatewayReq
1596
+ */
1597
+ async userChangeGateway(body) {
1598
+ return this.call('/merchant/user/change_gateway', null, body, 'POST');
1599
+ }
1600
+ /**
1601
+ * Clear AutoCharge Method
1602
+ * @schema UserClearAutoChargeMethodReq
1603
+ */
1604
+ async userClearAutoChargeMethod(body) {
1605
+ return this.call('/merchant/user/clear_auto_charge_method', null, body, 'POST');
1606
+ }
1607
+ /**
1608
+ * Get User Profile
1609
+ * @userId number UserId
1610
+ */
1611
+ async getUserGet(params) {
1612
+ return this.call('/merchant/user/get', params, null, 'GET');
1613
+ }
1614
+ /**
1615
+ * User List
1616
+ * @userId number Filter UserId
1617
+ * @firstName string Search FirstName
1618
+ * @lastName string Search LastName
1619
+ * @email string Search Filter Email
1620
+ * @planIds number[] PlanIds, Search Filter PlanIds
1621
+ * @subscriptionId string Search Filter SubscriptionId
1622
+ * @subStatus number[] Filter, Default All,1-Pending|2-Active|3-Suspend | 4-Cancel | 5-Expire | 6- Suspend| 7-Incomplete | 8-Processing | 9-Failed
1623
+ * @status number[] Status, 0-Active|2-Frozen
1624
+ * @deleteInclude boolean Deleted Involved,Need Admin
1625
+ * @sortField string Sort,user_id|gmt_create|email|user_name|subscription_name|subscription_status|payment_method|recurring_amount|billing_type,Default gmt_create
1626
+ * @sortType string Sort Type,asc|desc,Default desc
1627
+ * @page number Page,Start 0
1628
+ * @count number Count OF Page
1629
+ * @createTimeStart number CreateTimeStart
1630
+ * @createTimeEnd number CreateTimeEnd
1631
+ */
1632
+ async getUserList(params) {
1633
+ return this.call('/merchant/user/list', params, null, 'GET');
1634
+ }
1635
+ /**
1636
+ * User List
1637
+ * @schema UserListReq
1638
+ */
1639
+ async userList(body) {
1640
+ return this.call('/merchant/user/list', null, body, 'POST');
1641
+ }
1642
+ /**
1643
+ * New User
1644
+ * @schema UserNewReq
1645
+ */
1646
+ async userNew(body) {
1647
+ return this.call('/merchant/user/new', null, body, 'POST');
1648
+ }
1649
+ /**
1650
+ * New Admin Note
1651
+ * @schema UserNewAdminNoteReq
1652
+ */
1653
+ async userNewAdminNote(body) {
1654
+ return this.call('/merchant/user/new_admin_note', null, body, 'POST');
1655
+ }
1656
+ /**
1657
+ * Resume User
1658
+ * @schema UserReleaseReq
1659
+ */
1660
+ async userResumeUser(body) {
1661
+ return this.call('/merchant/user/resume_user', null, body, 'POST');
1662
+ }
1663
+ /**
1664
+ * User Search
1665
+ * @searchKey string SearchKey, Will Search UserId|Email|UserName|CompanyName|SubscriptionId|VatNumber|InvoiceId||PaymentId
1666
+ */
1667
+ async getUserSearch(params) {
1668
+ return this.call('/merchant/user/search', params, null, 'GET');
1669
+ }
1670
+ /**
1671
+ * User Search
1672
+ * @schema UserSearchReq
1673
+ */
1674
+ async userSearch(body) {
1675
+ return this.call('/merchant/user/search', null, body, 'POST');
1676
+ }
1677
+ /**
1678
+ * Suspend User
1679
+ * @schema UserFrozenReq
1680
+ */
1681
+ async userSuspendUser(body) {
1682
+ return this.call('/merchant/user/suspend_user', null, body, 'POST');
1683
+ }
1684
+ /**
1685
+ * Update User Profile
1686
+ * @schema UserUpdateReq
1687
+ */
1688
+ async userUpdate(body) {
1689
+ return this.call('/merchant/user/update', null, body, 'POST');
1690
+ }
1691
+ /**
1692
+ * User Wallet List
1693
+ * @userId number The id of user
1694
+ */
1695
+ async getUserWalletList(params) {
1696
+ return this.call('/merchant/user/wallet_list', params, null, 'GET');
1697
+ }
1698
+ /**
1699
+ * User Wallet List
1700
+ * @schema UserWalletListReq
1701
+ */
1702
+ async userWalletList(body) {
1703
+ return this.call('/merchant/user/wallet_list', null, body, 'POST');
1704
+ }
1705
+ /**
1706
+ * Charge User Wallet
1707
+ * @schema UserWalletNewChargeReq
1708
+ */
1709
+ async userWalletNewCharge(body) {
1710
+ return this.call('/merchant/user/wallet_new_charge', null, body, 'POST');
1711
+ }
1712
+ /**
1713
+ * User Wallet Timeline
1714
+ * @userId number The id of user
1715
+ * @reason string manual,manual_api,invoice,metric
1716
+ * @note string term for search by note
1717
+ * @sortField string Sort,user_id|gmt_create...,Default gmt_create
1718
+ * @sortType string Sort Type,asc|desc,Default desc
1719
+ * @page number Page,Start 0
1720
+ * @count number Count OF Page
1721
+ * @createTimeStart number CreateTimeStart
1722
+ * @createTimeEnd number CreateTimeEnd
1723
+ */
1724
+ async getUserWalletTimeline(params) {
1725
+ return this.call('/merchant/user/wallet_timeline', params, null, 'GET');
1726
+ }
1727
+ /**
1728
+ * User Wallet Timeline
1729
+ * @schema UserWalletTimelineReq
1730
+ */
1731
+ async userWalletTimeline(body) {
1732
+ return this.call('/merchant/user/wallet_timeline', null, body, 'POST');
1733
+ }
1734
+ /**
1735
+ * Get Vat Country List
1736
+ */
1737
+ async getVatCountryList() {
1738
+ return this.call('/merchant/vat/country_list', null, null, 'GET');
1739
+ }
1740
+ /**
1741
+ * Get Vat Country List
1742
+ * @schema VatCountryListReq
1743
+ */
1744
+ async vatCountryList(body) {
1745
+ return this.call('/merchant/vat/country_list', null, body, 'POST');
1746
+ }
1747
+ /**
1748
+ * Init Default Vat Gateway
1749
+ * @schema VatInitDefaultGatewayReq
1750
+ */
1751
+ async vatInitDefaultGateway(body) {
1752
+ return this.call('/merchant/vat/init_default_gateway', null, body, 'POST');
1753
+ }
1754
+ /**
1755
+ * Vat Gateway Setup
1756
+ * @schema VatSetupGatewayReq
1757
+ */
1758
+ async vatSetupGateway(body) {
1759
+ return this.call('/merchant/vat/setup_gateway', null, body, 'POST');
1760
+ }
1761
+ /**
1762
+ * Vat Number Validation
1763
+ * @schema VatNumberValidateReq
1764
+ */
1765
+ async vatVatNumberValidate(body) {
1766
+ return this.call('/merchant/vat/vat_number_validate', null, body, 'POST');
1767
+ }
1768
+ /**
1769
+ * Delete Webhook Endpoint
1770
+ * @schema WebhookDeleteEndpointReq
1771
+ */
1772
+ async webhookDeleteEndpoint(body) {
1773
+ return this.call('/merchant/webhook/delete_endpoint', null, body, 'POST');
1774
+ }
1775
+ /**
1776
+ * Get Webhook Endpoint list
1777
+ */
1778
+ async getWebhookEndpointList() {
1779
+ return this.call('/merchant/webhook/endpoint_list', null, null, 'GET');
1780
+ }
1781
+ /**
1782
+ * Get Webhook Endpoint Log List
1783
+ * @endpointId number EndpointId
1784
+ * @page number Page, Start With 0
1785
+ * @count number Count Of Page
1786
+ */
1787
+ async getWebhookEndpointLogList(params) {
1788
+ return this.call('/merchant/webhook/endpoint_log_list', params, null, 'GET');
1789
+ }
1790
+ /**
1791
+ * Webhook Event List
1792
+ */
1793
+ async getWebhookEventList() {
1794
+ return this.call('/merchant/webhook/event_list', null, null, 'GET');
1795
+ }
1796
+ /**
1797
+ * New Webhook Endpoint
1798
+ * @schema WebhookNewEndpointReq
1799
+ */
1800
+ async webhookNewEndpoint(body) {
1801
+ return this.call('/merchant/webhook/new_endpoint', null, body, 'POST');
1802
+ }
1803
+ /**
1804
+ * Resent Webhook
1805
+ * @schema WebhookResendWebhookReq
1806
+ */
1807
+ async webhookResend(body) {
1808
+ return this.call('/merchant/webhook/resend', null, body, 'POST');
1809
+ }
1810
+ /**
1811
+ * Update Webhook Endpoint
1812
+ * @schema WebhookUpdateEndpointReq
1813
+ */
1814
+ async webhookUpdateEndpoint(body) {
1815
+ return this.call('/merchant/webhook/update_endpoint', null, body, 'POST');
1816
+ }
1817
+ }
1818
+ exports.default = MerchantApi;
1819
+ //# sourceMappingURL=merchant.js.map