@gofynd/fdk-client-javascript 1.4.8 → 1.4.10-beta.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.
@@ -1,26 +1,9 @@
1
1
  export = BillingPlatformValidator;
2
- /**
3
- * @typedef ActivateSubscriptionPlanParam
4
- * @property {BillingPlatformModel.SubscriptionActivateReq} body
5
- */
6
2
  /**
7
3
  * @typedef CancelSubscriptionChargeParam
8
4
  * @property {string} extensionId - Extension _id
9
5
  * @property {string} subscriptionId - Subscription charge _id
10
6
  */
11
- /**
12
- * @typedef CancelSubscriptionPlanParam
13
- * @property {BillingPlatformModel.CancelSubscriptionReq} body
14
- */
15
- /**
16
- * @typedef ChangePlanParam
17
- * @property {BillingPlatformModel.SubscriptionActivateReq} body
18
- */
19
- /**
20
- * @typedef CheckCouponValidityParam
21
- * @property {string} plan - ID of the plan.
22
- * @property {string} couponCode - Coupon code.
23
- */
24
7
  /**
25
8
  * @typedef CreateOneTimeChargeParam
26
9
  * @property {string} extensionId - Extension _id
@@ -32,259 +15,31 @@ export = BillingPlatformValidator;
32
15
  * subscription
33
16
  * @property {BillingPlatformModel.CreateSubscriptionCharge} body
34
17
  */
35
- /**
36
- * @typedef CreditTransactionParam
37
- * @property {number} uniqueId - Unique ID of the company
38
- * @property {string} productSuite - Product suite
39
- * @property {string} type - Type of the company
40
- * @property {number} [pageSize] - Number of items per page
41
- * @property {number} [pageNo] - Page number
42
- * @property {string} [startDate] - Start date
43
- * @property {string} [endDate] - End date
44
- * @property {string} [searchType] - Search Type
45
- * @property {string} [searchValue] - Search Value
46
- */
47
- /**
48
- * @typedef CurrentAppLimitParam
49
- * @property {string} [productSuite]
50
- * @property {string} [type]
51
- */
52
- /**
53
- * @typedef CurrentLimitParam
54
- * @property {string} [productSuite]
55
- * @property {string} [type]
56
- */
57
- /** @typedef GetBankListParam */
58
18
  /**
59
19
  * @typedef GetChargeDetailsParam
60
20
  * @property {string} extensionId - Extension _id
61
21
  * @property {string} chargeId - Standalone charge _id
62
22
  */
63
- /** @typedef GetCustomerDetailParam */
64
- /** @typedef GetEnterprisePlansParam */
65
- /**
66
- * @typedef GetInvoiceByIdParam
67
- * @property {string} invoiceId - Invoice id
68
- */
69
- /** @typedef GetInvoicesParam */
70
- /**
71
- * @typedef GetPaymentOptionsParam
72
- * @property {string} transactionId - ID of the payment transaction.
73
- */
74
- /**
75
- * @typedef GetPaymentTransactionParam
76
- * @property {string} transactionId - Payment Transaction unique id.
77
- */
78
- /** @typedef GetSubscriptionParam */
79
23
  /**
80
24
  * @typedef GetSubscriptionChargeParam
81
25
  * @property {string} extensionId - Extension _id
82
26
  * @property {string} subscriptionId - Subscription charge _id
83
27
  */
