@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

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 (126) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +828 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  38. package/sdk/application/User/UserApplicationClient.js +4 -7
  39. package/sdk/application/User/UserApplicationModel.d.ts +769 -764
  40. package/sdk/application/User/UserApplicationModel.js +731 -741
  41. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  44. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  47. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  48. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  49. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  50. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  52. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  53. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  54. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  56. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
  58. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
  61. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
  62. package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
  63. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  64. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  65. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  66. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  71. package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
  72. package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
  73. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  74. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  75. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
  76. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  79. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
  81. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
  82. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
  83. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  84. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  85. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  86. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  87. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  88. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  89. package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
  90. package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
  91. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  92. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  93. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
  94. package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
  95. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  96. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  102. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  103. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  104. package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
  105. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  106. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  107. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  108. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  109. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  110. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  111. package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
  112. package/sdk/platform/User/UserPlatformModel.js +731 -661
  113. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  114. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  115. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  116. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  117. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  118. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  119. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  120. package/sdk/public/Content/ContentPublicModel.js +28 -28
  121. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  122. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  123. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  124. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  125. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  126. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -4,68 +4,50 @@ export = BillingPlatformModel;
4
4
  * @property {string} [message] - Failure message.
5
5
  */
6
6
  /**
7
- * @typedef CancelSubscriptionReq
8
- * @property {string} [product_suite]
9
- * @property {string} [subscription_id]
10
- * @property {string} [type]
11
- * @property {string} [unique_id]
12
- */
13
- /**
14
- * @typedef CancelSubscriptionRes
15
- * @property {Subscription} [data]
16
- * @property {boolean} [success]
7
+ * @typedef ResourceNotFound
8
+ * @property {string} [message] - Resource not found with {id}
17
9
  */
18
10
  /**
19
- * @typedef ChargeLineItem
20
- * @property {number} [capped_amount]
21
- * @property {boolean} [is_test]
22
- * @property {Object} [metadata]
23
- * @property {string} name
24
- * @property {EntityChargePrice} price
25
- * @property {string} pricing_type
26
- * @property {EntityChargeRecurring} [recurring]
27
- * @property {string} term
28
- * @property {number} [trial_days]
11
+ * @typedef InternalServerError
12
+ * @property {string} [message] - Internal server Server error
13
+ * @property {string} [code] - Error code
29
14
  */
30
15
  /**
31
16
  * @typedef CheckValidityResponse
32
- * @property {number} [discount_amount]
33
17
  * @property {boolean} [is_valid]
18
+ * @property {number} [discount_amount]
34
19
  */
35
20
  /**
36
- * @typedef CreateOneTimeCharge
37
- * @property {OneTimeChargeItem} charge
38
- * @property {boolean} [is_test]
39
- * @property {string} name
40
- * @property {string} return_url
41
- */
42
- /**
43
- * @typedef CreateOneTimeChargeResponse
44
- * @property {OneTimeChargeEntity} [charge]
45
- * @property {string} [confirm_url]
46
- */
47
- /**
48
- * @typedef CreateSubscriptionCharge
49
- * @property {boolean} [is_test]
50
- * @property {ChargeLineItem[]} line_items
51
- * @property {string} name
52
- * @property {string} return_url
53
- * @property {number} [trial_days]
21
+ * @typedef PlanRecurring
22
+ * @property {string} [interval]
23
+ * @property {number} [interval_count]
54
24
  */
55
25
  /**
56
- * @typedef CreateSubscriptionResponse
57
- * @property {string} [confirm_url]
58
- * @property {EntitySubscription} [subscription]
26
+ * @typedef Plan
27
+ * @property {PlanRecurring} [recurring]
28
+ * @property {boolean} [is_trial_plan]
29
+ * @property {string} [plan_group]
30
+ * @property {string[]} [tag_lines]
31
+ * @property {string} [currency]
32
+ * @property {boolean} [is_active]
33
+ * @property {boolean} [is_visible]
34
+ * @property {number} [trial_period]
35
+ * @property {string[]} [addons]
36
+ * @property {string[]} [tags]
37
+ * @property {string} [type]
38
+ * @property {string} [country]
39
+ * @property {string} [_id]
40
+ * @property {string} [name]
41
+ * @property {string} [description]
42
+ * @property {number} [amount]
43
+ * @property {string} [product_suite_id]
44
+ * @property {string} [created_at]
45
+ * @property {string} [modified_at]
59
46
  */
60
47
  /**
61
- * @typedef CurrentPeriod
62
- * @property {string} [end_date]
48
+ * @typedef SubscriptionTrialPeriod
63
49
  * @property {string} [start_date]
64
- */
65
- /**
66
- * @typedef Details
67
- * @property {Features[]} [features]
68
- * @property {FeeComponents[]} [fee_components]
50
+ * @property {string} [end_date]
69
51
  */
70
52
  /**
71
53
  * @typedef EntityChargePrice
@@ -77,457 +59,475 @@ export = BillingPlatformModel;
77
59
  * @property {string} interval
78
60
  */
79
61
  /**
80
- * @typedef EntityResponse
81
- * @property {Details[]} [items]
82
- * @property {number} [page]
83
- * @property {number} [page_size]
84
- * @property {boolean} [success]
62
+ * @typedef ChargeLineItem
63
+ * @property {string} name
64
+ * @property {string} term
65
+ * @property {string} pricing_type
66
+ * @property {EntityChargePrice} price
67
+ * @property {EntityChargeRecurring} [recurring]
68
+ * @property {number} [capped_amount]
69
+ * @property {number} [trial_days]
70
+ * @property {boolean} [is_test]
71
+ * @property {Object} [metadata]
85
72
  */
86
73
  /**
87
- * @typedef EntitySubscription
74
+ * @typedef CreateSubscriptionCharge
75
+ * @property {string} name
76
+ * @property {number} [trial_days]
77
+ * @property {ChargeLineItem[]} line_items
78
+ * @property {boolean} [is_test]
79
+ * @property {string} return_url
80
+ */
81
+ /**
82
+ * @typedef OneTimeChargeItem
83
+ * @property {string} name
84
+ * @property {string} [term]
85
+ * @property {string} pricing_type
86
+ * @property {EntityChargePrice} price
87
+ * @property {number} [capped_amount]
88
+ * @property {boolean} [is_test]
89
+ * @property {Object} [metadata]
90
+ */
91
+ /**
92
+ * @typedef CreateOneTimeCharge
93
+ * @property {string} name
94
+ * @property {OneTimeChargeItem} charge
95
+ * @property {boolean} [is_test]
96
+ * @property {string} return_url
97
+ */
98
+ /**
99
+ * @typedef CurrentPeriod
100
+ * @property {string} [start_date]
101
+ * @property {string} [end_date]
102
+ */
103
+ /**
104
+ * @typedef SubscriptionCharge
88
105
  * @property {string} [_id]
106
+ * @property {string} [name]
107
+ * @property {string} [term] - Brief description for a charge
108
+ * @property {string} [pricing_type]
109
+ * @property {EntityChargePrice} [price]
110
+ * @property {EntityChargeRecurring} [recurring]
111
+ * @property {number} [capped_amount]
89
112
  * @property {string} [activated_on]
90
113
  * @property {string} [cancelled_on]
91
- * @property {number} [company_id]
92
- * @property {SubscriptionCharge[]} [line_items]
114
+ * @property {string} [billing_date]
115
+ * @property {CurrentPeriod} [current_period]
116
+ * @property {string} [status]
117
+ * @property {boolean} [is_test]
93
118
  * @property {Object} [metadata]
119
+ */
120
+ /**
121
+ * @typedef EntitySubscription
122
+ * @property {string} [_id]
94
123
  * @property {string} [name]
95
124
  * @property {string} [status]
125
+ * @property {number} [company_id]
126
+ * @property {string} [activated_on]
127
+ * @property {string} [cancelled_on]
96
128
  * @property {number} [trial_days]
97
129
  * @property {SubscriptionTrialPeriod} [trial_period]
130
+ * @property {Object} [metadata]
131
+ * @property {SubscriptionCharge[]} [line_items]
98
132
  */
99
133
  /**
100
- * @typedef Features
101
- * @property {string} [description]
102
- * @property {string} [display_text]
103
- * @property {boolean} [enabled]
104
- * @property {string} [group]
134
+ * @typedef OneTimeChargeEntity
135
+ * @property {string} [_id]
105
136
  * @property {string} [name]
106
- * @property {string} [slug]
137
+ * @property {string} [status]
138
+ * @property {string} [activated_on]
139
+ * @property {string} [cancelled_on]
140
+ * @property {Object} [metadata]
141
+ * @property {string} [return_url]
142
+ * @property {boolean} [is_test]
143
+ * @property {string} [pricing_type]
144
+ * @property {string} [subscriber_id]
145
+ * @property {string} [entity_type]
146
+ * @property {string} [entity_id]
147
+ * @property {Object} [meta]
148
+ * @property {EntityChargePrice} [price]
107
149
  */
108
150
  /**
109
- * @typedef FeeComponents
110
- * @property {string[]} [brand]
111
- * @property {string} [business_lead]
112
- * @property {Object[]} [channel]
113
- * @property {Object[]} [components]
114
- * @property {string[]} [location]
115
- * @property {Object} [settle_cycle_period]
116
- * @property {string} [settlement_type]
151
+ * @typedef CreateOneTimeChargeResponse
152
+ * @property {OneTimeChargeEntity} [charge]
153
+ * @property {string} [confirm_url]
117
154
  */
118
155
  /**
119
- * @typedef InternalServerError
120
- * @property {string} [code] - Error code
121
- * @property {string} [message] - Internal server Server error
156
+ * @typedef CreateSubscriptionResponse
157
+ * @property {EntitySubscription} [subscription]
158
+ * @property {string} [confirm_url]
122
159
  */
123
160
  /**
124
- * @typedef Invoice
125
- * @property {InvoiceDetails} [invoice]
126
- * @property {InvoiceItems[]} [invoice_items]
161
+ * @typedef InvoiceDetailsPeriod
162
+ * @property {string} [start]
163
+ * @property {string} [end]
127
164
  */
