@gofynd/fdk-client-javascript 1.0.3 → 1.0.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 (175) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.js +29 -28
  12. package/sdk/application/Cart/CartApplicationModel.js +3 -1
  13. package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +1 -1
  15. package/sdk/application/Common/CommonApplicationClient.js +5 -4
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
  18. package/sdk/application/Content/ContentApplicationClient.js +26 -25
  19. package/sdk/application/Content/ContentApplicationModel.js +1 -0
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
  21. package/sdk/application/Lead/LeadApplicationClient.js +10 -9
  22. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
  23. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
  24. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
  25. package/sdk/application/Order/OrderApplicationClient.js +15 -14
  26. package/sdk/application/Order/OrderApplicationModel.js +9 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
  28. package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
  29. package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
  31. package/sdk/application/Share/ShareApplicationClient.js +10 -9
  32. package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
  33. package/sdk/application/User/UserApplicationClient.js +38 -37
  34. package/sdk/common/AxiosHelper.js +17 -6
  35. package/sdk/constructUrl.d.ts +5 -0
  36. package/sdk/constructUrl.js +13 -0
  37. package/sdk/index.d.ts +3 -0
  38. package/sdk/index.js +5 -0
  39. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
  40. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  41. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  42. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  43. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
  44. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
  45. package/sdk/platform/Billing/BillingPlatformClient.js +3 -2
  46. package/sdk/platform/Billing/BillingPlatformValidator.js +1 -0
  47. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
  48. package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
  49. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  50. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
  51. package/sdk/platform/Cart/CartPlatformModel.js +7 -3
  52. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  55. package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +7 -7
  57. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
  58. package/sdk/platform/Common/CommonPlatformClient.js +7 -18
  59. package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
  60. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
  61. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
  62. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  63. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
  65. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
  67. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
  69. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
  70. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -62
  72. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +0 -1
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -7
  74. package/sdk/platform/Content/ContentPlatformModel.js +1 -0
  75. package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
  76. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
  79. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
  81. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
  82. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
  83. package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
  84. package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
  85. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
  86. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
  88. package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
  89. package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
  90. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
  91. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  92. package/sdk/platform/Order/OrderPlatformClient.js +16 -3
  93. package/sdk/platform/Order/OrderPlatformModel.js +1 -0
  94. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  95. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  96. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  97. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
  98. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
  99. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
  100. package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
  101. package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
  102. package/sdk/platform/PlatformClient.d.ts +13 -9
  103. package/sdk/platform/PlatformClient.js +13 -9
  104. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +4 -4
  105. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +36 -17
  106. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +1 -1
  107. package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
  108. package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
  109. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
  110. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
  111. package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
  112. package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
  113. package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
  114. package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
  115. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
  116. package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
  117. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  118. package/.github/workflows/on_create_release.yml +0 -23
  119. package/.github/workflows/on_merge_main.yml +0 -38
  120. package/.github/workflows/on_pull_request.yml +0 -35
  121. package/.prettierrc +0 -5
  122. package/documentation/application/CART.md +0 -8771
  123. package/documentation/application/CATALOG.md +0 -8690
  124. package/documentation/application/COMMON.md +0 -325
  125. package/documentation/application/COMMUNICATION.md +0 -387
  126. package/documentation/application/CONFIGURATION.md +0 -2212
  127. package/documentation/application/CONTENT.md +0 -2629
  128. package/documentation/application/FILESTORAGE.md +0 -442
  129. package/documentation/application/LEAD.md +0 -1549
  130. package/documentation/application/LOGISTIC.md +0 -689
  131. package/documentation/application/ORDER.md +0 -2937
  132. package/documentation/application/PAYMENT.md +0 -4475
  133. package/documentation/application/POSCART.md +0 -9375
  134. package/documentation/application/README.md +0 -21
  135. package/documentation/application/REWARDS.md +0 -554
  136. package/documentation/application/SHARE.md +0 -635
  137. package/documentation/application/THEME.md +0 -5517
  138. package/documentation/application/USER.md +0 -3798
  139. package/documentation/platform/ANALYTICS.md +0 -1012
  140. package/documentation/platform/AUDITTRAIL.md +0 -493
  141. package/documentation/platform/BILLING.md +0 -1889
  142. package/documentation/platform/CART.md +0 -4711
  143. package/documentation/platform/CATALOG.md +0 -20522
  144. package/documentation/platform/COMMON.md +0 -325
  145. package/documentation/platform/COMMUNICATION.md +0 -4970
  146. package/documentation/platform/COMPANYPROFILE.md +0 -1646
  147. package/documentation/platform/CONFIGURATION.md +0 -6316
  148. package/documentation/platform/CONTENT.md +0 -8364
  149. package/documentation/platform/DISCOUNT.md +0 -767
  150. package/documentation/platform/FILESTORAGE.md +0 -945
  151. package/documentation/platform/INVENTORY.md +0 -1136
  152. package/documentation/platform/LEAD.md +0 -4394
  153. package/documentation/platform/ORDER.md +0 -6525
  154. package/documentation/platform/PARTNER.md +0 -193
  155. package/documentation/platform/PAYMENT.md +0 -3138
  156. package/documentation/platform/README.md +0 -27
  157. package/documentation/platform/REWARDS.md +0 -919
  158. package/documentation/platform/SHARE.md +0 -513
  159. package/documentation/platform/THEME.md +0 -35446
  160. package/documentation/platform/USER.md +0 -2174
  161. package/documentation/platform/WEBHOOK.md +0 -485
  162. package/documentation/public/CONFIGURATION.md +0 -325
  163. package/documentation/public/INVENTORY.md +0 -508
  164. package/documentation/public/WEBHOOK.md +0 -246
  165. package/jest.config.d.ts +0 -4
  166. package/jest.config.js +0 -6
  167. package/tests/application/catalog.spec.js +0 -54
  168. package/tests/common/action-url.spec.js +0 -35
  169. package/tests/common/schema/action-url.json +0 -178
  170. package/tests/common/schema/url-action.json +0 -683
  171. package/tests/common/url-action.spec.js +0 -48
  172. package/tests/helpers/cookie.helper.js +0 -31
  173. package/tests/helpers/oauth.helper.js +0 -43
  174. package/tests/platform/catalog.spec.js +0 -49
  175. package/tests/public/location.spec.js +0 -39
