@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.8
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -1,124 +1,161 @@
|
|
|
1
1
|
export = BillingPublicModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef TenureConfig
|
|
4
|
+
* @property {string} [display_name] - Display name for the tenure
|
|
5
|
+
* configuration(like "Monthly", "Half Yearly", "Yearly")
|
|
6
|
+
* @property {string} [description] - Description of the tenure configuration
|
|
7
|
+
* @property {boolean} [is_active] - Indicates whether the tenure configuration is active
|
|
8
|
+
* @property {string} [slug] - Slug identifier that uniquely identifies the
|
|
9
|
+
* tenure configuration
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* @typedef TenureConfigData
|
|
13
|
+
* @property {string} [country] - Country associated with the tenure configuration
|
|
14
|
+
* @property {TenureConfig[]} [tenure_config] - Array of tenure configurations
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @typedef TenureConfigResponse
|
|
18
|
+
* @property {boolean} [success] - Indicates whether the request was successful
|
|
19
|
+
* @property {TenureConfigData} [data]
|
|
20
|
+
*/
|
|
2
21
|
/**
|
|
3
22
|
* @typedef ResourceNotFound
|
|
4
23
|
* @property {string} [message] - Resource not found with {id}
|
|
5
24
|
*/
|
|
6
25
|
/**
|
|
7
26
|
* @typedef PlanRecurring
|
|
8
|
-
* @property {string} [interval]
|
|
9
|
-
* @property {number} [interval_count]
|
|
10
|
-
* @property {string} [aggregate_usage]
|
|
11
|
-
* @property {string} [usage_type]
|
|
27
|
+
* @property {string} [interval] - Interval for the recurring plan
|
|
28
|
+
* @property {number} [interval_count] - Number of intervals for the recurring plan
|
|
29
|
+
* @property {string} [aggregate_usage] - Aggregate usage type for the recurring plan
|
|
30
|
+
* @property {string} [usage_type] - Usage type for the recurring plan (like metered etc)
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @typedef PlanTypes
|
|
34
|
+
* @property {PlanDetails[]} [month] - Monthly plan details
|
|
35
|
+
* @property {PlanDetails[]} [quarter] - Quarterly plan details
|
|
36
|
+
* @property {PlanDetails[]} [half_year] - Half-yearly plan details
|
|
37
|
+
* @property {PlanDetails[]} [year] - Yearly plan details
|
|
12
38
|
*/
|
|
13
39
|
/**
|
|
14
40
|
* @typedef DetailList
|
|
15
|
-
* @property {
|
|
16
|
-
* @property {
|
|
41
|
+
* @property {PlanTypes} [plans]
|
|
42
|
+
* @property {TrialPlanDetails} [trial_plan]
|
|
17
43
|
*/
|
|
18
44
|
/**
|
|
19
45
|
* @typedef PlanTaxation
|
|
20
|
-
* @property {number} [gst]
|
|
46
|
+
* @property {number} [gst] - GST percentage applied to the plan
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* @typedef CountryRes
|
|
50
|
+
* @property {string} [name] - Name of the country
|
|
51
|
+
* @property {string} [code] - Country code
|
|
21
52
|
*/
|
|
22
53
|
/**
|
|
23
54
|
* @typedef OneTimeFees
|
|
24
|
-
* @property {number} [developement]
|
|
25
|
-
* @property {number} [marketing]
|
|
55
|
+
* @property {number} [developement] - One time Development fees
|
|
56
|
+
* @property {number} [marketing] - One time Marketing fees
|
|
26
57
|
*/
|
|
27
58
|
/**
|
|
28
59
|
* @typedef CreditLine
|
|
29
|
-
* @property {boolean} [is_active]
|
|
60
|
+
* @property {boolean} [is_active] - Indicates whether the credit line is active
|
|
30
61
|
*/
|
|
31
62
|
/**
|
|
32
63
|
* @typedef PlanMeta
|
|
33
|
-
* @property {string} [plan_platform_display_name]
|
|
64
|
+
* @property {string} [plan_platform_display_name] - Display name for the plan platform
|
|
34
65
|
*/
|
|
35
66
|
/**
|
|
36
67
|
* @typedef FeatureConfig
|
|
37
|
-
* @property {boolean} [enabled]
|
|
38
|
-
* @property {number} [limit]
|
|
39
|
-
* @property {number} [hard_limit]
|
|
40
|
-
* @property {number} [soft_limit]
|
|
68
|
+
* @property {boolean} [enabled] - Indicates whether the feature is enabled
|
|
69
|
+
* @property {number} [limit] - Limit for the feature
|
|
70
|
+
* @property {number} [hard_limit] - Hard limit for the feature
|
|
71
|
+
* @property {number} [soft_limit] - Soft limit for the feature
|
|
41
72
|
*/
|
|
42
73
|
/**
|
|
43
74
|
* @typedef PlanConfig
|
|
44
|
-
* @property {boolean} [is_active]
|
|
45
|
-
* @property {string} [display_text]
|
|
46
|
-
* @property {boolean} [is_default]
|
|
47
|
-
* @property {string} [processing_type]
|
|
48
|
-
* @property {string[]} [tags]
|
|
75
|
+
* @property {boolean} [is_active] - Indicates whether the plan configuration is active
|
|
76
|
+
* @property {string} [display_text] - Text to display plan configuration
|
|
77
|
+
* @property {boolean} [is_default] - Indicates whether the plan configuration is default
|
|
78
|
+
* @property {string} [processing_type] - Type of processing for the plan configuration
|
|
79
|
+
* @property {string[]} [tags] - Tags associated with the plan configuration
|
|
49
80
|
* @property {FeatureConfig} [feature_config]
|
|
50
|
-
* @property {string} [_id]
|
|
51
|
-
* @property {string} [component_id]
|
|
52
|
-
*
|
|
53
|
-
* @property {string} [
|
|
54
|
-
* @property {
|
|
55
|
-
* @property {
|
|
56
|
-
* @property {string} [
|
|
57
|
-
* @property {string} [
|
|
81
|
+
* @property {string} [_id] - Unique identifier for the plan configuration
|
|
82
|
+
* @property {string} [component_id] - Component identifier associated with the
|
|
83
|
+
* plan configuration
|
|
84
|
+
* @property {string} [created_at] - Creation date of the plan configuration
|
|
85
|
+
* @property {string} [modified_at] - Modification date of the plan configuration
|
|
86
|
+
* @property {number} [__v] - Version number of the plan configuration
|
|
87
|
+
* @property {string} [billing_scheme] - Billing scheme for the plan configuration
|
|
88
|
+
* @property {string} [bill_type] - Billing type for the plan configuration
|
|
89
|
+
* @property {string} [price_ui_type] - Price UI type for the plan configuration
|
|
58
90
|
* @property {PlanRecurring} [recurring]
|
|
59
91
|
* @property {TransformQuantity} [transform_quantity]
|
|
60
92
|
* @property {FreeTier} [free_tier]
|
|
61
|
-
* @property {string} [currency]
|
|
62
|
-
* @property {number} [unit_amount]
|
|
63
|
-
* @property {number} [quantity]
|
|
64
|
-
* @property {string} [price_type]
|
|
65
|
-
* @property {Object[]} [tiers]
|
|
93
|
+
* @property {string} [currency] - Currency used in the plan configuration
|
|
94
|
+
* @property {number} [unit_amount] - Unit amount for the plan configuration
|
|
95
|
+
* @property {number} [quantity] - Quantity for the plan configuration
|
|
96
|
+
* @property {string} [price_type] - Price type for the plan configuration
|
|
97
|
+
* @property {Object[]} [tiers] - An array of pricing tiers that apply based on
|
|
98
|
+
* quantity or usage. Each tier can define a maximum limit (`up_to`), an
|
|
99
|
+
* additional flat fee (`flat_amount`), and a price per unit (`unit_amount`)
|
|
66
100
|
*/
|
|
67
101
|
/**
|
|
68
102
|
* @typedef FreeTier
|
|
69
|
-
* @property {string} [type]
|
|
70
|
-
* @property {number} [value]
|
|
103
|
+
* @property {string} [type] - Type of the free tier
|
|
104
|
+
* @property {number} [value] - Value of the free tier type
|
|
71
105
|
*/
|
|
72
106
|
/**
|
|
73
107
|
* @typedef TransformQuantity
|
|
74
|
-
* @property {number} [divide_by]
|
|
75
|
-
* @property {string} [round]
|
|
108
|
+
* @property {number} [divide_by] - Divide by value for the quantity transformation
|
|
109
|
+
* @property {string} [round] - Rounding method for the quantity transformation
|
|
76
110
|
*/
|
|
77
111
|
/**
|
|
78
112
|
* @typedef ComponentsSchema
|
|
79
|
-
* @property {string} [name]
|
|
80
|
-
* @property {string} [slug]
|
|
81
|
-
* @property {string} [description]
|
|
82
|
-
* @property {string} [group]
|
|
83
|
-
* @property {string} [icon]
|
|
84
|
-
* @property {Object} [links]
|
|
113
|
+
* @property {string} [name] - Name of the component
|
|
114
|
+
* @property {string} [slug] - Slug identifier for the component
|
|
115
|
+
* @property {string} [description] - Description of the component
|
|
116
|
+
* @property {string} [group] - Group to which the component belongs
|
|
117
|
+
* @property {string} [icon] - Icon associated with the component
|
|
118
|
+
* @property {Object} [links] - Links associated with the component
|
|
85
119
|
* @property {PlanConfig} [config]
|
|
86
|
-
* @property {boolean} [is_active]
|
|
87
|
-
* @property {string} [display_text]
|
|
120
|
+
* @property {boolean} [is_active] - Indicates whether the component is active
|
|
121
|
+
* @property {string} [display_text] - Display text for the component
|
|
88
122
|
*/
|
|
89
123
|
/**
|
|
90
124
|
* @typedef PlanDetails
|
|
91
|
-
* @property {string} [
|
|
92
|
-
* @property {string} [updated_by]
|
|
125
|
+
* @property {string} [activated_by] - ID of the user who activated the plan
|
|
126
|
+
* @property {string} [updated_by] - ID of the user who updated the plan
|
|
93
127
|
* @property {PlanRecurring} [recurring]
|
|
94
|
-
* @property {boolean} [is_trial_plan]
|
|
95
|
-
* @property {string[]} [company_ids]
|
|
96
|
-
* @property {string} [created_by]
|
|
97
|
-
* @property {string} [channel_type]
|
|
98
|
-
*
|
|
99
|
-
* @property {string} [
|
|
100
|
-
* @property {string
|
|
101
|
-
* @property {string} [
|
|
102
|
-
* @property {
|
|
103
|
-
* @property {boolean} [
|
|
104
|
-
* @property {
|
|
105
|
-
* @property {
|
|
106
|
-
* @property {string[]} [
|
|
107
|
-
* @property {string} [
|
|
108
|
-
* @property {string} [
|
|
109
|
-
* @property {
|
|
110
|
-
* @property {string} [
|
|
111
|
-
* @property {string} [
|
|
112
|
-
* @property {
|
|
113
|
-
* @property {
|
|
114
|
-
* @property {string} [
|
|
115
|
-
*
|
|
128
|
+
* @property {boolean} [is_trial_plan] - Indicates whether the plan is a trial plan
|
|
129
|
+
* @property {string[]} [company_ids] - Company IDs associated with the plan
|
|
130
|
+
* @property {string} [created_by] - ID of the user who created the plan
|
|
131
|
+
* @property {string} [channel_type] - Ordering channel associated with the
|
|
132
|
+
* plan(e.g, ecomm, fynd)
|
|
133
|
+
* @property {string} [platform] - Platform associated with the plan(e.g, web, mobile)
|
|
134
|
+
* @property {string} [plan_group] - Group to which the plan belongs
|
|
135
|
+
* @property {string[]} [tag_lines] - Tag lines associated with the plan
|
|
136
|
+
* @property {string} [currency] - Currency of the plan
|
|
137
|
+
* @property {boolean} [is_active] - Indicates whether the plan is active
|
|
138
|
+
* @property {boolean} [is_visible] - Indicates whether the plan is visible on ui
|
|
139
|
+
* @property {number} [trial_period] - Trial period of the plan
|
|
140
|
+
* @property {string[]} [addons] - Addons associated with the plan
|
|
141
|
+
* @property {string[]} [tags] - Tags associated with the plan
|
|
142
|
+
* @property {string} [type] - Type of the plan
|
|
143
|
+
* @property {CountryRes} [country]
|
|
144
|
+
* @property {string} [_id] - Unique identifier for the plan."
|
|
145
|
+
* @property {string} [name] - Name of the plan
|
|
146
|
+
* @property {string} [description] - Description of the plan
|
|
147
|
+
* @property {number} [amount] - Amount of the plan
|
|
148
|
+
* @property {string} [product_suite_id] - Identifier of the product suite
|
|
149
|
+
* associated with the plan
|
|
150
|
+
* @property {string} [created_at] - Creation date of the plan
|
|
151
|
+
* @property {string} [modified_at] - Modification date of the plan
|
|
116
152
|
* @property {PlanTaxation} [taxation]
|
|
117
153
|
* @property {OneTimeFees} [one_time_fees]
|
|
118
154
|
* @property {CreditLine} [credit_line]
|
|
119
|
-
* @property {string} [current_status]
|
|
155
|
+
* @property {string} [current_status] - Current status of the plan
|
|
156
|
+
* @property {string} [approved_by] - Id of the User who has approved the plan
|
|
120
157
|
* @property {PlanMeta} [meta]
|
|
121
|
-
* @property {ComponentsSchema[]} [components]
|
|
158
|
+
* @property {ComponentsSchema[]} [components] - Components associated with the plan
|
|
122
159
|
*/
|
|
123
160
|
/**
|
|
124
161
|
* @typedef Recurring
|
|
@@ -127,12 +164,12 @@ export = BillingPublicModel;
|
|
|
127
164
|
*/
|
|
128
165
|
/**
|
|
129
166
|
* @typedef Taxation
|
|
130
|
-
* @property {number} [gst] - GST percentage
|
|
167
|
+
* @property {number} [gst] - GST percentage applied to the plan
|
|
131
168
|
*/
|
|
132
169
|
/**
|
|
133
170
|
* @typedef PlanList
|
|
134
|
-
* @property {string} [approved_by]
|
|
135
|
-
* @property {string} [updated_by]
|
|
171
|
+
* @property {string} [approved_by] - ID of the user who approved the plan
|
|
172
|
+
* @property {string} [updated_by] - ID of the user who updated the plan
|
|
136
173
|
* @property {Recurring} [recurring]
|
|
137
174
|
* @property {Taxation} [taxation]
|
|
138
175
|
* @property {OneTimeFees} [one_time_fees]
|
|
@@ -143,31 +180,113 @@ export = BillingPublicModel;
|
|
|
143
180
|
* @property {boolean} [is_trial_plan] - Indicates whether the plan is a trial plan
|
|
144
181
|
* @property {string} [name] - Name of the plan
|
|
145
182
|
* @property {string} [description] - Description of the plan
|
|
146
|
-
* @property {string} [plan_group] - Group to which
|
|
183
|
+
* @property {string} [plan_group] - Group to which plan belongs
|
|
184
|
+
* @property {string} [plan_group_id] - Group id to which plan belongs
|
|
147
185
|
* @property {string[]} [tag_lines] - Tag lines associated with the plan
|
|
148
186
|
* @property {string} [currency] - Currency of the plan
|
|
149
187
|
* @property {number} [amount] - Amount of the plan
|
|
150
188
|
* @property {boolean} [is_active] - Indicates whether the plan is active
|
|
151
|
-
* @property {boolean} [is_visible] - Indicates whether the plan is visible
|
|
152
|
-
* @property {number} [trial_period] - Trial period of the plan
|
|
189
|
+
* @property {boolean} [is_visible] - Indicates whether the plan is visible on ui
|
|
190
|
+
* @property {number} [trial_period] - Trial period of the plan in days
|
|
153
191
|
* @property {Object[]} [addons] - Addons associated with the plan
|
|
154
192
|
* @property {string[]} [tags] - Tags associated with the plan
|
|
155
|
-
* @property {string} [type] - Type of the plan
|
|
193
|
+
* @property {string} [type] - Type of the plan (enterprise or standard)
|
|
156
194
|
* @property {Object} [meta] - Additional metadata associated with the plan
|
|
157
|
-
* @property {
|
|
195
|
+
* @property {CountryRes} [country]
|
|
158
196
|
* @property {string[]} [company_ids] - Company IDs associated with the plan
|
|
159
197
|
* @property {string} [created_by] - ID of the user who created the plan
|
|
160
|
-
* @property {string} [current_status] - Current status of the plan
|
|
161
|
-
* @property {string} [channel_type] -
|
|
162
|
-
*
|
|
198
|
+
* @property {string} [current_status] - Current status of the plan (active, inactive)
|
|
199
|
+
* @property {string} [channel_type] - Ordering channel for which plan is
|
|
200
|
+
* created(fynd, ecomm, uniket etc)
|
|
201
|
+
* @property {string} [platform] - Platform associated with the plan (web, mobile, all)
|
|
163
202
|
* @property {string} [created_at] - Date and time when the plan was created
|
|
164
203
|
* @property {string} [modified_at] - Date and time when the plan was last modified
|
|
165
204
|
*/
|
|
205
|
+
/**
|
|
206
|
+
* @typedef TrialPlanDetails
|
|
207
|
+
* @property {string} [activated_by] - ID of the user who activated the trial plan
|
|
208
|
+
* @property {string} [updated_by] - ID of the user who updated the trial plan
|
|
209
|
+
* @property {PlanRecurring} [recurring]
|
|
210
|
+
* @property {boolean} [is_trial_plan] - Indicates whether the plan is a trial plan
|
|
211
|
+
* @property {string[]} [company_ids] - Company IDs associated with the trial plan
|
|
212
|
+
* @property {string} [created_by] - ID of the user who created the trial plan
|
|
213
|
+
* @property {string} [channel_type] - Ordering channel for which plan is
|
|
214
|
+
* created(ecomm, fynd etc)
|
|
215
|
+
* @property {string} [platform] - Platform associated with the trial plan(web ,
|
|
216
|
+
* mobile, all)
|
|
217
|
+
* @property {string} [plan_group] - Group to which the trial plan belongs
|
|
218
|
+
* @property {string[]} [tag_lines] - Tag lines associated with the trial plan
|
|
219
|
+
* @property {string} [currency] - Currency of the trial plan
|
|
220
|
+
* @property {boolean} [is_active] - Indicates whether the trial plan is active
|
|
221
|
+
* @property {boolean} [is_visible] - Indicates whether the trial plan is visible on ui
|
|
222
|
+
* @property {number} [trial_period] - Trial period of the trial plan in days
|
|
223
|
+
* @property {string[]} [addons] - Addons associated with the trial plan
|
|
224
|
+
* @property {string[]} [tags] - Tags associated with the trial plan
|
|
225
|
+
* @property {string} [type] - Type of the trial plan(public, company_specific)
|
|
226
|
+
* @property {CountryRes} [country]
|
|
227
|
+
* @property {string} [_id] - Unique identifier for the trial plan
|
|
228
|
+
* @property {string} [name] - Name of the trial plan
|
|
229
|
+
* @property {string} [description] - Description of the trial plan
|
|
230
|
+
* @property {number} [amount] - Amount of the trial plan
|
|
231
|
+
* @property {string} [product_suite_id] - Identifier of the product suite
|
|
232
|
+
* associated with the trial plan
|
|
233
|
+
* @property {string} [created_at] - Creation date of the trial plan
|
|
234
|
+
* @property {string} [modified_at] - Modification date of the trial plan
|
|
235
|
+
* @property {PlanTaxation} [taxation]
|
|
236
|
+
* @property {OneTimeFees} [one_time_fees]
|
|
237
|
+
* @property {CreditLine} [credit_line]
|
|
238
|
+
* @property {string} [current_status] - Current status of the trial plan
|
|
239
|
+
* @property {PlanMeta} [meta]
|
|
240
|
+
* @property {ComponentsSchema[]} [components] - Components associated with the trial plan
|
|
241
|
+
*/
|
|
166
242
|
declare class BillingPublicModel {
|
|
167
243
|
}
|
|
168
244
|
declare namespace BillingPublicModel {
|
|
169
|
-
export { ResourceNotFound, PlanRecurring, DetailList, PlanTaxation, OneTimeFees, CreditLine, PlanMeta, FeatureConfig, PlanConfig, FreeTier, TransformQuantity, ComponentsSchema, PlanDetails, Recurring, Taxation, PlanList };
|
|
245
|
+
export { TenureConfig, TenureConfigData, TenureConfigResponse, ResourceNotFound, PlanRecurring, PlanTypes, DetailList, PlanTaxation, CountryRes, OneTimeFees, CreditLine, PlanMeta, FeatureConfig, PlanConfig, FreeTier, TransformQuantity, ComponentsSchema, PlanDetails, Recurring, Taxation, PlanList, TrialPlanDetails };
|
|
170
246
|
}
|
|
247
|
+
/** @returns {TenureConfig} */
|
|
248
|
+
declare function TenureConfig(): TenureConfig;
|
|
249
|
+
type TenureConfig = {
|
|
250
|
+
/**
|
|
251
|
+
* - Display name for the tenure
|
|
252
|
+
* configuration(like "Monthly", "Half Yearly", "Yearly")
|
|
253
|
+
*/
|
|
254
|
+
display_name?: string;
|
|
255
|
+
/**
|
|
256
|
+
* - Description of the tenure configuration
|
|
257
|
+
*/
|
|
258
|
+
description?: string;
|
|
259
|
+
/**
|
|
260
|
+
* - Indicates whether the tenure configuration is active
|
|
261
|
+
*/
|
|
262
|
+
is_active?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* - Slug identifier that uniquely identifies the
|
|
265
|
+
* tenure configuration
|
|
266
|
+
*/
|
|
267
|
+
slug?: string;
|
|
268
|
+
};
|
|
269
|
+
/** @returns {TenureConfigData} */
|
|
270
|
+
declare function TenureConfigData(): TenureConfigData;
|
|
271
|
+
type TenureConfigData = {
|
|
272
|
+
/**
|
|
273
|
+
* - Country associated with the tenure configuration
|
|
274
|
+
*/
|
|
275
|
+
country?: string;
|
|
276
|
+
/**
|
|
277
|
+
* - Array of tenure configurations
|
|
278
|
+
*/
|
|
279
|
+
tenure_config?: TenureConfig[];
|
|
280
|
+
};
|
|
281
|
+
/** @returns {TenureConfigResponse} */
|
|
282
|
+
declare function TenureConfigResponse(): TenureConfigResponse;
|
|
283
|
+
type TenureConfigResponse = {
|
|
284
|
+
/**
|
|
285
|
+
* - Indicates whether the request was successful
|
|
286
|
+
*/
|
|
287
|
+
success?: boolean;
|
|
288
|
+
data?: TenureConfigData;
|
|
289
|
+
};
|
|
171
290
|
/** @returns {ResourceNotFound} */
|
|
172
291
|
declare function ResourceNotFound(): ResourceNotFound;
|
|
173
292
|
type ResourceNotFound = {
|
|
@@ -179,130 +298,375 @@ type ResourceNotFound = {
|
|
|
179
298
|
/** @returns {PlanRecurring} */
|
|
180
299
|
declare function PlanRecurring(): PlanRecurring;
|
|
181
300
|
type PlanRecurring = {
|
|
301
|
+
/**
|
|
302
|
+
* - Interval for the recurring plan
|
|
303
|
+
*/
|
|
182
304
|
interval?: string;
|
|
305
|
+
/**
|
|
306
|
+
* - Number of intervals for the recurring plan
|
|
307
|
+
*/
|
|
183
308
|
interval_count?: number;
|
|
309
|
+
/**
|
|
310
|
+
* - Aggregate usage type for the recurring plan
|
|
311
|
+
*/
|
|
184
312
|
aggregate_usage?: string;
|
|
313
|
+
/**
|
|
314
|
+
* - Usage type for the recurring plan (like metered etc)
|
|
315
|
+
*/
|
|
185
316
|
usage_type?: string;
|
|
186
317
|
};
|
|
318
|
+
/** @returns {PlanTypes} */
|
|
319
|
+
declare function PlanTypes(): PlanTypes;
|
|
320
|
+
type PlanTypes = {
|
|
321
|
+
/**
|
|
322
|
+
* - Monthly plan details
|
|
323
|
+
*/
|
|
324
|
+
month?: PlanDetails[];
|
|
325
|
+
/**
|
|
326
|
+
* - Quarterly plan details
|
|
327
|
+
*/
|
|
328
|
+
quarter?: PlanDetails[];
|
|
329
|
+
/**
|
|
330
|
+
* - Half-yearly plan details
|
|
331
|
+
*/
|
|
332
|
+
half_year?: PlanDetails[];
|
|
333
|
+
/**
|
|
334
|
+
* - Yearly plan details
|
|
335
|
+
*/
|
|
336
|
+
year?: PlanDetails[];
|
|
337
|
+
};
|
|
187
338
|
/** @returns {DetailList} */
|
|
188
339
|
declare function DetailList(): DetailList;
|
|
189
340
|
type DetailList = {
|
|
190
|
-
plans?:
|
|
191
|
-
|
|
341
|
+
plans?: PlanTypes;
|
|
342
|
+
trial_plan?: TrialPlanDetails;
|
|
192
343
|
};
|
|
193
344
|
/** @returns {PlanTaxation} */
|
|
194
345
|
declare function PlanTaxation(): PlanTaxation;
|
|
195
346
|
type PlanTaxation = {
|
|
347
|
+
/**
|
|
348
|
+
* - GST percentage applied to the plan
|
|
349
|
+
*/
|
|
196
350
|
gst?: number;
|
|
197
351
|
};
|
|
352
|
+
/** @returns {CountryRes} */
|
|
353
|
+
declare function CountryRes(): CountryRes;
|
|
354
|
+
type CountryRes = {
|
|
355
|
+
/**
|
|
356
|
+
* - Name of the country
|
|
357
|
+
*/
|
|
358
|
+
name?: string;
|
|
359
|
+
/**
|
|
360
|
+
* - Country code
|
|
361
|
+
*/
|
|
362
|
+
code?: string;
|
|
363
|
+
};
|
|
198
364
|
/** @returns {OneTimeFees} */
|
|
199
365
|
declare function OneTimeFees(): OneTimeFees;
|
|
200
366
|
type OneTimeFees = {
|
|
367
|
+
/**
|
|
368
|
+
* - One time Development fees
|
|
369
|
+
*/
|
|
201
370
|
developement?: number;
|
|
371
|
+
/**
|
|
372
|
+
* - One time Marketing fees
|
|
373
|
+
*/
|
|
202
374
|
marketing?: number;
|
|
203
375
|
};
|
|
204
376
|
/** @returns {CreditLine} */
|
|
205
377
|
declare function CreditLine(): CreditLine;
|
|
206
378
|
type CreditLine = {
|
|
379
|
+
/**
|
|
380
|
+
* - Indicates whether the credit line is active
|
|
381
|
+
*/
|
|
207
382
|
is_active?: boolean;
|
|
208
383
|
};
|
|
209
384
|
/** @returns {PlanMeta} */
|
|
210
385
|
declare function PlanMeta(): PlanMeta;
|
|
211
386
|
type PlanMeta = {
|
|
387
|
+
/**
|
|
388
|
+
* - Display name for the plan platform
|
|
389
|
+
*/
|
|
212
390
|
plan_platform_display_name?: string;
|
|
213
391
|
};
|
|
214
392
|
/** @returns {FeatureConfig} */
|
|
215
393
|
declare function FeatureConfig(): FeatureConfig;
|
|
216
394
|
type FeatureConfig = {
|
|
395
|
+
/**
|
|
396
|
+
* - Indicates whether the feature is enabled
|
|
397
|
+
*/
|
|
217
398
|
enabled?: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* - Limit for the feature
|
|
401
|
+
*/
|
|
218
402
|
limit?: number;
|
|
403
|
+
/**
|
|
404
|
+
* - Hard limit for the feature
|
|
405
|
+
*/
|
|
219
406
|
hard_limit?: number;
|
|
407
|
+
/**
|
|
408
|
+
* - Soft limit for the feature
|
|
409
|
+
*/
|
|
220
410
|
soft_limit?: number;
|
|
221
411
|
};
|
|
222
412
|
/** @returns {PlanConfig} */
|
|
223
413
|
declare function PlanConfig(): PlanConfig;
|
|
224
414
|
type PlanConfig = {
|
|
415
|
+
/**
|
|
416
|
+
* - Indicates whether the plan configuration is active
|
|
417
|
+
*/
|
|
225
418
|
is_active?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* - Text to display plan configuration
|
|
421
|
+
*/
|
|
226
422
|
display_text?: string;
|
|
423
|
+
/**
|
|
424
|
+
* - Indicates whether the plan configuration is default
|
|
425
|
+
*/
|
|
227
426
|
is_default?: boolean;
|
|
427
|
+
/**
|
|
428
|
+
* - Type of processing for the plan configuration
|
|
429
|
+
*/
|
|
228
430
|
processing_type?: string;
|
|
431
|
+
/**
|
|
432
|
+
* - Tags associated with the plan configuration
|
|
433
|
+
*/
|
|
229
434
|
tags?: string[];
|
|
230
435
|
feature_config?: FeatureConfig;
|
|
436
|
+
/**
|
|
437
|
+
* - Unique identifier for the plan configuration
|
|
438
|
+
*/
|
|
231
439
|
_id?: string;
|
|
440
|
+
/**
|
|
441
|
+
* - Component identifier associated with the
|
|
442
|
+
* plan configuration
|
|
443
|
+
*/
|
|
232
444
|
component_id?: string;
|
|
445
|
+
/**
|
|
446
|
+
* - Creation date of the plan configuration
|
|
447
|
+
*/
|
|
233
448
|
created_at?: string;
|
|
449
|
+
/**
|
|
450
|
+
* - Modification date of the plan configuration
|
|
451
|
+
*/
|
|
234
452
|
modified_at?: string;
|
|
453
|
+
/**
|
|
454
|
+
* - Version number of the plan configuration
|
|
455
|
+
*/
|
|
235
456
|
__v?: number;
|
|
457
|
+
/**
|
|
458
|
+
* - Billing scheme for the plan configuration
|
|
459
|
+
*/
|
|
236
460
|
billing_scheme?: string;
|
|
461
|
+
/**
|
|
462
|
+
* - Billing type for the plan configuration
|
|
463
|
+
*/
|
|
237
464
|
bill_type?: string;
|
|
465
|
+
/**
|
|
466
|
+
* - Price UI type for the plan configuration
|
|
467
|
+
*/
|
|
238
468
|
price_ui_type?: string;
|
|
239
469
|
recurring?: PlanRecurring;
|
|
240
470
|
transform_quantity?: TransformQuantity;
|
|
241
471
|
free_tier?: FreeTier;
|
|
472
|
+
/**
|
|
473
|
+
* - Currency used in the plan configuration
|
|
474
|
+
*/
|
|
242
475
|
currency?: string;
|
|
476
|
+
/**
|
|
477
|
+
* - Unit amount for the plan configuration
|
|
478
|
+
*/
|
|
243
479
|
unit_amount?: number;
|
|
480
|
+
/**
|
|
481
|
+
* - Quantity for the plan configuration
|
|
482
|
+
*/
|
|
244
483
|
quantity?: number;
|
|
484
|
+
/**
|
|
485
|
+
* - Price type for the plan configuration
|
|
486
|
+
*/
|
|
245
487
|
price_type?: string;
|
|
488
|
+
/**
|
|
489
|
+
* - An array of pricing tiers that apply based on
|
|
490
|
+
* quantity or usage. Each tier can define a maximum limit (`up_to`), an
|
|
491
|
+
* additional flat fee (`flat_amount`), and a price per unit (`unit_amount`)
|
|
492
|
+
*/
|
|
246
493
|
tiers?: any[];
|
|
247
494
|
};
|
|
248
495
|
/** @returns {FreeTier} */
|
|
249
496
|
declare function FreeTier(): FreeTier;
|
|
250
497
|
type FreeTier = {
|
|
498
|
+
/**
|
|
499
|
+
* - Type of the free tier
|
|
500
|
+
*/
|
|
251
501
|
type?: string;
|
|
502
|
+
/**
|
|
503
|
+
* - Value of the free tier type
|
|
504
|
+
*/
|
|
252
505
|
value?: number;
|
|
253
506
|
};
|
|
254
507
|
/** @returns {TransformQuantity} */
|
|
255
508
|
declare function TransformQuantity(): TransformQuantity;
|
|
256
509
|
type TransformQuantity = {
|
|
510
|
+
/**
|
|
511
|
+
* - Divide by value for the quantity transformation
|
|
512
|
+
*/
|
|
257
513
|
divide_by?: number;
|
|
514
|
+
/**
|
|
515
|
+
* - Rounding method for the quantity transformation
|
|
516
|
+
*/
|
|
258
517
|
round?: string;
|
|
259
518
|
};
|
|
260
519
|
/** @returns {ComponentsSchema} */
|
|
261
520
|
declare function ComponentsSchema(): ComponentsSchema;
|
|
262
521
|
type ComponentsSchema = {
|
|
522
|
+
/**
|
|
523
|
+
* - Name of the component
|
|
524
|
+
*/
|
|
263
525
|
name?: string;
|
|
526
|
+
/**
|
|
527
|
+
* - Slug identifier for the component
|
|
528
|
+
*/
|
|
264
529
|
slug?: string;
|
|
530
|
+
/**
|
|
531
|
+
* - Description of the component
|
|
532
|
+
*/
|
|
265
533
|
description?: string;
|
|
534
|
+
/**
|
|
535
|
+
* - Group to which the component belongs
|
|
536
|
+
*/
|
|
266
537
|
group?: string;
|
|
538
|
+
/**
|
|
539
|
+
* - Icon associated with the component
|
|
540
|
+
*/
|
|
267
541
|
icon?: string;
|
|
542
|
+
/**
|
|
543
|
+
* - Links associated with the component
|
|
544
|
+
*/
|
|
268
545
|
links?: any;
|
|
269
546
|
config?: PlanConfig;
|
|
547
|
+
/**
|
|
548
|
+
* - Indicates whether the component is active
|
|
549
|
+
*/
|
|
270
550
|
is_active?: boolean;
|
|
551
|
+
/**
|
|
552
|
+
* - Display text for the component
|
|
553
|
+
*/
|
|
271
554
|
display_text?: string;
|
|
272
555
|
};
|
|
273
556
|
/** @returns {PlanDetails} */
|
|
274
557
|
declare function PlanDetails(): PlanDetails;
|
|
275
558
|
type PlanDetails = {
|
|
276
|
-
|
|
559
|
+
/**
|
|
560
|
+
* - ID of the user who activated the plan
|
|
561
|
+
*/
|
|
562
|
+
activated_by?: string;
|
|
563
|
+
/**
|
|
564
|
+
* - ID of the user who updated the plan
|
|
565
|
+
*/
|
|
277
566
|
updated_by?: string;
|
|
278
567
|
recurring?: PlanRecurring;
|
|
568
|
+
/**
|
|
569
|
+
* - Indicates whether the plan is a trial plan
|
|
570
|
+
*/
|
|
279
571
|
is_trial_plan?: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* - Company IDs associated with the plan
|
|
574
|
+
*/
|
|
280
575
|
company_ids?: string[];
|
|
576
|
+
/**
|
|
577
|
+
* - ID of the user who created the plan
|
|
578
|
+
*/
|
|
281
579
|
created_by?: string;
|
|
580
|
+
/**
|
|
581
|
+
* - Ordering channel associated with the
|
|
582
|
+
* plan(e.g, ecomm, fynd)
|
|
583
|
+
*/
|
|
282
584
|
channel_type?: string;
|
|
585
|
+
/**
|
|
586
|
+
* - Platform associated with the plan(e.g, web, mobile)
|
|
587
|
+
*/
|
|
283
588
|
platform?: string;
|
|
589
|
+
/**
|
|
590
|
+
* - Group to which the plan belongs
|
|
591
|
+
*/
|
|
284
592
|
plan_group?: string;
|
|
593
|
+
/**
|
|
594
|
+
* - Tag lines associated with the plan
|
|
595
|
+
*/
|
|
285
596
|
tag_lines?: string[];
|
|
597
|
+
/**
|
|
598
|
+
* - Currency of the plan
|
|
599
|
+
*/
|
|
286
600
|
currency?: string;
|
|
601
|
+
/**
|
|
602
|
+
* - Indicates whether the plan is active
|
|
603
|
+
*/
|
|
287
604
|
is_active?: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* - Indicates whether the plan is visible on ui
|
|
607
|
+
*/
|
|
288
608
|
is_visible?: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* - Trial period of the plan
|
|
611
|
+
*/
|
|
289
612
|
trial_period?: number;
|
|
613
|
+
/**
|
|
614
|
+
* - Addons associated with the plan
|
|
615
|
+
*/
|
|
290
616
|
addons?: string[];
|
|
617
|
+
/**
|
|
618
|
+
* - Tags associated with the plan
|
|
619
|
+
*/
|
|
291
620
|
tags?: string[];
|
|
621
|
+
/**
|
|
622
|
+
* - Type of the plan
|
|
623
|
+
*/
|
|
292
624
|
type?: string;
|
|
293
|
-
country?:
|
|
625
|
+
country?: CountryRes;
|
|
626
|
+
/**
|
|
627
|
+
* - Unique identifier for the plan."
|
|
628
|
+
*/
|
|
294
629
|
_id?: string;
|
|
630
|
+
/**
|
|
631
|
+
* - Name of the plan
|
|
632
|
+
*/
|
|
295
633
|
name?: string;
|
|
634
|
+
/**
|
|
635
|
+
* - Description of the plan
|
|
636
|
+
*/
|
|
296
637
|
description?: string;
|
|
638
|
+
/**
|
|
639
|
+
* - Amount of the plan
|
|
640
|
+
*/
|
|
297
641
|
amount?: number;
|
|
642
|
+
/**
|
|
643
|
+
* - Identifier of the product suite
|
|
644
|
+
* associated with the plan
|
|
645
|
+
*/
|
|
298
646
|
product_suite_id?: string;
|
|
647
|
+
/**
|
|
648
|
+
* - Creation date of the plan
|
|
649
|
+
*/
|
|
299
650
|
created_at?: string;
|
|
651
|
+
/**
|
|
652
|
+
* - Modification date of the plan
|
|
653
|
+
*/
|
|
300
654
|
modified_at?: string;
|
|
301
655
|
taxation?: PlanTaxation;
|
|
302
656
|
one_time_fees?: OneTimeFees;
|
|
303
657
|
credit_line?: CreditLine;
|
|
658
|
+
/**
|
|
659
|
+
* - Current status of the plan
|
|
660
|
+
*/
|
|
304
661
|
current_status?: string;
|
|
662
|
+
/**
|
|
663
|
+
* - Id of the User who has approved the plan
|
|
664
|
+
*/
|
|
665
|
+
approved_by?: string;
|
|
305
666
|
meta?: PlanMeta;
|
|
667
|
+
/**
|
|
668
|
+
* - Components associated with the plan
|
|
669
|
+
*/
|
|
306
670
|
components?: ComponentsSchema[];
|
|
307
671
|
};
|
|
308
672
|
/** @returns {Recurring} */
|
|
@@ -321,14 +685,20 @@ type Recurring = {
|
|
|
321
685
|
declare function Taxation(): Taxation;
|
|
322
686
|
type Taxation = {
|
|
323
687
|
/**
|
|
324
|
-
* - GST percentage
|
|
688
|
+
* - GST percentage applied to the plan
|
|
325
689
|
*/
|
|
326
690
|
gst?: number;
|
|
327
691
|
};
|
|
328
692
|
/** @returns {PlanList} */
|
|
329
693
|
declare function PlanList(): PlanList;
|
|
330
694
|
type PlanList = {
|
|
695
|
+
/**
|
|
696
|
+
* - ID of the user who approved the plan
|
|
697
|
+
*/
|
|
331
698
|
approved_by?: string;
|
|
699
|
+
/**
|
|
700
|
+
* - ID of the user who updated the plan
|
|
701
|
+
*/
|
|
332
702
|
updated_by?: string;
|
|
333
703
|
recurring?: Recurring;
|
|
334
704
|
taxation?: Taxation;
|
|
@@ -356,9 +726,13 @@ type PlanList = {
|
|
|
356
726
|
*/
|
|
357
727
|
description?: string;
|
|
358
728
|
/**
|
|
359
|
-
* - Group to which
|
|
729
|
+
* - Group to which plan belongs
|
|
360
730
|
*/
|
|
361
731
|
plan_group?: string;
|
|
732
|
+
/**
|
|
733
|
+
* - Group id to which plan belongs
|
|
734
|
+
*/
|
|
735
|
+
plan_group_id?: string;
|
|
362
736
|
/**
|
|
363
737
|
* - Tag lines associated with the plan
|
|
364
738
|
*/
|
|
@@ -376,11 +750,11 @@ type PlanList = {
|
|
|
376
750
|
*/
|
|
377
751
|
is_active?: boolean;
|
|
378
752
|
/**
|
|
379
|
-
* - Indicates whether the plan is visible
|
|
753
|
+
* - Indicates whether the plan is visible on ui
|
|
380
754
|
*/
|
|
381
755
|
is_visible?: boolean;
|
|
382
756
|
/**
|
|
383
|
-
* - Trial period of the plan
|
|
757
|
+
* - Trial period of the plan in days
|
|
384
758
|
*/
|
|
385
759
|
trial_period?: number;
|
|
386
760
|
/**
|
|
@@ -392,17 +766,14 @@ type PlanList = {
|
|
|
392
766
|
*/
|
|
393
767
|
tags?: string[];
|
|
394
768
|
/**
|
|
395
|
-
* - Type of the plan
|
|
769
|
+
* - Type of the plan (enterprise or standard)
|
|
396
770
|
*/
|
|
397
771
|
type?: string;
|
|
398
772
|
/**
|
|
399
773
|
* - Additional metadata associated with the plan
|
|
400
774
|
*/
|
|
401
775
|
meta?: any;
|
|
402
|
-
|
|
403
|
-
* - Country associated with the plan
|
|
404
|
-
*/
|
|
405
|
-
country?: string;
|
|
776
|
+
country?: CountryRes;
|
|
406
777
|
/**
|
|
407
778
|
* - Company IDs associated with the plan
|
|
408
779
|
*/
|
|
@@ -412,15 +783,16 @@ type PlanList = {
|
|
|
412
783
|
*/
|
|
413
784
|
created_by?: string;
|
|
414
785
|
/**
|
|
415
|
-
* - Current status of the plan
|
|
786
|
+
* - Current status of the plan (active, inactive)
|
|
416
787
|
*/
|
|
417
788
|
current_status?: string;
|
|
418
789
|
/**
|
|
419
|
-
* -
|
|
790
|
+
* - Ordering channel for which plan is
|
|
791
|
+
* created(fynd, ecomm, uniket etc)
|
|
420
792
|
*/
|
|
421
793
|
channel_type?: string;
|
|
422
794
|
/**
|
|
423
|
-
* - Platform associated with the plan
|
|
795
|
+
* - Platform associated with the plan (web, mobile, all)
|
|
424
796
|
*/
|
|
425
797
|
platform?: string;
|
|
426
798
|
/**
|
|
@@ -432,3 +804,116 @@ type PlanList = {
|
|
|
432
804
|
*/
|
|
433
805
|
modified_at?: string;
|
|
434
806
|
};
|
|
807
|
+
/** @returns {TrialPlanDetails} */
|
|
808
|
+
declare function TrialPlanDetails(): TrialPlanDetails;
|
|
809
|
+
type TrialPlanDetails = {
|
|
810
|
+
/**
|
|
811
|
+
* - ID of the user who activated the trial plan
|
|
812
|
+
*/
|
|
813
|
+
activated_by?: string;
|
|
814
|
+
/**
|
|
815
|
+
* - ID of the user who updated the trial plan
|
|
816
|
+
*/
|
|
817
|
+
updated_by?: string;
|
|
818
|
+
recurring?: PlanRecurring;
|
|
819
|
+
/**
|
|
820
|
+
* - Indicates whether the plan is a trial plan
|
|
821
|
+
*/
|
|
822
|
+
is_trial_plan?: boolean;
|
|
823
|
+
/**
|
|
824
|
+
* - Company IDs associated with the trial plan
|
|
825
|
+
*/
|
|
826
|
+
company_ids?: string[];
|
|
827
|
+
/**
|
|
828
|
+
* - ID of the user who created the trial plan
|
|
829
|
+
*/
|
|
830
|
+
created_by?: string;
|
|
831
|
+
/**
|
|
832
|
+
* - Ordering channel for which plan is
|
|
833
|
+
* created(ecomm, fynd etc)
|
|
834
|
+
*/
|
|
835
|
+
channel_type?: string;
|
|
836
|
+
/**
|
|
837
|
+
* - Platform associated with the trial plan(web ,
|
|
838
|
+
* mobile, all)
|
|
839
|
+
*/
|
|
840
|
+
platform?: string;
|
|
841
|
+
/**
|
|
842
|
+
* - Group to which the trial plan belongs
|
|
843
|
+
*/
|
|
844
|
+
plan_group?: string;
|
|
845
|
+
/**
|
|
846
|
+
* - Tag lines associated with the trial plan
|
|
847
|
+
*/
|
|
848
|
+
tag_lines?: string[];
|
|
849
|
+
/**
|
|
850
|
+
* - Currency of the trial plan
|
|
851
|
+
*/
|
|
852
|
+
currency?: string;
|
|
853
|
+
/**
|
|
854
|
+
* - Indicates whether the trial plan is active
|
|
855
|
+
*/
|
|
856
|
+
is_active?: boolean;
|
|
857
|
+
/**
|
|
858
|
+
* - Indicates whether the trial plan is visible on ui
|
|
859
|
+
*/
|
|
860
|
+
is_visible?: boolean;
|
|
861
|
+
/**
|
|
862
|
+
* - Trial period of the trial plan in days
|
|
863
|
+
*/
|
|
864
|
+
trial_period?: number;
|
|
865
|
+
/**
|
|
866
|
+
* - Addons associated with the trial plan
|
|
867
|
+
*/
|
|
868
|
+
addons?: string[];
|
|
869
|
+
/**
|
|
870
|
+
* - Tags associated with the trial plan
|
|
871
|
+
*/
|
|
872
|
+
tags?: string[];
|
|
873
|
+
/**
|
|
874
|
+
* - Type of the trial plan(public, company_specific)
|
|
875
|
+
*/
|
|
876
|
+
type?: string;
|
|
877
|
+
country?: CountryRes;
|
|
878
|
+
/**
|
|
879
|
+
* - Unique identifier for the trial plan
|
|
880
|
+
*/
|
|
881
|
+
_id?: string;
|
|
882
|
+
/**
|
|
883
|
+
* - Name of the trial plan
|
|
884
|
+
*/
|
|
885
|
+
name?: string;
|
|
886
|
+
/**
|
|
887
|
+
* - Description of the trial plan
|
|
888
|
+
*/
|
|
889
|
+
description?: string;
|
|
890
|
+
/**
|
|
891
|
+
* - Amount of the trial plan
|
|
892
|
+
*/
|
|
893
|
+
amount?: number;
|
|
894
|
+
/**
|
|
895
|
+
* - Identifier of the product suite
|
|
896
|
+
* associated with the trial plan
|
|
897
|
+
*/
|
|
898
|
+
product_suite_id?: string;
|
|
899
|
+
/**
|
|
900
|
+
* - Creation date of the trial plan
|
|
901
|
+
*/
|
|
902
|
+
created_at?: string;
|
|
903
|
+
/**
|
|
904
|
+
* - Modification date of the trial plan
|
|
905
|
+
*/
|
|
906
|
+
modified_at?: string;
|
|
907
|
+
taxation?: PlanTaxation;
|
|
908
|
+
one_time_fees?: OneTimeFees;
|
|
909
|
+
credit_line?: CreditLine;
|
|
910
|
+
/**
|
|
911
|
+
* - Current status of the trial plan
|
|
912
|
+
*/
|
|
913
|
+
current_status?: string;
|
|
914
|
+
meta?: PlanMeta;
|
|
915
|
+
/**
|
|
916
|
+
* - Components associated with the trial plan
|
|
917
|
+
*/
|
|
918
|
+
components?: ComponentsSchema[];
|
|
919
|
+
};
|