128
165
  /**
129
- * @typedef InvoiceDetails
166
+ * @typedef InvoiceDetailsClient
167
+ * @property {string[]} [address_lines]
168
+ * @property {string} [name]
169
+ * @property {string} [email]
170
+ * @property {string} [phone]
171
+ */
172
+ /**
173
+ * @typedef InvoiceDetailsStatusTrail
130
174
  * @property {string} [_id]
131
- * @property {number} [attemp]
132
- * @property {boolean} [auto_advance]
175
+ * @property {string} [value]
176
+ * @property {string} [timestamp]
177
+ */
178
+ /**
179
+ * @typedef InvoicePaymentMethod
180
+ * @property {string} [pg_payment_method_id]
181
+ */
182
+ /**
183
+ * @typedef InvoiceDetails
184
+ * @property {InvoiceDetailsPeriod} [period]
133
185
  * @property {InvoiceDetailsClient} [client]
134
- * @property {string} [collection_method]
135
- * @property {string} [created_at]
186
+ * @property {boolean} [auto_advance]
136
187
  * @property {string} [currency]
137
- * @property {string} [current_status]
138
- * @property {string} [hash_identifier]
188
+ * @property {boolean} [paid]
189
+ * @property {number} [attemp]
190
+ * @property {string} [_id]
191
+ * @property {string} [collection_method]
192
+ * @property {string} [subscriber_id]
139
193
  * @property {string} [invoice_url]
140
- * @property {string} [modified_at]
141
- * @property {string} [next_action_time]
142
194
  * @property {string} [number]
143
- * @property {boolean} [paid]
144
- * @property {InvoicePaymentMethod} [payment_method]
145
- * @property {InvoiceDetailsPeriod} [period]
146
195
  * @property {Object} [pg_data]
147
196
  * @property {string} [receipt_number]
148
197
  * @property {string} [statement_descriptor]
198
+ * @property {string} [current_status]
149
199
  * @property {InvoiceDetailsStatusTrail[]} [status_trail]
150
- * @property {string} [subscriber_id]
151
- * @property {string} [subscription]
152
200
  * @property {number} [subtotal]
153
201
  * @property {number} [total]
202
+ * @property {string} [subscription]
203
+ * @property {string} [next_action_time]
204
+ * @property {string} [created_at]
205
+ * @property {string} [modified_at]
206
+ * @property {string} [hash_identifier]
207
+ * @property {InvoicePaymentMethod} [payment_method]
154
208
  */
155
209
  /**
156
- * @typedef InvoiceDetailsClient
157
- * @property {string[]} [address_lines]
158
- * @property {string} [email]
159
- * @property {string} [name]
160
- * @property {string} [phone]
161
- */
162
- /**
163
- * @typedef InvoiceDetailsPeriod
164
- * @property {string} [end]
165
- * @property {string} [start]
166
- */
167
- /**
168
- * @typedef InvoiceDetailsStatusTrail
169
- * @property {string} [_id]
170
- * @property {string} [timestamp]
171
- * @property {string} [value]
210
+ * @typedef InvoiceItemsPlanRecurring
211
+ * @property {string} [interval]
212
+ * @property {number} [interval_count]
172
213
  */
173
214
  /**
174
- * @typedef InvoiceItems
215
+ * @typedef InvoiceItemsPlan
216
+ * @property {InvoiceItemsPlanRecurring} [recurring]
217
+ * @property {boolean} [is_trial_plan]
218
+ * @property {string} [plan_group]
219
+ * @property {string[]} [tag_lines]
220
+ * @property {string} [currency]
221
+ * @property {boolean} [is_active]
222
+ * @property {boolean} [is_visible]
223
+ * @property {number} [trial_period]
224
+ * @property {string[]} [addons]
225
+ * @property {string[]} [tags]
226
+ * @property {string} [type]
227
+ * @property {string} [country]
175
228
  * @property {string} [_id]
229
+ * @property {string} [name]
230
+ * @property {string} [description]
176
231
  * @property {number} [amount]
232
+ * @property {string} [product_suite_id]
177
233
  * @property {string} [created_at]
178
- * @property {string} [currency]
179
- * @property {string} [description]
180
- * @property {string} [invoice_id]
181
234
  * @property {string} [modified_at]
182
- * @property {string} [name]
183
- * @property {InvoiceItemsPeriod} [period]
184
- * @property {InvoiceItemsPlan} [plan]
185
- * @property {number} [quantity]
186
- * @property {string} [type]
187
- * @property {number} [unit_amount]
188
235
  */
189
236
  /**
190
237
  * @typedef InvoiceItemsPeriod
191
- * @property {string} [end]
192
238
  * @property {string} [start]
239
+ * @property {string} [end]
193
240
  */
194
241
  /**
195
- * @typedef InvoiceItemsPlan
242
+ * @typedef InvoiceItems
196
243
  * @property {string} [_id]
197
- * @property {string[]} [addons]
198
- * @property {number} [amount]
199
- * @property {string} [country]
200
- * @property {string} [created_at]
201
244
  * @property {string} [currency]
202
- * @property {string} [description]
203
- * @property {boolean} [is_active]
204
- * @property {boolean} [is_trial_plan]
205
- * @property {boolean} [is_visible]
206
- * @property {string} [modified_at]
245
+ * @property {InvoiceItemsPlan} [plan]
207
246
  * @property {string} [name]
208
- * @property {string} [plan_group]
209
- * @property {string} [product_suite_id]
210
- * @property {InvoiceItemsPlanRecurring} [recurring]
211
- * @property {string[]} [tag_lines]
212
- * @property {string[]} [tags]
213
- * @property {number} [trial_period]
247
+ * @property {number} [quantity]
248
+ * @property {string} [description]
249
+ * @property {InvoiceItemsPeriod} [period]
250
+ * @property {number} [unit_amount]
251
+ * @property {number} [amount]
214
252
  * @property {string} [type]
253
+ * @property {string} [invoice_id]
254
+ * @property {string} [created_at]
255
+ * @property {string} [modified_at]
215
256
  */
216
257
  /**
217
- * @typedef InvoiceItemsPlanRecurring
218
- * @property {string} [interval]
219
- * @property {number} [interval_count]
258
+ * @typedef Invoice
259
+ * @property {InvoiceDetails} [invoice]
260
+ * @property {InvoiceItems[]} [invoice_items]
220
261
  */
221
262
  /**
222
- * @typedef InvoicePaymentMethod
223
- * @property {string} [pg_payment_method_id]
263
+ * @typedef InvoicesDataClient
264
+ * @property {string} [name]
265
+ * @property {string} [email]
266
+ * @property {string} [phone]
267
+ * @property {string[]} [address_lines]
224
268
  */
225
269
  /**
226
- * @typedef Invoices
227
- * @property {InvoicesData[]} [data]
228
- * @property {number} [end]
229
- * @property {number} [limit]
230
- * @property {number} [page]
231
- * @property {number} [start]
232
- * @property {number} [total]
270
+ * @typedef InvoicesDataPeriod
271
+ * @property {string} [start]
272
+ * @property {string} [end]
273
+ */
274
+ /**
275
+ * @typedef InvoicesDataPaymentMethod
276
+ * @property {string} [pg_payment_method_id]
233
277
  */
234
278
  /**
235
279
  * @typedef InvoicesData
236
280
  * @property {string} [_id]
237
- * @property {number} [attemp]
238
- * @property {boolean} [auto_advance]
239
281
  * @property {InvoicesDataClient} [client]
240
- * @property {string} [collection_method]
241
- * @property {string} [created_at]
282
+ * @property {boolean} [auto_advance]
242
283
  * @property {string} [currency]
243
- * @property {string} [current_status]
244
- * @property {string} [hash_identifier]
245
- * @property {InvoiceItems[]} [invoice_items]
284
+ * @property {boolean} [paid]
285
+ * @property {number} [attemp]
286
+ * @property {string} [collection_method]
287
+ * @property {string} [subscriber_id]
246
288
  * @property {string} [invoice_url]
247
- * @property {string} [modified_at]
248
- * @property {string} [next_action_time]
249
289
  * @property {string} [number]
250
- * @property {boolean} [paid]
251
- * @property {InvoicesDataPaymentMethod} [payment_method]
252
- * @property {InvoicesDataPeriod} [period]
253
290
  * @property {Object} [pg_data]
291
+ * @property {InvoicesDataPeriod} [period]
254
292
  * @property {string} [receipt_number]
255
293
  * @property {string} [statement_descriptor]
294
+ * @property {string} [current_status]
256
295
  * @property {InvoiceDetailsStatusTrail[]} [status_trail]
257
- * @property {string} [subscriber_id]
258
- * @property {string} [subscription]
259
296
  * @property {number} [subtotal]
260
297
  * @property {number} [total]
298
+ * @property {string} [subscription]
299
+ * @property {string} [next_action_time]
300
+ * @property {string} [created_at]
301
+ * @property {string} [modified_at]
302
+ * @property {string} [hash_identifier]
303
+ * @property {InvoicesDataPaymentMethod} [payment_method]
304
+ * @property {InvoiceItems[]} [invoice_items]
261
305
  */
262
306
  /**
263
- * @typedef InvoicesDataClient
264
- * @property {string[]} [address_lines]
265
- * @property {string} [email]
266
- * @property {string} [name]
267
- * @property {string} [phone]
268
- */
269
- /**
270
- * @typedef InvoicesDataPaymentMethod
271
- * @property {string} [pg_payment_method_id]
307
+ * @typedef Invoices
308
+ * @property {InvoicesData[]} [data]
309
+ * @property {number} [start]
310
+ * @property {number} [end]
311
+ * @property {number} [limit]
312
+ * @property {number} [page]
313
+ * @property {number} [total]
272
314
  */