84
- /**
85
- * @typedef GetentityDetailParam
86
- * @property {string} entityName - Entity name.
87
- * @property {string} [entityId] - Entity unique id.
88
- * @property {string} channel - Ordering channel.
89
- * @property {string} [component] - The coponents the user would like to know.
90
- * @property {string} [componentName] - The name of component the preferred to be fetched.
91
- */
92
- /**
93
- * @typedef GlobalSettingsParam
94
- * @property {number} pageNo - Number of pages needed
95
- * @property {number} pageSize - Number of items to be there in page
96
- * @property {Object} query - Field which will be used in db query
97
- */
98
- /**
99
- * @typedef MethodDefaultParam
100
- * @property {BillingPlatformModel.DefaultReq} body
101
- */
102
- /**
103
- * @typedef PaymentCollectParam
104
- * @property {BillingPlatformModel.PaymentCollectReq} body
105
- */
106
- /**
107
- * @typedef PaymentInitiateParam
108
- * @property {BillingPlatformModel.SubscribePlan} body
109
- */
110
- /**
111
- * @typedef PaymentOptionsParam
112
- * @property {string} code - Payment options unique code.
113
- */
114
- /**
115
- * @typedef PaymentStatusParam
116
- * @property {string} orderId - Unique ID of the company
117
- */
118
- /**
119
- * @typedef PlanDowngradeParam
120
- * @property {BillingPlatformModel.DowngradePlanReq} body
121
- */
122
- /** @typedef PlanDowngradeGetParam */
123
- /**
124
- * @typedef PlanStatusUpdateParam
125
- * @property {BillingPlatformModel.PlanStatusUpdateReq} body
126
- */
127
- /**
128
- * @typedef SetupIntentParam
129
- * @property {BillingPlatformModel.IntentReq} body
130
- */
131
- /**
132
- * @typedef SetupMandateParam
133
- * @property {BillingPlatformModel.SetupMandateReq} body
134
- */
135
- /**
136
- * @typedef SetupPaymentParam
137
- * @property {BillingPlatformModel.SetupPaymentReq} body
138
- */
139
- /** @typedef SubscriptionConfigsParam */
140
- /**
141
- * @typedef SubscriptionMethodsParam
142
- * @property {string} uniqueExternalId - Unique id for external company
143
- */
144
- /**
145
- * @typedef SubscriptionMethodsDeleteParam
146
- * @property {string} uniqueExternalId - Unique id for external company
147
- * @property {string} paymentMethodId - Payment method id
148
- */
149
- /**
150
- * @typedef SubscriptionPlanChangeParam
151
- * @property {string} [productSuite]
152
- * @property {string} [coupon]
153
- * @property {number} [uniqueId]
154
- * @property {string} [platform]
155
- * @property {string} [planId]
156
- */
157
- /**
158
- * @typedef SubscriptionRenewParam
159
- * @property {BillingPlatformModel.SubscriptionRenewReq} body
160
- */
161
- /**
162
- * @typedef TopupCancelCreditParam
163
- * @property {BillingPlatformModel.CancelTopupReq} body
164
- */
165
- /**
166
- * @typedef TopupCreditParam
167
- * @property {BillingPlatformModel.TopupReq} body
168
- */
169
- /**
170
- * @typedef UpdateConsentParam
171
- * @property {string} subscriberId - Customer unique id. In case of company it
172
- * will be company id.
173
- */
174
- /**
175
- * @typedef UpdateSetupIntentParam
176
- * @property {BillingPlatformModel.PutIntentReq} body
177
- */
178
- /**
179
- * @typedef UpgradePlanParam
180
- * @property {BillingPlatformModel.SubscriptionMethodsReq} body
181
- */
182
- /**
183
- * @typedef UpsertCustomerDetailParam
184
- * @property {BillingPlatformModel.SubscriptionCustomerCreate} body
185
- */
186
- /**
187
- * @typedef VerifyPaymentParam
188
- * @property {BillingPlatformModel.VerifyPaymentReq} body
189
- */
190
28
  declare class BillingPlatformValidator {
191
- /** @returns {ActivateSubscriptionPlanParam} */
192
- static activateSubscriptionPlan(): ActivateSubscriptionPlanParam;
193
29
  /** @returns {CancelSubscriptionChargeParam} */
194
30
  static cancelSubscriptionCharge(): CancelSubscriptionChargeParam;
195
- /** @returns {CancelSubscriptionPlanParam} */
196
- static cancelSubscriptionPlan(): CancelSubscriptionPlanParam;
197
- /** @returns {ChangePlanParam} */
198
- static changePlan(): ChangePlanParam;
199
- /** @returns {CheckCouponValidityParam} */
200
- static checkCouponValidity(): CheckCouponValidityParam;
201
31
  /** @returns {CreateOneTimeChargeParam} */
202
32
  static createOneTimeCharge(): CreateOneTimeChargeParam;
203
33
  /** @returns {CreateSubscriptionChargeParam} */
204
34
  static createSubscriptionCharge(): CreateSubscriptionChargeParam;
205
- /** @returns {CreditTransactionParam} */
206
- static creditTransaction(): CreditTransactionParam;
207
- /** @returns {CurrentAppLimitParam} */
208
- static currentAppLimit(): CurrentAppLimitParam;
209
- /** @returns {CurrentLimitParam} */
210
- static currentLimit(): CurrentLimitParam;
211
- /** @returns {GetBankListParam} */
212
- static getBankList(): any;
213
35
  /** @returns {GetChargeDetailsParam} */
214
36
  static getChargeDetails(): GetChargeDetailsParam;
215
- /** @returns {GetCustomerDetailParam} */
216
- static getCustomerDetail(): any;
217
- /** @returns {GetEnterprisePlansParam} */
218
- static getEnterprisePlans(): any;
219
- /** @returns {GetInvoiceByIdParam} */
220
- static getInvoiceById(): GetInvoiceByIdParam;
221
- /** @returns {GetInvoicesParam} */
222
- static getInvoices(): any;
223
- /** @returns {GetPaymentOptionsParam} */
224
- static getPaymentOptions(): GetPaymentOptionsParam;
225
- /** @returns {GetPaymentTransactionParam} */
226
- static getPaymentTransaction(): GetPaymentTransactionParam;
227
- /** @returns {GetSubscriptionParam} */
228
- static getSubscription(): any;
229
37
  /** @returns {GetSubscriptionChargeParam} */
230
38
  static getSubscriptionCharge(): GetSubscriptionChargeParam;
231
- /** @returns {GetentityDetailParam} */
232
- static getentityDetail(): GetentityDetailParam;
233
- /** @returns {GlobalSettingsParam} */
234
- static globalSettings(): GlobalSettingsParam;
235
- /** @returns {MethodDefaultParam} */
236
- static methodDefault(): MethodDefaultParam;
237
- /** @returns {PaymentCollectParam} */
238
- static paymentCollect(): PaymentCollectParam;
239
- /** @returns {PaymentInitiateParam} */
240
- static paymentInitiate(): PaymentInitiateParam;
241
- /** @returns {PaymentOptionsParam} */
242
- static paymentOptions(): PaymentOptionsParam;
243
- /** @returns {PaymentStatusParam} */
244
- static paymentStatus(): PaymentStatusParam;
245
- /** @returns {PlanDowngradeParam} */
246
- static planDowngrade(): PlanDowngradeParam;
247
- /** @returns {PlanDowngradeGetParam} */
248
- static planDowngradeGet(): any;
249
- /** @returns {PlanStatusUpdateParam} */
250
- static planStatusUpdate(): PlanStatusUpdateParam;
251
- /** @returns {SetupIntentParam} */
252
- static setupIntent(): SetupIntentParam;
253
- /** @returns {SetupMandateParam} */
254
- static setupMandate(): SetupMandateParam;
255
- /** @returns {SetupPaymentParam} */
256
- static setupPayment(): SetupPaymentParam;
257
- /** @returns {SubscriptionConfigsParam} */
258
- static subscriptionConfigs(): any;
259
- /** @returns {SubscriptionMethodsParam} */
260
- static subscriptionMethods(): SubscriptionMethodsParam;
261
- /** @returns {SubscriptionMethodsDeleteParam} */
262
- static subscriptionMethodsDelete(): SubscriptionMethodsDeleteParam;
263
- /** @returns {SubscriptionPlanChangeParam} */
264
- static subscriptionPlanChange(): SubscriptionPlanChangeParam;
265
- /** @returns {SubscriptionRenewParam} */
266
- static subscriptionRenew(): SubscriptionRenewParam;
267
- /** @returns {TopupCancelCreditParam} */
268
- static topupCancelCredit(): TopupCancelCreditParam;
269
- /** @returns {TopupCreditParam} */
270
- static topupCredit(): TopupCreditParam;
271
- /** @returns {UpdateConsentParam} */
272
- static updateConsent(): UpdateConsentParam;
273
- /** @returns {UpdateSetupIntentParam} */
274
- static updateSetupIntent(): UpdateSetupIntentParam;
275
- /** @returns {UpgradePlanParam} */
276
- static upgradePlan(): UpgradePlanParam;
277
- /** @returns {UpsertCustomerDetailParam} */
278
- static upsertCustomerDetail(): UpsertCustomerDetailParam;
279
- /** @returns {VerifyPaymentParam} */
280
- static verifyPayment(): VerifyPaymentParam;
281
39
  }
