@gofynd/fdk-client-javascript 1.4.6 → 1.4.8-beta.2

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 (140) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
  6. package/sdk/application/Cart/CartApplicationClient.js +118 -13
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
  8. package/sdk/application/Cart/CartApplicationModel.js +98 -26
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
  10. package/sdk/application/Cart/CartApplicationValidator.js +26 -0
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +10 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +10 -2
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
  14. package/sdk/application/Content/ContentApplicationClient.js +5 -3
  15. package/sdk/application/Content/ContentApplicationModel.d.ts +7 -18
  16. package/sdk/application/Content/ContentApplicationModel.js +6 -20
  17. package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
  18. package/sdk/application/Content/ContentApplicationValidator.js +4 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
  20. package/sdk/application/Lead/LeadApplicationClient.js +0 -167
  21. package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
  22. package/sdk/application/Lead/LeadApplicationModel.js +0 -126
  23. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
  24. package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
  27. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
  28. package/sdk/application/Order/OrderApplicationModel.d.ts +72 -9
  29. package/sdk/application/Order/OrderApplicationModel.js +45 -7
  30. package/sdk/application/Payment/PaymentApplicationModel.d.ts +27 -20
  31. package/sdk/application/Payment/PaymentApplicationModel.js +23 -20
  32. package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
  33. package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
  34. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +22 -0
  35. package/sdk/application/Webhook/WebhookApplicationClient.js +115 -0
  36. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +37 -0
  37. package/sdk/application/Webhook/WebhookApplicationModel.js +46 -0
  38. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +16 -0
  39. package/sdk/application/Webhook/WebhookApplicationValidator.js +19 -0
  40. package/sdk/application/index.d.ts +1 -0
  41. package/sdk/application/index.js +2 -0
  42. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
  43. package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
  44. package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
  45. package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
  46. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
  47. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
  48. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
  49. package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
  50. package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
  51. package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
  52. package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
  53. package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
  54. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +2 -2
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +23 -19
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +19 -22
  60. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +43 -0
  61. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +257 -0
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +39 -0
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +45 -0
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +60 -0
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +57 -0
  66. package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
  67. package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
  68. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
  69. package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
  70. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
  71. package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
  72. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +36 -3
  73. package/sdk/platform/Cart/CartPlatformApplicationClient.js +276 -3
  74. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +93 -1
  75. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +60 -0
  76. package/sdk/platform/Cart/CartPlatformModel.d.ts +216 -40
  77. package/sdk/platform/Cart/CartPlatformModel.js +166 -24
  78. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +11 -7
  79. package/sdk/platform/Catalog/CatalogPlatformClient.js +37 -14
  80. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +122 -17
  81. package/sdk/platform/Catalog/CatalogPlatformModel.js +141 -15
  82. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -7
  83. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -5
  84. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
  85. package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
  86. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
  87. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
  88. package/sdk/platform/Content/ContentPlatformModel.d.ts +8 -4
  89. package/sdk/platform/Content/ContentPlatformModel.js +8 -4
  90. package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
  91. package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
  92. package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
  93. package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
  94. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
  95. package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
  96. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
  97. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
  98. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
  99. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
  100. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
  101. package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
  102. package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
  103. package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
  104. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
  105. package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
  106. package/sdk/platform/Order/OrderPlatformClient.d.ts +11 -1
  107. package/sdk/platform/Order/OrderPlatformClient.js +82 -5
  108. package/sdk/platform/Order/OrderPlatformModel.d.ts +270 -29
  109. package/sdk/platform/Order/OrderPlatformModel.js +139 -28
  110. package/sdk/platform/Order/OrderPlatformValidator.d.ts +58 -17
  111. package/sdk/platform/Order/OrderPlatformValidator.js +28 -16
  112. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +14 -2
  113. package/sdk/platform/Payment/PaymentPlatformModel.js +7 -2
  114. package/sdk/platform/PlatformApplicationClient.d.ts +2 -0
  115. package/sdk/platform/PlatformApplicationClient.js +4 -0
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
  117. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
  118. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
  119. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
  120. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
  121. package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
  122. package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
  123. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +24 -40
  124. package/sdk/platform/Webhook/WebhookPlatformClient.js +78 -221
  125. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +168 -167
  126. package/sdk/platform/Webhook/WebhookPlatformModel.js +180 -178
  127. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +23 -31
  128. package/sdk/platform/Webhook/WebhookPlatformValidator.js +28 -42
  129. package/sdk/platform/index.d.ts +1 -0
  130. package/sdk/platform/index.js +2 -0
  131. package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
  132. package/sdk/public/Billing/BillingPublicClient.js +156 -3
  133. package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
  134. package/sdk/public/Billing/BillingPublicModel.js +317 -18
  135. package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
  136. package/sdk/public/Billing/BillingPublicValidator.js +22 -3
  137. package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
  138. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
  139. package/sdk/public/Webhook/WebhookPublicModel.d.ts +24 -22
  140. package/sdk/public/Webhook/WebhookPublicModel.js +24 -22