273
315
  /**
274
- * @typedef InvoicesDataPeriod
275
- * @property {string} [end]
276
- * @property {string} [start]
316
+ * @typedef Phone
317
+ * @property {string} [phone_number]
318
+ * @property {string} [phone_country_code]
277
319
  */
278
320
  /**
279
- * @typedef Meta
280
- * @property {boolean} [is_custom_plan]
281
- * @property {boolean} [is_plan_upgrade]
282
- * @property {boolean} [subscribe]
321
+ * @typedef SubscriptionBillingAddress
322
+ * @property {string} [country]
323
+ * @property {string} [state]
324
+ * @property {string} [city]
325
+ * @property {string} [line1]
326
+ * @property {string} [line2]
327
+ * @property {string} [postal_code]
283
328
  */
284
329
  /**
285
- * @typedef OneTimeChargeEntity
330
+ * @typedef SubscriptionCustomer
331
+ * @property {Phone} [phone]
332
+ * @property {SubscriptionBillingAddress} [billing_address]
286
333
  * @property {string} [_id]
287
- * @property {string} [activated_on]
288
- * @property {string} [cancelled_on]
289
- * @property {string} [entity_id]
290
- * @property {string} [entity_type]
291
- * @property {boolean} [is_test]
292
- * @property {Object} [meta]
293
- * @property {Object} [metadata]
334
+ * @property {string} [unique_id]
335
+ * @property {string} [type]
294
336
  * @property {string} [name]
295
- * @property {EntityChargePrice} [price]
296
- * @property {string} [pricing_type]
297
- * @property {string} [return_url]
298
- * @property {string} [status]
299
- * @property {string} [subscriber_id]
300
- */
301
- /**
302
- * @typedef OneTimeChargeItem
303
- * @property {number} [capped_amount]
304
- * @property {boolean} [is_test]
305
- * @property {Object} [metadata]
306
- * @property {string} name
307
- * @property {EntityChargePrice} price
308
- * @property {string} pricing_type
309
- * @property {string} [term]
310
- */
311
- /**
312
- * @typedef Phone
313
- * @property {string} [phone_country_code]
314
- * @property {string} [phone_number]
315
- */
316
- /**
317
- * @typedef Plan
318
- * @property {string} [_id]
319
- * @property {string[]} [addons]
320
- * @property {number} [amount]
321
- * @property {string} [country]
337
+ * @property {string} [email]
322
338
  * @property {string} [created_at]
323
- * @property {string} [currency]
324
- * @property {string} [description]
325
- * @property {boolean} [is_active]
326
- * @property {boolean} [is_trial_plan]
327
- * @property {boolean} [is_visible]
328
339
  * @property {string} [modified_at]
329
- * @property {string} [name]
330
- * @property {string} [plan_group]
331
- * @property {string} [product_suite_id]
332
- * @property {PlanRecurring} [recurring]
333
- * @property {string[]} [tag_lines]
334
- * @property {string[]} [tags]
335
- * @property {number} [trial_period]
340
+ * @property {Object} [data]
341
+ */
342
+ /**
343
+ * @typedef SubscriptionCustomerCreate
344
+ * @property {Phone} [phone]
345
+ * @property {SubscriptionBillingAddress} [billing_address]
346
+ * @property {string} [unique_id]
336
347
  * @property {string} [type]
348
+ * @property {string} [name]
349
+ * @property {string} [email]
337
350
  */
338
351
  /**
339
- * @typedef PlanRecurring
340
- * @property {string} [interval]
341
- * @property {number} [interval_count]
352
+ * @typedef SubscriptionCurrentPeriod
353
+ * @property {string} [start]
354
+ * @property {string} [end]
342
355
  */
343
356
  /**
344
- * @typedef PlanStatusUpdateReq
345
- * @property {string} [plan_id]
346
- * @property {string} [reason]
347
- * @property {string} [seller_status]
357
+ * @typedef SubscriptionPauseCollection
358
+ * @property {string} [behavior]
359
+ * @property {string} [resume_at]
348
360
  */
349
361
  /**
350
- * @typedef ResourceNotFound
351
- * @property {string} [message] - Resource not found with {id}
362
+ * @typedef SubscriptionTrial
363
+ * @property {string} [start]
364
+ * @property {string} [end]
352
365
  */
353
366
  /**
354
- * @typedef SubscribePlanRes
355
- * @property {string} [current_status]
356
- * @property {Meta} [meta]
357
- * @property {string} [redirect_url]
358
- * @property {string} [transaction_id]
367
+ * @typedef SubscriptionInvoiceSettings
368
+ * @property {boolean} [generation]
369
+ * @property {boolean} [charging]
359
370
  */
360
371
  /**
361
372
  * @typedef Subscription
362
- * @property {string} [_id]
363
- * @property {boolean} [cancel_at_period_end]
364
- * @property {string} [channel_type]
365
- * @property {string} [collection_method]
366
- * @property {string} [created_at]
367
373
  * @property {SubscriptionCurrentPeriod} [current_period]
368
- * @property {string} [current_status]
374
+ * @property {SubscriptionPauseCollection} [pause_collection]
375
+ * @property {SubscriptionTrial} [trial]
369
376
  * @property {SubscriptionInvoiceSettings} [invoice_settings]
370
377
  * @property {boolean} [is_active]
371
- * @property {string} [latest_invoice]
372
- * @property {string} [modified_at]
373
- * @property {SubscriptionPauseCollection} [pause_collection]
374
- * @property {Plan} [plan_data]
378
+ * @property {boolean} [cancel_at_period_end]
379
+ * @property {string} [_id]
380
+ * @property {string} [subscriber_id]
375
381
  * @property {string} [plan_id]
376
382
  * @property {string} [product_suite_id]
377
- * @property {string} [subscriber_id]
378
- * @property {SubscriptionTrial} [trial]
383
+ * @property {Plan} [plan_data]
384
+ * @property {string} [current_status]
385
+ * @property {string} [collection_method]
386
+ * @property {string} [created_at]
387
+ * @property {string} [modified_at]
388
+ * @property {string} [latest_invoice]
389
+ * @property {string} [channel_type]
379
390
  */
380
391
  /**
381
- * @typedef SubscriptionActivateReq
382
- * @property {string} [payment_method]
383
- * @property {string} [plan_id]
384
- * @property {string} [product_suite]
385
- * @property {string} [type]
386
- * @property {string} [unique_id]
392
+ * @typedef SubscriptionStatus
393
+ * @property {boolean} [is_enabled]
394
+ * @property {Subscription} [subscription]
395
+ * @property {InvoicesData} [latest_invoice]
396
+ * @property {Plan} [next_plan]
397
+ * @property {Subscription[]} [current_subscriptions]
398
+ * @property {string} [mandate_amount]
387
399
  */
388
400
  /**
389
- * @typedef SubscriptionActivateRes
390
- * @property {Subscription} [data]
391
- * @property {boolean} [success]
401
+ * @typedef SubscriptionLimitApplication
402
+ * @property {boolean} [enabled]
403
+ * @property {number} [hard_limit]
404
+ * @property {number} [soft_limit]
392
405
  */
393
406
  /**
394
- * @typedef SubscriptionBillingAddress
395
- * @property {string} [city]
396
- * @property {string} [country]
397
- * @property {string} [line1]
398
- * @property {string} [line2]
399
- * @property {string} [postal_code]
400
- * @property {string} [state]
407
+ * @typedef SubscriptionLimitMarketplace
408
+ * @property {boolean} [enabled]
401
409
  */
402
410
  /**
403
- * @typedef SubscriptionCharge
404
- * @property {string} [_id]
405
- * @property {string} [activated_on]
406
- * @property {string} [billing_date]
407
- * @property {string} [cancelled_on]
408
- * @property {number} [capped_amount]
409
- * @property {CurrentPeriod} [current_period]
410
- * @property {boolean} [is_test]
411
- * @property {Object} [metadata]
412
- * @property {string} [name]
413
- * @property {EntityChargePrice} [price]
414
- * @property {string} [pricing_type]
415
- * @property {EntityChargeRecurring} [recurring]
416
- * @property {string} [status]
417
- * @property {string} [term] - Brief description for a charge
411
+ * @typedef SubscriptionLimitOtherPlatform
412
+ * @property {boolean} [enabled]
418
413
  */
419
414
  /**
420
- * @typedef SubscriptionCurrentPeriod
421
- * @property {string} [end]
422
- * @property {string} [start]
415
+ * @typedef SubscriptionLimitTeam
416
+ * @property {number} [limit]
423
417
  */
424
418
  /**
425
- * @typedef SubscriptionCustomer
426
- * @property {string} [_id]
427
- * @property {SubscriptionBillingAddress} [billing_address]
428
- * @property {string} [created_at]
429
- * @property {Object} [data]
430
- * @property {string} [email]
431
- * @property {string} [modified_at]
432
- * @property {string} [name]
433
- * @property {Phone} [phone]
434
- * @property {string} [type]
435
- * @property {string} [unique_id]
419
+ * @typedef SubscriptionLimitProducts
420
+ * @property {boolean} [bulk]
421
+ * @property {number} [limit]
436
422
  */
437
423
  /**
438
- * @typedef SubscriptionCustomerCreate
439
- * @property {SubscriptionBillingAddress} [billing_address]
440
- * @property {string} [email]
441
- * @property {string} [name]
442
- * @property {Phone} [phone]
443
- * @property {string} [type]
444
- * @property {string} [unique_id]
424
+ * @typedef SubscriptionLimitExtensions
425
+ * @property {boolean} [enabled]
426
+ * @property {number} [limit]
445
427
  */
446
428
  /**
447
- * @typedef SubscriptionInvoiceSettings
448
- * @property {boolean} [charging]
449
- * @property {boolean} [generation]
429
+ * @typedef SubscriptionLimitIntegrations
430
+ * @property {boolean} [enabled]
431
+ * @property {number} [limit]
450
432
  */