282
40
  declare namespace BillingPlatformValidator {
283
- export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, ChangePlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, CreditTransactionParam, CurrentAppLimitParam, CurrentLimitParam, GetBankListParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetInvoiceByIdParam, GetInvoicesParam, GetPaymentOptionsParam, GetPaymentTransactionParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, GlobalSettingsParam, MethodDefaultParam, PaymentCollectParam, PaymentInitiateParam, PaymentOptionsParam, PaymentStatusParam, PlanDowngradeParam, PlanDowngradeGetParam, PlanStatusUpdateParam, SetupIntentParam, SetupMandateParam, SetupPaymentParam, SubscriptionConfigsParam, SubscriptionMethodsParam, SubscriptionMethodsDeleteParam, SubscriptionPlanChangeParam, SubscriptionRenewParam, TopupCancelCreditParam, TopupCreditParam, UpdateConsentParam, UpdateSetupIntentParam, UpgradePlanParam, UpsertCustomerDetailParam, VerifyPaymentParam };
41
+ export { CancelSubscriptionChargeParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, GetChargeDetailsParam, GetSubscriptionChargeParam };
284
42
  }
285
- type ActivateSubscriptionPlanParam = {
286
- body: BillingPlatformModel.SubscriptionActivateReq;
287
- };
288
43
  type CancelSubscriptionChargeParam = {
289
44
  /**
290
45
  * - Extension _id
@@ -295,22 +50,6 @@ type CancelSubscriptionChargeParam = {
295
50
  */
296
51
  subscriptionId: string;
297
52
  };