@@ -12,6 +12,10 @@ export = BillingPlatformValidator;
12
12
  * @typedef CancelSubscriptionPlanParam
13
13
  * @property {BillingPlatformModel.CancelSubscriptionReq} body
14
14
  */
15
+ /**
16
+ * @typedef ChangePlanParam
17
+ * @property {BillingPlatformModel.SubscriptionActivateReq} body
18
+ */
15
19
  /**
16
20
  * @typedef CheckCouponValidityParam
17
21
  * @property {string} plan - ID of the plan.
@@ -23,10 +27,23 @@ export = BillingPlatformValidator;
23
27
  * @property {BillingPlatformModel.CreateOneTimeCharge} body
24
28
  */
25
29
  /**
26
- * @typedef CreateSubscriptionChargeParam
27
- * @property {string} extensionId - Extension _id
28
- * @property {BillingPlatformModel.CreateSubscriptionCharge} body
30
+ * @typedef CreditTransactionParam
31
+ * @property {number} uniqueId - Unique ID of the company
32
+ * @property {string} productSuite - Product suite
33
+ * @property {string} type - Type of the company
34
+ * @property {number} [pageSize] - Number of items per page
35
+ * @property {number} [pageNo] - Page number
36
+ * @property {string} [startDate] - Start date
37
+ * @property {string} [endDate] - End date
38
+ * @property {string} [searchType] - Search Type
39
+ * @property {string} [searchValue] - Search Value
40
+ */
41
+ /**
42
+ * @typedef CurrentAppLimitParam
43
+ * @property {string} [productSuite]
44
+ * @property {string} [type]
29
45
  */
46
+ /** @typedef GetBankListParam */
30
47
  /**
31
48
  * @typedef GetChargeDetailsParam
32
49
  * @property {string} extensionId - Extension _id
@@ -44,6 +61,14 @@ export = BillingPlatformValidator;
44
61
  * @property {string} invoiceId - Invoice id
45
62
  */
46
63
  /** @typedef GetInvoicesParam */
64
+ /**
65
+ * @typedef GetPaymentOptionsParam
66
+ * @property {string} transactionId - ID of the payment transaction.
67
+ */
68
+ /**
69
+ * @typedef GetPaymentTransactionParam
70
+ * @property {string} transactionId - Payment Transaction unique id.
71
+ */
47
72
  /** @typedef GetSubscriptionParam */
48
73
  /**
49
74
  * @typedef GetSubscriptionChargeParam
@@ -58,18 +83,104 @@ export = BillingPlatformValidator;
58
83
  * @property {string} [component] - The coponents the user would like to know.
59
84
  * @property {string} [componentName] - The name of component the preferred to be fetched.
60
85
  */