451
433
  /**
452
434
  * @typedef SubscriptionLimit
453
435
  * @property {SubscriptionLimitApplication} [application]
454
- * @property {SubscriptionLimitExtensions} [extensions]
455
- * @property {SubscriptionLimitIntegrations} [integrations]
456
- * @property {boolean} [is_trial_plan]
457
436
  * @property {SubscriptionLimitMarketplace} [marketplace]
458
437
  * @property {SubscriptionLimitOtherPlatform} [other_platform]
459
- * @property {SubscriptionLimitProducts} [products]
460
438
  * @property {SubscriptionLimitTeam} [team]
439
+ * @property {SubscriptionLimitProducts} [products]
440
+ * @property {SubscriptionLimitExtensions} [extensions]
441
+ * @property {SubscriptionLimitIntegrations} [integrations]
442
+ * @property {boolean} [is_trial_plan]
461
443
  */
462
444
  /**
463
- * @typedef SubscriptionLimitApplication
464
- * @property {boolean} [enabled]
465
- * @property {number} [hard_limit]
466
- * @property {number} [soft_limit]
445
+ * @typedef SubscriptionActivateReq
446
+ * @property {string} [unique_id]
447
+ * @property {string} [type]
448
+ * @property {string} [product_suite]
449
+ * @property {string} [plan_id]
450
+ * @property {string} [payment_method]
467
451
  */
468
452
  /**
469
- * @typedef SubscriptionLimitExtensions
470
- * @property {boolean} [enabled]
471
- * @property {number} [limit]
453
+ * @typedef SubscriptionActivateRes
454
+ * @property {boolean} [success]
455
+ * @property {Subscription} [data]
472
456
  */
473
457
  /**
474
- * @typedef SubscriptionLimitIntegrations
475
- * @property {boolean} [enabled]
476
- * @property {number} [limit]
458
+ * @typedef CancelSubscriptionReq
459
+ * @property {string} [unique_id]
460
+ * @property {string} [type]
461
+ * @property {string} [product_suite]
462
+ * @property {string} [subscription_id]
477
463
  */
478
464
  /**
479
- * @typedef SubscriptionLimitMarketplace
480
- * @property {boolean} [enabled]
465
+ * @typedef CancelSubscriptionRes
466
+ * @property {boolean} [success]
467
+ * @property {Subscription} [data]
481
468
  */
482
469
  /**
483
- * @typedef SubscriptionLimitOtherPlatform
484
- * @property {boolean} [enabled]
470
+ * @typedef PlanStatusUpdateReq
471
+ * @property {string} [plan_id]
472
+ * @property {string} [reason]
473
+ * @property {string} [seller_status]
485
474
  */
486
475
  /**
487
- * @typedef SubscriptionLimitProducts
488
- * @property {boolean} [bulk]
489
- * @property {number} [limit]
476
+ * @typedef SunscribePlan
477
+ * @property {string} [entity_type]
478
+ * @property {string} [collection_type]
479
+ * @property {string} [plan_id]
480
+ * @property {string} [callback_url]
481
+ * @property {Meta} [meta]
490
482
  */
491
483
  /**
492
- * @typedef SubscriptionLimitTeam
493
- * @property {number} [limit]
484
+ * @typedef Meta
485
+ * @property {boolean} [subscribe]
486
+ * @property {boolean} [is_custom_plan]
487
+ * @property {boolean} [is_plan_upgrade]
494
488
  */
495
489
  /**
496
- * @typedef SubscriptionPauseCollection
497
- * @property {string} [behavior]
498
- * @property {string} [resume_at]
490
+ * @typedef SubscribePlanRes
491
+ * @property {string} [redirect_url]
492
+ * @property {string} [transaction_id]
493
+ * @property {string} [current_status]
494
+ * @property {Meta} [meta]
499
495
  */
500
496
  /**
501
- * @typedef SubscriptionStatus
502
- * @property {Subscription[]} [current_subscriptions]
503
- * @property {boolean} [is_enabled]
504
- * @property {InvoicesData} [latest_invoice]
505
- * @property {string} [mandate_amount]
506
- * @property {Plan} [next_plan]
507
- * @property {Subscription} [subscription]
497
+ * @typedef Features
498
+ * @property {string} [name]
499
+ * @property {string} [slug]
500
+ * @property {string} [description]
501
+ * @property {string} [group]
502
+ * @property {boolean} [enabled]
503
+ * @property {string} [display_text]
508
504
  */
509
505
  /**
510
- * @typedef SubscriptionTrial
511
- * @property {string} [end]
512
- * @property {string} [start]
506
+ * @typedef FeeComponents
507
+ * @property {string[]} [brand]
508
+ * @property {string[]} [location]
509
+ * @property {Object[]} [channel]
510
+ * @property {string} [business_lead]
511
+ * @property {string} [settlement_type]
512
+ * @property {Object} [settle_cycle_period]
513
+ * @property {Object[]} [components]
513
514
  */
514
515
  /**
515
- * @typedef SubscriptionTrialPeriod
516
- * @property {string} [end_date]
517
- * @property {string} [start_date]
516
+ * @typedef Details
517
+ * @property {FeeComponents[]} [fee_components]
518
+ * @property {Features[]} [features]
518
519
  */
519
520
  /**
520
- * @typedef SunscribePlan
521
- * @property {string} [callback_url]
522
- * @property {string} [collection_type]
523
- * @property {string} [entity_type]
524
- * @property {Meta} [meta]
525
- * @property {string} [plan_id]
521
+ * @typedef EntityResponse
522
+ * @property {boolean} [success]
523
+ * @property {number} [page]
524
+ * @property {number} [page_size]
525
+ * @property {Details[]} [items]
526
526
  */
527
527
  declare class BillingPlatformModel {
528
528
  }
529
529
  declare namespace BillingPlatformModel {
530
- export { BadRequest, CancelSubscriptionReq, CancelSubscriptionRes, ChargeLineItem, CheckValidityResponse, CreateOneTimeCharge, CreateOneTimeChargeResponse, CreateSubscriptionCharge, CreateSubscriptionResponse, CurrentPeriod, Details, EntityChargePrice, EntityChargeRecurring, EntityResponse, EntitySubscription, Features, FeeComponents, InternalServerError, Invoice, InvoiceDetails, InvoiceDetailsClient, InvoiceDetailsPeriod, InvoiceDetailsStatusTrail, InvoiceItems, InvoiceItemsPeriod, InvoiceItemsPlan, InvoiceItemsPlanRecurring, InvoicePaymentMethod, Invoices, InvoicesData, InvoicesDataClient, InvoicesDataPaymentMethod, InvoicesDataPeriod, Meta, OneTimeChargeEntity, OneTimeChargeItem, Phone, Plan, PlanRecurring, PlanStatusUpdateReq, ResourceNotFound, SubscribePlanRes, Subscription, SubscriptionActivateReq, SubscriptionActivateRes, SubscriptionBillingAddress, SubscriptionCharge, SubscriptionCurrentPeriod, SubscriptionCustomer, SubscriptionCustomerCreate, SubscriptionInvoiceSettings, SubscriptionLimit, SubscriptionLimitApplication, SubscriptionLimitExtensions, SubscriptionLimitIntegrations, SubscriptionLimitMarketplace, SubscriptionLimitOtherPlatform, SubscriptionLimitProducts, SubscriptionLimitTeam, SubscriptionPauseCollection, SubscriptionStatus, SubscriptionTrial, SubscriptionTrialPeriod, SunscribePlan };
530
+ export { BadRequest, ResourceNotFound, InternalServerError, CheckValidityResponse, PlanRecurring, Plan, SubscriptionTrialPeriod, EntityChargePrice, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, OneTimeChargeItem, CreateOneTimeCharge, CurrentPeriod, SubscriptionCharge, EntitySubscription, OneTimeChargeEntity, CreateOneTimeChargeResponse, CreateSubscriptionResponse, InvoiceDetailsPeriod, InvoiceDetailsClient, InvoiceDetailsStatusTrail, InvoicePaymentMethod, InvoiceDetails, InvoiceItemsPlanRecurring, InvoiceItemsPlan, InvoiceItemsPeriod, InvoiceItems, Invoice, InvoicesDataClient, InvoicesDataPeriod, InvoicesDataPaymentMethod, InvoicesData, Invoices, Phone, SubscriptionBillingAddress, SubscriptionCustomer, SubscriptionCustomerCreate, SubscriptionCurrentPeriod, SubscriptionPauseCollection, SubscriptionTrial, SubscriptionInvoiceSettings, Subscription, SubscriptionStatus, SubscriptionLimitApplication, SubscriptionLimitMarketplace, SubscriptionLimitOtherPlatform, SubscriptionLimitTeam, SubscriptionLimitProducts, SubscriptionLimitExtensions, SubscriptionLimitIntegrations, SubscriptionLimit, SubscriptionActivateReq, SubscriptionActivateRes, CancelSubscriptionReq, CancelSubscriptionRes, PlanStatusUpdateReq, SunscribePlan, Meta, SubscribePlanRes, Features, FeeComponents, Details, EntityResponse };
531
531
  }
532
532
  /** @returns {BadRequest} */
533
533
  declare function BadRequest(): BadRequest;
@@ -537,79 +537,66 @@ type BadRequest = {
537
537
  */
538
538
  message?: string;
539
539
  };