298
- type CancelSubscriptionPlanParam = {
299
- body: BillingPlatformModel.CancelSubscriptionReq;
300
- };
301
- type ChangePlanParam = {
302
- body: BillingPlatformModel.SubscriptionActivateReq;
303
- };
304
- type CheckCouponValidityParam = {
305
- /**
306
- * - ID of the plan.
307
- */
308
- plan: string;
309
- /**
310
- * - Coupon code.
311
- */
312
- couponCode: string;
313
- };
314
53
  type CreateOneTimeChargeParam = {
315
54
  /**
316
55
  * - Extension _id
@@ -326,52 +65,6 @@ type CreateSubscriptionChargeParam = {
326
65
  extensionId: string;
327
66
  body: BillingPlatformModel.CreateSubscriptionCharge;
328
67
  };
329
- type CreditTransactionParam = {
330
- /**
331
- * - Unique ID of the company
332
- */
333
- uniqueId: number;
334
- /**
335
- * - Product suite
336
- */
337
- productSuite: string;
338
- /**
339
- * - Type of the company
340
- */
341
- type: string;
342
- /**
343
- * - Number of items per page
344
- */
345
- pageSize?: number;
346
- /**
347
- * - Page number
348
- */
349
- pageNo?: number;
350
- /**
351
- * - Start date
352
- */
353
- startDate?: string;
354
- /**
355
- * - End date
356
- */
357
- endDate?: string;
358
- /**
359
- * - Search Type
360
- */
361
- searchType?: string;
362
- /**
363
- * - Search Value
364
- */
365
- searchValue?: string;
366
- };
367
- type CurrentAppLimitParam = {
368
- productSuite?: string;
369
- type?: string;
370
- };
371
- type CurrentLimitParam = {
372
- productSuite?: string;
373
- type?: string;
374
- };
375
68
  type GetChargeDetailsParam = {
376
69
  /**
377
70
  * - Extension _id
@@ -382,24 +75,6 @@ type GetChargeDetailsParam = {
382
75
  */
383
76
  chargeId: string;
384
77
  };
385
- type GetInvoiceByIdParam = {
386
- /**
387
- * - Invoice id
388
- */
389
- invoiceId: string;
390
- };
391
- type GetPaymentOptionsParam = {
392
- /**
393
- * - ID of the payment transaction.
394
- */
395
- transactionId: string;
396
- };
397
- type GetPaymentTransactionParam = {
398
- /**
399
- * - Payment Transaction unique id.
400
- */
401
- transactionId: string;
402
- };
403
78
  type GetSubscriptionChargeParam = {
404
79
  /**
405
80
  * - Extension _id
@@ -410,134 +85,4 @@ type GetSubscriptionChargeParam = {
410
85
  */
411
86
  subscriptionId: string;
412
87
  };
