@gofynd/fdk-client-javascript 1.0.2 → 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 (346) 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.d.ts +243 -243
  12. package/sdk/application/Cart/CartApplicationClient.js +595 -594
  13. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  14. package/sdk/application/Cart/CartApplicationModel.js +490 -885
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  16. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  17. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  18. package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
  19. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  20. package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
  21. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  22. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  23. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  24. package/sdk/application/Common/CommonApplicationClient.js +43 -42
  25. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  26. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  27. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  28. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  29. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  30. package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
  31. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  32. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  33. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  34. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  41. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  42. package/sdk/application/Content/ContentApplicationClient.js +216 -215
  43. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  44. package/sdk/application/Content/ContentApplicationModel.js +468 -884
  45. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  46. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  53. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  54. package/sdk/application/Lead/LeadApplicationClient.js +109 -108
  55. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  56. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  57. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  58. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  59. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
  60. package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
  61. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  62. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  63. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  64. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
  65. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  66. package/sdk/application/Order/OrderApplicationClient.js +247 -246
  67. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  68. package/sdk/application/Order/OrderApplicationModel.js +361 -656
  69. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  70. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  71. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  72. package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
  73. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  74. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  75. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  76. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  77. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  78. package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
  79. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  80. package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
  81. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  82. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
  85. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  86. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  87. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  88. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  89. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  90. package/sdk/application/Share/ShareApplicationClient.js +94 -93
  91. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  92. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  93. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  94. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  95. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  96. package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  98. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  99. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  100. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  101. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  102. package/sdk/application/User/UserApplicationClient.js +619 -618
  103. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  104. package/sdk/application/User/UserApplicationModel.js +440 -689
  105. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  106. package/sdk/application/User/UserApplicationValidator.js +89 -89
  107. package/sdk/common/AxiosHelper.js +18 -7
  108. package/sdk/constructUrl.d.ts +5 -0
  109. package/sdk/constructUrl.js +13 -0
  110. package/sdk/index.d.ts +3 -0
  111. package/sdk/index.js +5 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  115. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
  116. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  118. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  119. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
  126. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  127. package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
  128. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  129. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  130. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  131. package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
  132. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
  133. package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
  134. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
  135. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
  136. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  137. package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
  140. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  142. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
  143. package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
  144. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  145. package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
  146. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  147. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
  148. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  149. package/sdk/platform/Common/CommonPlatformClient.js +40 -51
  150. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  151. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  152. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  153. package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
  158. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  183. package/sdk/platform/Content/ContentPlatformModel.js +485 -907
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
  200. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  201. package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
  202. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  203. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  204. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  205. package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
  206. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  207. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
  208. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  209. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
  210. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  211. package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
  212. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  213. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  214. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  215. package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
  216. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  217. package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
  218. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
  220. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  221. package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
  222. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  223. package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
  224. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  225. package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
  226. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  227. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  228. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  229. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  230. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
  231. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
  232. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  233. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
  234. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  235. package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
  236. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  237. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  238. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  239. package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
  240. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  241. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  242. package/sdk/platform/PlatformClient.d.ts +7972 -7888
  243. package/sdk/platform/PlatformClient.js +8678 -10107
  244. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
  245. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
  246. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  247. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
  248. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  249. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  250. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  251. package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
  252. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  253. package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  255. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  261. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
  266. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  267. package/sdk/platform/User/UserPlatformModel.js +440 -689
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
  274. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  275. package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
  276. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  277. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  278. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  279. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  280. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  281. package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
  282. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  283. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  284. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  285. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  286. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  287. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  288. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  289. package/.github/workflows/on_create_release.yml +0 -23
  290. package/.github/workflows/on_merge_main.yml +0 -38
  291. package/.github/workflows/on_pull_request.yml +0 -35
  292. package/.prettierrc +0 -5
  293. package/documentation/application/CART.md +0 -7339
  294. package/documentation/application/CATALOG.md +0 -9597
  295. package/documentation/application/COMMON.md +0 -452
  296. package/documentation/application/COMMUNICATION.md +0 -467
  297. package/documentation/application/CONFIGURATION.md +0 -2906
  298. package/documentation/application/CONTENT.md +0 -3351
  299. package/documentation/application/FILESTORAGE.md +0 -578
  300. package/documentation/application/LEAD.md +0 -1895
  301. package/documentation/application/LOGISTIC.md +0 -765
  302. package/documentation/application/ORDER.md +0 -3432
  303. package/documentation/application/PAYMENT.md +0 -5221
  304. package/documentation/application/POSCART.md +0 -7938
  305. package/documentation/application/README.md +0 -21
  306. package/documentation/application/REWARDS.md +0 -708
  307. package/documentation/application/SHARE.md +0 -733
  308. package/documentation/application/THEME.md +0 -5800
  309. package/documentation/application/USER.md +0 -4335
  310. package/documentation/platform/ANALYTICS.md +0 -1154
  311. package/documentation/platform/AUDITTRAIL.md +0 -576
  312. package/documentation/platform/BILLING.md +0 -2400
  313. package/documentation/platform/CART.md +0 -5559
  314. package/documentation/platform/CATALOG.md +0 -23261
  315. package/documentation/platform/COMMON.md +0 -452
  316. package/documentation/platform/COMMUNICATION.md +0 -5718
  317. package/documentation/platform/COMPANYPROFILE.md +0 -2031
  318. package/documentation/platform/CONFIGURATION.md +0 -7339
  319. package/documentation/platform/CONTENT.md +0 -9098
  320. package/documentation/platform/DISCOUNT.md +0 -863
  321. package/documentation/platform/FILESTORAGE.md +0 -1081
  322. package/documentation/platform/INVENTORY.md +0 -1779
  323. package/documentation/platform/LEAD.md +0 -4740
  324. package/documentation/platform/ORDER.md +0 -8486
  325. package/documentation/platform/PARTNER.md +0 -220
  326. package/documentation/platform/PAYMENT.md +0 -3448
  327. package/documentation/platform/README.md +0 -27
  328. package/documentation/platform/REWARDS.md +0 -1083
  329. package/documentation/platform/SHARE.md +0 -606
  330. package/documentation/platform/THEME.md +0 -35729
  331. package/documentation/platform/USER.md +0 -2319
  332. package/documentation/platform/WEBHOOK.md +0 -591
  333. package/documentation/public/CONFIGURATION.md +0 -452
  334. package/documentation/public/INVENTORY.md +0 -690
  335. package/documentation/public/WEBHOOK.md +0 -352
  336. package/jest.config.d.ts +0 -4
  337. package/jest.config.js +0 -6
  338. package/tests/application/catalog.spec.js +0 -47
  339. package/tests/common/action-url.spec.js +0 -35
  340. package/tests/common/schema/action-url.json +0 -178
  341. package/tests/common/schema/url-action.json +0 -683
  342. package/tests/common/url-action.spec.js +0 -48
  343. package/tests/helpers/cookie.helper.js +0 -31
  344. package/tests/helpers/oauth.helper.js +0 -43
  345. package/tests/platform/catalog.spec.js +0 -49
  346. package/tests/public/location.spec.js +0 -39