540
- /** @returns {CancelSubscriptionReq} */
541
- declare function CancelSubscriptionReq(): CancelSubscriptionReq;
542
- type CancelSubscriptionReq = {
543
- product_suite?: string;
544
- subscription_id?: string;
545
- type?: string;
546
- unique_id?: string;
547
- };
548
- /** @returns {CancelSubscriptionRes} */
549
- declare function CancelSubscriptionRes(): CancelSubscriptionRes;
550
- type CancelSubscriptionRes = {
551
- data?: Subscription;
552
- success?: boolean;
540
+ /** @returns {ResourceNotFound} */
541
+ declare function ResourceNotFound(): ResourceNotFound;
542
+ type ResourceNotFound = {
543
+ /**
544
+ * - Resource not found with {id}
545
+ */
546
+ message?: string;
553
547
  };
554
- /** @returns {ChargeLineItem} */
555
- declare function ChargeLineItem(): ChargeLineItem;
556
- type ChargeLineItem = {
557
- capped_amount?: number;
558
- is_test?: boolean;
559
- metadata?: any;
560
- name: string;
561
- price: EntityChargePrice;
562
- pricing_type: string;
563
- recurring?: EntityChargeRecurring;
564
- term: string;
565
- trial_days?: number;
548
+ /** @returns {InternalServerError} */
549
+ declare function InternalServerError(): InternalServerError;
550
+ type InternalServerError = {
551
+ /**
552
+ * - Internal server Server error
553
+ */
554
+ message?: string;
555
+ /**
556
+ * - Error code
557
+ */
558
+ code?: string;
566
559
  };
567
560
  /** @returns {CheckValidityResponse} */
568
561
  declare function CheckValidityResponse(): CheckValidityResponse;
569
562
  type CheckValidityResponse = {
570
- discount_amount?: number;
571
563
  is_valid?: boolean;
564
+ discount_amount?: number;
572
565
  };
573
- /** @returns {CreateOneTimeCharge} */
574
- declare function CreateOneTimeCharge(): CreateOneTimeCharge;
575
- type CreateOneTimeCharge = {
576
- charge: OneTimeChargeItem;
577
- is_test?: boolean;
578
- name: string;
579
- return_url: string;
580
- };
581
- /** @returns {CreateOneTimeChargeResponse} */
582
- declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
583
- type CreateOneTimeChargeResponse = {
584
- charge?: OneTimeChargeEntity;
585
- confirm_url?: string;
566
+ /** @returns {PlanRecurring} */
567
+ declare function PlanRecurring(): PlanRecurring;
568
+ type PlanRecurring = {
569
+ interval?: string;
570
+ interval_count?: number;
586
571
  };
587
- /** @returns {CreateSubscriptionCharge} */
588
- declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
589
- type CreateSubscriptionCharge = {
590
- is_test?: boolean;
591
- line_items: ChargeLineItem[];
592
- name: string;
593
- return_url: string;
594
- trial_days?: number;
595
- };
596
- /** @returns {CreateSubscriptionResponse} */
597
- declare function CreateSubscriptionResponse(): CreateSubscriptionResponse;
598
- type CreateSubscriptionResponse = {
599
- confirm_url?: string;
600
- subscription?: EntitySubscription;
572
+ /** @returns {Plan} */
573
+ declare function Plan(): Plan;
574
+ type Plan = {
575
+ recurring?: PlanRecurring;
576
+ is_trial_plan?: boolean;
577
+ plan_group?: string;
578
+ tag_lines?: string[];
579
+ currency?: string;
580
+ is_active?: boolean;
581
+ is_visible?: boolean;
582
+ trial_period?: number;
583
+ addons?: string[];
584
+ tags?: string[];
585
+ type?: string;
586
+ country?: string;
587
+ _id?: string;
588
+ name?: string;
589
+ description?: string;
590
+ amount?: number;
591
+ product_suite_id?: string;
592
+ created_at?: string;
593
+ modified_at?: string;
601
594
  };
602
- /** @returns {CurrentPeriod} */
603
- declare function CurrentPeriod(): CurrentPeriod;
604
- type CurrentPeriod = {
605
- end_date?: string;
595
+ /** @returns {SubscriptionTrialPeriod} */
596
+ declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
597
+ type SubscriptionTrialPeriod = {
606
598
  start_date?: string;
607
- };
608
- /** @returns {Details} */
609
- declare function Details(): Details;
610
- type Details = {
611
- features?: Features[];
612
- fee_components?: FeeComponents[];
599
+ end_date?: string;
613
600
  };
614
601
  /** @returns {EntityChargePrice} */
615
602
  declare function EntityChargePrice(): EntityChargePrice;
@@ -625,439 +612,382 @@ declare function EntityChargeRecurring(): EntityChargeRecurring;
625
612
  type EntityChargeRecurring = {
626
613
  interval: string;
627
614
  };
628
- /** @returns {EntityResponse} */
629
- declare function EntityResponse(): EntityResponse;
630
- type EntityResponse = {
631
- items?: Details[];
632
- page?: number;
633
- page_size?: number;
634
- success?: boolean;
615
+ /** @returns {ChargeLineItem} */
616
+ declare function ChargeLineItem(): ChargeLineItem;
617
+ type ChargeLineItem = {
618
+ name: string;
619
+ term: string;
620
+ pricing_type: string;
621
+ price: EntityChargePrice;
622
+ recurring?: EntityChargeRecurring;
623
+ capped_amount?: number;
624
+ trial_days?: number;
625
+ is_test?: boolean;
626
+ metadata?: any;
635
627
  };
636
- /** @returns {EntitySubscription} */
637
- declare function EntitySubscription(): EntitySubscription;
638
- type EntitySubscription = {
628
+ /** @returns {CreateSubscriptionCharge} */
629
+ declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
630
+ type CreateSubscriptionCharge = {
631
+ name: string;
632
+ trial_days?: number;
633
+ line_items: ChargeLineItem[];
634
+ is_test?: boolean;
635
+ return_url: string;
636
+ };
637
+ /** @returns {OneTimeChargeItem} */
638
+ declare function OneTimeChargeItem(): OneTimeChargeItem;
639
+ type OneTimeChargeItem = {
640
+ name: string;
641
+ term?: string;
642
+ pricing_type: string;
643
+ price: EntityChargePrice;
644
+ capped_amount?: number;
645
+ is_test?: boolean;
646
+ metadata?: any;
647
+ };
648
+ /** @returns {CreateOneTimeCharge} */
649
+ declare function CreateOneTimeCharge(): CreateOneTimeCharge;
650
+ type CreateOneTimeCharge = {
651
+ name: string;
652
+ charge: OneTimeChargeItem;
653
+ is_test?: boolean;
654
+ return_url: string;
655
+ };
656
+ /** @returns {CurrentPeriod} */
657
+ declare function CurrentPeriod(): CurrentPeriod;
658
+ type CurrentPeriod = {
659
+ start_date?: string;
660
+ end_date?: string;
661
+ };
662
+ /** @returns {SubscriptionCharge} */
663
+ declare function SubscriptionCharge(): SubscriptionCharge;
664
+ type SubscriptionCharge = {
639
665
  _id?: string;
666
+ name?: string;
667
+ /**
668
+ * - Brief description for a charge
669
+ */
670
+ term?: string;
671
+ pricing_type?: string;
672
+ price?: EntityChargePrice;
673
+ recurring?: EntityChargeRecurring;
674
+ capped_amount?: number;
640
675
  activated_on?: string;
641
676
  cancelled_on?: string;
642
- company_id?: number;
643
- line_items?: SubscriptionCharge[];
677
+ billing_date?: string;
678
+ current_period?: CurrentPeriod;
679
+ status?: string;
680
+ is_test?: boolean;
644
681
  metadata?: any;
682
+ };
683
+ /** @returns {EntitySubscription} */
684
+ declare function EntitySubscription(): EntitySubscription;
685
+ type EntitySubscription = {
686
+ _id?: string;
645
687
  name?: string;
646
688
  status?: string;
689
+ company_id?: number;
690
+ activated_on?: string;
691
+ cancelled_on?: string;
647
692
  trial_days?: number;
648
693
  trial_period?: SubscriptionTrialPeriod;
694
+ metadata?: any;
695
+ line_items?: SubscriptionCharge[];
649
696
  };
650
- /** @returns {Features} */
651
- declare function Features(): Features;
652
- type Features = {
653
- description?: string;
654
- display_text?: string;
655
- enabled?: boolean;
656
- group?: string;
697
+ /** @returns {OneTimeChargeEntity} */
698
+ declare function OneTimeChargeEntity(): OneTimeChargeEntity;
699
+ type OneTimeChargeEntity = {
700
+ _id?: string;
657
701
  name?: string;
658
- slug?: string;
702
+ status?: string;
703
+ activated_on?: string;
704
+ cancelled_on?: string;
705
+ metadata?: any;
706
+ return_url?: string;
707
+ is_test?: boolean;
708
+ pricing_type?: string;
709
+ subscriber_id?: string;
710
+ entity_type?: string;
711
+ entity_id?: string;
712
+ meta?: any;
713
+ price?: EntityChargePrice;
659
714
  };
660
- /** @returns {FeeComponents} */
661
- declare function FeeComponents(): FeeComponents;
662
- type FeeComponents = {
663
- brand?: string[];
664
- business_lead?: string;
665
- channel?: any[];
666
- components?: any[];
667
- location?: string[];
668
- settle_cycle_period?: any;
669
- settlement_type?: string;
715
+ /** @returns {CreateOneTimeChargeResponse} */
716
+ declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
717
+ type CreateOneTimeChargeResponse = {
718
+ charge?: OneTimeChargeEntity;
719
+ confirm_url?: string;
670
720
  };
671
- /** @returns {InternalServerError} */
672
- declare function InternalServerError(): InternalServerError;
673
- type InternalServerError = {
674
- /**
675
- * - Error code
676
- */
677
- code?: string;
678
- /**
679
- * - Internal server Server error
680
- */
681
- message?: string;
721
+ /** @returns {CreateSubscriptionResponse} */
722
+ declare function CreateSubscriptionResponse(): CreateSubscriptionResponse;
723
+ type CreateSubscriptionResponse = {
724
+ subscription?: EntitySubscription;
725
+ confirm_url?: string;
682
726
  };
683
- /** @returns {Invoice} */
684
- declare function Invoice(): Invoice;
685
- type Invoice = {
686
- invoice?: InvoiceDetails;
687
- invoice_items?: InvoiceItems[];
727
+ /** @returns {InvoiceDetailsPeriod} */
728
+ declare function InvoiceDetailsPeriod(): InvoiceDetailsPeriod;
729
+ type InvoiceDetailsPeriod = {
730
+ start?: string;
731
+ end?: string;
732
+ };
733
+ /** @returns {InvoiceDetailsClient} */
734
+ declare function InvoiceDetailsClient(): InvoiceDetailsClient;
735
+ type InvoiceDetailsClient = {
736
+ address_lines?: string[];
737
+ name?: string;
738
+ email?: string;
739
+ phone?: string;
740
+ };
741
+ /** @returns {InvoiceDetailsStatusTrail} */
742
+ declare function InvoiceDetailsStatusTrail(): InvoiceDetailsStatusTrail;
743
+ type InvoiceDetailsStatusTrail = {
744
+ _id?: string;
745
+ value?: string;
746
+ timestamp?: string;
747
+ };
748
+ /** @returns {InvoicePaymentMethod} */
749
+ declare function InvoicePaymentMethod(): InvoicePaymentMethod;
750
+ type InvoicePaymentMethod = {
751
+ pg_payment_method_id?: string;
688
752
  };
689
753
  /** @returns {InvoiceDetails} */
690
754
  declare function InvoiceDetails(): InvoiceDetails;
691
755
  type InvoiceDetails = {
692
- _id?: string;
693
- attemp?: number;
694
- auto_advance?: boolean;
756
+ period?: InvoiceDetailsPeriod;
695
757
  client?: InvoiceDetailsClient;
696
- collection_method?: string;
697
- created_at?: string;
758
+ auto_advance?: boolean;
698
759
  currency?: string;
699
- current_status?: string;
700
- hash_identifier?: string;
760
+ paid?: boolean;
761
+ attemp?: number;
762
+ _id?: string;
763
+ collection_method?: string;
764
+ subscriber_id?: string;
701
765
  invoice_url?: string;
702
- modified_at?: string;
703
- next_action_time?: string;
704
766
  number?: string;
705
- paid?: boolean;
706
- payment_method?: InvoicePaymentMethod;
707
- period?: InvoiceDetailsPeriod;
708
767
  pg_data?: any;
709
768
  receipt_number?: string;
710
769
  statement_descriptor?: string;
770
+ current_status?: string;
711
771
  status_trail?: InvoiceDetailsStatusTrail[];
712
- subscriber_id?: string;
713
- subscription?: string;
714
772
  subtotal?: number;
715
773
  total?: number;
774
+ subscription?: string;
775
+ next_action_time?: string;
776
+ created_at?: string;
777
+ modified_at?: string;
778
+ hash_identifier?: string;
779
+ payment_method?: InvoicePaymentMethod;
716
780
  };
717
- /** @returns {InvoiceDetailsClient} */
718
- declare function InvoiceDetailsClient(): InvoiceDetailsClient;
719
- type InvoiceDetailsClient = {
720
- address_lines?: string[];
721
- email?: string;
722
- name?: string;
723
- phone?: string;
781
+ /** @returns {InvoiceItemsPlanRecurring} */
782
+ declare function InvoiceItemsPlanRecurring(): InvoiceItemsPlanRecurring;
783
+ type InvoiceItemsPlanRecurring = {
784
+ interval?: string;
785
+ interval_count?: number;
724
786
  };
725
- /** @returns {InvoiceDetailsPeriod} */
726
- declare function InvoiceDetailsPeriod(): InvoiceDetailsPeriod;
727
- type InvoiceDetailsPeriod = {
728
- end?: string;
729
- start?: string;
730
- };
731
- /** @returns {InvoiceDetailsStatusTrail} */
732
- declare function InvoiceDetailsStatusTrail(): InvoiceDetailsStatusTrail;
733
- type InvoiceDetailsStatusTrail = {
734
- _id?: string;
735
- timestamp?: string;
736
- value?: string;
737
- };
738
- /** @returns {InvoiceItems} */
739
- declare function InvoiceItems(): InvoiceItems;
740
- type InvoiceItems = {
787
+ /** @returns {InvoiceItemsPlan} */
788
+ declare function InvoiceItemsPlan(): InvoiceItemsPlan;
789
+ type InvoiceItemsPlan = {
790
+ recurring?: InvoiceItemsPlanRecurring;
791
+ is_trial_plan?: boolean;
792
+ plan_group?: string;
793
+ tag_lines?: string[];
794
+ currency?: string;
795
+ is_active?: boolean;
796
+ is_visible?: boolean;
797
+ trial_period?: number;
798
+ addons?: string[];
799
+ tags?: string[];
800
+ type?: string;
801
+ country?: string;
741
802
  _id?: string;
803
+ name?: string;
804
+ description?: string;
742
805
  amount?: number;
806
+ product_suite_id?: string;
743
807
  created_at?: string;
744
- currency?: string;
745
- description?: string;
746
- invoice_id?: string;
747
808
  modified_at?: string;
748
- name?: string;
749
- period?: InvoiceItemsPeriod;
750
- plan?: InvoiceItemsPlan;
751
- quantity?: number;
752
- type?: string;
753
- unit_amount?: number;
754
809
  };
755
810
  /** @returns {InvoiceItemsPeriod} */
756
811
  declare function InvoiceItemsPeriod(): InvoiceItemsPeriod;
757
812
  type InvoiceItemsPeriod = {
758
- end?: string;
759
813
  start?: string;
814
+ end?: string;
760
815
  };
761
- /** @returns {InvoiceItemsPlan} */
762
- declare function InvoiceItemsPlan(): InvoiceItemsPlan;
763
- type InvoiceItemsPlan = {
816
+ /** @returns {InvoiceItems} */
817
+ declare function InvoiceItems(): InvoiceItems;
818
+ type InvoiceItems = {
764
819
  _id?: string;
765
- addons?: string[];
766
- amount?: number;
767
- country?: string;
768
- created_at?: string;
769
820
  currency?: string;
821
+ plan?: InvoiceItemsPlan;
822
+ name?: string;
823
+ quantity?: number;
770
824
  description?: string;
771
- is_active?: boolean;
772
- is_trial_plan?: boolean;
773
- is_visible?: boolean;
825
+ period?: InvoiceItemsPeriod;
826
+ unit_amount?: number;
827
+ amount?: number;
828
+ type?: string;
829
+ invoice_id?: string;
830
+ created_at?: string;
774
831
  modified_at?: string;
832
+ };
833
+ /** @returns {Invoice} */
834
+ declare function Invoice(): Invoice;
835
+ type Invoice = {
836
+ invoice?: InvoiceDetails;
837
+ invoice_items?: InvoiceItems[];
838
+ };
839
+ /** @returns {InvoicesDataClient} */
840
+ declare function InvoicesDataClient(): InvoicesDataClient;
841
+ type InvoicesDataClient = {
775
842
  name?: string;
776
- plan_group?: string;
777
- product_suite_id?: string;
778
- recurring?: InvoiceItemsPlanRecurring;
779
- tag_lines?: string[];
780
- tags?: string[];
781
- trial_period?: number;
782
- type?: string;
843
+ email?: string;
844
+ phone?: string;
845
+ address_lines?: string[];
783
846
  };
784
- /** @returns {InvoiceItemsPlanRecurring} */
785
- declare function InvoiceItemsPlanRecurring(): InvoiceItemsPlanRecurring;
786
- type InvoiceItemsPlanRecurring = {
787
- interval?: string;
788
- interval_count?: number;
847
+ /** @returns {InvoicesDataPeriod} */
848
+ declare function InvoicesDataPeriod(): InvoicesDataPeriod;
849
+ type InvoicesDataPeriod = {
850
+ start?: string;
851
+ end?: string;
789
852
  };
790
- /** @returns {InvoicePaymentMethod} */
791
- declare function InvoicePaymentMethod(): InvoicePaymentMethod;
792
- type InvoicePaymentMethod = {
853
+ /** @returns {InvoicesDataPaymentMethod} */
854
+ declare function InvoicesDataPaymentMethod(): InvoicesDataPaymentMethod;
855
+ type InvoicesDataPaymentMethod = {
793
856
  pg_payment_method_id?: string;
794
857
  };
795
- /** @returns {Invoices} */
796
- declare function Invoices(): Invoices;
797
- type Invoices = {
798
- data?: InvoicesData[];
799
- end?: number;
800
- limit?: number;
801
- page?: number;
802
- start?: number;
803
- total?: number;
804
- };
805
858
  /** @returns {InvoicesData} */
806
859
  declare function InvoicesData(): InvoicesData;
807
860
  type InvoicesData = {
808
861
  _id?: string;
809
- attemp?: number;
810
- auto_advance?: boolean;
811
862
  client?: InvoicesDataClient;
812
- collection_method?: string;
813
- created_at?: string;
863
+ auto_advance?: boolean;
814
864
  currency?: string;
815
- current_status?: string;
816
- hash_identifier?: string;
817
- invoice_items?: InvoiceItems[];
865
+ paid?: boolean;
866
+ attemp?: number;
867
+ collection_method?: string;
868
+ subscriber_id?: string;
818
869
  invoice_url?: string;
819
- modified_at?: string;
820
- next_action_time?: string;
821
870
  number?: string;
822
- paid?: boolean;
823
- payment_method?: InvoicesDataPaymentMethod;
824
- period?: InvoicesDataPeriod;
825
871
  pg_data?: any;
872
+ period?: InvoicesDataPeriod;
826
873
  receipt_number?: string;
827
874
  statement_descriptor?: string;
875
+ current_status?: string;
828
876
  status_trail?: InvoiceDetailsStatusTrail[];
829
- subscriber_id?: string;
830
- subscription?: string;
831
877
  subtotal?: number;
832
878
  total?: number;
833
- };
834
- /** @returns {InvoicesDataClient} */
835
- declare function InvoicesDataClient(): InvoicesDataClient;
836
- type InvoicesDataClient = {
837
- address_lines?: string[];
838
- email?: string;
839
- name?: string;
840
- phone?: string;
841
- };
842
- /** @returns {InvoicesDataPaymentMethod} */
843
- declare function InvoicesDataPaymentMethod(): InvoicesDataPaymentMethod;
844
- type InvoicesDataPaymentMethod = {
845
- pg_payment_method_id?: string;
846
- };
847
- /** @returns {InvoicesDataPeriod} */
848
- declare function InvoicesDataPeriod(): InvoicesDataPeriod;
849
- type InvoicesDataPeriod = {
850
- end?: string;
851
- start?: string;
852
- };
853
- /** @returns {Meta} */
854
- declare function Meta(): Meta;
855
- type Meta = {
856
- is_custom_plan?: boolean;
857
- is_plan_upgrade?: boolean;
858
- subscribe?: boolean;
859
- };
860
- /** @returns {OneTimeChargeEntity} */
861
- declare function OneTimeChargeEntity(): OneTimeChargeEntity;
862
- type OneTimeChargeEntity = {
863
- _id?: string;
864
- activated_on?: string;
865
- cancelled_on?: string;
866
- entity_id?: string;
867
- entity_type?: string;
868
- is_test?: boolean;
869
- meta?: any;
870
- metadata?: any;
871
- name?: string;
872
- price?: EntityChargePrice;
873
- pricing_type?: string;
874
- return_url?: string;
875
- status?: string;
876
- subscriber_id?: string;
877
- };
878
- /** @returns {OneTimeChargeItem} */
879
- declare function OneTimeChargeItem(): OneTimeChargeItem;
880
- type OneTimeChargeItem = {
881
- capped_amount?: number;
882
- is_test?: boolean;
883
- metadata?: any;
884
- name: string;
885
- price: EntityChargePrice;
886
- pricing_type: string;
887
- term?: string;
888
- };
889
- /** @returns {Phone} */
890
- declare function Phone(): Phone;
891
- type Phone = {
892
- phone_country_code?: string;
893
- phone_number?: string;
894
- };
895
- /** @returns {Plan} */
896
- declare function Plan(): Plan;
897
- type Plan = {
898
- _id?: string;
899
- addons?: string[];
900
- amount?: number;
901
- country?: string;
902
- created_at?: string;
903
- currency?: string;
904
- description?: string;
905
- is_active?: boolean;
906
- is_trial_plan?: boolean;
907
- is_visible?: boolean;
908
- modified_at?: string;
909
- name?: string;
910
- plan_group?: string;
911
- product_suite_id?: string;
912
- recurring?: PlanRecurring;
913
- tag_lines?: string[];
914
- tags?: string[];
915
- trial_period?: number;
916
- type?: string;
917
- };
918
- /** @returns {PlanRecurring} */
919
- declare function PlanRecurring(): PlanRecurring;
920
- type PlanRecurring = {
921
- interval?: string;
922
- interval_count?: number;
923
- };
924
- /** @returns {PlanStatusUpdateReq} */
925
- declare function PlanStatusUpdateReq(): PlanStatusUpdateReq;
926
- type PlanStatusUpdateReq = {
927
- plan_id?: string;
928
- reason?: string;
929
- seller_status?: string;
930
- };
931
- /** @returns {ResourceNotFound} */
932
- declare function ResourceNotFound(): ResourceNotFound;
933
- type ResourceNotFound = {
934
- /**
935
- * - Resource not found with {id}
936
- */
937
- message?: string;
938
- };
939
- /** @returns {SubscribePlanRes} */
940
- declare function SubscribePlanRes(): SubscribePlanRes;
941
- type SubscribePlanRes = {
942
- current_status?: string;
943
- meta?: Meta;
944
- redirect_url?: string;
945
- transaction_id?: string;
946
- };
947
- /** @returns {Subscription} */
948
- declare function Subscription(): Subscription;
949
- type Subscription = {
950
- _id?: string;
951
- cancel_at_period_end?: boolean;
952
- channel_type?: string;
953
- collection_method?: string;
879
+ subscription?: string;
880
+ next_action_time?: string;
954
881
  created_at?: string;
955
- current_period?: SubscriptionCurrentPeriod;
956
- current_status?: string;
957
- invoice_settings?: SubscriptionInvoiceSettings;
958
- is_active?: boolean;
959
- latest_invoice?: string;
960
882
  modified_at?: string;
961
- pause_collection?: SubscriptionPauseCollection;
962
- plan_data?: Plan;
963
- plan_id?: string;
964
- product_suite_id?: string;
965
- subscriber_id?: string;
966
- trial?: SubscriptionTrial;
967
- };
968
- /** @returns {SubscriptionActivateReq} */
969
- declare function SubscriptionActivateReq(): SubscriptionActivateReq;
970
- type SubscriptionActivateReq = {
971
- payment_method?: string;
972
- plan_id?: string;
973
- product_suite?: string;
974
- type?: string;
975
- unique_id?: string;
976
- };
977
- /** @returns {SubscriptionActivateRes} */
978
- declare function SubscriptionActivateRes(): SubscriptionActivateRes;
979
- type SubscriptionActivateRes = {
980
- data?: Subscription;
981
- success?: boolean;
883
+ hash_identifier?: string;
884
+ payment_method?: InvoicesDataPaymentMethod;
885
+ invoice_items?: InvoiceItems[];
982
886
  };
983
- /** @returns {SubscriptionBillingAddress} */
984
- declare function SubscriptionBillingAddress(): SubscriptionBillingAddress;
985
- type SubscriptionBillingAddress = {
986
- city?: string;
987
- country?: string;
988
- line1?: string;
989
- line2?: string;
990
- postal_code?: string;
991
- state?: string;
887
+ /** @returns {Invoices} */
888
+ declare function Invoices(): Invoices;
889
+ type Invoices = {
890
+ data?: InvoicesData[];
891
+ start?: number;
892
+ end?: number;
893
+ limit?: number;
894
+ page?: number;
895
+ total?: number;
992
896
  };
993
- /** @returns {SubscriptionCharge} */
994
- declare function SubscriptionCharge(): SubscriptionCharge;
995
- type SubscriptionCharge = {
996
- _id?: string;
997
- activated_on?: string;
998
- billing_date?: string;
999
- cancelled_on?: string;
1000
- capped_amount?: number;
1001
- current_period?: CurrentPeriod;
1002
- is_test?: boolean;
1003
- metadata?: any;
1004
- name?: string;
1005
- price?: EntityChargePrice;
1006
- pricing_type?: string;
1007
- recurring?: EntityChargeRecurring;
1008
- status?: string;
1009
- /**
1010
- * - Brief description for a charge
1011
- */
1012
- term?: string;
897
+ /** @returns {Phone} */
898
+ declare function Phone(): Phone;
899
+ type Phone = {
900
+ phone_number?: string;
901
+ phone_country_code?: string;
1013
902
  };
1014
- /** @returns {SubscriptionCurrentPeriod} */
1015
- declare function SubscriptionCurrentPeriod(): SubscriptionCurrentPeriod;
1016
- type SubscriptionCurrentPeriod = {
1017
- end?: string;
1018
- start?: string;
903
+ /** @returns {SubscriptionBillingAddress} */
904
+ declare function SubscriptionBillingAddress(): SubscriptionBillingAddress;
905
+ type SubscriptionBillingAddress = {
906
+ country?: string;
907
+ state?: string;
908
+ city?: string;
909
+ line1?: string;
910
+ line2?: string;
911
+ postal_code?: string;
1019
912
  };
1020
913
  /** @returns {SubscriptionCustomer} */
1021
914
  declare function SubscriptionCustomer(): SubscriptionCustomer;
1022
915
  type SubscriptionCustomer = {
1023
- _id?: string;
916
+ phone?: Phone;
1024
917
  billing_address?: SubscriptionBillingAddress;
1025
- created_at?: string;
1026
- data?: any;
918
+ _id?: string;
919
+ unique_id?: string;
920
+ type?: string;
921
+ name?: string;
1027
922
  email?: string;
923
+ created_at?: string;
1028
924
  modified_at?: string;
1029
- name?: string;
1030
- phone?: Phone;
1031
- type?: string;
1032
- unique_id?: string;
925
+ data?: any;
1033
926
  };
1034
927
  /** @returns {SubscriptionCustomerCreate} */
1035
928
  declare function SubscriptionCustomerCreate(): SubscriptionCustomerCreate;
1036
929
  type SubscriptionCustomerCreate = {
1037
- billing_address?: SubscriptionBillingAddress;
1038
- email?: string;
1039
- name?: string;
1040
930
  phone?: Phone;
1041
- type?: string;
931
+ billing_address?: SubscriptionBillingAddress;
1042
932
  unique_id?: string;
933
+ type?: string;
934
+ name?: string;
935
+ email?: string;
936
+ };
937
+ /** @returns {SubscriptionCurrentPeriod} */
938
+ declare function SubscriptionCurrentPeriod(): SubscriptionCurrentPeriod;
939
+ type SubscriptionCurrentPeriod = {
940
+ start?: string;
941
+ end?: string;
942
+ };
943
+ /** @returns {SubscriptionPauseCollection} */
944
+ declare function SubscriptionPauseCollection(): SubscriptionPauseCollection;
945
+ type SubscriptionPauseCollection = {
946
+ behavior?: string;
947
+ resume_at?: string;
948
+ };
949
+ /** @returns {SubscriptionTrial} */
950
+ declare function SubscriptionTrial(): SubscriptionTrial;
951
+ type SubscriptionTrial = {
952
+ start?: string;
953
+ end?: string;
1043
954
  };
1044
955
  /** @returns {SubscriptionInvoiceSettings} */
1045
956
  declare function SubscriptionInvoiceSettings(): SubscriptionInvoiceSettings;
1046
957
  type SubscriptionInvoiceSettings = {
1047
- charging?: boolean;
1048
958
  generation?: boolean;
959
+ charging?: boolean;
1049
960
  };
1050
- /** @returns {SubscriptionLimit} */
1051
- declare function SubscriptionLimit(): SubscriptionLimit;
1052
- type SubscriptionLimit = {
1053
- application?: SubscriptionLimitApplication;
1054
- extensions?: SubscriptionLimitExtensions;
1055
- integrations?: SubscriptionLimitIntegrations;
1056
- is_trial_plan?: boolean;
1057
- marketplace?: SubscriptionLimitMarketplace;
1058
- other_platform?: SubscriptionLimitOtherPlatform;
1059
- products?: SubscriptionLimitProducts;
1060
- team?: SubscriptionLimitTeam;
961
+ /** @returns {Subscription} */
962
+ declare function Subscription(): Subscription;
963
+ type Subscription = {
964
+ current_period?: SubscriptionCurrentPeriod;
965
+ pause_collection?: SubscriptionPauseCollection;
966
+ trial?: SubscriptionTrial;
967
+ invoice_settings?: SubscriptionInvoiceSettings;
968
+ is_active?: boolean;
969
+ cancel_at_period_end?: boolean;
970
+ _id?: string;
971
+ subscriber_id?: string;
972
+ plan_id?: string;
973
+ product_suite_id?: string;
974
+ plan_data?: Plan;
975
+ current_status?: string;
976
+ collection_method?: string;
977
+ created_at?: string;
978
+ modified_at?: string;
979
+ latest_invoice?: string;
980
+ channel_type?: string;
981
+ };
982
+ /** @returns {SubscriptionStatus} */
983
+ declare function SubscriptionStatus(): SubscriptionStatus;
984
+ type SubscriptionStatus = {
985
+ is_enabled?: boolean;
986
+ subscription?: Subscription;
987
+ latest_invoice?: InvoicesData;
988
+ next_plan?: Plan;
989
+ current_subscriptions?: Subscription[];
990
+ mandate_amount?: string;
1061
991
  };
1062
992
  /** @returns {SubscriptionLimitApplication} */
1063
993
  declare function SubscriptionLimitApplication(): SubscriptionLimitApplication;
@@ -1066,18 +996,6 @@ type SubscriptionLimitApplication = {
1066
996
  hard_limit?: number;
1067
997
  soft_limit?: number;
1068
998
  };
1069
- /** @returns {SubscriptionLimitExtensions} */
1070
- declare function SubscriptionLimitExtensions(): SubscriptionLimitExtensions;
1071
- type SubscriptionLimitExtensions = {
1072
- enabled?: boolean;
1073
- limit?: number;
1074
- };
1075
- /** @returns {SubscriptionLimitIntegrations} */
1076
- declare function SubscriptionLimitIntegrations(): SubscriptionLimitIntegrations;
1077
- type SubscriptionLimitIntegrations = {
1078
- enabled?: boolean;
1079
- limit?: number;
1080
- };
1081
999
  /** @returns {SubscriptionLimitMarketplace} */
1082
1000
  declare function SubscriptionLimitMarketplace(): SubscriptionLimitMarketplace;
1083
1001
  type SubscriptionLimitMarketplace = {
@@ -1088,51 +1006,133 @@ declare function SubscriptionLimitOtherPlatform(): SubscriptionLimitOtherPlatfor
1088
1006
  type SubscriptionLimitOtherPlatform = {
1089
1007
  enabled?: boolean;
1090
1008
  };
1009
+ /** @returns {SubscriptionLimitTeam} */
1010
+ declare function SubscriptionLimitTeam(): SubscriptionLimitTeam;
1011
+ type SubscriptionLimitTeam = {
1012
+ limit?: number;
1013
+ };
1091
1014
  /** @returns {SubscriptionLimitProducts} */
1092
1015
  declare function SubscriptionLimitProducts(): SubscriptionLimitProducts;
1093
1016
  type SubscriptionLimitProducts = {
1094
1017
  bulk?: boolean;
1095
1018
  limit?: number;
1096
1019
  };
1097
- /** @returns {SubscriptionLimitTeam} */
1098
- declare function SubscriptionLimitTeam(): SubscriptionLimitTeam;
1099
- type SubscriptionLimitTeam = {
1020
+ /** @returns {SubscriptionLimitExtensions} */
1021
+ declare function SubscriptionLimitExtensions(): SubscriptionLimitExtensions;
1022
+ type SubscriptionLimitExtensions = {
1023
+ enabled?: boolean;
1100
1024
  limit?: number;
1101
1025
  };
1102
- /** @returns {SubscriptionPauseCollection} */
1103
- declare function SubscriptionPauseCollection(): SubscriptionPauseCollection;
1104
- type SubscriptionPauseCollection = {
1105
- behavior?: string;
1106
- resume_at?: string;
1026
+ /** @returns {SubscriptionLimitIntegrations} */
1027
+ declare function SubscriptionLimitIntegrations(): SubscriptionLimitIntegrations;
1028
+ type SubscriptionLimitIntegrations = {
1029
+ enabled?: boolean;
1030
+ limit?: number;
1107
1031
  };
1108
- /** @returns {SubscriptionStatus} */
1109
- declare function SubscriptionStatus(): SubscriptionStatus;
1110
- type SubscriptionStatus = {
1111
- current_subscriptions?: Subscription[];
1112
- is_enabled?: boolean;
1113
- latest_invoice?: InvoicesData;
1114
- mandate_amount?: string;
1115
- next_plan?: Plan;
1116
- subscription?: Subscription;
1032
+ /** @returns {SubscriptionLimit} */
1033
+ declare function SubscriptionLimit(): SubscriptionLimit;
1034
+ type SubscriptionLimit = {
1035
+ application?: SubscriptionLimitApplication;
1036
+ marketplace?: SubscriptionLimitMarketplace;
1037
+ other_platform?: SubscriptionLimitOtherPlatform;
1038
+ team?: SubscriptionLimitTeam;
1039
+ products?: SubscriptionLimitProducts;
1040
+ extensions?: SubscriptionLimitExtensions;
1041
+ integrations?: SubscriptionLimitIntegrations;
1042
+ is_trial_plan?: boolean;
1117
1043
  };
1118
- /** @returns {SubscriptionTrial} */
1119
- declare function SubscriptionTrial(): SubscriptionTrial;
1120
- type SubscriptionTrial = {
1121
- end?: string;
1122
- start?: string;
1044
+ /** @returns {SubscriptionActivateReq} */
1045
+ declare function SubscriptionActivateReq(): SubscriptionActivateReq;
1046
+ type SubscriptionActivateReq = {
1047
+ unique_id?: string;
1048
+ type?: string;
1049
+ product_suite?: string;
1050
+ plan_id?: string;
1051
+ payment_method?: string;
1123
1052
  };
1124
- /** @returns {SubscriptionTrialPeriod} */
1125
- declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
1126
- type SubscriptionTrialPeriod = {
1127
- end_date?: string;
1128
- start_date?: string;
1053
+ /** @returns {SubscriptionActivateRes} */
1054
+ declare function SubscriptionActivateRes(): SubscriptionActivateRes;
1055
+ type SubscriptionActivateRes = {
1056
+ success?: boolean;
1057
+ data?: Subscription;
1058
+ };
1059
+ /** @returns {CancelSubscriptionReq} */
1060
+ declare function CancelSubscriptionReq(): CancelSubscriptionReq;
1061
+ type CancelSubscriptionReq = {
1062
+ unique_id?: string;
1063
+ type?: string;
1064
+ product_suite?: string;
1065
+ subscription_id?: string;
1066
+ };
1067
+ /** @returns {CancelSubscriptionRes} */
1068
+ declare function CancelSubscriptionRes(): CancelSubscriptionRes;
1069
+ type CancelSubscriptionRes = {
1070
+ success?: boolean;
1071
+ data?: Subscription;
1072
+ };
1073
+ /** @returns {PlanStatusUpdateReq} */
1074
+ declare function PlanStatusUpdateReq(): PlanStatusUpdateReq;
1075
+ type PlanStatusUpdateReq = {
1076
+ plan_id?: string;
1077
+ reason?: string;
1078
+ seller_status?: string;
1129
1079
  };
1130
1080
  /** @returns {SunscribePlan} */
1131
1081
  declare function SunscribePlan(): SunscribePlan;
1132
1082
  type SunscribePlan = {
1133
- callback_url?: string;
1134
- collection_type?: string;
1135
1083
  entity_type?: string;
1136
- meta?: Meta;
1084
+ collection_type?: string;
1137
1085
  plan_id?: string;
1086
+ callback_url?: string;
1087
+ meta?: Meta;
1088
+ };
1089
+ /** @returns {Meta} */
1090
+ declare function Meta(): Meta;
1091
+ type Meta = {
1092
+ subscribe?: boolean;
1093
+ is_custom_plan?: boolean;
1094
+ is_plan_upgrade?: boolean;
1095
+ };
1096
+ /** @returns {SubscribePlanRes} */
1097
+ declare function SubscribePlanRes(): SubscribePlanRes;
1098
+ type SubscribePlanRes = {
1099
+ redirect_url?: string;
1100
+ transaction_id?: string;
1101
+ current_status?: string;
1102
+ meta?: Meta;
1103
+ };
1104
+ /** @returns {Features} */
1105
+ declare function Features(): Features;
1106
+ type Features = {
1107
+ name?: string;
1108
+ slug?: string;
1109
+ description?: string;
1110
+ group?: string;
1111
+ enabled?: boolean;
1112
+ display_text?: string;
1113
+ };
1114
+ /** @returns {FeeComponents} */
1115
+ declare function FeeComponents(): FeeComponents;
1116
+ type FeeComponents = {
1117
+ brand?: string[];
1118
+ location?: string[];
1119
+ channel?: any[];
1120
+ business_lead?: string;
1121
+ settlement_type?: string;
1122
+ settle_cycle_period?: any;
1123
+ components?: any[];
1124
+ };
1125
+ /** @returns {Details} */
1126
+ declare function Details(): Details;
1127
+ type Details = {
1128
+ fee_components?: FeeComponents[];
1129
+ features?: Features[];
1130
+ };
1131
+ /** @returns {EntityResponse} */
1132
+ declare function EntityResponse(): EntityResponse;
1133
+ type EntityResponse = {
1134
+ success?: boolean;
1135
+ page?: number;
1136
+ page_size?: number;
1137
+ items?: Details[];
1138
1138
  };