413
- type GetentityDetailParam = {
414
- /**
415
- * - Entity name.
416
- */
417
- entityName: string;
418
- /**
419
- * - Entity unique id.
420
- */
421
- entityId?: string;
422
- /**
423
- * - Ordering channel.
424
- */
425
- channel: string;
426
- /**
427
- * - The coponents the user would like to know.
428
- */
429
- component?: string;
430
- /**
431
- * - The name of component the preferred to be fetched.
432
- */
433
- componentName?: string;
434
- };
435
- type GlobalSettingsParam = {
436
- /**
437
- * - Number of pages needed
438
- */
439
- pageNo: number;
440
- /**
441
- * - Number of items to be there in page
442
- */
443
- pageSize: number;
444
- /**
445
- * - Field which will be used in db query
446
- */
447
- query: any;
448
- };
449
- type MethodDefaultParam = {
450
- body: BillingPlatformModel.DefaultReq;
451
- };
452
- type PaymentCollectParam = {
453
- body: BillingPlatformModel.PaymentCollectReq;
454
- };
455
- type PaymentInitiateParam = {
456
- body: BillingPlatformModel.SubscribePlan;
457
- };
458
- type PaymentOptionsParam = {
459
- /**
460
- * - Payment options unique code.
461
- */
462
- code: string;
463
- };
464
- type PaymentStatusParam = {
465
- /**
466
- * - Unique ID of the company
467
- */
468
- orderId: string;
469
- };
470
- type PlanDowngradeParam = {
471
- body: BillingPlatformModel.DowngradePlanReq;
472
- };
473
- type PlanStatusUpdateParam = {
474
- body: BillingPlatformModel.PlanStatusUpdateReq;
475
- };
476
- type SetupIntentParam = {
477
- body: BillingPlatformModel.IntentReq;
478
- };
479
- type SetupMandateParam = {
480
- body: BillingPlatformModel.SetupMandateReq;
481
- };
482
- type SetupPaymentParam = {
483
- body: BillingPlatformModel.SetupPaymentReq;
484
- };
485
- type SubscriptionMethodsParam = {
486
- /**
487
- * - Unique id for external company
488
- */
489
- uniqueExternalId: string;
490
- };
491
- type SubscriptionMethodsDeleteParam = {
492
- /**
493
- * - Unique id for external company
494
- */
495
- uniqueExternalId: string;
496
- /**
497
- * - Payment method id
498
- */
499
- paymentMethodId: string;
500
- };
501
- type SubscriptionPlanChangeParam = {
502
- productSuite?: string;
503
- coupon?: string;
504
- uniqueId?: number;
505
- platform?: string;
506
- planId?: string;
507
- };
508
- type SubscriptionRenewParam = {
509
- body: BillingPlatformModel.SubscriptionRenewReq;
510
- };
511
- type TopupCancelCreditParam = {
512
- body: BillingPlatformModel.CancelTopupReq;
513
- };
514
- type TopupCreditParam = {
515
- body: BillingPlatformModel.TopupReq;
516
- };
517
- type UpdateConsentParam = {
518
- /**
519
- * - Customer unique id. In case of company it
520
- * will be company id.
521
- */
522
- subscriberId: string;
523
- };
524
- type UpdateSetupIntentParam = {
525
- body: BillingPlatformModel.PutIntentReq;
526
- };
527
- type UpgradePlanParam = {
528
- body: BillingPlatformModel.SubscriptionMethodsReq;
529
- };
530
- type UpsertCustomerDetailParam = {
531
- body: BillingPlatformModel.SubscriptionCustomerCreate;
532
- };
533
- type VerifyPaymentParam = {
534
- body: BillingPlatformModel.VerifyPaymentReq;
535
- };
536
- type GetBankListParam = any;
537
- type GetCustomerDetailParam = any;
538
- type GetEnterprisePlansParam = any;
539
- type GetInvoicesParam = any;
540
- type GetSubscriptionParam = any;
541
- type PlanDowngradeGetParam = any;
542
- type SubscriptionConfigsParam = any;
543
88
  import BillingPlatformModel = require("./BillingPlatformModel");