@@ -1,1889 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## Billing Methods
9
- Handle platform subscription
10
-
11
- * [activateSubscriptionPlan](#activatesubscriptionplan)
12
- * [cancelSubscriptionCharge](#cancelsubscriptioncharge)
13
- * [cancelSubscriptionPlan](#cancelsubscriptionplan)
14
- * [checkCouponValidity](#checkcouponvalidity)
15
- * [createSubscriptionCharge](#createsubscriptioncharge)
16
- * [getCustomerDetail](#getcustomerdetail)
17
- * [getFeatureLimitConfig](#getfeaturelimitconfig)
18
- * [getInvoiceById](#getinvoicebyid)
19
- * [getInvoices](#getinvoices)
20
- * [getSubscription](#getsubscription)
21
- * [getSubscriptionCharge](#getsubscriptioncharge)
22
- * [upsertCustomerDetail](#upsertcustomerdetail)
23
-
24
-
25
-
26
- ## Methods with example and description
27
-
28
-
29
-
30
-
31
- ### activateSubscriptionPlan
32
- Activate subscription
33
-
34
-
35
-
36
- ```javascript
37
- // Promise
38
- const promise = client.billing.activateSubscriptionPlan({ body : value });
39
-
40
- // Async/Await
41
- const data = await client.billing.activateSubscriptionPlan({ body : value });
42
- ```
43
-
44
-
45
-
46
-
47
-
48
- | Argument | Type | Required | Description |
49
- | --------- | ----- | -------- | ----------- |
50
- | body | [SubscriptionActivateReq](#SubscriptionActivateReq) | yes | Request body |
51
-
52
-
53
- It will activate subscription plan for customer
54
-
55
- *Returned Response:*
56
-
57
-
58
-
59
-
60
- [SubscriptionActivateRes](#SubscriptionActivateRes)
61
-
62
- Success
63
-
64
-
65
-
66
-
67
- <details>
68
- <summary><i>&nbsp; Examples:</i></summary>
69
-
70
-
71
- <details>
72
- <summary><i>&nbsp; default</i></summary>
73
-
74
- ```json
75
- {
76
- "value": {
77
- "success": true,
78
- "data": {
79
- "pause_collection": {},
80
- "trial": {},
81
- "invoice_settings": {
82
- "generation": true,
83
- "charging": true
84
- },
85
- "is_active": true,
86
- "cancel_at_period_end": false,
87
- "_id": "601b8e4a32d3e837ec662f5c",
88
- "subscriber_id": "5ef5f810961ddf004c1457ac",
89
- "plan_id": "5f3a8786c90d780037723a12",
90
- "product_suite_id": "5f3a8786c90d7800377239f3",
91
- "plan_data": {
92
- "recurring": {
93
- "interval": "month",
94
- "interval_count": 1
95
- },
96
- "is_trial_plan": false,
97
- "plan_group": "default",
98
- "tag_lines": [],
99
- "currency": "INR",
100
- "is_active": true,
101
- "is_visible": true,
102
- "trial_period": 0,
103
- "addons": [],
104
- "tags": [],
105
- "type": "public",
106
- "country": "IN",
107
- "_id": "5f3a8786c90d780037723a12",
108
- "name": "Standard",
109
- "description": "Standard",
110
- "amount": 999,
111
- "product_suite_id": "5f3a8786c90d7800377239f3",
112
- "created_at": "2020-08-17T13:35:02.547Z",
113
- "modified_at": "2020-08-17T13:35:02.547Z"
114
- },
115
- "current_period": {
116
- "start": "2021-02-04T06:03:54.567Z",
117
- "end": "2021-03-04T06:03:54.567Z"
118
- },
119
- "current_status": "active",
120
- "collection_method": "charge_automatically",
121
- "created_at": "2021-02-04T06:03:54.580Z",
122
- "modified_at": "2021-02-04T06:03:54.580Z"
123
- }
124
- }
125
- }
126
- ```
127
- </details>
128
-
129
- </details>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
- ---
140
-
141
-
142
- ### cancelSubscriptionCharge
143
- Cancel subscription charge
144
-
145
-
146
-
147
- ```javascript
148
- // Promise
149
- const promise = client.billing.cancelSubscriptionCharge({ extensionId : value,
150
- subscriptionId : value });
151
-
152
- // Async/Await
153
- const data = await client.billing.cancelSubscriptionCharge({ extensionId : value,
154
- subscriptionId : value });
155
- ```
156
-
157
-
158
-
159
-
160
-
161
- | Argument | Type | Required | Description |
162
- | --------- | ----- | -------- | ----------- |
163
- | extensionId | string | yes | Extension _id |
164
- | subscriptionId | string | yes | Subscription charge _id |
165
-
166
-
167
-
168
- Cancel subscription and attached charges.
169
-
170
- *Returned Response:*
171
-
172
-
173
-
174
-
175
- [EntitySubscription](#EntitySubscription)
176
-
177
- Success
178
-
179
-
180
-
181
-
182
- <details>
183
- <summary><i>&nbsp; Example:</i></summary>
184
-
185
- ```json
186
-
187
- ```
188
- </details>
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- ---
199
-
200
-
201
- ### cancelSubscriptionPlan
202
- Cancel subscription
203
-
204
-
205
-
206
- ```javascript
207
- // Promise
208
- const promise = client.billing.cancelSubscriptionPlan({ body : value });
209
-
210
- // Async/Await
211
- const data = await client.billing.cancelSubscriptionPlan({ body : value });
212
- ```
213
-
214
-
215
-
216
-
217
-
218
- | Argument | Type | Required | Description |
219
- | --------- | ----- | -------- | ----------- |
220
- | body | [CancelSubscriptionReq](#CancelSubscriptionReq) | yes | Request body |
221
-
222
-
223
- It will cancel current active subscription.
224
-
225
- *Returned Response:*
226
-
227
-
228
-
229
-
230
- [CancelSubscriptionRes](#CancelSubscriptionRes)
231
-
232
- Success
233
-
234
-
235
-
236
-
237
- <details>
238
- <summary><i>&nbsp; Examples:</i></summary>
239
-
240
-
241
- <details>
242
- <summary><i>&nbsp; default</i></summary>
243
-
244
- ```json
245
- {
246
- "value": {
247
- "success": true,
248
- "data": {
249
- "current_period": {
250
- "start": "2021-02-04T06:03:54.567Z",
251
- "end": "2021-03-04T06:03:54.567Z"
252
- },
253
- "pause_collection": {},
254
- "trial": {},
255
- "invoice_settings": {
256
- "generation": true,
257
- "charging": true
258
- },
259
- "is_active": false,
260
- "cancel_at_period_end": false,
261
- "_id": "601b8e4a32d3e837ec662f5c",
262
- "subscriber_id": "5ef5f810961ddf004c1457ac",
263
- "plan_id": "5f3a8786c90d780037723a12",
264
- "product_suite_id": "5f3a8786c90d7800377239f3",
265
- "plan_data": {
266
- "recurring": {
267
- "interval": "month",
268
- "interval_count": 1
269
- },
270
- "is_trial_plan": false,
271
- "plan_group": "default",
272
- "tag_lines": [],
273
- "currency": "INR",
274
- "is_active": true,
275
- "is_visible": true,
276
- "trial_period": 0,
277
- "addons": [],
278
- "tags": [],
279
- "type": "public",
280
- "country": "IN",
281
- "_id": "5f3a8786c90d780037723a12",
282
- "name": "Standard",
283
- "description": "Standard",
284
- "amount": 999,
285
- "product_suite_id": "5f3a8786c90d7800377239f3",
286
- "created_at": "2020-08-17T13:35:02.547Z",
287
- "modified_at": "2020-08-17T13:35:02.547Z"
288
- },
289
- "current_status": "canceled",
290
- "collection_method": "charge_automatically",
291
- "created_at": "2021-02-04T06:03:54.580Z",
292
- "modified_at": "2021-02-04T08:52:25.806Z",
293
- "cancel_at": "2021-02-04T08:52:25.802Z",
294
- "canceled_at": "2021-02-04T08:52:25.802Z"
295
- }
296
- }
297
- }
298
- ```
299
- </details>
300
-
301
- </details>
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
- ---
312
-
313
-
314
- ### checkCouponValidity
315
- Check coupon validity
316
-
317
-
318
-
319
- ```javascript
320
- // Promise
321
- const promise = client.billing.checkCouponValidity({ plan : value,
322
- couponCode : value });
323
-
324
- // Async/Await
325
- const data = await client.billing.checkCouponValidity({ plan : value,
326
- couponCode : value });
327
- ```
328
-
329
-
330
-
331
-
332
-
333
- | Argument | Type | Required | Description |
334
- | --------- | ----- | -------- | ----------- |
335
- | plan | string | yes | ID of the plan. |
336
- | couponCode | string | yes | Coupon code. |
337
-
338
-
339
-
340
- Check coupon validity.
341
-
342
- *Returned Response:*
343
-
344
-
345
-
346
-
347
- [CheckValidityResponse](#CheckValidityResponse)
348
-
349
- Success
350
-
351
-
352
-
353
-
354
- <details>
355
- <summary><i>&nbsp; Example:</i></summary>
356
-
357
- ```json
358
-
359
- ```
360
- </details>
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
- ---
371
-
372
-
373
- ### createSubscriptionCharge
374
- Create subscription charge
375
-
376
-
377
-
378
- ```javascript
379
- // Promise
380
- const promise = client.billing.createSubscriptionCharge({ extensionId : value,
381
- body : value });
382
-
383
- // Async/Await
384
- const data = await client.billing.createSubscriptionCharge({ extensionId : value,
385
- body : value });
386
- ```
387
-
388
-
389
-
390
-
391
-
392
- | Argument | Type | Required | Description |
393
- | --------- | ----- | -------- | ----------- |
394
- | extensionId | string | yes | Extension _id |
395
- | body | [CreateSubscriptionCharge](#CreateSubscriptionCharge) | yes | Request body |
396
-
397
-
398
- Register subscription charge for a seller of your extension.
399
-
400
- *Returned Response:*
401
-
402
-
403
-
404
-
405
- [CreateSubscriptionResponse](#CreateSubscriptionResponse)
406
-
407
- Success
408
-
409
-
410
-
411
-
412
- <details>
413
- <summary><i>&nbsp; Example:</i></summary>
414
-
415
- ```json
416
-
417
- ```
418
- </details>
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
- ---
429
-
430
-
431
- ### getCustomerDetail
432
- Get subscription customer detail
433
-
434
-
435
-
436
- ```javascript
437
- // Promise
438
- const promise = client.billing.getCustomerDetail();
439
-
440
- // Async/Await
441
- const data = await client.billing.getCustomerDetail();
442
- ```
443
-
444
-
445
-
446
-
447
-
448
-
449
- Get subscription customer detail.
450
-
451
- *Returned Response:*
452
-
453
-
454
-
455
-
456
- [SubscriptionCustomer](#SubscriptionCustomer)
457
-
458
- Success
459
-
460
-
461
-
462
-
463
- <details>
464
- <summary><i>&nbsp; Examples:</i></summary>
465
-
466
-
467
- <details>
468
- <summary><i>&nbsp; default</i></summary>
469
-
470
- ```json
471
- {
472
- "value": {
473
- "phone": {
474
- "phone_number": "1234567890",
475
- "phone_country_code": "91"
476
- },
477
- "billing_address": {
478
- "country": "India",
479
- "state": "Maharastra",
480
- "city": "Mumbai",
481
- "line1": "test1",
482
- "line2": "test2",
483
- "postal_code": "400059"
484
- },
485
- "_id": "5ee773e1351e5e84289ed9cf",
486
- "unique_id": "1",
487
- "type": "company",
488
- "name": "test retail",
489
- "email": "test@gmail.com",
490
- "created_at": "2020-06-15T13:13:05.267Z",
491
- "modified_at": "2021-02-04T00:58:45.356Z",
492
- "data": {
493
- "pg_user_exists": true,
494
- "id": 2
495
- }
496
- }
497
- }
498
- ```
499
- </details>
500
-
501
- </details>
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
- ---
512
-
513
-
514
- ### getFeatureLimitConfig
515
- Get subscription subscription limits
516
-
517
-
518
-
519
- ```javascript
520
- // Promise
521
- const promise = client.billing.getFeatureLimitConfig();
522
-
523
- // Async/Await
524
- const data = await client.billing.getFeatureLimitConfig();
525
- ```
526
-
527
-
528
-
529
-
530
-
531
-
532
- Get subscription subscription limits.
533
-
534
- *Returned Response:*
535
-
536
-
537
-
538
-
539
- [SubscriptionLimit](#SubscriptionLimit)
540
-
541
- Success
542
-
543
-
544
-
545
-
546
- <details>
547
- <summary><i>&nbsp; Examples:</i></summary>
548
-
549
-
550
- <details>
551
- <summary><i>&nbsp; default</i></summary>
552
-
553
- ```json
554
- {
555
- "value": {
556
- "application": {
557
- "enabled": true,
558
- "hard_limit": 25,
559
- "soft_limit": 25
560
- },
561
- "marketplace": {
562
- "enabled": true
563
- },
564
- "other_platform": {
565
- "enabled": true
566
- },
567
- "team": {
568
- "limit": -1
569
- },
570
- "products": {
571
- "bulk": true,
572
- "limit": -1
573
- },
574
- "extensions": {
575
- "enabled": true,
576
- "limit": -1
577
- },
578
- "integrations": {
579
- "enabled": true,
580
- "limit": -1
581
- },
582
- "is_trial_plan": false
583
- }
584
- }
585
- ```
586
- </details>
587
-
588
- </details>
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
- ---
599
-
600
-
601
- ### getInvoiceById
602
- Get invoice by id
603
-
604
-
605
-
606
- ```javascript
607
- // Promise
608
- const promise = client.billing.getInvoiceById({ invoiceId : value });
609
-
610
- // Async/Await
611
- const data = await client.billing.getInvoiceById({ invoiceId : value });
612
- ```
613
-
614
-
615
-
616
-
617
-
618
- | Argument | Type | Required | Description |
619
- | --------- | ----- | -------- | ----------- |
620
- | invoiceId | string | yes | Invoice id |
621
-
622
-
623
-
624
- Get invoice by id.
625
-
626
- *Returned Response:*
627
-
628
-
629
-
630
-
631
- [Invoice](#Invoice)
632
-
633
- Success
634
-
635
-
636
-
637
-
638
- <details>
639
- <summary><i>&nbsp; Examples:</i></summary>
640
-
641
-
642
- <details>
643
- <summary><i>&nbsp; default</i></summary>
644
-
645
- ```json
646
- {
647
- "value": {
648
- "invoice": {
649
- "period": {
650
- "start": "2020-08-17T13:45:36.722Z",
651
- "end": "2020-09-17T13:45:36.722Z"
652
- },
653
- "client": {
654
- "address_lines": [
655
- "TV TOWER, Foot Over Bridge Khar",
656
- null,
657
- "Mumbai, 400079, Maharashtra, India"
658
- ],
659
- "name": "RELIANCE RETAIL LTD",
660
- "email": "ZAK@GMAIL.COM",
661
- "phone": "91 1234567890"
662
- },
663
- "auto_advance": true,
664
- "currency": "INR",
665
- "paid": true,
666
- "attemp": 3,
667
- "_id": "5f7acb709e76da30e3b92cdb",
668
- "collection_method": "charge_automatically",
669
- "subscriber_id": "5ee773e1351e5e84289ed9cf",
670
- "invoice_url": "",
671
- "number": "FP-1-72020-736",
672
- "pg_data": {},
673
- "receipt_number": "5fd9b08464dc6ac048a08988",
674
- "statement_descriptor": "RELIANCE RETAIL LTD",
675
- "current_status": "paid",
676
- "status_trail": [
677
- {
678
- "_id": "5f7ad29bd562744eab216379",
679
- "value": "draft",
680
- "timestamp": "2020-10-05T08:00:27.753Z"
681
- },
682
- {
683
- "_id": "5fcf40ce1613c029aff417dd",
684
- "value": "open",
685
- "timestamp": "2020-12-08T09:01:02.038Z"
686
- },
687
- {
688
- "_id": "5fd9b08664dc6a1ad0a08989",
689
- "value": "paid",
690
- "timestamp": "2020-12-16T07:00:22.973Z"
691
- }
692
- ],
693
- "subtotal": 15720.08,
694
- "total": 15720.08,
695
- "subscription": "5f3a8a00668947663b7fbd38",
696
- "next_action_time": "2020-10-05T09:00:27.754Z",
697
- "created_at": "2020-10-05T07:29:52.876Z",
698
- "modified_at": "2020-12-16T07:00:22.980Z",
699
- "hash_identifier": "575999aca03e36f0fa54db5235bc7f25",
700
- "payment_method": {
701
- "pg_payment_method_id": null
702
- }
703
- },
704
- "invoice_items": [
705
- {
706
- "_id": "5f7acb709e76da48b1b92cdd",
707
- "currency": "INR",
708
- "plan": {
709
- "recurring": {
710
- "interval": "month",
711
- "interval_count": 1
712
- },
713
- "is_trial_plan": false,
714
- "plan_group": "default",
715
- "tag_lines": [],
716
- "currency": "INR",
717
- "is_active": true,
718
- "is_visible": true,
719
- "trial_period": 0,
720
- "addons": [],
721
- "tags": [],
722
- "type": "public",
723
- "country": "IN",
724
- "_id": "5f3a8786c90d780037723a14",
725
- "name": "Professional",
726
- "description": "Professional",
727
- "amount": 1499,
728
- "product_suite_id": "5f3a8786c90d7800377239f3",
729
- "created_at": "2020-08-17T13:35:02.802Z",
730
- "modified_at": "2020-08-17T13:35:02.802Z"
731
- },
732
- "name": "Professional",
733
- "quantity": 1,
734
- "description": "Professional",
735
- "period": {
736
- "start": "2020-08-17T13:45:36.722Z",
737
- "end": "2020-10-05T07:29:52.868Z"
738
- },
739
- "unit_amount": 2356.77,
740
- "amount": 2356.77,
741
- "type": "subscription",
742
- "invoice_id": "5f7acb709e76da30e3b92cdb",
743
- "created_at": "2020-10-05T07:29:52.886Z",
744
- "modified_at": "2020-10-05T07:29:52.886Z"
745
- },
746
- {
747
- "_id": "5f7acf199aa6830c4fe5e984",
748
- "currency": "INR",
749
- "plan": {
750
- "recurring": {
751
- "interval": "month",
752
- "interval_count": 1
753
- },
754
- "is_trial_plan": false,
755
- "plan_group": "default",
756
- "tag_lines": [],
757
- "currency": "INR",
758
- "is_active": true,
759
- "is_visible": true,
760
- "trial_period": 0,
761
- "addons": [],
762
- "tags": [
763
- "popular"
764
- ],
765
- "type": "public",
766
- "country": "IN",
767
- "_id": "5f3a8786c90d780037723a13",
768
- "name": "Premium",
769
- "description": "Premium",
770
- "amount": 2499,
771
- "product_suite_id": "5f3a8786c90d7800377239f3",
772
- "created_at": "2020-08-17T13:35:02.547Z",
773
- "modified_at": "2020-08-17T13:35:02.547Z"
774
- },
775
- "name": "Premium",
776
- "quantity": 1,
777
- "description": "Premium",
778
- "period": {
779
- "start": "2020-08-17T13:45:36.722Z",
780
- "end": "2020-10-05T07:45:29.755Z"
781
- },
782
- "unit_amount": 3929.87,
783
- "amount": 3929.87,
784
- "type": "subscription",
785
- "invoice_id": "5f7acb709e76da30e3b92cdb",
786
- "created_at": "2020-10-05T07:45:29.765Z",
787
- "modified_at": "2020-10-05T07:45:29.765Z"
788
- },
789
- {
790
- "_id": "5f7acf7da10a707fc502dcd4",
791
- "currency": "INR",
792
- "plan": {
793
- "recurring": {
794
- "interval": "month",
795
- "interval_count": 1
796
- },
797
- "is_trial_plan": false,
798
- "plan_group": "default",
799
- "tag_lines": [],
800
- "currency": "INR",
801
- "is_active": true,
802
- "is_visible": true,
803
- "trial_period": 0,
804
- "addons": [],
805
- "tags": [],
806
- "type": "public",
807
- "country": "IN",
808
- "_id": "5f3a8786c90d780037723a16",
809
- "name": "Ultra Premium",
810
- "description": "Ultra Premium",
811
- "amount": 2999,
812
- "product_suite_id": "5f3a8786c90d7800377239f3",
813
- "created_at": "2020-08-17T13:35:02.802Z",
814
- "modified_at": "2020-08-17T13:35:02.802Z"
815
- },
816
- "name": "Ultra Premium",
817
- "quantity": 1,
818
- "description": "Ultra Premium",
819
- "period": {
820
- "start": "2020-08-17T13:45:36.722Z",
821
- "end": "2020-10-05T07:47:09.532Z"
822
- },
823
- "unit_amount": 4716.27,
824
- "amount": 4716.27,
825
- "type": "subscription",
826
- "invoice_id": "5f7acb709e76da30e3b92cdb",
827
- "created_at": "2020-10-05T07:47:09.541Z",
828
- "modified_at": "2020-10-05T07:47:09.541Z"
829
- },
830
- {
831
- "_id": "5f7ad29bd56274f23321637a",
832
- "currency": "INR",
833
- "plan": {
834
- "recurring": {
835
- "interval": "month",
836
- "interval_count": 1
837
- },
838
- "is_trial_plan": false,
839
- "plan_group": "default",
840
- "tag_lines": [],
841
- "currency": "INR",
842
- "is_active": true,
843
- "is_visible": true,
844
- "trial_period": 0,
845
- "addons": [],
846
- "tags": [],
847
- "type": "public",
848
- "country": "IN",
849
- "_id": "5f3a8786c90d780037723a16",
850
- "name": "Ultra Premium",
851
- "description": "Ultra Premium",
852
- "amount": 2999,
853
- "product_suite_id": "5f3a8786c90d7800377239f3",
854
- "created_at": "2020-08-17T13:35:02.802Z",
855
- "modified_at": "2020-08-17T13:35:02.802Z"
856
- },
857
- "name": "Ultra Premium",
858
- "quantity": 1,
859
- "description": "Ultra Premium",
860
- "period": {
861
- "start": "2020-08-17T13:45:36.722Z",
862
- "end": "2020-10-05T08:00:27.753Z"
863
- },
864
- "unit_amount": 4717.17,
865
- "amount": 4717.17,
866
- "type": "subscription",
867
- "invoice_id": "5f7acb709e76da30e3b92cdb",
868
- "created_at": "2020-10-05T08:00:27.768Z",
869
- "modified_at": "2020-10-05T08:00:27.768Z"
870
- }
871
- ]
872
- }
873
- }
874
- ```
875
- </details>
876
-
877
- </details>
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
- ---
888
-
889
-
890
- ### getInvoices
891
- Get invoices
892
-
893
-
894
-
895
- ```javascript
896
- // Promise
897
- const promise = client.billing.getInvoices();
898
-
899
- // Async/Await
900
- const data = await client.billing.getInvoices();
901
- ```
902
-
903
-
904
-
905
-
906
-
907
-
908
- Get invoices.
909
-
910
- *Returned Response:*
911
-
912
-
913
-
914
-
915
- [Invoices](#Invoices)
916
-
917
- Success
918
-
919
-
920
-
921
-
922
- <details>
923
- <summary><i>&nbsp; Examples:</i></summary>
924
-
925
-
926
- <details>
927
- <summary><i>&nbsp; default</i></summary>
928
-
929
- ```json
930
- {
931
- "value": {
932
- "data": [
933
- {
934
- "_id": "5f7acb709e76da30e3b92cdb",
935
- "client": {
936
- "name": "RELIANCE RETAIL LTD",
937
- "email": "ZAK@GMAIL.COM",
938
- "phone": "91 1234567890",
939
- "address_lines": [
940
- "TV TOWER, Foot Over Bridge Khar",
941
- null,
942
- "Mumbai, 400079, Maharashtra, India"
943
- ]
944
- },
945
- "auto_advance": true,
946
- "currency": "INR",
947
- "paid": true,
948
- "attemp": 3,
949
- "collection_method": "charge_automatically",
950
- "subscriber_id": "5ee773e1351e5e84289ed9cf",
951
- "invoice_url": "",
952
- "number": "FP-1-72020-736",
953
- "pg_data": {},
954
- "period": {
955
- "start": "2020-08-17T13:45:36.722Z",
956
- "end": "2020-09-17T13:45:36.722Z"
957
- },
958
- "receipt_number": "5fd9b08464dc6ac048a08988",
959
- "statement_descriptor": "RELIANCE RETAIL LTD",
960
- "current_status": "paid",
961
- "status_trail": [
962
- {
963
- "_id": "5f7ad29bd562744eab216379",
964
- "value": "draft",
965
- "timestamp": "2020-10-05T08:00:27.753Z"
966
- },
967
- {
968
- "_id": "5fcf40ce1613c029aff417dd",
969
- "value": "open",
970
- "timestamp": "2020-12-08T09:01:02.038Z"
971
- },
972
- {
973
- "_id": "5fd9b08664dc6a1ad0a08989",
974
- "value": "paid",
975
- "timestamp": "2020-12-16T07:00:22.973Z"
976
- }
977
- ],
978
- "subtotal": 15720.08,
979
- "total": 15720.08,
980
- "subscription": "5f3a8a00668947663b7fbd38",
981
- "next_action_time": "2020-10-05T09:00:27.754Z",
982
- "created_at": "2020-10-05T07:29:52.876Z",
983
- "modified_at": "2020-12-16T07:00:22.980Z",
984
- "hash_identifier": "575999aca03e36f0fa54db5235bc7f25",
985
- "payment_method": {
986
- "pg_payment_method_id": null
987
- },
988
- "invoice_items": [
989
- {
990
- "_id": "5f7acb709e76da48b1b92cdd",
991
- "currency": "INR",
992
- "plan": {
993
- "recurring": {
994
- "interval": "month",
995
- "interval_count": 1
996
- },
997
- "is_trial_plan": false,
998
- "plan_group": "default",
999
- "tag_lines": [],
1000
- "currency": "INR",
1001
- "is_active": true,
1002
- "is_visible": true,
1003
- "trial_period": 0,
1004
- "addons": [],
1005
- "tags": [],
1006
- "type": "public",
1007
- "country": "IN",
1008
- "_id": "5f3a8786c90d780037723a14",
1009
- "name": "Professional",
1010
- "description": "Professional",
1011
- "amount": 1499,
1012
- "product_suite_id": "5f3a8786c90d7800377239f3",
1013
- "created_at": "2020-08-17T13:35:02.802Z",
1014
- "modified_at": "2020-08-17T13:35:02.802Z"
1015
- },
1016
- "name": "Professional",
1017
- "quantity": 1,
1018
- "description": "Professional",
1019
- "period": {
1020
- "start": "2020-08-17T13:45:36.722Z",
1021
- "end": "2020-10-05T07:29:52.868Z"
1022
- },
1023
- "unit_amount": 2356.77,
1024
- "amount": 2356.77,
1025
- "type": "subscription",
1026
- "invoice_id": "5f7acb709e76da30e3b92cdb",
1027
- "created_at": "2020-10-05T07:29:52.886Z",
1028
- "modified_at": "2020-10-05T07:29:52.886Z"
1029
- },
1030
- {
1031
- "_id": "5f7acf199aa6830c4fe5e984",
1032
- "currency": "INR",
1033
- "plan": {
1034
- "recurring": {
1035
- "interval": "month",
1036
- "interval_count": 1
1037
- },
1038
- "is_trial_plan": false,
1039
- "plan_group": "default",
1040
- "tag_lines": [],
1041
- "currency": "INR",
1042
- "is_active": true,
1043
- "is_visible": true,
1044
- "trial_period": 0,
1045
- "addons": [],
1046
- "tags": [
1047
- "popular"
1048
- ],
1049
- "type": "public",
1050
- "country": "IN",
1051
- "_id": "5f3a8786c90d780037723a13",
1052
- "name": "Premium",
1053
- "description": "Premium",
1054
- "amount": 2499,
1055
- "product_suite_id": "5f3a8786c90d7800377239f3",
1056
- "created_at": "2020-08-17T13:35:02.547Z",
1057
- "modified_at": "2020-08-17T13:35:02.547Z"
1058
- },
1059
- "name": "Premium",
1060
- "quantity": 1,
1061
- "description": "Premium",
1062
- "period": {
1063
- "start": "2020-08-17T13:45:36.722Z",
1064
- "end": "2020-10-05T07:45:29.755Z"
1065
- },
1066
- "unit_amount": 3929.87,
1067
- "amount": 3929.87,
1068
- "type": "subscription",
1069
- "invoice_id": "5f7acb709e76da30e3b92cdb",
1070
- "created_at": "2020-10-05T07:45:29.765Z",
1071
- "modified_at": "2020-10-05T07:45:29.765Z"
1072
- },
1073
- {
1074
- "_id": "5f7acf7da10a707fc502dcd4",
1075
- "currency": "INR",
1076
- "plan": {
1077
- "recurring": {
1078
- "interval": "month",
1079
- "interval_count": 1
1080
- },
1081
- "is_trial_plan": false,
1082
- "plan_group": "default",
1083
- "tag_lines": [],
1084
- "currency": "INR",
1085
- "is_active": true,
1086
- "is_visible": true,
1087
- "trial_period": 0,
1088
- "addons": [],
1089
- "tags": [],
1090
- "type": "public",
1091
- "country": "IN",
1092
- "_id": "5f3a8786c90d780037723a16",
1093
- "name": "Ultra Premium",
1094
- "description": "Ultra Premium",
1095
- "amount": 2999,
1096
- "product_suite_id": "5f3a8786c90d7800377239f3",
1097
- "created_at": "2020-08-17T13:35:02.802Z",
1098
- "modified_at": "2020-08-17T13:35:02.802Z"
1099
- },
1100
- "name": "Ultra Premium",
1101
- "quantity": 1,
1102
- "description": "Ultra Premium",
1103
- "period": {
1104
- "start": "2020-08-17T13:45:36.722Z",
1105
- "end": "2020-10-05T07:47:09.532Z"
1106
- },
1107
- "unit_amount": 4716.27,
1108
- "amount": 4716.27,
1109
- "type": "subscription",
1110
- "invoice_id": "5f7acb709e76da30e3b92cdb",
1111
- "created_at": "2020-10-05T07:47:09.541Z",
1112
- "modified_at": "2020-10-05T07:47:09.541Z"
1113
- },
1114
- {
1115
- "_id": "5f7ad29bd56274f23321637a",
1116
- "currency": "INR",
1117
- "plan": {
1118
- "recurring": {
1119
- "interval": "month",
1120
- "interval_count": 1
1121
- },
1122
- "is_trial_plan": false,
1123
- "plan_group": "default",
1124
- "tag_lines": [],
1125
- "currency": "INR",
1126
- "is_active": true,
1127
- "is_visible": true,
1128
- "trial_period": 0,
1129
- "addons": [],
1130
- "tags": [],
1131
- "type": "public",
1132
- "country": "IN",
1133
- "_id": "5f3a8786c90d780037723a16",
1134
- "name": "Ultra Premium",
1135
- "description": "Ultra Premium",
1136
- "amount": 2999,
1137
- "product_suite_id": "5f3a8786c90d7800377239f3",
1138
- "created_at": "2020-08-17T13:35:02.802Z",
1139
- "modified_at": "2020-08-17T13:35:02.802Z"
1140
- },
1141
- "name": "Ultra Premium",
1142
- "quantity": 1,
1143
- "description": "Ultra Premium",
1144
- "period": {
1145
- "start": "2020-08-17T13:45:36.722Z",
1146
- "end": "2020-10-05T08:00:27.753Z"
1147
- },
1148
- "unit_amount": 4717.17,
1149
- "amount": 4717.17,
1150
- "type": "subscription",
1151
- "invoice_id": "5f7acb709e76da30e3b92cdb",
1152
- "created_at": "2020-10-05T08:00:27.768Z",
1153
- "modified_at": "2020-10-05T08:00:27.768Z"
1154
- }
1155
- ]
1156
- }
1157
- ],
1158
- "start": 0,
1159
- "end": 10,
1160
- "limit": 10,
1161
- "page": 1,
1162
- "total": 1
1163
- }
1164
- }
1165
- ```
1166
- </details>
1167
-
1168
- </details>
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
-
1178
- ---
1179
-
1180
-
1181
- ### getSubscription
1182
- Get current subscription detail
1183
-
1184
-
1185
-
1186
- ```javascript
1187
- // Promise
1188
- const promise = client.billing.getSubscription();
1189
-
1190
- // Async/Await
1191
- const data = await client.billing.getSubscription();
1192
- ```
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
- If subscription is active then it will return is_enabled true and return subscription object. If subscription is not active then is_enabled false and message.
1200
-
1201
-
1202
- *Returned Response:*
1203
-
1204
-
1205
-
1206
-
1207
- [SubscriptionStatus](#SubscriptionStatus)
1208
-
1209
- Success
1210
-
1211
-
1212
-
1213
-
1214
- <details>
1215
- <summary><i>&nbsp; Examples:</i></summary>
1216
-
1217
-
1218
- <details>
1219
- <summary><i>&nbsp; Active subscription</i></summary>
1220
-
1221
- ```json
1222
- {
1223
- "value": {
1224
- "is_enabled": true,
1225
- "subscription": {
1226
- "current_period": {
1227
- "start": "2020-12-17T13:45:36.722Z",
1228
- "end": "2021-01-17T13:45:36.722Z"
1229
- },
1230
- "pause_collection": {},
1231
- "trial": {},
1232
- "invoice_settings": {
1233
- "generation": true,
1234
- "charging": true
1235
- },
1236
- "is_active": true,
1237
- "cancel_at_period_end": false,
1238
- "_id": "5f3a8a00668947663b7fbd38",
1239
- "subscriber_id": "5ee773e1351e5e84289ed9cf",
1240
- "plan_id": "5f3a8786c90d780037723a12",
1241
- "product_suite_id": "5f3a8786c90d7800377239f3",
1242
- "plan_data": {
1243
- "recurring": {
1244
- "interval": "month",
1245
- "interval_count": 1
1246
- },
1247
- "is_trial_plan": false,
1248
- "plan_group": "default",
1249
- "tag_lines": [],
1250
- "currency": "INR",
1251
- "is_active": true,
1252
- "is_visible": true,
1253
- "trial_period": 0,
1254
- "addons": [],
1255
- "tags": [],
1256
- "type": "public",
1257
- "country": "IN",
1258
- "_id": "5f3a8786c90d780037723a12",
1259
- "name": "Standard",
1260
- "description": "Standard",
1261
- "amount": 999,
1262
- "product_suite_id": "5f3a8786c90d7800377239f3",
1263
- "created_at": "2020-08-17T13:35:02.547Z",
1264
- "modified_at": "2020-08-17T13:35:02.547Z"
1265
- },
1266
- "current_status": "active",
1267
- "collection_method": "charge_automatically",
1268
- "created_at": "2020-08-17T13:45:36.731Z",
1269
- "modified_at": "2020-12-17T11:01:15.960Z",
1270
- "latest_invoice": "5fdb3a7bfc849c2153b944d5"
1271
- }
1272
- }
1273
- }
1274
- ```
1275
- </details>
1276
-
1277
- <details>
1278
- <summary><i>&nbsp; Inactive subscription</i></summary>
1279
-
1280
- ```json
1281
- {
1282
- "value": {
1283
- "is_enabled": true,
1284
- "message": "Subscription not enabled"
1285
- }
1286
- }
1287
- ```
1288
- </details>
1289
-
1290
- </details>
1291
-
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
- ---
1301
-
1302
-
1303
- ### getSubscriptionCharge
1304
- Get subscription charge details
1305
-
1306
-
1307
-
1308
- ```javascript
1309
- // Promise
1310
- const promise = client.billing.getSubscriptionCharge({ extensionId : value,
1311
- subscriptionId : value });
1312
-
1313
- // Async/Await
1314
- const data = await client.billing.getSubscriptionCharge({ extensionId : value,
1315
- subscriptionId : value });
1316
- ```
1317
-
1318
-
1319
-
1320
-
1321
-
1322
- | Argument | Type | Required | Description |
1323
- | --------- | ----- | -------- | ----------- |
1324
- | extensionId | string | yes | Extension _id |
1325
- | subscriptionId | string | yes | Subscription charge _id |
1326
-
1327
-
1328
-
1329
- Get created subscription charge details
1330
-
1331
- *Returned Response:*
1332
-
1333
-
1334
-
1335
-
1336
- [EntitySubscription](#EntitySubscription)
1337
-
1338
- Success
1339
-
1340
-
1341
-
1342
-
1343
- <details>
1344
- <summary><i>&nbsp; Example:</i></summary>
1345
-
1346
- ```json
1347
-
1348
- ```
1349
- </details>
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
-
1358
-
1359
- ---
1360
-
1361
-
1362
- ### upsertCustomerDetail
1363
- Upsert subscription customer detail
1364
-
1365
-
1366
-
1367
- ```javascript
1368
- // Promise
1369
- const promise = client.billing.upsertCustomerDetail({ body : value });
1370
-
1371
- // Async/Await
1372
- const data = await client.billing.upsertCustomerDetail({ body : value });
1373
- ```
1374
-
1375
-
1376
-
1377
-
1378
-
1379
- | Argument | Type | Required | Description |
1380
- | --------- | ----- | -------- | ----------- |
1381
- | body | [SubscriptionCustomerCreate](#SubscriptionCustomerCreate) | yes | Request body |
1382
-
1383
-
1384
- Upsert subscription customer detail.
1385
-
1386
- *Returned Response:*
1387
-
1388
-
1389
-
1390
-
1391
- [SubscriptionCustomer](#SubscriptionCustomer)
1392
-
1393
- Success
1394
-
1395
-
1396
-
1397
-
1398
- <details>
1399
- <summary><i>&nbsp; Examples:</i></summary>
1400
-
1401
-
1402
- <details>
1403
- <summary><i>&nbsp; default</i></summary>
1404
-
1405
- ```json
1406
- {
1407
- "value": {
1408
- "phone": {
1409
- "phone_number": "1234567890",
1410
- "phone_country_code": "91"
1411
- },
1412
- "billing_address": {
1413
- "country": "India",
1414
- "state": "Maharastra",
1415
- "city": "Mumbai",
1416
- "line1": "test1",
1417
- "line2": "test2",
1418
- "postal_code": "400059"
1419
- },
1420
- "_id": "5ee773e1351e5e84289ed9cf",
1421
- "unique_id": "1",
1422
- "type": "company",
1423
- "name": "test retail",
1424
- "email": "test@gmail.com",
1425
- "created_at": "2020-06-15T13:13:05.267Z",
1426
- "modified_at": "2021-02-04T00:58:45.356Z",
1427
- "data": {
1428
- "pg_user_exists": true,
1429
- "id": 2
1430
- }
1431
- }
1432
- }
1433
- ```
1434
- </details>
1435
-
1436
- </details>
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
-
1444
-
1445
-
1446
- ---
1447
-
1448
-
1449
-
1450
- ### Schemas
1451
-
1452
-
1453
- #### [BadRequest](#BadRequest)
1454
-
1455
- | Properties | Type | Nullable | Description |
1456
- | ---------- | ---- | -------- | ----------- || message | string | no | |
1457
-
1458
- ---
1459
-
1460
- #### [CancelSubscriptionReq](#CancelSubscriptionReq)
1461
-
1462
- | Properties | Type | Nullable | Description |
1463
- | ---------- | ---- | -------- | ----------- || product_suite | string | no | || subscription_id | string | no | || type | string | no | || unique_id | string | no | |
1464
-
1465
- ---
1466
-
1467
- #### [CancelSubscriptionRes](#CancelSubscriptionRes)
1468
-
1469
- | Properties | Type | Nullable | Description |
1470
- | ---------- | ---- | -------- | ----------- || data | [Subscription](#Subscription) | no | || success | boolean | no | |
1471
-
1472
- ---
1473
-
1474
- #### [ChargeLineItem](#ChargeLineItem)
1475
-
1476
- | Properties | Type | Nullable | Description |
1477
- | ---------- | ---- | -------- | ----------- || capped_amount | number | no | || is_test | boolean | no | || metadata | string | no | || name | string | yes | || price | [EntityChargePrice](#EntityChargePrice) | yes | || pricing_type | string | yes | || recurring | [EntityChargeRecurring](#EntityChargeRecurring) | no | || term | string | yes | || trial_days | number | no | |
1478
-
1479
- ---
1480
-
1481
- #### [CheckValidityResponse](#CheckValidityResponse)
1482
-
1483
- | Properties | Type | Nullable | Description |
1484
- | ---------- | ---- | -------- | ----------- || discount_amount | number | no | || is_valid | boolean | no | |
1485
-
1486
- ---
1487
-
1488
- #### [CreateSubscriptionCharge](#CreateSubscriptionCharge)
1489
-
1490
- | Properties | Type | Nullable | Description |
1491
- | ---------- | ---- | -------- | ----------- || is_test | boolean | no | || line_items | [[ChargeLineItem](#ChargeLineItem)] | yes | || name | string | yes | || return_url | string | yes | || trial_days | number | no | |
1492
-
1493
- ---
1494
-
1495
- #### [CreateSubscriptionResponse](#CreateSubscriptionResponse)
1496
-
1497
- | Properties | Type | Nullable | Description |
1498
- | ---------- | ---- | -------- | ----------- || confirm_url | string | no | || subscription | [EntitySubscription](#EntitySubscription) | no | |
1499
-
1500
- ---
1501
-
1502
- #### [CurrentPeriod](#CurrentPeriod)
1503
-
1504
- | Properties | Type | Nullable | Description |
1505
- | ---------- | ---- | -------- | ----------- || end_date | string | no | || start_date | string | no | |
1506
-
1507
- ---
1508
-
1509
- #### [DetailedPlan](#DetailedPlan)
1510
-
1511
- | Properties | Type | Nullable | Description |
1512
- | ---------- | ---- | -------- | ----------- || _id | string | no | || addons | [string] | no | || amount | number | no | || components | [[DetailedPlanComponents](#DetailedPlanComponents)] | no | || country | string | no | || created_at | string | no | || currency | string | no | || description | string | no | || is_active | boolean | no | || is_trial_plan | boolean | no | || is_visible | boolean | no | || modified_at | string | no | || name | string | no | || plan_group | string | no | || product_suite_id | string | no | || recurring | [PlanRecurring](#PlanRecurring) | no | || tag_lines | [string] | no | || tags | [string] | no | || trial_period | number | no | || type | string | no | |
1513
-
1514
- ---
1515
-
1516
- #### [DetailedPlanComponents](#DetailedPlanComponents)
1517
-
1518
- | Properties | Type | Nullable | Description |
1519
- | ---------- | ---- | -------- | ----------- || description | string | no | || display_text | string | no | || enabled | boolean | no | || group | string | no | || icon | string | no | || links | string | no | || name | string | no | || slug | string | no | |
1520
-
1521
- ---
1522
-
1523
- #### [EntityChargePrice](#EntityChargePrice)
1524
-
1525
- | Properties | Type | Nullable | Description |
1526
- | ---------- | ---- | -------- | ----------- || amount | number | yes | || currency_code | string | yes | |
1527
-
1528
- ---
1529
-
1530
- #### [EntityChargeRecurring](#EntityChargeRecurring)
1531
-
1532
- | Properties | Type | Nullable | Description |
1533
- | ---------- | ---- | -------- | ----------- || interval | string | yes | |
1534
-
1535
- ---
1536
-
1537
- #### [EntitySubscription](#EntitySubscription)
1538
-
1539
- | Properties | Type | Nullable | Description |
1540
- | ---------- | ---- | -------- | ----------- || _id | string | no | || activated_on | string | no | || cancelled_on | string | no | || company_id | number | no | || line_items | [[SubscriptionCharge](#SubscriptionCharge)] | no | || metadata | string | no | || name | string | no | || status | string | no | || trial_days | number | no | || trial_period | [SubscriptionTrialPeriod](#SubscriptionTrialPeriod) | no | |
1541
-
1542
- ---
1543
-
1544
- #### [InternalServerError](#InternalServerError)
1545
-
1546
- | Properties | Type | Nullable | Description |
1547
- | ---------- | ---- | -------- | ----------- || code | string | no | || message | string | no | |
1548
-
1549
- ---
1550
-
1551
- #### [Invoice](#Invoice)
1552
-
1553
- | Properties | Type | Nullable | Description |
1554
- | ---------- | ---- | -------- | ----------- || invoice | [InvoiceDetails](#InvoiceDetails) | no | || invoice_items | [[InvoiceItems](#InvoiceItems)] | no | |
1555
-
1556
- ---
1557
-
1558
- #### [InvoiceDetails](#InvoiceDetails)
1559
-
1560
- | Properties | Type | Nullable | Description |
1561
- | ---------- | ---- | -------- | ----------- || _id | string | no | || attemp | number | no | || auto_advance | boolean | no | || client | [InvoiceDetailsClient](#InvoiceDetailsClient) | no | || collection_method | string | no | || created_at | string | no | || currency | string | no | || current_status | string | no | || hash_identifier | string | no | || invoice_url | string | no | || modified_at | string | no | || next_action_time | string | no | || number | string | no | || paid | boolean | no | || payment_method | [InvoicePaymentMethod](#InvoicePaymentMethod) | no | || period | [InvoiceDetailsPeriod](#InvoiceDetailsPeriod) | no | || pg_data | string | no | || receipt_number | string | no | || statement_descriptor | string | no | || status_trail | [[InvoiceDetailsStatusTrail](#InvoiceDetailsStatusTrail)] | no | || subscriber_id | string | no | || subscription | string | no | || subtotal | number | no | || total | number | no | |
1562
-
1563
- ---
1564
-
1565
- #### [InvoiceDetailsClient](#InvoiceDetailsClient)
1566
-
1567
- | Properties | Type | Nullable | Description |
1568
- | ---------- | ---- | -------- | ----------- || address_lines | [string] | no | || email | string | no | || name | string | no | || phone | string | no | |
1569
-
1570
- ---
1571
-
1572
- #### [InvoiceDetailsPaymentMethods](#InvoiceDetailsPaymentMethods)
1573
-
1574
- | Properties | Type | Nullable | Description |
1575
- | ---------- | ---- | -------- | ----------- || data | [InvoiceDetailsPaymentMethodsData](#InvoiceDetailsPaymentMethodsData) | no | || id | number | no | || is_default | boolean | no | || pg_payment_method_id | string | no | || type | string | no | |
1576
-
1577
- ---
1578
-
1579
- #### [InvoiceDetailsPaymentMethodsData](#InvoiceDetailsPaymentMethodsData)
1580
-
1581
- | Properties | Type | Nullable | Description |
1582
- | ---------- | ---- | -------- | ----------- || brand | string | no | || checks | [InvoiceDetailsPaymentMethodsDataChecks](#InvoiceDetailsPaymentMethodsDataChecks) | no | || country | string | no | || exp_month | number | no | || exp_year | number | no | || fingerprint | string | no | || funding | string | no | || generated_from | string | no | || last4 | string | no | || networks | [InvoiceDetailsPaymentMethodsDataNetworks](#InvoiceDetailsPaymentMethodsDataNetworks) | no | || three_d_secure_usage | [InvoiceDetailsPaymentMethodsDataThreeDSecureUsage](#InvoiceDetailsPaymentMethodsDataThreeDSecureUsage) | no | || wallet | string | no | |
1583
-
1584
- ---
1585
-
1586
- #### [InvoiceDetailsPaymentMethodsDataChecks](#InvoiceDetailsPaymentMethodsDataChecks)
1587
-
1588
- | Properties | Type | Nullable | Description |
1589
- | ---------- | ---- | -------- | ----------- || address_line1_check | string | no | || address_postal_code_check | string | no | || cvc_check | string | no | |
1590
-
1591
- ---
1592
-
1593
- #### [InvoiceDetailsPaymentMethodsDataNetworks](#InvoiceDetailsPaymentMethodsDataNetworks)
1594
-
1595
- | Properties | Type | Nullable | Description |
1596
- | ---------- | ---- | -------- | ----------- || available | [string] | no | || preferred | string | no | |
1597
-
1598
- ---
1599
-
1600
- #### [InvoiceDetailsPaymentMethodsDataThreeDSecureUsage](#InvoiceDetailsPaymentMethodsDataThreeDSecureUsage)
1601
-
1602
- | Properties | Type | Nullable | Description |
1603
- | ---------- | ---- | -------- | ----------- || supported | boolean | no | |
1604
-
1605
- ---
1606
-
1607
- #### [InvoiceDetailsPeriod](#InvoiceDetailsPeriod)
1608
-
1609
- | Properties | Type | Nullable | Description |
1610
- | ---------- | ---- | -------- | ----------- || end | string | no | || start | string | no | |
1611
-
1612
- ---
1613
-
1614
- #### [InvoiceDetailsStatusTrail](#InvoiceDetailsStatusTrail)
1615
-
1616
- | Properties | Type | Nullable | Description |
1617
- | ---------- | ---- | -------- | ----------- || _id | string | no | || timestamp | string | no | || value | string | no | |
1618
-
1619
- ---
1620
-
1621
- #### [InvoiceItems](#InvoiceItems)
1622
-
1623
- | Properties | Type | Nullable | Description |
1624
- | ---------- | ---- | -------- | ----------- || _id | string | no | || amount | number | no | || created_at | string | no | || currency | string | no | || description | string | no | || invoice_id | string | no | || modified_at | string | no | || name | string | no | || period | [InvoiceItemsPeriod](#InvoiceItemsPeriod) | no | || plan | [InvoiceItemsPlan](#InvoiceItemsPlan) | no | || quantity | number | no | || type | string | no | || unit_amount | number | no | |
1625
-
1626
- ---
1627
-
1628
- #### [InvoiceItemsPeriod](#InvoiceItemsPeriod)
1629
-
1630
- | Properties | Type | Nullable | Description |
1631
- | ---------- | ---- | -------- | ----------- || end | string | no | || start | string | no | |
1632
-
1633
- ---
1634
-
1635
- #### [InvoiceItemsPlan](#InvoiceItemsPlan)
1636
-
1637
- | Properties | Type | Nullable | Description |
1638
- | ---------- | ---- | -------- | ----------- || _id | string | no | || addons | [string] | no | || amount | number | no | || country | string | no | || created_at | string | no | || currency | string | no | || description | string | no | || is_active | boolean | no | || is_trial_plan | boolean | no | || is_visible | boolean | no | || modified_at | string | no | || name | string | no | || plan_group | string | no | || product_suite_id | string | no | || recurring | [InvoiceItemsPlanRecurring](#InvoiceItemsPlanRecurring) | no | || tag_lines | [string] | no | || tags | [string] | no | || trial_period | number | no | || type | string | no | |
1639
-
1640
- ---
1641
-
1642
- #### [InvoiceItemsPlanRecurring](#InvoiceItemsPlanRecurring)
1643
-
1644
- | Properties | Type | Nullable | Description |
1645
- | ---------- | ---- | -------- | ----------- || interval | string | no | || interval_count | number | no | |
1646
-
1647
- ---
1648
-
1649
- #### [InvoicePaymentMethod](#InvoicePaymentMethod)
1650
-
1651
- | Properties | Type | Nullable | Description |
1652
- | ---------- | ---- | -------- | ----------- || pg_payment_method_id | string | no | |
1653
-
1654
- ---
1655
-
1656
- #### [Invoices](#Invoices)
1657
-
1658
- | Properties | Type | Nullable | Description |
1659
- | ---------- | ---- | -------- | ----------- || data | [[InvoicesData](#InvoicesData)] | no | || end | number | no | || limit | number | no | || page | number | no | || start | number | no | || total | number | no | |
1660
-
1661
- ---
1662
-
1663
- #### [InvoicesData](#InvoicesData)
1664
-
1665
- | Properties | Type | Nullable | Description |
1666
- | ---------- | ---- | -------- | ----------- || _id | string | no | || attemp | number | no | || auto_advance | boolean | no | || client | [InvoicesDataClient](#InvoicesDataClient) | no | || collection_method | string | no | || created_at | string | no | || currency | string | no | || current_status | string | no | || hash_identifier | string | no | || invoice_items | [[InvoiceItems](#InvoiceItems)] | no | || invoice_url | string | no | || modified_at | string | no | || next_action_time | string | no | || number | string | no | || paid | boolean | no | || payment_method | [InvoicesDataPaymentMethod](#InvoicesDataPaymentMethod) | no | || period | [InvoicesDataPeriod](#InvoicesDataPeriod) | no | || pg_data | string | no | || receipt_number | string | no | || statement_descriptor | string | no | || status_trail | [[InvoiceDetailsStatusTrail](#InvoiceDetailsStatusTrail)] | no | || subscriber_id | string | no | || subscription | string | no | || subtotal | number | no | || total | number | no | |
1667
-
1668
- ---
1669
-
1670
- #### [InvoicesDataClient](#InvoicesDataClient)
1671
-
1672
- | Properties | Type | Nullable | Description |
1673
- | ---------- | ---- | -------- | ----------- || address_lines | [string] | no | || email | string | no | || name | string | no | || phone | string | no | |
1674
-
1675
- ---
1676
-
1677
- #### [InvoicesDataPaymentMethod](#InvoicesDataPaymentMethod)
1678
-
1679
- | Properties | Type | Nullable | Description |
1680
- | ---------- | ---- | -------- | ----------- || pg_payment_method_id | string | no | |
1681
-
1682
- ---
1683
-
1684
- #### [InvoicesDataPeriod](#InvoicesDataPeriod)
1685
-
1686
- | Properties | Type | Nullable | Description |
1687
- | ---------- | ---- | -------- | ----------- || end | string | no | || start | string | no | |
1688
-
1689
- ---
1690
-
1691
- #### [Page](#Page)
1692
-
1693
- | Properties | Type | Nullable | Description |
1694
- | ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | string | yes | |
1695
-
1696
- ---
1697
-
1698
- #### [Phone](#Phone)
1699
-
1700
- | Properties | Type | Nullable | Description |
1701
- | ---------- | ---- | -------- | ----------- || phone_country_code | string | no | || phone_number | string | no | |
1702
-
1703
- ---
1704
-
1705
- #### [Plan](#Plan)
1706
-
1707
- | Properties | Type | Nullable | Description |
1708
- | ---------- | ---- | -------- | ----------- || _id | string | no | || addons | [string] | no | || amount | number | no | || country | string | no | || created_at | string | no | || currency | string | no | || description | string | no | || is_active | boolean | no | || is_trial_plan | boolean | no | || is_visible | boolean | no | || modified_at | string | no | || name | string | no | || plan_group | string | no | || product_suite_id | string | no | || recurring | [PlanRecurring](#PlanRecurring) | no | || tag_lines | [string] | no | || tags | [string] | no | || trial_period | number | no | || type | string | no | |
1709
-
1710
- ---
1711
-
1712
- #### [PlanRecurring](#PlanRecurring)
1713
-
1714
- | Properties | Type | Nullable | Description |
1715
- | ---------- | ---- | -------- | ----------- || interval | string | no | || interval_count | number | no | |
1716
-
1717
- ---
1718
-
1719
- #### [ResourceNotFound](#ResourceNotFound)
1720
-
1721
- | Properties | Type | Nullable | Description |
1722
- | ---------- | ---- | -------- | ----------- || message | string | no | |
1723
-
1724
- ---
1725
-
1726
- #### [Subscription](#Subscription)
1727
-
1728
- | Properties | Type | Nullable | Description |
1729
- | ---------- | ---- | -------- | ----------- || _id | string | no | || cancel_at_period_end | boolean | no | || collection_method | string | no | || created_at | string | no | || current_period | [SubscriptionCurrentPeriod](#SubscriptionCurrentPeriod) | no | || current_status | string | no | || invoice_settings | [SubscriptionInvoiceSettings](#SubscriptionInvoiceSettings) | no | || is_active | boolean | no | || latest_invoice | string | no | || modified_at | string | no | || pause_collection | [SubscriptionPauseCollection](#SubscriptionPauseCollection) | no | || plan_data | [Plan](#Plan) | no | || plan_id | string | no | || product_suite_id | string | no | || subscriber_id | string | no | || trial | [SubscriptionTrial](#SubscriptionTrial) | no | |
1730
-
1731
- ---
1732
-
1733
- #### [SubscriptionActivateReq](#SubscriptionActivateReq)
1734
-
1735
- | Properties | Type | Nullable | Description |
1736
- | ---------- | ---- | -------- | ----------- || payment_method | string | no | || plan_id | string | no | || product_suite | string | no | || type | string | no | || unique_id | string | no | |
1737
-
1738
- ---
1739
-
1740
- #### [SubscriptionActivateRes](#SubscriptionActivateRes)
1741
-
1742
- | Properties | Type | Nullable | Description |
1743
- | ---------- | ---- | -------- | ----------- || data | [Subscription](#Subscription) | no | || success | boolean | no | |
1744
-
1745
- ---
1746
-
1747
- #### [SubscriptionBillingAddress](#SubscriptionBillingAddress)
1748
-
1749
- | Properties | Type | Nullable | Description |
1750
- | ---------- | ---- | -------- | ----------- || city | string | no | || country | string | no | || line1 | string | no | || line2 | string | no | || postal_code | string | no | || state | string | no | |
1751
-
1752
- ---
1753
-
1754
- #### [SubscriptionCharge](#SubscriptionCharge)
1755
-
1756
- | Properties | Type | Nullable | Description |
1757
- | ---------- | ---- | -------- | ----------- || _id | string | no | || activated_on | string | no | || billing_date | string | no | || cancelled_on | string | no | || capped_amount | number | no | || current_period | [CurrentPeriod](#CurrentPeriod) | no | || is_test | boolean | no | || metadata | string | no | || name | string | no | || price | [EntityChargePrice](#EntityChargePrice) | no | || pricing_type | string | no | || recurring | [EntityChargeRecurring](#EntityChargeRecurring) | no | || status | string | no | || term | string | no | |
1758
-
1759
- ---
1760
-
1761
- #### [SubscriptionCurrentPeriod](#SubscriptionCurrentPeriod)
1762
-
1763
- | Properties | Type | Nullable | Description |
1764
- | ---------- | ---- | -------- | ----------- || end | string | no | || start | string | no | |
1765
-
1766
- ---
1767
-
1768
- #### [SubscriptionCustomer](#SubscriptionCustomer)
1769
-
1770
- | Properties | Type | Nullable | Description |
1771
- | ---------- | ---- | -------- | ----------- || _id | string | no | || billing_address | [SubscriptionBillingAddress](#SubscriptionBillingAddress) | no | || created_at | string | no | || data | string | no | || email | string | no | || modified_at | string | no | || name | string | no | || phone | [Phone](#Phone) | no | || type | string | no | || unique_id | string | no | |
1772
-
1773
- ---
1774
-
1775
- #### [SubscriptionCustomerCreate](#SubscriptionCustomerCreate)
1776
-
1777
- | Properties | Type | Nullable | Description |
1778
- | ---------- | ---- | -------- | ----------- || billing_address | [SubscriptionBillingAddress](#SubscriptionBillingAddress) | no | || email | string | no | || name | string | no | || phone | [Phone](#Phone) | no | || type | string | no | || unique_id | string | no | |
1779
-
1780
- ---
1781
-
1782
- #### [SubscriptionInvoiceSettings](#SubscriptionInvoiceSettings)
1783
-
1784
- | Properties | Type | Nullable | Description |
1785
- | ---------- | ---- | -------- | ----------- || charging | boolean | no | || generation | boolean | no | |
1786
-
1787
- ---
1788
-
1789
- #### [SubscriptionLimit](#SubscriptionLimit)
1790
-
1791
- | Properties | Type | Nullable | Description |
1792
- | ---------- | ---- | -------- | ----------- || application | [SubscriptionLimitApplication](#SubscriptionLimitApplication) | no | || extensions | [SubscriptionLimitExtensions](#SubscriptionLimitExtensions) | no | || integrations | [SubscriptionLimitIntegrations](#SubscriptionLimitIntegrations) | no | || is_trial_plan | boolean | no | || marketplace | [SubscriptionLimitMarketplace](#SubscriptionLimitMarketplace) | no | || other_platform | [SubscriptionLimitOtherPlatform](#SubscriptionLimitOtherPlatform) | no | || products | [SubscriptionLimitProducts](#SubscriptionLimitProducts) | no | || team | [SubscriptionLimitTeam](#SubscriptionLimitTeam) | no | |
1793
-
1794
- ---
1795
-
1796
- #### [SubscriptionLimitApplication](#SubscriptionLimitApplication)
1797
-
1798
- | Properties | Type | Nullable | Description |
1799
- | ---------- | ---- | -------- | ----------- || enabled | boolean | no | || hard_limit | number | no | || soft_limit | number | no | |
1800
-
1801
- ---
1802
-
1803
- #### [SubscriptionLimitExtensions](#SubscriptionLimitExtensions)
1804
-
1805
- | Properties | Type | Nullable | Description |
1806
- | ---------- | ---- | -------- | ----------- || enabled | boolean | no | || limit | number | no | |
1807
-
1808
- ---
1809
-
1810
- #### [SubscriptionLimitIntegrations](#SubscriptionLimitIntegrations)
1811
-
1812
- | Properties | Type | Nullable | Description |
1813
- | ---------- | ---- | -------- | ----------- || enabled | boolean | no | || limit | number | no | |
1814
-
1815
- ---
1816
-
1817
- #### [SubscriptionLimitMarketplace](#SubscriptionLimitMarketplace)
1818
-
1819
- | Properties | Type | Nullable | Description |
1820
- | ---------- | ---- | -------- | ----------- || enabled | boolean | no | |
1821
-
1822
- ---
1823
-
1824
- #### [SubscriptionLimitOtherPlatform](#SubscriptionLimitOtherPlatform)
1825
-
1826
- | Properties | Type | Nullable | Description |
1827
- | ---------- | ---- | -------- | ----------- || enabled | boolean | no | |
1828
-
1829
- ---
1830
-
1831
- #### [SubscriptionLimitProducts](#SubscriptionLimitProducts)
1832
-
1833
- | Properties | Type | Nullable | Description |
1834
- | ---------- | ---- | -------- | ----------- || bulk | boolean | no | || limit | number | no | |
1835
-
1836
- ---
1837
-
1838
- #### [SubscriptionLimitTeam](#SubscriptionLimitTeam)
1839
-
1840
- | Properties | Type | Nullable | Description |
1841
- | ---------- | ---- | -------- | ----------- || limit | number | no | |
1842
-
1843
- ---
1844
-
1845
- #### [SubscriptionPauseCollection](#SubscriptionPauseCollection)
1846
-
1847
- | Properties | Type | Nullable | Description |
1848
- | ---------- | ---- | -------- | ----------- || behavior | string | no | || resume_at | string | no | |
1849
-
1850
- ---
1851
-
1852
- #### [SubscriptionStatus](#SubscriptionStatus)
1853
-
1854
- | Properties | Type | Nullable | Description |
1855
- | ---------- | ---- | -------- | ----------- || is_enabled | boolean | no | || subscription | [Subscription](#Subscription) | no | |
1856
-
1857
- ---
1858
-
1859
- #### [SubscriptionTrial](#SubscriptionTrial)
1860
-
1861
- | Properties | Type | Nullable | Description |
1862
- | ---------- | ---- | -------- | ----------- || end | string | no | || start | string | no | |
1863
-
1864
- ---
1865
-
1866
- #### [SubscriptionTrialPeriod](#SubscriptionTrialPeriod)
1867
-
1868
- | Properties | Type | Nullable | Description |
1869
- | ---------- | ---- | -------- | ----------- || end_date | string | no | || start_date | string | no | |
1870
-
1871
- ---
1872
-
1873
- #### [UnauthenticatedApplication](#UnauthenticatedApplication)
1874
-
1875
- | Properties | Type | Nullable | Description |
1876
- | ---------- | ---- | -------- | ----------- || message | string | no | |
1877
-
1878
- ---
1879
-
1880
- #### [UnauthenticatedUser](#UnauthenticatedUser)
1881
-
1882
- | Properties | Type | Nullable | Description |
1883
- | ---------- | ---- | -------- | ----------- || message | string | no | |
1884
-
1885
- ---
1886
-
1887
-
1888
-
1889
-