86
+ /**
87
+ * @typedef GlobalSettingsParam
88
+ * @property {number} pageNo - Number of pages needed
89
+ * @property {number} pageSize - Number of items to be there in page
90
+ * @property {Object} query - Field which will be used in db query
91
+ */
92
+ /**
93
+ * @typedef MethodDefaultParam
94
+ * @property {BillingPlatformModel.DefaultReq} body
95
+ */
96
+ /**
97
+ * @typedef PaymentCollectParam
98
+ * @property {BillingPlatformModel.PaymentCollectReq} body
99
+ */
100
+ /**
101
+ * @typedef PaymentInitiateParam
102
+ * @property {BillingPlatformModel.SunscribePlan} body
103
+ */
104
+ /**
105
+ * @typedef PaymentOptionsParam
106
+ * @property {string} code - Payment options unique code.
107
+ */
108
+ /**
109
+ * @typedef PaymentStatusParam
110
+ * @property {string} orderId - Unique ID of the company
111
+ */
112
+ /**
113
+ * @typedef PlanDowngradeParam
114
+ * @property {BillingPlatformModel.DowngradePlanReq} body
115
+ */
116
+ /** @typedef PlanDowngradeGetParam */
61
117
  /**
62
118
  * @typedef PlanStatusUpdateParam
63
119
  * @property {BillingPlatformModel.PlanStatusUpdateReq} body
64
120
  */
65
121
  /**
66
- * @typedef SubscripePlanParam
67
- * @property {BillingPlatformModel.SunscribePlan} body
122
+ * @typedef SetupIntentParam
123
+ * @property {BillingPlatformModel.IntentReq} body
124
+ */
125
+ /**
126
+ * @typedef SetupMandateParam
127
+ * @property {BillingPlatformModel.SetupMandateReq} body
128
+ */
129
+ /**
130
+ * @typedef SetupPaymentParam
131
+ * @property {BillingPlatformModel.SetupPaymentReq} body
132
+ */
133
+ /** @typedef SubscriptionConfigsParam */
134
+ /**
135
+ * @typedef SubscriptionMethodsParam
136
+ * @property {string} uniqueExternalId - Unique id for external company
137
+ */
138
+ /**
139
+ * @typedef SubscriptionMethodsDeleteParam
140
+ * @property {string} uniqueExternalId - Unique id for external company
141
+ * @property {string} paymentMethodId - Payment method id
142
+ */
143
+ /**
144
+ * @typedef SubscriptionPlanChangeParam
145
+ * @property {string} [productSuite]
146
+ * @property {string} [coupon]
147
+ * @property {number} [uniqueId]
148
+ * @property {string} [platform]
149
+ * @property {string} [planId]
150
+ */
151
+ /**
152
+ * @typedef SubscriptionRenewParam
153
+ * @property {BillingPlatformModel.SubscriptionRenewReq} body
154
+ */
155
+ /**
156
+ * @typedef TopupCancelCreditParam
157
+ * @property {BillingPlatformModel.CancelTopupReq} body
158
+ */
159
+ /**
160
+ * @typedef TopupCreditParam
161
+ * @property {BillingPlatformModel.TopupReq} body
162
+ */
163
+ /**
164
+ * @typedef UpdateConsentParam
165
+ * @property {string} subscriberId - Customer unique id. In case of company it
166
+ * will be company id.
167
+ */
168
+ /**
169
+ * @typedef UpdateSetupIntentParam
170
+ * @property {BillingPlatformModel.PutIntentReq} body
171
+ */
172
+ /**
173
+ * @typedef UpgradePlanParam
174
+ * @property {BillingPlatformModel.SubscriptionMethodsReq} body
68
175
  */
69
176
  /**
70
177
  * @typedef UpsertCustomerDetailParam
71
178
  * @property {BillingPlatformModel.SubscriptionCustomerCreate} body
72
179
  */