@@ -1,2400 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## Billing Methods
9
- Handle platform subscription
10
-
11
- * [checkCouponValidity](#checkcouponvalidity)
12
- * [createSubscriptionCharge](#createsubscriptioncharge)
13
- * [getSubscriptionCharge](#getsubscriptioncharge)
14
- * [cancelSubscriptionCharge](#cancelsubscriptioncharge)
15
- * [getInvoices](#getinvoices)
16
- * [getInvoiceById](#getinvoicebyid)
17
- * [getCustomerDetail](#getcustomerdetail)
18
- * [upsertCustomerDetail](#upsertcustomerdetail)
19
- * [getSubscription](#getsubscription)
20
- * [getFeatureLimitConfig](#getfeaturelimitconfig)
21
- * [activateSubscriptionPlan](#activatesubscriptionplan)
22
- * [cancelSubscriptionPlan](#cancelsubscriptionplan)
23
-
24
-
25
-
26
- ## Methods with example and description
27
-
28
-
29
-
30
-
31
- ### checkCouponValidity
32
- Check coupon validity
33
-
34
-
35
-
36
- ```javascript
37
- // Promise
38
- const promise = client.billing.checkCouponValidity({ plan : value,
39
- couponCode : value });
40
-
41
- // Async/Await
42
- const data = await client.billing.checkCouponValidity({ plan : value,
43
- couponCode : value });
44
- ```
45
-
46
-
47
-
48
-
49
-
50
- | Argument | Type | Required | Description |
51
- | --------- | ----- | -------- | ----------- |
52
- | plan | string | yes | ID of the plan. |
53
- | couponCode | string | yes | Coupon code. |
54
-
55
-
56
-
57
- Check coupon validity.
58
-
59
- *Returned Response:*
60
-
61
-
62
-
63
-
64
- [CheckValidityResponse](#CheckValidityResponse)
65
-
66
- Success
67
-
68
-
69
-
70
-
71
- <details>
72
- <summary><i>&nbsp; Example:</i></summary>
73
-
74
- ```json
75
-
76
- ```
77
- </details>
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
- ---
88
-
89
-
90
- ### createSubscriptionCharge
91
- Create subscription charge
92
-
93
-
94
-
95
- ```javascript
96
- // Promise
97
- const promise = client.billing.createSubscriptionCharge({ extensionId : value,
98
- body : value });
99
-
100
- // Async/Await
101
- const data = await client.billing.createSubscriptionCharge({ extensionId : value,
102
- body : value });
103
- ```
104
-
105
-
106
-
107
-
108
-
109
- | Argument | Type | Required | Description |
110
- | --------- | ----- | -------- | ----------- |
111
- | extensionId | string | yes | Extension _id |
112
- | body | [CreateSubscriptionCharge](#CreateSubscriptionCharge) | yes | Request body |
113
-
114
-
115
- Register subscription charge for a seller of your extension.
116
-
117
- *Returned Response:*
118
-
119
-
120
-
121
-
122
- [CreateSubscriptionResponse](#CreateSubscriptionResponse)
123
-
124
- Success
125
-
126
-
127
-
128
-
129
- <details>
130
- <summary><i>&nbsp; Example:</i></summary>
131
-
132
- ```json
133
-
134
- ```
135
- </details>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- ---
146
-
147
-
148
- ### getSubscriptionCharge
149
- Get subscription charge details
150
-
151
-
152
-
153
- ```javascript
154
- // Promise
155
- const promise = client.billing.getSubscriptionCharge({ extensionId : value,
156
- subscriptionId : value });
157
-
158
- // Async/Await
159
- const data = await client.billing.getSubscriptionCharge({ extensionId : value,
160
- subscriptionId : value });
161
- ```
162
-
163
-
164
-
165
-
166
-
167
- | Argument | Type | Required | Description |
168
- | --------- | ----- | -------- | ----------- |
169
- | extensionId | string | yes | Extension _id |
170
- | subscriptionId | string | yes | Subscription charge _id |
171
-
172
-
173
-
174
- Get created subscription charge details
175
-
176
- *Returned Response:*
177
-
178
-
179
-
180
-
181
- [EntitySubscription](#EntitySubscription)
182
-
183
- Success
184
-
185
-
186
-
187
-
188
- <details>
189
- <summary><i>&nbsp; Example:</i></summary>
190
-
191
- ```json
192
-
193
- ```
194
- </details>
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- ---
205
-
206
-
207
- ### cancelSubscriptionCharge
208
- Cancel subscription charge
209
-
210
-
211
-
212
- ```javascript
213
- // Promise
214
- const promise = client.billing.cancelSubscriptionCharge({ extensionId : value,
215
- subscriptionId : value });
216
-
217
- // Async/Await
218
- const data = await client.billing.cancelSubscriptionCharge({ extensionId : value,
219
- subscriptionId : value });
220
- ```
221
-
222
-
223
-
224
-
225
-
226
- | Argument | Type | Required | Description |
227
- | --------- | ----- | -------- | ----------- |
228
- | extensionId | string | yes | Extension _id |
229
- | subscriptionId | string | yes | Subscription charge _id |
230
-
231
-
232
-
233
- Cancel subscription and attached charges.
234
-
235
- *Returned Response:*
236
-
237
-
238
-
239
-
240
- [EntitySubscription](#EntitySubscription)
241
-
242
- Success
243
-
244
-
245
-
246
-
247
- <details>
248
- <summary><i>&nbsp; Example:</i></summary>
249
-
250
- ```json
251
-
252
- ```
253
- </details>
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
- ---
264
-
265
-
266
- ### getInvoices
267
- Get invoices
268
-
269
-
270
-
271
- ```javascript
272
- // Promise
273
- const promise = client.billing.getInvoices();
274
-
275
- // Async/Await
276
- const data = await client.billing.getInvoices();
277
- ```
278
-
279
-
280
-
281
-
282
-
283
-
284
- Get invoices.
285
-
286
- *Returned Response:*
287
-
288
-
289
-
290
-
291
- [Invoices](#Invoices)
292
-
293
- Success
294
-
295
-
296
-
297
-
298
- <details>
299
- <summary><i>&nbsp; Examples:</i></summary>
300
-
301
-
302
- <details>
303
- <summary><i>&nbsp; default</i></summary>
304
-
305
- ```json
306
- {
307
- "value": {
308
- "data": [
309
- {
310
- "_id": "5f7acb709e76da30e3b92cdb",
311
- "client": {
312
- "name": "RELIANCE RETAIL LTD",
313
- "email": "ZAK@GMAIL.COM",
314
- "phone": "91 1234567890",
315
- "address_lines": [
316
- "TV TOWER, Foot Over Bridge Khar",
317
- null,
318
- "Mumbai, 400079, Maharashtra, India"
319
- ]
320
- },
321
- "auto_advance": true,
322
- "currency": "INR",
323
- "paid": true,
324
- "attemp": 3,
325
- "collection_method": "charge_automatically",
326
- "subscriber_id": "5ee773e1351e5e84289ed9cf",
327
- "invoice_url": "",
328
- "number": "FP-1-72020-736",
329
- "pg_data": {},
330
- "period": {
331
- "start": "2020-08-17T13:45:36.722Z",
332
- "end": "2020-09-17T13:45:36.722Z"
333
- },
334
- "receipt_number": "5fd9b08464dc6ac048a08988",
335
- "statement_descriptor": "RELIANCE RETAIL LTD",
336
- "current_status": "paid",
337
- "status_trail": [
338
- {
339
- "_id": "5f7ad29bd562744eab216379",
340
- "value": "draft",
341
- "timestamp": "2020-10-05T08:00:27.753Z"
342
- },
343
- {
344
- "_id": "5fcf40ce1613c029aff417dd",
345
- "value": "open",
346
- "timestamp": "2020-12-08T09:01:02.038Z"
347
- },
348
- {
349
- "_id": "5fd9b08664dc6a1ad0a08989",
350
- "value": "paid",
351
- "timestamp": "2020-12-16T07:00:22.973Z"
352
- }
353
- ],
354
- "subtotal": 15720.08,
355
- "total": 15720.08,
356
- "subscription": "5f3a8a00668947663b7fbd38",
357
- "next_action_time": "2020-10-05T09:00:27.754Z",
358
- "created_at": "2020-10-05T07:29:52.876Z",
359
- "modified_at": "2020-12-16T07:00:22.980Z",
360
- "hash_identifier": "575999aca03e36f0fa54db5235bc7f25",
361
- "payment_method": {
362
- "pg_payment_method_id": null
363
- },
364
- "invoice_items": [
365
- {
366
- "_id": "5f7acb709e76da48b1b92cdd",
367
- "currency": "INR",
368
- "plan": {
369
- "recurring": {
370
- "interval": "month",
371
- "interval_count": 1
372
- },
373
- "is_trial_plan": false,
374
- "plan_group": "default",
375
- "tag_lines": [],
376
- "currency": "INR",
377
- "is_active": true,
378
- "is_visible": true,
379
- "trial_period": 0,
380
- "addons": [],
381
- "tags": [],
382
- "type": "public",
383
- "country": "IN",
384
- "_id": "5f3a8786c90d780037723a14",
385
- "name": "Professional",
386
- "description": "Professional",
387
- "amount": 1499,
388
- "product_suite_id": "5f3a8786c90d7800377239f3",
389
- "created_at": "2020-08-17T13:35:02.802Z",
390
- "modified_at": "2020-08-17T13:35:02.802Z"
391
- },
392
- "name": "Professional",
393
- "quantity": 1,
394
- "description": "Professional",
395
- "period": {
396
- "start": "2020-08-17T13:45:36.722Z",
397
- "end": "2020-10-05T07:29:52.868Z"
398
- },
399
- "unit_amount": 2356.77,
400
- "amount": 2356.77,
401
- "type": "subscription",
402
- "invoice_id": "5f7acb709e76da30e3b92cdb",
403
- "created_at": "2020-10-05T07:29:52.886Z",
404
- "modified_at": "2020-10-05T07:29:52.886Z"
405
- },
406
- {
407
- "_id": "5f7acf199aa6830c4fe5e984",
408
- "currency": "INR",
409
- "plan": {
410
- "recurring": {
411
- "interval": "month",
412
- "interval_count": 1
413
- },
414
- "is_trial_plan": false,
415
- "plan_group": "default",
416
- "tag_lines": [],
417
- "currency": "INR",
418
- "is_active": true,
419
- "is_visible": true,
420
- "trial_period": 0,
421
- "addons": [],
422
- "tags": [
423
- "popular"
424
- ],
425
- "type": "public",
426
- "country": "IN",
427
- "_id": "5f3a8786c90d780037723a13",
428
- "name": "Premium",
429
- "description": "Premium",
430
- "amount": 2499,
431
- "product_suite_id": "5f3a8786c90d7800377239f3",
432
- "created_at": "2020-08-17T13:35:02.547Z",
433
- "modified_at": "2020-08-17T13:35:02.547Z"
434
- },
435
- "name": "Premium",
436
- "quantity": 1,
437
- "description": "Premium",
438
- "period": {
439
- "start": "2020-08-17T13:45:36.722Z",
440
- "end": "2020-10-05T07:45:29.755Z"
441
- },
442
- "unit_amount": 3929.87,
443
- "amount": 3929.87,
444
- "type": "subscription",
445
- "invoice_id": "5f7acb709e76da30e3b92cdb",
446
- "created_at": "2020-10-05T07:45:29.765Z",
447
- "modified_at": "2020-10-05T07:45:29.765Z"
448
- },
449
- {
450
- "_id": "5f7acf7da10a707fc502dcd4",
451
- "currency": "INR",
452
- "plan": {
453
- "recurring": {
454
- "interval": "month",
455
- "interval_count": 1
456
- },
457
- "is_trial_plan": false,
458
- "plan_group": "default",
459
- "tag_lines": [],
460
- "currency": "INR",
461
- "is_active": true,
462
- "is_visible": true,
463
- "trial_period": 0,
464
- "addons": [],
465
- "tags": [],
466
- "type": "public",
467
- "country": "IN",
468
- "_id": "5f3a8786c90d780037723a16",
469
- "name": "Ultra Premium",
470
- "description": "Ultra Premium",
471
- "amount": 2999,
472
- "product_suite_id": "5f3a8786c90d7800377239f3",
473
- "created_at": "2020-08-17T13:35:02.802Z",
474
- "modified_at": "2020-08-17T13:35:02.802Z"
475
- },
476
- "name": "Ultra Premium",
477
- "quantity": 1,
478
- "description": "Ultra Premium",
479
- "period": {
480
- "start": "2020-08-17T13:45:36.722Z",
481
- "end": "2020-10-05T07:47:09.532Z"
482
- },
483
- "unit_amount": 4716.27,
484
- "amount": 4716.27,
485
- "type": "subscription",
486
- "invoice_id": "5f7acb709e76da30e3b92cdb",
487
- "created_at": "2020-10-05T07:47:09.541Z",
488
- "modified_at": "2020-10-05T07:47:09.541Z"
489
- },
490
- {
491
- "_id": "5f7ad29bd56274f23321637a",
492
- "currency": "INR",
493
- "plan": {
494
- "recurring": {
495
- "interval": "month",
496
- "interval_count": 1
497
- },
498
- "is_trial_plan": false,
499
- "plan_group": "default",
500
- "tag_lines": [],
501
- "currency": "INR",
502
- "is_active": true,
503
- "is_visible": true,
504
- "trial_period": 0,
505
- "addons": [],
506
- "tags": [],
507
- "type": "public",
508
- "country": "IN",
509
- "_id": "5f3a8786c90d780037723a16",
510
- "name": "Ultra Premium",
511
- "description": "Ultra Premium",
512
- "amount": 2999,
513
- "product_suite_id": "5f3a8786c90d7800377239f3",
514
- "created_at": "2020-08-17T13:35:02.802Z",
515
- "modified_at": "2020-08-17T13:35:02.802Z"
516
- },
517
- "name": "Ultra Premium",
518
- "quantity": 1,
519
- "description": "Ultra Premium",
520
- "period": {
521
- "start": "2020-08-17T13:45:36.722Z",
522
- "end": "2020-10-05T08:00:27.753Z"
523
- },
524
- "unit_amount": 4717.17,
525
- "amount": 4717.17,
526
- "type": "subscription",
527
- "invoice_id": "5f7acb709e76da30e3b92cdb",
528
- "created_at": "2020-10-05T08:00:27.768Z",
529
- "modified_at": "2020-10-05T08:00:27.768Z"
530
- }
531
- ]
532
- }
533
- ],
534
- "start": 0,
535
- "end": 10,
536
- "limit": 10,
537
- "page": 1,
538
- "total": 1
539
- }
540
- }
541
- ```
542
- </details>
543
-
544
- </details>
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
-
554
- ---
555
-
556
-
557
- ### getInvoiceById
558
- Get invoice by id
559
-
560
-
561
-
562
- ```javascript
563
- // Promise
564
- const promise = client.billing.getInvoiceById({ invoiceId : value });
565
-
566
- // Async/Await
567
- const data = await client.billing.getInvoiceById({ invoiceId : value });
568
- ```
569
-
570
-
571
-
572
-
573
-
574
- | Argument | Type | Required | Description |
575
- | --------- | ----- | -------- | ----------- |
576
- | invoiceId | string | yes | Invoice id |
577
-
578
-
579
-
580
- Get invoice by id.
581
-
582
- *Returned Response:*
583
-
584
-
585
-
586
-
587
- [Invoice](#Invoice)
588
-
589
- Success
590
-
591
-
592
-
593
-
594
- <details>
595
- <summary><i>&nbsp; Examples:</i></summary>
596
-
597
-
598
- <details>
599
- <summary><i>&nbsp; default</i></summary>
600
-
601
- ```json
602
- {
603
- "value": {
604
- "invoice": {
605
- "period": {
606
- "start": "2020-08-17T13:45:36.722Z",
607
- "end": "2020-09-17T13:45:36.722Z"
608
- },
609
- "client": {
610
- "address_lines": [
611
- "TV TOWER, Foot Over Bridge Khar",
612
- null,
613
- "Mumbai, 400079, Maharashtra, India"
614
- ],
615
- "name": "RELIANCE RETAIL LTD",
616
- "email": "ZAK@GMAIL.COM",
617
- "phone": "91 1234567890"
618
- },
619
- "auto_advance": true,
620
- "currency": "INR",
621
- "paid": true,
622
- "attemp": 3,
623
- "_id": "5f7acb709e76da30e3b92cdb",
624
- "collection_method": "charge_automatically",
625
- "subscriber_id": "5ee773e1351e5e84289ed9cf",
626
- "invoice_url": "",
627
- "number": "FP-1-72020-736",
628
- "pg_data": {},
629
- "receipt_number": "5fd9b08464dc6ac048a08988",
630
- "statement_descriptor": "RELIANCE RETAIL LTD",
631
- "current_status": "paid",
632
- "status_trail": [
633
- {
634
- "_id": "5f7ad29bd562744eab216379",
635
- "value": "draft",
636
- "timestamp": "2020-10-05T08:00:27.753Z"
637
- },
638
- {
639
- "_id": "5fcf40ce1613c029aff417dd",
640
- "value": "open",
641
- "timestamp": "2020-12-08T09:01:02.038Z"
642
- },
643
- {
644
- "_id": "5fd9b08664dc6a1ad0a08989",
645
- "value": "paid",
646
- "timestamp": "2020-12-16T07:00:22.973Z"
647
- }
648
- ],
649
- "subtotal": 15720.08,
650
- "total": 15720.08,
651
- "subscription": "5f3a8a00668947663b7fbd38",
652
- "next_action_time": "2020-10-05T09:00:27.754Z",
653
- "created_at": "2020-10-05T07:29:52.876Z",
654
- "modified_at": "2020-12-16T07:00:22.980Z",
655
- "hash_identifier": "575999aca03e36f0fa54db5235bc7f25",
656
- "payment_method": {
657
- "pg_payment_method_id": null
658
- }
659
- },
660
- "invoice_items": [
661
- {
662
- "_id": "5f7acb709e76da48b1b92cdd",
663
- "currency": "INR",
664
- "plan": {
665
- "recurring": {
666
- "interval": "month",
667
- "interval_count": 1
668
- },
669
- "is_trial_plan": false,
670
- "plan_group": "default",
671
- "tag_lines": [],
672
- "currency": "INR",
673
- "is_active": true,
674
- "is_visible": true,
675
- "trial_period": 0,
676
- "addons": [],
677
- "tags": [],
678
- "type": "public",
679
- "country": "IN",
680
- "_id": "5f3a8786c90d780037723a14",
681
- "name": "Professional",
682
- "description": "Professional",
683
- "amount": 1499,
684
- "product_suite_id": "5f3a8786c90d7800377239f3",
685
- "created_at": "2020-08-17T13:35:02.802Z",
686
- "modified_at": "2020-08-17T13:35:02.802Z"
687
- },
688
- "name": "Professional",
689
- "quantity": 1,
690
- "description": "Professional",
691
- "period": {
692
- "start": "2020-08-17T13:45:36.722Z",
693
- "end": "2020-10-05T07:29:52.868Z"
694
- },
695
- "unit_amount": 2356.77,
696
- "amount": 2356.77,
697
- "type": "subscription",
698
- "invoice_id": "5f7acb709e76da30e3b92cdb",
699
- "created_at": "2020-10-05T07:29:52.886Z",
700
- "modified_at": "2020-10-05T07:29:52.886Z"
701
- },
702
- {
703
- "_id": "5f7acf199aa6830c4fe5e984",
704
- "currency": "INR",
705
- "plan": {
706
- "recurring": {
707
- "interval": "month",
708
- "interval_count": 1
709
- },
710
- "is_trial_plan": false,
711
- "plan_group": "default",
712
- "tag_lines": [],
713
- "currency": "INR",
714
- "is_active": true,
715
- "is_visible": true,
716
- "trial_period": 0,
717
- "addons": [],
718
- "tags": [
719
- "popular"
720
- ],
721
- "type": "public",
722
- "country": "IN",
723
- "_id": "5f3a8786c90d780037723a13",
724
- "name": "Premium",
725
- "description": "Premium",
726
- "amount": 2499,
727
- "product_suite_id": "5f3a8786c90d7800377239f3",
728
- "created_at": "2020-08-17T13:35:02.547Z",
729
- "modified_at": "2020-08-17T13:35:02.547Z"
730
- },
731
- "name": "Premium",
732
- "quantity": 1,
733
- "description": "Premium",
734
- "period": {
735
- "start": "2020-08-17T13:45:36.722Z",
736
- "end": "2020-10-05T07:45:29.755Z"
737
- },
738
- "unit_amount": 3929.87,
739
- "amount": 3929.87,
740
- "type": "subscription",
741
- "invoice_id": "5f7acb709e76da30e3b92cdb",
742
- "created_at": "2020-10-05T07:45:29.765Z",
743
- "modified_at": "2020-10-05T07:45:29.765Z"
744
- },
745
- {
746
- "_id": "5f7acf7da10a707fc502dcd4",
747
- "currency": "INR",
748
- "plan": {
749
- "recurring": {
750
- "interval": "month",
751
- "interval_count": 1
752
- },
753
- "is_trial_plan": false,
754
- "plan_group": "default",
755
- "tag_lines": [],
756
- "currency": "INR",
757
- "is_active": true,
758
- "is_visible": true,
759
- "trial_period": 0,
760
- "addons": [],
761
- "tags": [],
762
- "type": "public",
763
- "country": "IN",
764
- "_id": "5f3a8786c90d780037723a16",
765
- "name": "Ultra Premium",
766
- "description": "Ultra Premium",
767
- "amount": 2999,
768
- "product_suite_id": "5f3a8786c90d7800377239f3",
769
- "created_at": "2020-08-17T13:35:02.802Z",
770
- "modified_at": "2020-08-17T13:35:02.802Z"
771
- },
772
- "name": "Ultra Premium",
773
- "quantity": 1,
774
- "description": "Ultra Premium",
775
- "period": {
776
- "start": "2020-08-17T13:45:36.722Z",
777
- "end": "2020-10-05T07:47:09.532Z"
778
- },
779
- "unit_amount": 4716.27,
780
- "amount": 4716.27,
781
- "type": "subscription",
782
- "invoice_id": "5f7acb709e76da30e3b92cdb",
783
- "created_at": "2020-10-05T07:47:09.541Z",
784
- "modified_at": "2020-10-05T07:47:09.541Z"
785
- },
786
- {
787
- "_id": "5f7ad29bd56274f23321637a",
788
- "currency": "INR",
789
- "plan": {
790
- "recurring": {
791
- "interval": "month",
792
- "interval_count": 1
793
- },
794
- "is_trial_plan": false,
795
- "plan_group": "default",
796
- "tag_lines": [],
797
- "currency": "INR",
798
- "is_active": true,
799
- "is_visible": true,
800
- "trial_period": 0,
801
- "addons": [],
802
- "tags": [],
803
- "type": "public",
804
- "country": "IN",
805
- "_id": "5f3a8786c90d780037723a16",
806
- "name": "Ultra Premium",
807
- "description": "Ultra Premium",
808
- "amount": 2999,
809
- "product_suite_id": "5f3a8786c90d7800377239f3",
810
- "created_at": "2020-08-17T13:35:02.802Z",
811
- "modified_at": "2020-08-17T13:35:02.802Z"
812
- },
813
- "name": "Ultra Premium",
814
- "quantity": 1,
815
- "description": "Ultra Premium",
816
- "period": {
817
- "start": "2020-08-17T13:45:36.722Z",
818
- "end": "2020-10-05T08:00:27.753Z"
819
- },
820
- "unit_amount": 4717.17,
821
- "amount": 4717.17,
822
- "type": "subscription",
823
- "invoice_id": "5f7acb709e76da30e3b92cdb",
824
- "created_at": "2020-10-05T08:00:27.768Z",
825
- "modified_at": "2020-10-05T08:00:27.768Z"
826
- }
827
- ]
828
- }
829
- }
830
- ```
831
- </details>
832
-
833
- </details>
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
- ---
844
-
845
-
846
- ### getCustomerDetail
847
- Get subscription customer detail
848
-
849
-
850
-
851
- ```javascript
852
- // Promise
853
- const promise = client.billing.getCustomerDetail();
854
-
855
- // Async/Await
856
- const data = await client.billing.getCustomerDetail();
857
- ```
858
-
859
-
860
-
861
-
862
-
863
-
864
- Get subscription customer detail.
865
-
866
- *Returned Response:*
867
-
868
-
869
-
870
-
871
- [SubscriptionCustomer](#SubscriptionCustomer)
872
-
873
- Success
874
-
875
-
876
-
877
-
878
- <details>
879
- <summary><i>&nbsp; Examples:</i></summary>
880
-
881
-
882
- <details>
883
- <summary><i>&nbsp; default</i></summary>
884
-
885
- ```json
886
- {
887
- "value": {
888
- "phone": {
889
- "phone_number": "1234567890",
890
- "phone_country_code": "91"
891
- },
892
- "billing_address": {
893
- "country": "India",
894
- "state": "Maharastra",
895
- "city": "Mumbai",
896
- "line1": "test1",
897
- "line2": "test2",
898
- "postal_code": "400059"
899
- },
900
- "_id": "5ee773e1351e5e84289ed9cf",
901
- "unique_id": "1",
902
- "type": "company",
903
- "name": "test retail",
904
- "email": "test@gmail.com",
905
- "created_at": "2020-06-15T13:13:05.267Z",
906
- "modified_at": "2021-02-04T00:58:45.356Z",
907
- "data": {
908
- "pg_user_exists": true,
909
- "id": 2
910
- }
911
- }
912
- }
913
- ```
914
- </details>
915
-
916
- </details>
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
- ---
927
-
928
-
929
- ### upsertCustomerDetail
930
- Upsert subscription customer detail
931
-
932
-
933
-
934
- ```javascript
935
- // Promise
936
- const promise = client.billing.upsertCustomerDetail({ body : value });
937
-
938
- // Async/Await
939
- const data = await client.billing.upsertCustomerDetail({ body : value });
940
- ```
941
-
942
-
943
-
944
-
945
-
946
- | Argument | Type | Required | Description |
947
- | --------- | ----- | -------- | ----------- |
948
- | body | [SubscriptionCustomerCreate](#SubscriptionCustomerCreate) | yes | Request body |
949
-
950
-
951
- Upsert subscription customer detail.
952
-
953
- *Returned Response:*
954
-
955
-
956
-
957
-
958
- [SubscriptionCustomer](#SubscriptionCustomer)
959
-
960
- Success
961
-
962
-
963
-
964
-
965
- <details>
966
- <summary><i>&nbsp; Examples:</i></summary>
967
-
968
-
969
- <details>
970
- <summary><i>&nbsp; default</i></summary>
971
-
972
- ```json
973
- {
974
- "value": {
975
- "phone": {
976
- "phone_number": "1234567890",
977
- "phone_country_code": "91"
978
- },
979
- "billing_address": {
980
- "country": "India",
981
- "state": "Maharastra",
982
- "city": "Mumbai",
983
- "line1": "test1",
984
- "line2": "test2",
985
- "postal_code": "400059"
986
- },
987
- "_id": "5ee773e1351e5e84289ed9cf",
988
- "unique_id": "1",
989
- "type": "company",
990
- "name": "test retail",
991
- "email": "test@gmail.com",
992
- "created_at": "2020-06-15T13:13:05.267Z",
993
- "modified_at": "2021-02-04T00:58:45.356Z",
994
- "data": {
995
- "pg_user_exists": true,
996
- "id": 2
997
- }
998
- }
999
- }
1000
- ```
1001
- </details>
1002
-
1003
- </details>
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
1013
- ---
1014
-
1015
-
1016
- ### getSubscription
1017
- Get current subscription detail
1018
-
1019
-
1020
-
1021
- ```javascript
1022
- // Promise
1023
- const promise = client.billing.getSubscription();
1024
-
1025
- // Async/Await
1026
- const data = await client.billing.getSubscription();
1027
- ```
1028
-
1029
-
1030
-
1031
-
1032
-
1033
-
1034
- 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.
1035
-
1036
-
1037
- *Returned Response:*
1038
-
1039
-
1040
-
1041
-
1042
- [SubscriptionStatus](#SubscriptionStatus)
1043
-
1044
- Success
1045
-
1046
-
1047
-
1048
-
1049
- <details>
1050
- <summary><i>&nbsp; Examples:</i></summary>
1051
-
1052
-
1053
- <details>
1054
- <summary><i>&nbsp; Active subscription</i></summary>
1055
-
1056
- ```json
1057
- {
1058
- "value": {
1059
- "is_enabled": true,
1060
- "subscription": {
1061
- "current_period": {
1062
- "start": "2020-12-17T13:45:36.722Z",
1063
- "end": "2021-01-17T13:45:36.722Z"
1064
- },
1065
- "pause_collection": {},
1066
- "trial": {},
1067
- "invoice_settings": {
1068
- "generation": true,
1069
- "charging": true
1070
- },
1071
- "is_active": true,
1072
- "cancel_at_period_end": false,
1073
- "_id": "5f3a8a00668947663b7fbd38",
1074
- "subscriber_id": "5ee773e1351e5e84289ed9cf",
1075
- "plan_id": "5f3a8786c90d780037723a12",
1076
- "product_suite_id": "5f3a8786c90d7800377239f3",
1077
- "plan_data": {
1078
- "recurring": {
1079
- "interval": "month",
1080
- "interval_count": 1
1081
- },
1082
- "is_trial_plan": false,
1083
- "plan_group": "default",
1084
- "tag_lines": [],
1085
- "currency": "INR",
1086
- "is_active": true,
1087
- "is_visible": true,
1088
- "trial_period": 0,
1089
- "addons": [],
1090
- "tags": [],
1091
- "type": "public",
1092
- "country": "IN",
1093
- "_id": "5f3a8786c90d780037723a12",
1094
- "name": "Standard",
1095
- "description": "Standard",
1096
- "amount": 999,
1097
- "product_suite_id": "5f3a8786c90d7800377239f3",
1098
- "created_at": "2020-08-17T13:35:02.547Z",
1099
- "modified_at": "2020-08-17T13:35:02.547Z"
1100
- },
1101
- "current_status": "active",
1102
- "collection_method": "charge_automatically",
1103
- "created_at": "2020-08-17T13:45:36.731Z",
1104
- "modified_at": "2020-12-17T11:01:15.960Z",
1105
- "latest_invoice": "5fdb3a7bfc849c2153b944d5"
1106
- }
1107
- }
1108
- }
1109
- ```
1110
- </details>
1111
-
1112
- <details>
1113
- <summary><i>&nbsp; Inactive subscription</i></summary>
1114
-
1115
- ```json
1116
- {
1117
- "value": {
1118
- "is_enabled": true,
1119
- "message": "Subscription not enabled"
1120
- }
1121
- }
1122
- ```
1123
- </details>
1124
-
1125
- </details>
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
- ---
1136
-
1137
-
1138
- ### getFeatureLimitConfig
1139
- Get subscription subscription limits
1140
-
1141
-
1142
-
1143
- ```javascript
1144
- // Promise
1145
- const promise = client.billing.getFeatureLimitConfig();
1146
-
1147
- // Async/Await
1148
- const data = await client.billing.getFeatureLimitConfig();
1149
- ```
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
- Get subscription subscription limits.
1157
-
1158
- *Returned Response:*
1159
-
1160
-
1161
-
1162
-
1163
- [SubscriptionLimit](#SubscriptionLimit)
1164
-
1165
- Success
1166
-
1167
-
1168
-
1169
-
1170
- <details>
1171
- <summary><i>&nbsp; Examples:</i></summary>
1172
-
1173
-
1174
- <details>
1175
- <summary><i>&nbsp; default</i></summary>
1176
-
1177
- ```json
1178
- {
1179
- "value": {
1180
- "application": {
1181
- "enabled": true,
1182
- "hard_limit": 25,
1183
- "soft_limit": 25
1184
- },
1185
- "marketplace": {
1186
- "enabled": true
1187
- },
1188
- "other_platform": {
1189
- "enabled": true
1190
- },
1191
- "team": {
1192
- "limit": -1
1193
- },
1194
- "products": {
1195
- "bulk": true,
1196
- "limit": -1
1197
- },
1198
- "extensions": {
1199
- "enabled": true,
1200
- "limit": -1
1201
- },
1202
- "integrations": {
1203
- "enabled": true,
1204
- "limit": -1
1205
- },
1206
- "is_trial_plan": false
1207
- }
1208
- }
1209
- ```
1210
- </details>
1211
-
1212
- </details>
1213
-
1214
-
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
- ---
1223
-
1224
-
1225
- ### activateSubscriptionPlan
1226
- Activate subscription
1227
-
1228
-
1229
-
1230
- ```javascript
1231
- // Promise
1232
- const promise = client.billing.activateSubscriptionPlan({ body : value });
1233
-
1234
- // Async/Await
1235
- const data = await client.billing.activateSubscriptionPlan({ body : value });
1236
- ```
1237
-
1238
-
1239
-
1240
-
1241
-
1242
- | Argument | Type | Required | Description |
1243
- | --------- | ----- | -------- | ----------- |
1244
- | body | [SubscriptionActivateReq](#SubscriptionActivateReq) | yes | Request body |
1245
-
1246
-
1247
- It will activate subscription plan for customer
1248
-
1249
- *Returned Response:*
1250
-
1251
-
1252
-
1253
-
1254
- [SubscriptionActivateRes](#SubscriptionActivateRes)
1255
-
1256
- Success
1257
-
1258
-
1259
-
1260
-
1261
- <details>
1262
- <summary><i>&nbsp; Examples:</i></summary>
1263
-
1264
-
1265
- <details>
1266
- <summary><i>&nbsp; default</i></summary>
1267
-
1268
- ```json
1269
- {
1270
- "value": {
1271
- "success": true,
1272
- "data": {
1273
- "pause_collection": {},
1274
- "trial": {},
1275
- "invoice_settings": {
1276
- "generation": true,
1277
- "charging": true
1278
- },
1279
- "is_active": true,
1280
- "cancel_at_period_end": false,
1281
- "_id": "601b8e4a32d3e837ec662f5c",
1282
- "subscriber_id": "5ef5f810961ddf004c1457ac",
1283
- "plan_id": "5f3a8786c90d780037723a12",
1284
- "product_suite_id": "5f3a8786c90d7800377239f3",
1285
- "plan_data": {
1286
- "recurring": {
1287
- "interval": "month",
1288
- "interval_count": 1
1289
- },
1290
- "is_trial_plan": false,
1291
- "plan_group": "default",
1292
- "tag_lines": [],
1293
- "currency": "INR",
1294
- "is_active": true,
1295
- "is_visible": true,
1296
- "trial_period": 0,
1297
- "addons": [],
1298
- "tags": [],
1299
- "type": "public",
1300
- "country": "IN",
1301
- "_id": "5f3a8786c90d780037723a12",
1302
- "name": "Standard",
1303
- "description": "Standard",
1304
- "amount": 999,
1305
- "product_suite_id": "5f3a8786c90d7800377239f3",
1306
- "created_at": "2020-08-17T13:35:02.547Z",
1307
- "modified_at": "2020-08-17T13:35:02.547Z"
1308
- },
1309
- "current_period": {
1310
- "start": "2021-02-04T06:03:54.567Z",
1311
- "end": "2021-03-04T06:03:54.567Z"
1312
- },
1313
- "current_status": "active",
1314
- "collection_method": "charge_automatically",
1315
- "created_at": "2021-02-04T06:03:54.580Z",
1316
- "modified_at": "2021-02-04T06:03:54.580Z"
1317
- }
1318
- }
1319
- }
1320
- ```
1321
- </details>
1322
-
1323
- </details>
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
- ---
1334
-
1335
-
1336
- ### cancelSubscriptionPlan
1337
- Cancel subscription
1338
-
1339
-
1340
-
1341
- ```javascript
1342
- // Promise
1343
- const promise = client.billing.cancelSubscriptionPlan({ body : value });
1344
-
1345
- // Async/Await
1346
- const data = await client.billing.cancelSubscriptionPlan({ body : value });
1347
- ```
1348
-
1349
-
1350
-
1351
-
1352
-
1353
- | Argument | Type | Required | Description |
1354
- | --------- | ----- | -------- | ----------- |
1355
- | body | [CancelSubscriptionReq](#CancelSubscriptionReq) | yes | Request body |
1356
-
1357
-
1358
- It will cancel current active subscription.
1359
-
1360
- *Returned Response:*
1361
-
1362
-
1363
-
1364
-
1365
- [CancelSubscriptionRes](#CancelSubscriptionRes)
1366
-
1367
- Success
1368
-
1369
-
1370
-
1371
-
1372
- <details>
1373
- <summary><i>&nbsp; Examples:</i></summary>
1374
-
1375
-
1376
- <details>
1377
- <summary><i>&nbsp; default</i></summary>
1378
-
1379
- ```json
1380
- {
1381
- "value": {
1382
- "success": true,
1383
- "data": {
1384
- "current_period": {
1385
- "start": "2021-02-04T06:03:54.567Z",
1386
- "end": "2021-03-04T06:03:54.567Z"
1387
- },
1388
- "pause_collection": {},
1389
- "trial": {},
1390
- "invoice_settings": {
1391
- "generation": true,
1392
- "charging": true
1393
- },
1394
- "is_active": false,
1395
- "cancel_at_period_end": false,
1396
- "_id": "601b8e4a32d3e837ec662f5c",
1397
- "subscriber_id": "5ef5f810961ddf004c1457ac",
1398
- "plan_id": "5f3a8786c90d780037723a12",
1399
- "product_suite_id": "5f3a8786c90d7800377239f3",
1400
- "plan_data": {
1401
- "recurring": {
1402
- "interval": "month",
1403
- "interval_count": 1
1404
- },
1405
- "is_trial_plan": false,
1406
- "plan_group": "default",
1407
- "tag_lines": [],
1408
- "currency": "INR",
1409
- "is_active": true,
1410
- "is_visible": true,
1411
- "trial_period": 0,
1412
- "addons": [],
1413
- "tags": [],
1414
- "type": "public",
1415
- "country": "IN",
1416
- "_id": "5f3a8786c90d780037723a12",
1417
- "name": "Standard",
1418
- "description": "Standard",
1419
- "amount": 999,
1420
- "product_suite_id": "5f3a8786c90d7800377239f3",
1421
- "created_at": "2020-08-17T13:35:02.547Z",
1422
- "modified_at": "2020-08-17T13:35:02.547Z"
1423
- },
1424
- "current_status": "canceled",
1425
- "collection_method": "charge_automatically",
1426
- "created_at": "2021-02-04T06:03:54.580Z",
1427
- "modified_at": "2021-02-04T08:52:25.806Z",
1428
- "cancel_at": "2021-02-04T08:52:25.802Z",
1429
- "canceled_at": "2021-02-04T08:52:25.802Z"
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
-
1454
- #### [Page](#Page)
1455
-
1456
- | Properties | Type | Nullable | Description |
1457
- | ---------- | ---- | -------- | ----------- |
1458
- | item_total | number | no | |
1459
- | next_id | string | no | |
1460
- | has_previous | boolean | no | |
1461
- | has_next | boolean | no | |
1462
- | current | number | no | |
1463
- | type | string | yes | |
1464
- | size | number | no | |
1465
-
1466
- ---
1467
-
1468
-
1469
-
1470
-
1471
- #### [UnauthenticatedUser](#UnauthenticatedUser)
1472
-
1473
- | Properties | Type | Nullable | Description |
1474
- | ---------- | ---- | -------- | ----------- |
1475
- | message | string | no | Failure message. |
1476
-
1477
- ---
1478
-
1479
-
1480
-
1481
-
1482
- #### [UnauthenticatedApplication](#UnauthenticatedApplication)
1483
-
1484
- | Properties | Type | Nullable | Description |
1485
- | ---------- | ---- | -------- | ----------- |
1486
- | message | string | no | Failure message. |
1487
-
1488
- ---
1489
-
1490
-
1491
-
1492
-
1493
- #### [BadRequest](#BadRequest)
1494
-
1495
- | Properties | Type | Nullable | Description |
1496
- | ---------- | ---- | -------- | ----------- |
1497
- | message | string | no | Failure message. |
1498
-
1499
- ---
1500
-
1501
-
1502
-
1503
-
1504
- #### [ResourceNotFound](#ResourceNotFound)
1505
-
1506
- | Properties | Type | Nullable | Description |
1507
- | ---------- | ---- | -------- | ----------- |
1508
- | message | string | no | Resource not found with {id} |
1509
-
1510
- ---
1511
-
1512
-
1513
-
1514
-
1515
- #### [InternalServerError](#InternalServerError)
1516
-
1517
- | Properties | Type | Nullable | Description |
1518
- | ---------- | ---- | -------- | ----------- |
1519
- | message | string | no | Internal server Server error |
1520
- | code | string | no | Error code |
1521
-
1522
- ---
1523
-
1524
-
1525
-
1526
-
1527
- #### [CheckValidityResponse](#CheckValidityResponse)
1528
-
1529
- | Properties | Type | Nullable | Description |
1530
- | ---------- | ---- | -------- | ----------- |
1531
- | is_valid | boolean | no | |
1532
- | discount_amount | number | no | |
1533
-
1534
- ---
1535
-
1536
-
1537
-
1538
-
1539
- #### [PlanRecurring](#PlanRecurring)
1540
-
1541
- | Properties | Type | Nullable | Description |
1542
- | ---------- | ---- | -------- | ----------- |
1543
- | interval | string | no | |
1544
- | interval_count | number | no | |
1545
-
1546
- ---
1547
-
1548
-
1549
-
1550
-
1551
- #### [Plan](#Plan)
1552
-
1553
- | Properties | Type | Nullable | Description |
1554
- | ---------- | ---- | -------- | ----------- |
1555
- | recurring | [PlanRecurring](#PlanRecurring) | no | |
1556
- | is_trial_plan | boolean | no | |
1557
- | plan_group | string | no | |
1558
- | tag_lines | [string] | no | |
1559
- | currency | string | no | |
1560
- | is_active | boolean | no | |
1561
- | is_visible | boolean | no | |
1562
- | trial_period | number | no | |
1563
- | addons | [string] | no | |
1564
- | tags | [string] | no | |
1565
- | type | string | no | |
1566
- | country | string | no | |
1567
- | _id | string | no | |
1568
- | name | string | no | |
1569
- | description | string | no | |
1570
- | amount | number | no | |
1571
- | product_suite_id | string | no | |
1572
- | created_at | string | no | |
1573
- | modified_at | string | no | |
1574
-
1575
- ---
1576
-
1577
-
1578
-
1579
-
1580
- #### [DetailedPlanComponents](#DetailedPlanComponents)
1581
-
1582
- | Properties | Type | Nullable | Description |
1583
- | ---------- | ---- | -------- | ----------- |
1584
- | name | string | no | |
1585
- | slug | string | no | |
1586
- | description | string | no | |
1587
- | group | string | no | |
1588
- | icon | string | no | |
1589
- | links | string | no | |
1590
- | enabled | boolean | no | |
1591
- | display_text | string | no | |
1592
-
1593
- ---
1594
-
1595
-
1596
-
1597
-
1598
- #### [DetailedPlan](#DetailedPlan)
1599
-
1600
- | Properties | Type | Nullable | Description |
1601
- | ---------- | ---- | -------- | ----------- |
1602
- | recurring | [PlanRecurring](#PlanRecurring) | no | |
1603
- | is_trial_plan | boolean | no | |
1604
- | plan_group | string | no | |
1605
- | tag_lines | [string] | no | |
1606
- | currency | string | no | |
1607
- | is_active | boolean | no | |
1608
- | is_visible | boolean | no | |
1609
- | trial_period | number | no | |
1610
- | addons | [string] | no | |
1611
- | tags | [string] | no | |
1612
- | type | string | no | |
1613
- | country | string | no | |
1614
- | _id | string | no | |
1615
- | name | string | no | |
1616
- | description | string | no | |
1617
- | amount | number | no | |
1618
- | product_suite_id | string | no | |
1619
- | created_at | string | no | |
1620
- | modified_at | string | no | |
1621
- | components | [[DetailedPlanComponents](#DetailedPlanComponents)] | no | |
1622
-
1623
- ---
1624
-
1625
-
1626
-
1627
-
1628
- #### [SubscriptionTrialPeriod](#SubscriptionTrialPeriod)
1629
-
1630
- | Properties | Type | Nullable | Description |
1631
- | ---------- | ---- | -------- | ----------- |
1632
- | start_date | string | no | |
1633
- | end_date | string | no | |
1634
-
1635
- ---
1636
-
1637
-
1638
-
1639
-
1640
- #### [EntityChargePrice](#EntityChargePrice)
1641
-
1642
- | Properties | Type | Nullable | Description |
1643
- | ---------- | ---- | -------- | ----------- |
1644
- | amount | number | yes | Amount for price. Minimum value 1 |
1645
- | currency_code | string | yes | |
1646
-
1647
- ---
1648
-
1649
-
1650
-
1651
-
1652
- #### [EntityChargeRecurring](#EntityChargeRecurring)
1653
-
1654
- | Properties | Type | Nullable | Description |
1655
- | ---------- | ---- | -------- | ----------- |
1656
- | interval | string | yes | |
1657
-
1658
- ---
1659
-
1660
-
1661
-
1662
-
1663
- #### [ChargeLineItem](#ChargeLineItem)
1664
-
1665
- | Properties | Type | Nullable | Description |
1666
- | ---------- | ---- | -------- | ----------- |
1667
- | name | string | yes | |
1668
- | term | string | yes | |
1669
- | pricing_type | string | yes | |
1670
- | price | [EntityChargePrice](#EntityChargePrice) | yes | |
1671
- | recurring | [EntityChargeRecurring](#EntityChargeRecurring) | no | |
1672
- | capped_amount | number | no | |
1673
- | trial_days | number | no | |
1674
- | is_test | boolean | no | |
1675
- | metadata | string | no | |
1676
-
1677
- ---
1678
-
1679
-
1680
-
1681
-
1682
- #### [CreateSubscriptionCharge](#CreateSubscriptionCharge)
1683
-
1684
- | Properties | Type | Nullable | Description |
1685
- | ---------- | ---- | -------- | ----------- |
1686
- | name | string | yes | |
1687
- | trial_days | number | no | |
1688
- | line_items | [[ChargeLineItem](#ChargeLineItem)] | yes | |
1689
- | is_test | boolean | no | |
1690
- | return_url | string | yes | |
1691
-
1692
- ---
1693
-
1694
-
1695
-
1696
-
1697
- #### [CurrentPeriod](#CurrentPeriod)
1698
-
1699
- | Properties | Type | Nullable | Description |
1700
- | ---------- | ---- | -------- | ----------- |
1701
- | start_date | string | no | |
1702
- | end_date | string | no | |
1703
-
1704
- ---
1705
-
1706
-
1707
-
1708
-
1709
- #### [SubscriptionCharge](#SubscriptionCharge)
1710
-
1711
- | Properties | Type | Nullable | Description |
1712
- | ---------- | ---- | -------- | ----------- |
1713
- | _id | string | no | |
1714
- | name | string | no | |
1715
- | term | string | no | |
1716
- | pricing_type | string | no | |
1717
- | price | [EntityChargePrice](#EntityChargePrice) | no | |
1718
- | recurring | [EntityChargeRecurring](#EntityChargeRecurring) | no | |
1719
- | capped_amount | number | no | |
1720
- | activated_on | string | no | |
1721
- | cancelled_on | string | no | |
1722
- | billing_date | string | no | |
1723
- | current_period | [CurrentPeriod](#CurrentPeriod) | no | |
1724
- | status | string | no | |
1725
- | is_test | boolean | no | |
1726
- | metadata | string | no | |
1727
-
1728
- ---
1729
-
1730
-
1731
-
1732
-
1733
- #### [EntitySubscription](#EntitySubscription)
1734
-
1735
- | Properties | Type | Nullable | Description |
1736
- | ---------- | ---- | -------- | ----------- |
1737
- | _id | string | no | |
1738
- | name | string | no | |
1739
- | status | string | no | |
1740
- | company_id | number | no | |
1741
- | activated_on | string | no | |
1742
- | cancelled_on | string | no | |
1743
- | trial_days | number | no | |
1744
- | trial_period | [SubscriptionTrialPeriod](#SubscriptionTrialPeriod) | no | |
1745
- | metadata | string | no | |
1746
- | line_items | [[SubscriptionCharge](#SubscriptionCharge)] | no | |
1747
-
1748
- ---
1749
-
1750
-
1751
-
1752
-
1753
- #### [CreateSubscriptionResponse](#CreateSubscriptionResponse)
1754
-
1755
- | Properties | Type | Nullable | Description |
1756
- | ---------- | ---- | -------- | ----------- |
1757
- | subscription | [EntitySubscription](#EntitySubscription) | no | |
1758
- | confirm_url | string | no | |
1759
-
1760
- ---
1761
-
1762
-
1763
-
1764
-
1765
- #### [InvoiceDetailsPeriod](#InvoiceDetailsPeriod)
1766
-
1767
- | Properties | Type | Nullable | Description |
1768
- | ---------- | ---- | -------- | ----------- |
1769
- | start | string | no | |
1770
- | end | string | no | |
1771
-
1772
- ---
1773
-
1774
-
1775
-
1776
-
1777
- #### [InvoiceDetailsClient](#InvoiceDetailsClient)
1778
-
1779
- | Properties | Type | Nullable | Description |
1780
- | ---------- | ---- | -------- | ----------- |
1781
- | address_lines | [string] | no | |
1782
- | name | string | no | |
1783
- | email | string | no | |
1784
- | phone | string | no | |
1785
-
1786
- ---
1787
-
1788
-
1789
-
1790
-
1791
- #### [InvoiceDetailsStatusTrail](#InvoiceDetailsStatusTrail)
1792
-
1793
- | Properties | Type | Nullable | Description |
1794
- | ---------- | ---- | -------- | ----------- |
1795
- | _id | string | no | |
1796
- | value | string | no | |
1797
- | timestamp | string | no | |
1798
-
1799
- ---
1800
-
1801
-
1802
-
1803
-
1804
- #### [InvoiceDetailsPaymentMethodsDataChecks](#InvoiceDetailsPaymentMethodsDataChecks)
1805
-
1806
- | Properties | Type | Nullable | Description |
1807
- | ---------- | ---- | -------- | ----------- |
1808
- | cvc_check | string | no | |
1809
- | address_line1_check | string | no | |
1810
- | address_postal_code_check | string | no | |
1811
-
1812
- ---
1813
-
1814
-
1815
-
1816
-
1817
- #### [InvoiceDetailsPaymentMethodsDataNetworks](#InvoiceDetailsPaymentMethodsDataNetworks)
1818
-
1819
- | Properties | Type | Nullable | Description |
1820
- | ---------- | ---- | -------- | ----------- |
1821
- | available | [string] | no | |
1822
- | preferred | string | no | |
1823
-
1824
- ---
1825
-
1826
-
1827
-
1828
-
1829
- #### [InvoiceDetailsPaymentMethodsDataThreeDSecureUsage](#InvoiceDetailsPaymentMethodsDataThreeDSecureUsage)
1830
-
1831
- | Properties | Type | Nullable | Description |
1832
- | ---------- | ---- | -------- | ----------- |
1833
- | supported | boolean | no | |
1834
-
1835
- ---
1836
-
1837
-
1838
-
1839
-
1840
- #### [InvoiceDetailsPaymentMethodsData](#InvoiceDetailsPaymentMethodsData)
1841
-
1842
- | Properties | Type | Nullable | Description |
1843
- | ---------- | ---- | -------- | ----------- |
1844
- | brand | string | no | |
1845
- | last4 | string | no | |
1846
- | checks | [InvoiceDetailsPaymentMethodsDataChecks](#InvoiceDetailsPaymentMethodsDataChecks) | no | |
1847
- | wallet | string | no | |
1848
- | country | string | no | |
1849
- | funding | string | no | |
1850
- | exp_year | number | no | |
1851
- | networks | [InvoiceDetailsPaymentMethodsDataNetworks](#InvoiceDetailsPaymentMethodsDataNetworks) | no | |
1852
- | exp_month | number | no | |
1853
- | fingerprint | string | no | |
1854
- | generated_from | string | no | |
1855
- | three_d_secure_usage | [InvoiceDetailsPaymentMethodsDataThreeDSecureUsage](#InvoiceDetailsPaymentMethodsDataThreeDSecureUsage) | no | |
1856
-
1857
- ---
1858
-
1859
-
1860
-
1861
-
1862
- #### [InvoiceDetailsPaymentMethods](#InvoiceDetailsPaymentMethods)
1863
-
1864
- | Properties | Type | Nullable | Description |
1865
- | ---------- | ---- | -------- | ----------- |
1866
- | id | number | no | |
1867
- | type | string | no | |
1868
- | pg_payment_method_id | string | no | |
1869
- | data | [InvoiceDetailsPaymentMethodsData](#InvoiceDetailsPaymentMethodsData) | no | |
1870
- | is_default | boolean | no | |
1871
-
1872
- ---
1873
-
1874
-
1875
-
1876
-
1877
- #### [InvoicePaymentMethod](#InvoicePaymentMethod)
1878
-
1879
- | Properties | Type | Nullable | Description |
1880
- | ---------- | ---- | -------- | ----------- |
1881
- | pg_payment_method_id | string | no | |
1882
-
1883
- ---
1884
-
1885
-
1886
-
1887
-
1888
- #### [InvoiceDetails](#InvoiceDetails)
1889
-
1890
- | Properties | Type | Nullable | Description |
1891
- | ---------- | ---- | -------- | ----------- |
1892
- | period | [InvoiceDetailsPeriod](#InvoiceDetailsPeriod) | no | |
1893
- | client | [InvoiceDetailsClient](#InvoiceDetailsClient) | no | |
1894
- | auto_advance | boolean | no | |
1895
- | currency | string | no | |
1896
- | paid | boolean | no | |
1897
- | attemp | number | no | |
1898
- | _id | string | no | |
1899
- | collection_method | string | no | |
1900
- | subscriber_id | string | no | |
1901
- | invoice_url | string | no | |
1902
- | number | string | no | |
1903
- | pg_data | string | no | |
1904
- | receipt_number | string | no | |
1905
- | statement_descriptor | string | no | |
1906
- | current_status | string | no | |
1907
- | status_trail | [[InvoiceDetailsStatusTrail](#InvoiceDetailsStatusTrail)] | no | |
1908
- | subtotal | number | no | |
1909
- | total | number | no | |
1910
- | subscription | string | no | |
1911
- | next_action_time | string | no | |
1912
- | created_at | string | no | |
1913
- | modified_at | string | no | |
1914
- | hash_identifier | string | no | |
1915
- | payment_method | [InvoicePaymentMethod](#InvoicePaymentMethod) | no | |
1916
-
1917
- ---
1918
-
1919
-
1920
-
1921
-
1922
- #### [InvoiceItemsPlanRecurring](#InvoiceItemsPlanRecurring)
1923
-
1924
- | Properties | Type | Nullable | Description |
1925
- | ---------- | ---- | -------- | ----------- |
1926
- | interval | string | no | |
1927
- | interval_count | number | no | |
1928
-
1929
- ---
1930
-
1931
-
1932
-
1933
-
1934
- #### [InvoiceItemsPlan](#InvoiceItemsPlan)
1935
-
1936
- | Properties | Type | Nullable | Description |
1937
- | ---------- | ---- | -------- | ----------- |
1938
- | recurring | [InvoiceItemsPlanRecurring](#InvoiceItemsPlanRecurring) | no | |
1939
- | is_trial_plan | boolean | no | |
1940
- | plan_group | string | no | |
1941
- | tag_lines | [string] | no | |
1942
- | currency | string | no | |
1943
- | is_active | boolean | no | |
1944
- | is_visible | boolean | no | |
1945
- | trial_period | number | no | |
1946
- | addons | [string] | no | |
1947
- | tags | [string] | no | |
1948
- | type | string | no | |
1949
- | country | string | no | |
1950
- | _id | string | no | |
1951
- | name | string | no | |
1952
- | description | string | no | |
1953
- | amount | number | no | |
1954
- | product_suite_id | string | no | |
1955
- | created_at | string | no | |
1956
- | modified_at | string | no | |
1957
-
1958
- ---
1959
-
1960
-
1961
-
1962
-
1963
- #### [InvoiceItemsPeriod](#InvoiceItemsPeriod)
1964
-
1965
- | Properties | Type | Nullable | Description |
1966
- | ---------- | ---- | -------- | ----------- |
1967
- | start | string | no | |
1968
- | end | string | no | |
1969
-
1970
- ---
1971
-
1972
-
1973
-
1974
-
1975
- #### [InvoiceItems](#InvoiceItems)
1976
-
1977
- | Properties | Type | Nullable | Description |
1978
- | ---------- | ---- | -------- | ----------- |
1979
- | _id | string | no | |
1980
- | currency | string | no | |
1981
- | plan | [InvoiceItemsPlan](#InvoiceItemsPlan) | no | |
1982
- | name | string | no | |
1983
- | quantity | number | no | |
1984
- | description | string | no | |
1985
- | period | [InvoiceItemsPeriod](#InvoiceItemsPeriod) | no | |
1986
- | unit_amount | number | no | |
1987
- | amount | number | no | |
1988
- | type | string | no | |
1989
- | invoice_id | string | no | |
1990
- | created_at | string | no | |
1991
- | modified_at | string | no | |
1992
-
1993
- ---
1994
-
1995
-
1996
-
1997
-
1998
- #### [Invoice](#Invoice)
1999
-
2000
- | Properties | Type | Nullable | Description |
2001
- | ---------- | ---- | -------- | ----------- |
2002
- | invoice | [InvoiceDetails](#InvoiceDetails) | no | |
2003
- | invoice_items | [[InvoiceItems](#InvoiceItems)] | no | |
2004
-
2005
- ---
2006
-
2007
-
2008
-
2009
-
2010
- #### [InvoicesDataClient](#InvoicesDataClient)
2011
-
2012
- | Properties | Type | Nullable | Description |
2013
- | ---------- | ---- | -------- | ----------- |
2014
- | name | string | no | |
2015
- | email | string | no | |
2016
- | phone | string | no | |
2017
- | address_lines | [string] | no | |
2018
-
2019
- ---
2020
-
2021
-
2022
-
2023
-
2024
- #### [InvoicesDataPeriod](#InvoicesDataPeriod)
2025
-
2026
- | Properties | Type | Nullable | Description |
2027
- | ---------- | ---- | -------- | ----------- |
2028
- | start | string | no | |
2029
- | end | string | no | |
2030
-
2031
- ---
2032
-
2033
-
2034
-
2035
-
2036
- #### [InvoicesDataPaymentMethod](#InvoicesDataPaymentMethod)
2037
-
2038
- | Properties | Type | Nullable | Description |
2039
- | ---------- | ---- | -------- | ----------- |
2040
- | pg_payment_method_id | string | no | |
2041
-
2042
- ---
2043
-
2044
-
2045
-
2046
-
2047
- #### [InvoicesData](#InvoicesData)
2048
-
2049
- | Properties | Type | Nullable | Description |
2050
- | ---------- | ---- | -------- | ----------- |
2051
- | _id | string | no | |
2052
- | client | [InvoicesDataClient](#InvoicesDataClient) | no | |
2053
- | auto_advance | boolean | no | |
2054
- | currency | string | no | |
2055
- | paid | boolean | no | |
2056
- | attemp | number | no | |
2057
- | collection_method | string | no | |
2058
- | subscriber_id | string | no | |
2059
- | invoice_url | string | no | |
2060
- | number | string | no | |
2061
- | pg_data | string | no | |
2062
- | period | [InvoicesDataPeriod](#InvoicesDataPeriod) | no | |
2063
- | receipt_number | string | no | |
2064
- | statement_descriptor | string | no | |
2065
- | current_status | string | no | |
2066
- | status_trail | [[InvoiceDetailsStatusTrail](#InvoiceDetailsStatusTrail)] | no | |
2067
- | subtotal | number | no | |
2068
- | total | number | no | |
2069
- | subscription | string | no | |
2070
- | next_action_time | string | no | |
2071
- | created_at | string | no | |
2072
- | modified_at | string | no | |
2073
- | hash_identifier | string | no | |
2074
- | payment_method | [InvoicesDataPaymentMethod](#InvoicesDataPaymentMethod) | no | |
2075
- | invoice_items | [[InvoiceItems](#InvoiceItems)] | no | |
2076
-
2077
- ---
2078
-
2079
-
2080
-
2081
-
2082
- #### [Invoices](#Invoices)
2083
-
2084
- | Properties | Type | Nullable | Description |
2085
- | ---------- | ---- | -------- | ----------- |
2086
- | data | [[InvoicesData](#InvoicesData)] | no | |
2087
- | start | number | no | |
2088
- | end | number | no | |
2089
- | limit | number | no | |
2090
- | page | number | no | |
2091
- | total | number | no | |
2092
-
2093
- ---
2094
-
2095
-
2096
-
2097
-
2098
- #### [Phone](#Phone)
2099
-
2100
- | Properties | Type | Nullable | Description |
2101
- | ---------- | ---- | -------- | ----------- |
2102
- | phone_number | string | no | |
2103
- | phone_country_code | string | no | |
2104
-
2105
- ---
2106
-
2107
-
2108
-
2109
-
2110
- #### [SubscriptionBillingAddress](#SubscriptionBillingAddress)
2111
-
2112
- | Properties | Type | Nullable | Description |
2113
- | ---------- | ---- | -------- | ----------- |
2114
- | country | string | no | |
2115
- | state | string | no | |
2116
- | city | string | no | |
2117
- | line1 | string | no | |
2118
- | line2 | string | no | |
2119
- | postal_code | string | no | |
2120
-
2121
- ---
2122
-
2123
-
2124
-
2125
-
2126
- #### [SubscriptionCustomer](#SubscriptionCustomer)
2127
-
2128
- | Properties | Type | Nullable | Description |
2129
- | ---------- | ---- | -------- | ----------- |
2130
- | phone | [Phone](#Phone) | no | |
2131
- | billing_address | [SubscriptionBillingAddress](#SubscriptionBillingAddress) | no | |
2132
- | _id | string | no | |
2133
- | unique_id | string | no | |
2134
- | type | string | no | |
2135
- | name | string | no | |
2136
- | email | string | no | |
2137
- | created_at | string | no | |
2138
- | modified_at | string | no | |
2139
- | data | string | no | |
2140
-
2141
- ---
2142
-
2143
-
2144
-
2145
-
2146
- #### [SubscriptionCustomerCreate](#SubscriptionCustomerCreate)
2147
-
2148
- | Properties | Type | Nullable | Description |
2149
- | ---------- | ---- | -------- | ----------- |
2150
- | phone | [Phone](#Phone) | no | |
2151
- | billing_address | [SubscriptionBillingAddress](#SubscriptionBillingAddress) | no | |
2152
- | unique_id | string | no | |
2153
- | type | string | no | |
2154
- | name | string | no | |
2155
- | email | string | no | |
2156
-
2157
- ---
2158
-
2159
-
2160
-
2161
-
2162
- #### [SubscriptionCurrentPeriod](#SubscriptionCurrentPeriod)
2163
-
2164
- | Properties | Type | Nullable | Description |
2165
- | ---------- | ---- | -------- | ----------- |
2166
- | start | string | no | |
2167
- | end | string | no | |
2168
-
2169
- ---
2170
-
2171
-
2172
-
2173
-
2174
- #### [SubscriptionPauseCollection](#SubscriptionPauseCollection)
2175
-
2176
- | Properties | Type | Nullable | Description |
2177
- | ---------- | ---- | -------- | ----------- |
2178
- | behavior | string | no | |
2179
- | resume_at | string | no | |
2180
-
2181
- ---
2182
-
2183
-
2184
-
2185
-
2186
- #### [SubscriptionTrial](#SubscriptionTrial)
2187
-
2188
- | Properties | Type | Nullable | Description |
2189
- | ---------- | ---- | -------- | ----------- |
2190
- | start | string | no | |
2191
- | end | string | no | |
2192
-
2193
- ---
2194
-
2195
-
2196
-
2197
-
2198
- #### [SubscriptionInvoiceSettings](#SubscriptionInvoiceSettings)
2199
-
2200
- | Properties | Type | Nullable | Description |
2201
- | ---------- | ---- | -------- | ----------- |
2202
- | generation | boolean | no | |
2203
- | charging | boolean | no | |
2204
-
2205
- ---
2206
-
2207
-
2208
-
2209
-
2210
- #### [Subscription](#Subscription)
2211
-
2212
- | Properties | Type | Nullable | Description |
2213
- | ---------- | ---- | -------- | ----------- |
2214
- | current_period | [SubscriptionCurrentPeriod](#SubscriptionCurrentPeriod) | no | |
2215
- | pause_collection | [SubscriptionPauseCollection](#SubscriptionPauseCollection) | no | |
2216
- | trial | [SubscriptionTrial](#SubscriptionTrial) | no | |
2217
- | invoice_settings | [SubscriptionInvoiceSettings](#SubscriptionInvoiceSettings) | no | |
2218
- | is_active | boolean | no | |
2219
- | cancel_at_period_end | boolean | no | |
2220
- | _id | string | no | |
2221
- | subscriber_id | string | no | |
2222
- | plan_id | string | no | |
2223
- | product_suite_id | string | no | |
2224
- | plan_data | [Plan](#Plan) | no | |
2225
- | current_status | string | no | |
2226
- | collection_method | string | no | |
2227
- | created_at | string | no | |
2228
- | modified_at | string | no | |
2229
- | latest_invoice | string | no | |
2230
-
2231
- ---
2232
-
2233
-
2234
-
2235
-
2236
- #### [SubscriptionStatus](#SubscriptionStatus)
2237
-
2238
- | Properties | Type | Nullable | Description |
2239
- | ---------- | ---- | -------- | ----------- |
2240
- | is_enabled | boolean | no | |
2241
- | subscription | [Subscription](#Subscription) | no | |
2242
-
2243
- ---
2244
-
2245
-
2246
-
2247
-
2248
- #### [SubscriptionLimitApplication](#SubscriptionLimitApplication)
2249
-
2250
- | Properties | Type | Nullable | Description |
2251
- | ---------- | ---- | -------- | ----------- |
2252
- | enabled | boolean | no | |
2253
- | hard_limit | number | no | |
2254
- | soft_limit | number | no | |
2255
-
2256
- ---
2257
-
2258
-
2259
-
2260
-
2261
- #### [SubscriptionLimitMarketplace](#SubscriptionLimitMarketplace)
2262
-
2263
- | Properties | Type | Nullable | Description |
2264
- | ---------- | ---- | -------- | ----------- |
2265
- | enabled | boolean | no | |
2266
-
2267
- ---
2268
-
2269
-
2270
-
2271
-
2272
- #### [SubscriptionLimitOtherPlatform](#SubscriptionLimitOtherPlatform)
2273
-
2274
- | Properties | Type | Nullable | Description |
2275
- | ---------- | ---- | -------- | ----------- |
2276
- | enabled | boolean | no | |
2277
-
2278
- ---
2279
-
2280
-
2281
-
2282
-
2283
- #### [SubscriptionLimitTeam](#SubscriptionLimitTeam)
2284
-
2285
- | Properties | Type | Nullable | Description |
2286
- | ---------- | ---- | -------- | ----------- |
2287
- | limit | number | no | |
2288
-
2289
- ---
2290
-
2291
-
2292
-
2293
-
2294
- #### [SubscriptionLimitProducts](#SubscriptionLimitProducts)
2295
-
2296
- | Properties | Type | Nullable | Description |
2297
- | ---------- | ---- | -------- | ----------- |
2298
- | bulk | boolean | no | |
2299
- | limit | number | no | |
2300
-
2301
- ---
2302
-
2303
-
2304
-
2305
-
2306
- #### [SubscriptionLimitExtensions](#SubscriptionLimitExtensions)
2307
-
2308
- | Properties | Type | Nullable | Description |
2309
- | ---------- | ---- | -------- | ----------- |
2310
- | enabled | boolean | no | |
2311
- | limit | number | no | |
2312
-
2313
- ---
2314
-
2315
-
2316
-
2317
-
2318
- #### [SubscriptionLimitIntegrations](#SubscriptionLimitIntegrations)
2319
-
2320
- | Properties | Type | Nullable | Description |
2321
- | ---------- | ---- | -------- | ----------- |
2322
- | enabled | boolean | no | |
2323
- | limit | number | no | |
2324
-
2325
- ---
2326
-
2327
-
2328
-
2329
-
2330
- #### [SubscriptionLimit](#SubscriptionLimit)
2331
-
2332
- | Properties | Type | Nullable | Description |
2333
- | ---------- | ---- | -------- | ----------- |
2334
- | application | [SubscriptionLimitApplication](#SubscriptionLimitApplication) | no | |
2335
- | marketplace | [SubscriptionLimitMarketplace](#SubscriptionLimitMarketplace) | no | |
2336
- | other_platform | [SubscriptionLimitOtherPlatform](#SubscriptionLimitOtherPlatform) | no | |
2337
- | team | [SubscriptionLimitTeam](#SubscriptionLimitTeam) | no | |
2338
- | products | [SubscriptionLimitProducts](#SubscriptionLimitProducts) | no | |
2339
- | extensions | [SubscriptionLimitExtensions](#SubscriptionLimitExtensions) | no | |
2340
- | integrations | [SubscriptionLimitIntegrations](#SubscriptionLimitIntegrations) | no | |
2341
- | is_trial_plan | boolean | no | |
2342
-
2343
- ---
2344
-
2345
-
2346
-
2347
-
2348
- #### [SubscriptionActivateReq](#SubscriptionActivateReq)
2349
-
2350
- | Properties | Type | Nullable | Description |
2351
- | ---------- | ---- | -------- | ----------- |
2352
- | unique_id | string | no | |
2353
- | type | string | no | |
2354
- | product_suite | string | no | |
2355
- | plan_id | string | no | |
2356
- | payment_method | string | no | |
2357
-
2358
- ---
2359
-
2360
-
2361
-
2362
-
2363
- #### [SubscriptionActivateRes](#SubscriptionActivateRes)
2364
-
2365
- | Properties | Type | Nullable | Description |
2366
- | ---------- | ---- | -------- | ----------- |
2367
- | success | boolean | no | |
2368
- | data | [Subscription](#Subscription) | no | |
2369
-
2370
- ---
2371
-
2372
-
2373
-
2374
-
2375
- #### [CancelSubscriptionReq](#CancelSubscriptionReq)
2376
-
2377
- | Properties | Type | Nullable | Description |
2378
- | ---------- | ---- | -------- | ----------- |
2379
- | unique_id | string | no | |
2380
- | type | string | no | |
2381
- | product_suite | string | no | |
2382
- | subscription_id | string | no | |
2383
-
2384
- ---
2385
-
2386
-
2387
-
2388
-
2389
- #### [CancelSubscriptionRes](#CancelSubscriptionRes)
2390
-
2391
- | Properties | Type | Nullable | Description |
2392
- | ---------- | ---- | -------- | ----------- |
2393
- | success | boolean | no | |
2394
- | data | [Subscription](#Subscription) | no | |
2395
-
2396
- ---
2397
-
2398
-
2399
-
2400
-