@gofynd/fdk-client-javascript 1.4.7 → 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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -18
- package/sdk/application/Content/ContentApplicationModel.js +4 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
- package/sdk/platform/Cart/CartPlatformModel.js +164 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformModel.js +6 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformModel.d.ts +108 -15
- package/sdk/platform/Order/OrderPlatformModel.js +47 -14
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +112 -164
- package/sdk/platform/Webhook/WebhookPlatformModel.js +118 -169
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +22 -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
|
|
27
|
-
* @property {
|
|
28
|
-
* @property {
|
|
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
|
|
67
|
-
* @property {BillingPlatformModel.
|
|
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 {
|
|
85
|
-
static
|
|
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 {
|
|
107
|
-
static
|
|
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,
|
|
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
|
|
313
|
+
type CreditTransactionParam = {
|
|
148
314
|
/**
|
|
149
|
-
* -
|
|
315
|
+
* - Unique ID of the company
|
|
150
316
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
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
|
|
210
|
-
body: BillingPlatformModel.
|
|
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");
|