180
+ /**
181
+ * @typedef VerifyPaymentParam
182
+ * @property {BillingPlatformModel.VerifyPaymentReq} body
183
+ */
73
184
  declare class BillingPlatformValidator {
74
185
  /** @returns {ActivateSubscriptionPlanParam} */
75
186
  static activateSubscriptionPlan(): ActivateSubscriptionPlanParam;
@@ -77,12 +188,18 @@ declare class BillingPlatformValidator {
77
188
  static cancelSubscriptionCharge(): CancelSubscriptionChargeParam;
78
189
  /** @returns {CancelSubscriptionPlanParam} */
79
190
  static cancelSubscriptionPlan(): CancelSubscriptionPlanParam;
191
+ /** @returns {ChangePlanParam} */
192
+ static changePlan(): ChangePlanParam;
80
193
  /** @returns {CheckCouponValidityParam} */
81
194
  static checkCouponValidity(): CheckCouponValidityParam;
82
195
  /** @returns {CreateOneTimeChargeParam} */
83
196
  static createOneTimeCharge(): CreateOneTimeChargeParam;
84
- /** @returns {CreateSubscriptionChargeParam} */
85
- static createSubscriptionCharge(): CreateSubscriptionChargeParam;
197
+ /** @returns {CreditTransactionParam} */
198
+ static creditTransaction(): CreditTransactionParam;
199
+ /** @returns {CurrentAppLimitParam} */
200
+ static currentAppLimit(): CurrentAppLimitParam;
201
+ /** @returns {GetBankListParam} */
202
+ static getBankList(): any;
86
203
  /** @returns {GetChargeDetailsParam} */
87
204
  static getChargeDetails(): GetChargeDetailsParam;
88
205
  /** @returns {GetCustomerDetailParam} */
@@ -95,21 +212,67 @@ declare class BillingPlatformValidator {
95
212
  static getInvoiceById(): GetInvoiceByIdParam;
96
213
  /** @returns {GetInvoicesParam} */
97
214
  static getInvoices(): any;
215
+ /** @returns {GetPaymentOptionsParam} */
216
+ static getPaymentOptions(): GetPaymentOptionsParam;
217
+ /** @returns {GetPaymentTransactionParam} */
218
+ static getPaymentTransaction(): GetPaymentTransactionParam;
98
219
  /** @returns {GetSubscriptionParam} */
99
220
  static getSubscription(): any;
100
221
  /** @returns {GetSubscriptionChargeParam} */
101
222
  static getSubscriptionCharge(): GetSubscriptionChargeParam;
102
223
  /** @returns {GetentityDetailParam} */
103
224
  static getentityDetail(): GetentityDetailParam;
225
+ /** @returns {GlobalSettingsParam} */
226
+ static globalSettings(): GlobalSettingsParam;
227
+ /** @returns {MethodDefaultParam} */
228
+ static methodDefault(): MethodDefaultParam;
229
+ /** @returns {PaymentCollectParam} */
230
+ static paymentCollect(): PaymentCollectParam;
231
+ /** @returns {PaymentInitiateParam} */
232
+ static paymentInitiate(): PaymentInitiateParam;
233
+ /** @returns {PaymentOptionsParam} */
234
+ static paymentOptions(): PaymentOptionsParam;
235
+ /** @returns {PaymentStatusParam} */
236
+ static paymentStatus(): PaymentStatusParam;
237
+ /** @returns {PlanDowngradeParam} */
238
+ static planDowngrade(): PlanDowngradeParam;
239
+ /** @returns {PlanDowngradeGetParam} */
240
+ static planDowngradeGet(): any;
104
241
  /** @returns {PlanStatusUpdateParam} */
105
242
  static planStatusUpdate(): PlanStatusUpdateParam;
106
- /** @returns {SubscripePlanParam} */
107
- static subscripePlan(): SubscripePlanParam;
243
+ /** @returns {SetupIntentParam} */
244
+ static setupIntent(): SetupIntentParam;
245
+ /** @returns {SetupMandateParam} */
246
+ static setupMandate(): SetupMandateParam;
247
+ /** @returns {SetupPaymentParam} */
248
+ static setupPayment(): SetupPaymentParam;
249
+ /** @returns {SubscriptionConfigsParam} */
250
+ static subscriptionConfigs(): any;
251
+ /** @returns {SubscriptionMethodsParam} */
252
+ static subscriptionMethods(): SubscriptionMethodsParam;
253
+ /** @returns {SubscriptionMethodsDeleteParam} */
254
+ static subscriptionMethodsDelete(): SubscriptionMethodsDeleteParam;
255
+ /** @returns {SubscriptionPlanChangeParam} */
256
+ static subscriptionPlanChange(): SubscriptionPlanChangeParam;
257
+ /** @returns {SubscriptionRenewParam} */
258
+ static subscriptionRenew(): SubscriptionRenewParam;
259
+ /** @returns {TopupCancelCreditParam} */
260
+ static topupCancelCredit(): TopupCancelCreditParam;
261
+ /** @returns {TopupCreditParam} */
262
+ static topupCredit(): TopupCreditParam;
263
+ /** @returns {UpdateConsentParam} */
264
+ static updateConsent(): UpdateConsentParam;
265
+ /** @returns {UpdateSetupIntentParam} */
266
+ static updateSetupIntent(): UpdateSetupIntentParam;
267
+ /** @returns {UpgradePlanParam} */
268
+ static upgradePlan(): UpgradePlanParam;
108
269
  /** @returns {UpsertCustomerDetailParam} */
109
270
  static upsertCustomerDetail(): UpsertCustomerDetailParam;
271
+ /** @returns {VerifyPaymentParam} */
272
+ static verifyPayment(): VerifyPaymentParam;
110
273
  }
111
274
  declare namespace BillingPlatformValidator {
112
- export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreateSubscriptionChargeParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetFeatureLimitConfigParam, GetInvoiceByIdParam, GetInvoicesParam, GetSubscriptionParam, GetSubscriptionChargeParam, GetentityDetailParam, PlanStatusUpdateParam, SubscripePlanParam, UpsertCustomerDetailParam };
275
+ export { ActivateSubscriptionPlanParam, CancelSubscriptionChargeParam, CancelSubscriptionPlanParam, ChangePlanParam, CheckCouponValidityParam, CreateOneTimeChargeParam, CreditTransactionParam, CurrentAppLimitParam, GetBankListParam, GetChargeDetailsParam, GetCustomerDetailParam, GetEnterprisePlansParam, GetFeatureLimitConfigParam, 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 };
113
276
  }
114
277
  type ActivateSubscriptionPlanParam = {
115
278
  body: BillingPlatformModel.SubscriptionActivateReq;
@@ -127,6 +290,9 @@ type CancelSubscriptionChargeParam = {
127
290
  type CancelSubscriptionPlanParam = {
128
291
  body: BillingPlatformModel.CancelSubscriptionReq;
129
292
  };
293
+ type ChangePlanParam = {
294
+ body: BillingPlatformModel.SubscriptionActivateReq;
295
+ };
130
296
  type CheckCouponValidityParam = {
131
297
  /**
132
298
  * - ID of the plan.
@@ -144,12 +310,47 @@ type CreateOneTimeChargeParam = {
144
310
  extensionId: string;
145
311
  body: BillingPlatformModel.CreateOneTimeCharge;
146
312
  };
147
- type CreateSubscriptionChargeParam = {
313
+ type CreditTransactionParam = {
148
314
  /**
149
- * - Extension _id
315
+ * - Unique ID of the company
150
316
  */
151
- extensionId: string;
152
- body: BillingPlatformModel.CreateSubscriptionCharge;
317
+ uniqueId: number;
318
+ /**
319
+ * - Product suite
320
+ */
321
+ productSuite: string;
322
+ /**
323
+ * - Type of the company
324
+ */
325
+ type: string;
326
+ /**
327
+ * - Number of items per page
328
+ */
329
+ pageSize?: number;
330
+ /**
331
+ * - Page number
332
+ */
333
+ pageNo?: number;
334
+ /**
335
+ * - Start date
336
+ */
337
+ startDate?: string;
338
+ /**
339
+ * - End date
340
+ */
341
+ endDate?: string;
342
+ /**
343
+ * - Search Type
344
+ */
345
+ searchType?: string;
346
+ /**
347
+ * - Search Value
348
+ */
349
+ searchValue?: string;
350
+ };
351
+ type CurrentAppLimitParam = {
352
+ productSuite?: string;
353
+ type?: string;
153
354
  };
154
355
  type GetChargeDetailsParam = {
155
356
  /**
@@ -171,6 +372,18 @@ type GetInvoiceByIdParam = {
171
372
  */
172
373
  invoiceId: string;
173
374
  };
375
+ type GetPaymentOptionsParam = {
376
+ /**
377
+ * - ID of the payment transaction.
378
+ */
379
+ transactionId: string;
380
+ };
381
+ type GetPaymentTransactionParam = {
382
+ /**
383
+ * - Payment Transaction unique id.
384
+ */
385
+ transactionId: string;
386
+ };
174
387
  type GetSubscriptionChargeParam = {
175
388
  /**
176
389
  * - Extension _id
@@ -203,17 +416,112 @@ type GetentityDetailParam = {
203
416
  */
204
417
  componentName?: string;
205
418
  };
419
+ type GlobalSettingsParam = {
420
+ /**
421
+ * - Number of pages needed
422
+ */
423
+ pageNo: number;
424
+ /**
425
+ * - Number of items to be there in page
426
+ */
427
+ pageSize: number;
428
+ /**
429
+ * - Field which will be used in db query
430
+ */
431
+ query: any;
432
+ };
433
+ type MethodDefaultParam = {
434
+ body: BillingPlatformModel.DefaultReq;
435
+ };
436
+ type PaymentCollectParam = {
437
+ body: BillingPlatformModel.PaymentCollectReq;
438
+ };
439
+ type PaymentInitiateParam = {
440
+ body: BillingPlatformModel.SunscribePlan;
441
+ };
442
+ type PaymentOptionsParam = {
443
+ /**
444
+ * - Payment options unique code.
445
+ */
446
+ code: string;
447
+ };
448
+ type PaymentStatusParam = {
449
+ /**
450
+ * - Unique ID of the company
451
+ */
452
+ orderId: string;
453
+ };
454
+ type PlanDowngradeParam = {
455
+ body: BillingPlatformModel.DowngradePlanReq;
456
+ };
206
457
  type PlanStatusUpdateParam = {
207
458
  body: BillingPlatformModel.PlanStatusUpdateReq;
208
459
  };
209
- type SubscripePlanParam = {
210
- body: BillingPlatformModel.SunscribePlan;
460
+ type SetupIntentParam = {
461
+ body: BillingPlatformModel.IntentReq;
462
+ };
463
+ type SetupMandateParam = {
464
+ body: BillingPlatformModel.SetupMandateReq;
465
+ };
466
+ type SetupPaymentParam = {
467
+ body: BillingPlatformModel.SetupPaymentReq;
468
+ };
469
+ type SubscriptionMethodsParam = {
470
+ /**
471
+ * - Unique id for external company
472
+ */
473
+ uniqueExternalId: string;
474
+ };
475
+ type SubscriptionMethodsDeleteParam = {
476
+ /**
477
+ * - Unique id for external company
478
+ */
479
+ uniqueExternalId: string;
480
+ /**
481
+ * - Payment method id
482
+ */
483
+ paymentMethodId: string;
484
+ };
485
+ type SubscriptionPlanChangeParam = {
486
+ productSuite?: string;
487
+ coupon?: string;
488
+ uniqueId?: number;
489
+ platform?: string;
490
+ planId?: string;
491
+ };
492
+ type SubscriptionRenewParam = {
493
+ body: BillingPlatformModel.SubscriptionRenewReq;
494
+ };
495
+ type TopupCancelCreditParam = {
496
+ body: BillingPlatformModel.CancelTopupReq;
497
+ };
498
+ type TopupCreditParam = {
499
+ body: BillingPlatformModel.TopupReq;
500
+ };
501
+ type UpdateConsentParam = {
502
+ /**
503
+ * - Customer unique id. In case of company it
504
+ * will be company id.
505
+ */
506
+ subscriberId: string;
507
+ };
508
+ type UpdateSetupIntentParam = {
509
+ body: BillingPlatformModel.PutIntentReq;
510
+ };
511
+ type UpgradePlanParam = {
512
+ body: BillingPlatformModel.SubscriptionMethodsReq;
211
513
  };
212
514
  type UpsertCustomerDetailParam = {
213
515
  body: BillingPlatformModel.SubscriptionCustomerCreate;
214
516
  };
517
+ type VerifyPaymentParam = {
518
+ body: BillingPlatformModel.VerifyPaymentReq;
519
+ };
520
+ type GetBankListParam = any;
215
521
  type GetCustomerDetailParam = any;
216
522
  type GetEnterprisePlansParam = any;
217
523
  type GetInvoicesParam = any;
218
524
  type GetSubscriptionParam = any;
525
+ type PlanDowngradeGetParam = any;
526
+ type SubscriptionConfigsParam = any;
219
527
  import BillingPlatformModel = require("./BillingPlatformModel");