@stigg/typescript 0.1.0-alpha.9 → 0.1.0-beta.10

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 (564) hide show
  1. package/CHANGELOG.md +499 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +4 -1
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +4 -1
  11. package/client.d.ts.map +1 -1
  12. package/client.js +22 -7
  13. package/client.js.map +1 -1
  14. package/client.mjs +22 -7
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/qs/formats.d.mts.map +1 -1
  43. package/internal/qs/formats.d.ts.map +1 -1
  44. package/internal/qs/index.d.mts +2 -2
  45. package/internal/qs/index.d.mts.map +1 -1
  46. package/internal/qs/index.d.ts +2 -2
  47. package/internal/qs/index.d.ts.map +1 -1
  48. package/internal/qs/index.mjs.map +1 -1
  49. package/internal/qs/stringify.d.mts.map +1 -1
  50. package/internal/qs/stringify.d.ts.map +1 -1
  51. package/internal/qs/stringify.mjs.map +1 -1
  52. package/internal/qs/utils.d.mts.map +1 -1
  53. package/internal/qs/utils.d.ts.map +1 -1
  54. package/internal/qs/utils.mjs.map +1 -1
  55. package/internal/request-options.d.mts.map +1 -1
  56. package/internal/request-options.d.ts.map +1 -1
  57. package/internal/shims.d.mts +6 -0
  58. package/internal/shims.d.mts.map +1 -1
  59. package/internal/shims.d.ts +6 -0
  60. package/internal/shims.d.ts.map +1 -1
  61. package/internal/to-file.d.mts.map +1 -1
  62. package/internal/to-file.d.ts.map +1 -1
  63. package/internal/to-file.mjs.map +1 -1
  64. package/internal/tslib.js +17 -17
  65. package/internal/types.d.mts +10 -10
  66. package/internal/types.d.mts.map +1 -1
  67. package/internal/types.d.ts +10 -10
  68. package/internal/types.d.ts.map +1 -1
  69. package/internal/uploads.d.mts.map +1 -1
  70. package/internal/uploads.d.ts.map +1 -1
  71. package/internal/uploads.mjs.map +1 -1
  72. package/internal/utils/base64.mjs.map +1 -1
  73. package/internal/utils/env.js +2 -2
  74. package/internal/utils/env.js.map +1 -1
  75. package/internal/utils/env.mjs +2 -2
  76. package/internal/utils/env.mjs.map +1 -1
  77. package/internal/utils/log.d.mts.map +1 -1
  78. package/internal/utils/log.d.ts.map +1 -1
  79. package/internal/utils/log.js +3 -2
  80. package/internal/utils/log.js.map +1 -1
  81. package/internal/utils/log.mjs +3 -2
  82. package/internal/utils/log.mjs.map +1 -1
  83. package/internal/utils/path.mjs.map +1 -1
  84. package/internal/utils/query.d.mts +2 -0
  85. package/internal/utils/query.d.mts.map +1 -0
  86. package/internal/utils/query.d.ts +2 -0
  87. package/internal/utils/query.d.ts.map +1 -0
  88. package/internal/utils/query.js +10 -0
  89. package/internal/utils/query.js.map +1 -0
  90. package/internal/utils/query.mjs +6 -0
  91. package/internal/utils/query.mjs.map +1 -0
  92. package/internal/utils/values.mjs.map +1 -1
  93. package/internal/utils.d.mts +1 -0
  94. package/internal/utils.d.mts.map +1 -1
  95. package/internal/utils.d.ts +1 -0
  96. package/internal/utils.d.ts.map +1 -1
  97. package/internal/utils.js +1 -0
  98. package/internal/utils.js.map +1 -1
  99. package/internal/utils.mjs +1 -0
  100. package/internal/utils.mjs.map +1 -1
  101. package/package.json +12 -1
  102. package/pagination.d.mts +1 -0
  103. package/pagination.d.mts.map +1 -1
  104. package/pagination.d.ts +1 -0
  105. package/pagination.d.ts.map +1 -1
  106. package/pagination.mjs +1 -0
  107. package/pagination.mjs.map +1 -1
  108. package/resource.d.mts +1 -0
  109. package/resource.d.mts.map +1 -1
  110. package/resource.d.ts +1 -0
  111. package/resource.d.ts.map +1 -1
  112. package/resource.mjs +1 -0
  113. package/resource.mjs.map +1 -1
  114. package/resources/index.d.mts +1 -0
  115. package/resources/index.d.mts.map +1 -1
  116. package/resources/index.d.ts +1 -0
  117. package/resources/index.d.ts.map +1 -1
  118. package/resources/index.js +3 -1
  119. package/resources/index.js.map +1 -1
  120. package/resources/index.mjs +1 -0
  121. package/resources/index.mjs.map +1 -1
  122. package/resources/v1/addons/addons.d.mts +1025 -0
  123. package/resources/v1/addons/addons.d.mts.map +1 -0
  124. package/resources/v1/addons/addons.d.ts +1025 -0
  125. package/resources/v1/addons/addons.d.ts.map +1 -0
  126. package/resources/v1/{events/addons → addons}/addons.js +50 -26
  127. package/resources/v1/addons/addons.js.map +1 -0
  128. package/resources/v1/{events/addons → addons}/addons.mjs +49 -25
  129. package/resources/v1/addons/addons.mjs.map +1 -0
  130. package/resources/v1/addons/entitlements.d.mts +888 -0
  131. package/resources/v1/addons/entitlements.d.mts.map +1 -0
  132. package/resources/v1/addons/entitlements.d.ts +888 -0
  133. package/resources/v1/addons/entitlements.d.ts.map +1 -0
  134. package/resources/v1/addons/entitlements.js +36 -0
  135. package/resources/v1/addons/entitlements.js.map +1 -0
  136. package/resources/v1/addons/entitlements.mjs +32 -0
  137. package/resources/v1/addons/entitlements.mjs.map +1 -0
  138. package/resources/v1/addons/index.d.mts +3 -0
  139. package/resources/v1/addons/index.d.mts.map +1 -0
  140. package/resources/v1/addons/index.d.ts +3 -0
  141. package/resources/v1/addons/index.d.ts.map +1 -0
  142. package/resources/v1/{events/addons → addons}/index.js +3 -3
  143. package/resources/v1/addons/index.js.map +1 -0
  144. package/resources/v1/{events/addons → addons}/index.mjs +1 -1
  145. package/resources/v1/addons/index.mjs.map +1 -0
  146. package/resources/v1/addons.d.mts.map +1 -0
  147. package/resources/v1/addons.d.ts.map +1 -0
  148. package/resources/v1/{events/addons.js → addons.js} +1 -1
  149. package/resources/v1/addons.js.map +1 -0
  150. package/resources/v1/addons.mjs.map +1 -0
  151. package/resources/v1/coupons.d.mts +19 -4
  152. package/resources/v1/coupons.d.mts.map +1 -1
  153. package/resources/v1/coupons.d.ts +19 -4
  154. package/resources/v1/coupons.d.ts.map +1 -1
  155. package/resources/v1/coupons.js +3 -0
  156. package/resources/v1/coupons.js.map +1 -1
  157. package/resources/v1/coupons.mjs +3 -0
  158. package/resources/v1/coupons.mjs.map +1 -1
  159. package/resources/v1/credits/credits.d.mts +296 -0
  160. package/resources/v1/credits/credits.d.mts.map +1 -0
  161. package/resources/v1/credits/credits.d.ts +296 -0
  162. package/resources/v1/credits/credits.d.ts.map +1 -0
  163. package/resources/v1/credits/credits.js +45 -0
  164. package/resources/v1/credits/credits.js.map +1 -0
  165. package/resources/v1/credits/credits.mjs +40 -0
  166. package/resources/v1/credits/credits.mjs.map +1 -0
  167. package/resources/v1/credits/custom-currencies.d.mts +290 -0
  168. package/resources/v1/credits/custom-currencies.d.mts.map +1 -0
  169. package/resources/v1/credits/custom-currencies.d.ts +290 -0
  170. package/resources/v1/credits/custom-currencies.d.ts.map +1 -0
  171. package/resources/v1/credits/custom-currencies.js +56 -0
  172. package/resources/v1/credits/custom-currencies.js.map +1 -0
  173. package/resources/v1/credits/custom-currencies.mjs +52 -0
  174. package/resources/v1/credits/custom-currencies.mjs.map +1 -0
  175. package/resources/v1/credits/grants.d.mts +549 -0
  176. package/resources/v1/credits/grants.d.mts.map +1 -0
  177. package/resources/v1/credits/grants.d.ts +549 -0
  178. package/resources/v1/credits/grants.d.ts.map +1 -0
  179. package/resources/v1/credits/grants.js +37 -0
  180. package/resources/v1/credits/grants.js.map +1 -0
  181. package/resources/v1/credits/grants.mjs +33 -0
  182. package/resources/v1/credits/grants.mjs.map +1 -0
  183. package/resources/v1/credits/index.d.mts +4 -0
  184. package/resources/v1/credits/index.d.mts.map +1 -0
  185. package/resources/v1/credits/index.d.ts +4 -0
  186. package/resources/v1/credits/index.d.ts.map +1 -0
  187. package/resources/v1/credits/index.js +11 -0
  188. package/resources/v1/credits/index.js.map +1 -0
  189. package/resources/v1/credits/index.mjs +5 -0
  190. package/resources/v1/credits/index.mjs.map +1 -0
  191. package/resources/v1/credits.d.mts +2 -0
  192. package/resources/v1/credits.d.mts.map +1 -0
  193. package/resources/v1/credits.d.ts +2 -0
  194. package/resources/v1/credits.d.ts.map +1 -0
  195. package/resources/v1/credits.js +6 -0
  196. package/resources/v1/credits.js.map +1 -0
  197. package/resources/v1/credits.mjs +3 -0
  198. package/resources/v1/credits.mjs.map +1 -0
  199. package/resources/v1/customers/customers.d.mts +1204 -6
  200. package/resources/v1/customers/customers.d.mts.map +1 -1
  201. package/resources/v1/customers/customers.d.ts +1204 -6
  202. package/resources/v1/customers/customers.d.ts.map +1 -1
  203. package/resources/v1/customers/customers.js +30 -1
  204. package/resources/v1/customers/customers.js.map +1 -1
  205. package/resources/v1/customers/customers.mjs +30 -1
  206. package/resources/v1/customers/customers.mjs.map +1 -1
  207. package/resources/v1/customers/index.d.mts +2 -1
  208. package/resources/v1/customers/index.d.mts.map +1 -1
  209. package/resources/v1/customers/index.d.ts +2 -1
  210. package/resources/v1/customers/index.d.ts.map +1 -1
  211. package/resources/v1/customers/index.js +3 -1
  212. package/resources/v1/customers/index.js.map +1 -1
  213. package/resources/v1/customers/index.mjs +1 -0
  214. package/resources/v1/customers/index.mjs.map +1 -1
  215. package/resources/v1/customers/integrations.d.mts +142 -0
  216. package/resources/v1/customers/integrations.d.mts.map +1 -0
  217. package/resources/v1/customers/integrations.d.ts +142 -0
  218. package/resources/v1/customers/integrations.d.ts.map +1 -0
  219. package/resources/v1/customers/integrations.js +50 -0
  220. package/resources/v1/customers/integrations.js.map +1 -0
  221. package/resources/v1/customers/integrations.mjs +46 -0
  222. package/resources/v1/customers/integrations.mjs.map +1 -0
  223. package/resources/v1/customers/payment-method.d.mts +3 -0
  224. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  225. package/resources/v1/customers/payment-method.d.ts +3 -0
  226. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  227. package/resources/v1/customers/payment-method.js +3 -0
  228. package/resources/v1/customers/payment-method.js.map +1 -1
  229. package/resources/v1/customers/payment-method.mjs +3 -0
  230. package/resources/v1/customers/payment-method.mjs.map +1 -1
  231. package/resources/v1/customers/promotional-entitlements.d.mts +4 -1
  232. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  233. package/resources/v1/customers/promotional-entitlements.d.ts +4 -1
  234. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  235. package/resources/v1/customers/promotional-entitlements.js +3 -0
  236. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  237. package/resources/v1/customers/promotional-entitlements.mjs +3 -0
  238. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  239. package/resources/v1/customers.d.mts.map +1 -1
  240. package/resources/v1/customers.d.ts.map +1 -1
  241. package/resources/v1/customers.mjs.map +1 -1
  242. package/resources/v1/events.d.mts +65 -1
  243. package/resources/v1/events.d.mts.map +1 -1
  244. package/resources/v1/events.d.ts +65 -1
  245. package/resources/v1/events.d.ts.map +1 -1
  246. package/resources/v1/events.js +15 -2
  247. package/resources/v1/events.js.map +1 -1
  248. package/resources/v1/events.mjs +13 -1
  249. package/resources/v1/events.mjs.map +1 -1
  250. package/resources/v1/features.d.mts +456 -0
  251. package/resources/v1/features.d.mts.map +1 -0
  252. package/resources/v1/features.d.ts +456 -0
  253. package/resources/v1/features.d.ts.map +1 -0
  254. package/resources/v1/{events/features.js → features.js} +6 -3
  255. package/resources/v1/features.js.map +1 -0
  256. package/resources/v1/{events/features.mjs → features.mjs} +6 -3
  257. package/resources/v1/features.mjs.map +1 -0
  258. package/resources/v1/index.d.mts +7 -3
  259. package/resources/v1/index.d.mts.map +1 -1
  260. package/resources/v1/index.d.ts +7 -3
  261. package/resources/v1/index.d.ts.map +1 -1
  262. package/resources/v1/index.js +15 -7
  263. package/resources/v1/index.js.map +1 -1
  264. package/resources/v1/index.mjs +5 -1
  265. package/resources/v1/index.mjs.map +1 -1
  266. package/resources/v1/plans/entitlements.d.mts +888 -0
  267. package/resources/v1/plans/entitlements.d.mts.map +1 -0
  268. package/resources/v1/plans/entitlements.d.ts +888 -0
  269. package/resources/v1/plans/entitlements.d.ts.map +1 -0
  270. package/resources/v1/plans/entitlements.js +36 -0
  271. package/resources/v1/plans/entitlements.js.map +1 -0
  272. package/resources/v1/plans/entitlements.mjs +32 -0
  273. package/resources/v1/plans/entitlements.mjs.map +1 -0
  274. package/resources/v1/plans/index.d.mts +3 -0
  275. package/resources/v1/plans/index.d.mts.map +1 -0
  276. package/resources/v1/plans/index.d.ts +3 -0
  277. package/resources/v1/plans/index.d.ts.map +1 -0
  278. package/resources/v1/plans/index.js +9 -0
  279. package/resources/v1/plans/index.js.map +1 -0
  280. package/resources/v1/plans/index.mjs +4 -0
  281. package/resources/v1/plans/index.mjs.map +1 -0
  282. package/resources/v1/plans/plans.d.mts +992 -0
  283. package/resources/v1/plans/plans.d.mts.map +1 -0
  284. package/resources/v1/plans/plans.d.ts +992 -0
  285. package/resources/v1/plans/plans.d.ts.map +1 -0
  286. package/resources/v1/plans/plans.js +84 -0
  287. package/resources/v1/plans/plans.js.map +1 -0
  288. package/resources/v1/plans/plans.mjs +79 -0
  289. package/resources/v1/plans/plans.mjs.map +1 -0
  290. package/resources/v1/plans.d.mts +2 -0
  291. package/resources/v1/plans.d.mts.map +1 -0
  292. package/resources/v1/plans.d.ts +2 -0
  293. package/resources/v1/plans.d.ts.map +1 -0
  294. package/resources/v1/plans.js +6 -0
  295. package/resources/v1/plans.js.map +1 -0
  296. package/resources/v1/plans.mjs +3 -0
  297. package/resources/v1/plans.mjs.map +1 -0
  298. package/resources/v1/products.d.mts +22 -359
  299. package/resources/v1/products.d.mts.map +1 -1
  300. package/resources/v1/products.d.ts +22 -359
  301. package/resources/v1/products.d.ts.map +1 -1
  302. package/resources/v1/products.js +5 -2
  303. package/resources/v1/products.js.map +1 -1
  304. package/resources/v1/products.mjs +5 -2
  305. package/resources/v1/products.mjs.map +1 -1
  306. package/resources/v1/subscriptions/future-update.d.mts +3 -0
  307. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  308. package/resources/v1/subscriptions/future-update.d.ts +3 -0
  309. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  310. package/resources/v1/subscriptions/future-update.js +3 -0
  311. package/resources/v1/subscriptions/future-update.js.map +1 -1
  312. package/resources/v1/subscriptions/future-update.mjs +3 -0
  313. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  314. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  315. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  316. package/resources/v1/subscriptions/index.mjs.map +1 -1
  317. package/resources/v1/subscriptions/invoice.d.mts +3 -0
  318. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  319. package/resources/v1/subscriptions/invoice.d.ts +3 -0
  320. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  321. package/resources/v1/subscriptions/invoice.js +3 -0
  322. package/resources/v1/subscriptions/invoice.js.map +1 -1
  323. package/resources/v1/subscriptions/invoice.mjs +3 -0
  324. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  325. package/resources/v1/subscriptions/subscriptions.d.mts +1140 -172
  326. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  327. package/resources/v1/subscriptions/subscriptions.d.ts +1140 -172
  328. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  329. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  330. package/resources/v1/subscriptions/subscriptions.mjs +2 -2
  331. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  332. package/resources/v1/subscriptions/usage.d.mts +3 -0
  333. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  334. package/resources/v1/subscriptions/usage.d.ts +3 -0
  335. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  336. package/resources/v1/subscriptions/usage.js +3 -0
  337. package/resources/v1/subscriptions/usage.js.map +1 -1
  338. package/resources/v1/subscriptions/usage.mjs +3 -0
  339. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  340. package/resources/v1/subscriptions.d.mts.map +1 -1
  341. package/resources/v1/subscriptions.d.ts.map +1 -1
  342. package/resources/v1/subscriptions.mjs.map +1 -1
  343. package/resources/v1/usage.d.mts +4 -1
  344. package/resources/v1/usage.d.mts.map +1 -1
  345. package/resources/v1/usage.d.ts +4 -1
  346. package/resources/v1/usage.d.ts.map +1 -1
  347. package/resources/v1/usage.js +3 -0
  348. package/resources/v1/usage.js.map +1 -1
  349. package/resources/v1/usage.mjs +3 -0
  350. package/resources/v1/usage.mjs.map +1 -1
  351. package/resources/v1/v1.d.mts +22 -6
  352. package/resources/v1/v1.d.mts.map +1 -1
  353. package/resources/v1/v1.d.ts +22 -6
  354. package/resources/v1/v1.d.ts.map +1 -1
  355. package/resources/v1/v1.js +18 -2
  356. package/resources/v1/v1.js.map +1 -1
  357. package/resources/v1/v1.mjs +18 -2
  358. package/resources/v1/v1.mjs.map +1 -1
  359. package/resources/v1-beta/customers/assignments.d.mts +175 -0
  360. package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
  361. package/resources/v1-beta/customers/assignments.d.ts +175 -0
  362. package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
  363. package/resources/v1-beta/customers/assignments.js +59 -0
  364. package/resources/v1-beta/customers/assignments.js.map +1 -0
  365. package/resources/v1-beta/customers/assignments.mjs +55 -0
  366. package/resources/v1-beta/customers/assignments.mjs.map +1 -0
  367. package/resources/v1-beta/customers/customers.d.mts +18 -0
  368. package/resources/v1-beta/customers/customers.d.mts.map +1 -0
  369. package/resources/v1-beta/customers/customers.d.ts +18 -0
  370. package/resources/v1-beta/customers/customers.d.ts.map +1 -0
  371. package/resources/v1-beta/customers/customers.js +25 -0
  372. package/resources/v1-beta/customers/customers.js.map +1 -0
  373. package/resources/v1-beta/customers/customers.mjs +20 -0
  374. package/resources/v1-beta/customers/customers.mjs.map +1 -0
  375. package/resources/v1-beta/customers/entities.d.mts +284 -0
  376. package/resources/v1-beta/customers/entities.d.mts.map +1 -0
  377. package/resources/v1-beta/customers/entities.d.ts +284 -0
  378. package/resources/v1-beta/customers/entities.d.ts.map +1 -0
  379. package/resources/v1-beta/customers/entities.js +96 -0
  380. package/resources/v1-beta/customers/entities.js.map +1 -0
  381. package/resources/v1-beta/customers/entities.mjs +92 -0
  382. package/resources/v1-beta/customers/entities.mjs.map +1 -0
  383. package/resources/v1-beta/customers/entitlements.d.mts +236 -0
  384. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
  385. package/resources/v1-beta/customers/entitlements.d.ts +236 -0
  386. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
  387. package/resources/v1-beta/customers/entitlements.js +24 -0
  388. package/resources/v1-beta/customers/entitlements.js.map +1 -0
  389. package/resources/v1-beta/customers/entitlements.mjs +20 -0
  390. package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
  391. package/resources/v1-beta/customers/index.d.mts +5 -0
  392. package/resources/v1-beta/customers/index.d.mts.map +1 -0
  393. package/resources/v1-beta/customers/index.d.ts +5 -0
  394. package/resources/v1-beta/customers/index.d.ts.map +1 -0
  395. package/resources/v1-beta/customers/index.js +13 -0
  396. package/resources/v1-beta/customers/index.js.map +1 -0
  397. package/resources/v1-beta/customers/index.mjs +6 -0
  398. package/resources/v1-beta/customers/index.mjs.map +1 -0
  399. package/resources/v1-beta/customers.d.mts +2 -0
  400. package/resources/v1-beta/customers.d.mts.map +1 -0
  401. package/resources/v1-beta/customers.d.ts +2 -0
  402. package/resources/v1-beta/customers.d.ts.map +1 -0
  403. package/resources/v1-beta/customers.js +6 -0
  404. package/resources/v1-beta/customers.js.map +1 -0
  405. package/resources/v1-beta/customers.mjs +3 -0
  406. package/resources/v1-beta/customers.mjs.map +1 -0
  407. package/resources/v1-beta/entity-types.d.mts +143 -0
  408. package/resources/v1-beta/entity-types.d.mts.map +1 -0
  409. package/resources/v1-beta/entity-types.d.ts +143 -0
  410. package/resources/v1-beta/entity-types.d.ts.map +1 -0
  411. package/resources/v1-beta/entity-types.js +55 -0
  412. package/resources/v1-beta/entity-types.js.map +1 -0
  413. package/resources/v1-beta/entity-types.mjs +51 -0
  414. package/resources/v1-beta/entity-types.mjs.map +1 -0
  415. package/resources/v1-beta/index.d.mts +4 -0
  416. package/resources/v1-beta/index.d.mts.map +1 -0
  417. package/resources/v1-beta/index.d.ts +4 -0
  418. package/resources/v1-beta/index.d.ts.map +1 -0
  419. package/resources/v1-beta/index.js +11 -0
  420. package/resources/v1-beta/index.js.map +1 -0
  421. package/resources/v1-beta/index.mjs +5 -0
  422. package/resources/v1-beta/index.mjs.map +1 -0
  423. package/resources/v1-beta/v1-beta.d.mts +14 -0
  424. package/resources/v1-beta/v1-beta.d.mts.map +1 -0
  425. package/resources/v1-beta/v1-beta.d.ts +14 -0
  426. package/resources/v1-beta/v1-beta.d.ts.map +1 -0
  427. package/resources/v1-beta/v1-beta.js +21 -0
  428. package/resources/v1-beta/v1-beta.js.map +1 -0
  429. package/resources/v1-beta/v1-beta.mjs +16 -0
  430. package/resources/v1-beta/v1-beta.mjs.map +1 -0
  431. package/resources/v1-beta.d.mts +2 -0
  432. package/resources/v1-beta.d.mts.map +1 -0
  433. package/resources/v1-beta.d.ts +2 -0
  434. package/resources/v1-beta.d.ts.map +1 -0
  435. package/resources/v1-beta.js +6 -0
  436. package/resources/v1-beta.js.map +1 -0
  437. package/resources/v1-beta.mjs +3 -0
  438. package/resources/v1-beta.mjs.map +1 -0
  439. package/resources/v1.d.mts.map +1 -1
  440. package/resources/v1.d.ts.map +1 -1
  441. package/resources/v1.mjs.map +1 -1
  442. package/resources.d.mts.map +1 -1
  443. package/resources.d.ts.map +1 -1
  444. package/resources.mjs.map +1 -1
  445. package/src/client.ts +28 -10
  446. package/src/internal/types.ts +6 -8
  447. package/src/internal/utils/env.ts +2 -2
  448. package/src/internal/utils/log.ts +2 -1
  449. package/src/internal/utils/query.ts +7 -0
  450. package/src/internal/utils.ts +1 -0
  451. package/src/resources/index.ts +1 -0
  452. package/src/resources/v1/addons/addons.ts +2451 -0
  453. package/src/resources/v1/addons/entitlements.ts +1153 -0
  454. package/src/resources/v1/addons/index.ts +26 -0
  455. package/src/resources/v1/coupons.ts +17 -4
  456. package/src/resources/v1/credits/credits.ts +422 -0
  457. package/src/resources/v1/credits/custom-currencies.ts +372 -0
  458. package/src/resources/v1/credits/grants.ts +795 -0
  459. package/src/resources/v1/credits/index.ts +30 -0
  460. package/src/resources/v1/credits.ts +3 -0
  461. package/src/resources/v1/customers/customers.ts +2526 -69
  462. package/src/resources/v1/customers/index.ts +15 -0
  463. package/src/resources/v1/customers/integrations.ts +252 -0
  464. package/src/resources/v1/customers/payment-method.ts +3 -0
  465. package/src/resources/v1/customers/promotional-entitlements.ts +4 -1
  466. package/src/resources/v1/events.ts +75 -1
  467. package/src/resources/v1/{events/features.ts → features.ts} +29 -512
  468. package/src/resources/v1/index.ts +55 -6
  469. package/src/resources/v1/plans/entitlements.ts +1145 -0
  470. package/src/resources/v1/plans/index.ts +25 -0
  471. package/src/resources/v1/plans/plans.ts +2069 -0
  472. package/src/resources/v1/plans.ts +3 -0
  473. package/src/resources/v1/products.ts +24 -428
  474. package/src/resources/v1/subscriptions/future-update.ts +3 -0
  475. package/src/resources/v1/subscriptions/invoice.ts +3 -0
  476. package/src/resources/v1/subscriptions/subscriptions.ts +3910 -1330
  477. package/src/resources/v1/subscriptions/usage.ts +3 -0
  478. package/src/resources/v1/usage.ts +4 -1
  479. package/src/resources/v1/v1.ts +126 -12
  480. package/src/resources/v1-beta/customers/assignments.ts +225 -0
  481. package/src/resources/v1-beta/customers/customers.ts +71 -0
  482. package/src/resources/v1-beta/customers/entities.ts +360 -0
  483. package/src/resources/v1-beta/customers/entitlements.ts +325 -0
  484. package/src/resources/v1-beta/customers/index.ts +26 -0
  485. package/src/resources/v1-beta/customers.ts +3 -0
  486. package/src/resources/v1-beta/entity-types.ts +179 -0
  487. package/src/resources/v1-beta/index.ts +12 -0
  488. package/src/resources/v1-beta/v1-beta.ts +35 -0
  489. package/src/resources/v1-beta.ts +3 -0
  490. package/src/version.ts +1 -1
  491. package/uploads.d.mts +1 -0
  492. package/uploads.d.mts.map +1 -1
  493. package/uploads.d.ts +1 -0
  494. package/uploads.d.ts.map +1 -1
  495. package/uploads.mjs +1 -0
  496. package/uploads.mjs.map +1 -1
  497. package/version.d.mts +1 -1
  498. package/version.d.ts +1 -1
  499. package/version.js +1 -1
  500. package/version.mjs +1 -1
  501. package/resources/v1/events/addons/addons.d.mts +0 -605
  502. package/resources/v1/events/addons/addons.d.mts.map +0 -1
  503. package/resources/v1/events/addons/addons.d.ts +0 -605
  504. package/resources/v1/events/addons/addons.d.ts.map +0 -1
  505. package/resources/v1/events/addons/addons.js.map +0 -1
  506. package/resources/v1/events/addons/addons.mjs.map +0 -1
  507. package/resources/v1/events/addons/draft.d.mts +0 -121
  508. package/resources/v1/events/addons/draft.d.mts.map +0 -1
  509. package/resources/v1/events/addons/draft.d.ts +0 -121
  510. package/resources/v1/events/addons/draft.d.ts.map +0 -1
  511. package/resources/v1/events/addons/draft.js +0 -22
  512. package/resources/v1/events/addons/draft.js.map +0 -1
  513. package/resources/v1/events/addons/draft.mjs +0 -18
  514. package/resources/v1/events/addons/draft.mjs.map +0 -1
  515. package/resources/v1/events/addons/index.d.mts +0 -3
  516. package/resources/v1/events/addons/index.d.mts.map +0 -1
  517. package/resources/v1/events/addons/index.d.ts +0 -3
  518. package/resources/v1/events/addons/index.d.ts.map +0 -1
  519. package/resources/v1/events/addons/index.js.map +0 -1
  520. package/resources/v1/events/addons/index.mjs.map +0 -1
  521. package/resources/v1/events/addons.d.mts.map +0 -1
  522. package/resources/v1/events/addons.d.ts.map +0 -1
  523. package/resources/v1/events/addons.js.map +0 -1
  524. package/resources/v1/events/addons.mjs.map +0 -1
  525. package/resources/v1/events/events.d.mts +0 -75
  526. package/resources/v1/events/events.d.mts.map +0 -1
  527. package/resources/v1/events/events.d.ts +0 -75
  528. package/resources/v1/events/events.d.ts.map +0 -1
  529. package/resources/v1/events/events.js +0 -32
  530. package/resources/v1/events/events.js.map +0 -1
  531. package/resources/v1/events/events.mjs +0 -27
  532. package/resources/v1/events/events.mjs.map +0 -1
  533. package/resources/v1/events/features.d.mts +0 -856
  534. package/resources/v1/events/features.d.mts.map +0 -1
  535. package/resources/v1/events/features.d.ts +0 -856
  536. package/resources/v1/events/features.d.ts.map +0 -1
  537. package/resources/v1/events/features.js.map +0 -1
  538. package/resources/v1/events/features.mjs.map +0 -1
  539. package/resources/v1/events/index.d.mts +0 -5
  540. package/resources/v1/events/index.d.mts.map +0 -1
  541. package/resources/v1/events/index.d.ts +0 -5
  542. package/resources/v1/events/index.d.ts.map +0 -1
  543. package/resources/v1/events/index.js +0 -13
  544. package/resources/v1/events/index.js.map +0 -1
  545. package/resources/v1/events/index.mjs +0 -6
  546. package/resources/v1/events/index.mjs.map +0 -1
  547. package/resources/v1/events/plans.d.mts +0 -348
  548. package/resources/v1/events/plans.d.mts.map +0 -1
  549. package/resources/v1/events/plans.d.ts +0 -348
  550. package/resources/v1/events/plans.d.ts.map +0 -1
  551. package/resources/v1/events/plans.js +0 -30
  552. package/resources/v1/events/plans.js.map +0 -1
  553. package/resources/v1/events/plans.mjs +0 -26
  554. package/resources/v1/events/plans.mjs.map +0 -1
  555. package/src/resources/v1/events/addons/addons.ts +0 -761
  556. package/src/resources/v1/events/addons/draft.ts +0 -151
  557. package/src/resources/v1/events/addons/index.ts +0 -17
  558. package/src/resources/v1/events/events.ts +0 -160
  559. package/src/resources/v1/events/index.ts +0 -39
  560. package/src/resources/v1/events/plans.ts +0 -429
  561. /package/resources/v1/{events/addons.d.mts → addons.d.mts} +0 -0
  562. /package/resources/v1/{events/addons.d.ts → addons.d.ts} +0 -0
  563. /package/resources/v1/{events/addons.mjs → addons.mjs} +0 -0
  564. /package/src/resources/v1/{events/addons.ts → addons.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as FutureUpdateAPI from "./future-update.mjs";
3
- import { CancelSubscription, FutureUpdate } from "./future-update.mjs";
3
+ import { CancelSubscription, FutureUpdate as FutureUpdateAPIFutureUpdate } from "./future-update.mjs";
4
4
  import * as InvoiceAPI from "./invoice.mjs";
5
5
  import { Invoice, InvoiceMarkAsPaidResponse } from "./invoice.mjs";
6
6
  import * as UsageAPI from "./usage.mjs";
@@ -114,6 +114,15 @@ export declare namespace Subscription {
114
114
  * Subscription status
115
115
  */
116
116
  status: 'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED';
117
+ addons?: Array<Data.Addon>;
118
+ /**
119
+ * Billing cycle anchor date
120
+ */
121
+ billingCycleAnchor?: string | null;
122
+ /**
123
+ * Budget configuration
124
+ */
125
+ budget?: Data.Budget | null;
117
126
  /**
118
127
  * Subscription cancellation date
119
128
  */
@@ -122,6 +131,10 @@ export declare namespace Subscription {
122
131
  * Subscription cancel reason
123
132
  */
124
133
  cancelReason?: 'UPGRADE_OR_DOWNGRADE' | 'CANCELLED_BY_BILLING' | 'EXPIRED' | 'DETACH_BILLING' | 'TRIAL_ENDED' | 'Immediate' | 'TRIAL_CONVERTED' | 'PENDING_PAYMENT_EXPIRED' | 'ScheduledCancellation' | 'CustomerArchived' | 'AutoCancellationRule' | null;
134
+ /**
135
+ * Coupons applied to the subscription
136
+ */
137
+ coupons?: Array<Data.Coupon>;
125
138
  /**
126
139
  * End of the current billing period
127
140
  */
@@ -138,12 +151,24 @@ export declare namespace Subscription {
138
151
  * Subscription end date
139
152
  */
140
153
  endDate?: string | null;
154
+ /**
155
+ * Scheduled future updates for the subscription
156
+ */
157
+ futureUpdates?: Array<Data.FutureUpdate>;
158
+ /**
159
+ * Latest invoice for the subscription
160
+ */
161
+ latestInvoice?: Data.LatestInvoice | null;
141
162
  /**
142
163
  * Additional metadata for the subscription
143
164
  */
144
165
  metadata?: {
145
166
  [key: string]: string;
146
167
  };
168
+ /**
169
+ * Minimum spend configuration
170
+ */
171
+ minimumSpend?: Data.MinimumSpend | null;
147
172
  /**
148
173
  * Paying customer ID for delegated billing
149
174
  */
@@ -157,26 +182,268 @@ export declare namespace Subscription {
157
182
  * Resource ID
158
183
  */
159
184
  resourceId?: string | null;
185
+ /**
186
+ * Entitlements associated with the subscription
187
+ */
188
+ subscriptionEntitlements?: Array<Data.SubscriptionEntitlement>;
189
+ /**
190
+ * Trial configuration
191
+ */
192
+ trial?: Data.Trial | null;
160
193
  /**
161
194
  * Subscription trial end date
162
195
  */
163
196
  trialEndDate?: string | null;
164
197
  }
165
198
  namespace Data {
166
- interface Price {
199
+ /**
200
+ * Addon configuration
201
+ */
202
+ interface Addon {
167
203
  /**
168
- * Price ID
204
+ * Addon ID
205
+ */
206
+ id: string;
207
+ /**
208
+ * Number of addon instances
209
+ */
210
+ quantity: number;
211
+ }
212
+ /**
213
+ * Budget configuration
214
+ */
215
+ interface Budget {
216
+ /**
217
+ * Whether the budget is a soft limit
218
+ */
219
+ hasSoftLimit: boolean;
220
+ /**
221
+ * Maximum spending limit
222
+ */
223
+ limit: number;
224
+ }
225
+ /**
226
+ * Coupon applied to a subscription
227
+ */
228
+ interface Coupon {
229
+ /**
230
+ * Coupon ID
169
231
  */
170
232
  id: string;
171
233
  /**
172
- * Creation timestamp
234
+ * Coupon name
235
+ */
236
+ name: string;
237
+ /**
238
+ * Coupon status
239
+ */
240
+ status: 'ACTIVE' | 'EXPIRED' | 'REMOVED';
241
+ /**
242
+ * Fixed amount discounts by currency
243
+ */
244
+ amountsOff?: Array<Coupon.AmountsOff> | null;
245
+ /**
246
+ * Percentage discount
247
+ */
248
+ percentOff?: number | null;
249
+ }
250
+ namespace Coupon {
251
+ interface AmountsOff {
252
+ /**
253
+ * The price amount
254
+ */
255
+ amount?: number;
256
+ /**
257
+ * The price currency
258
+ */
259
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
260
+ }
261
+ }
262
+ /**
263
+ * Scheduled subscription update
264
+ */
265
+ interface FutureUpdate {
266
+ /**
267
+ * Scheduled execution time
268
+ */
269
+ scheduledExecutionTime: string;
270
+ /**
271
+ * Status of the scheduled update
272
+ */
273
+ scheduleStatus: 'PENDING_PAYMENT' | 'SCHEDULED' | 'CANCELED' | 'DONE' | 'FAILED';
274
+ /**
275
+ * Type of scheduled change
276
+ */
277
+ subscriptionScheduleType: 'DOWNGRADE' | 'PLAN' | 'BILLING_PERIOD' | 'UNIT_AMOUNT' | 'RECURRING_CREDITS' | 'PRICE_OVERRIDE' | 'ADDON' | 'COUPON' | 'MIGRATE_TO_LATEST' | 'ADDITIONAL_META_DATA' | 'BILLING_INFO_METADATA';
278
+ /**
279
+ * Target package for the update
280
+ */
281
+ targetPackage?: FutureUpdate.TargetPackage | null;
282
+ }
283
+ namespace FutureUpdate {
284
+ /**
285
+ * Target package for the update
286
+ */
287
+ interface TargetPackage {
288
+ /**
289
+ * Target package for the update
290
+ */
291
+ id: string;
292
+ }
293
+ }
294
+ /**
295
+ * Latest invoice for the subscription
296
+ */
297
+ interface LatestInvoice {
298
+ /**
299
+ * Invoice billing ID
300
+ */
301
+ billingId: string;
302
+ /**
303
+ * Invoice creation date
173
304
  */
174
305
  createdAt: string;
175
306
  /**
176
- * Last update timestamp
307
+ * Whether payment requires action
177
308
  */
178
- updatedAt: string;
179
- [k: string]: unknown;
309
+ requiresAction: boolean;
310
+ /**
311
+ * Invoice status
312
+ */
313
+ status: 'OPEN' | 'CANCELED' | 'PAID';
314
+ /**
315
+ * Amount due
316
+ */
317
+ amountDue?: number | null;
318
+ /**
319
+ * Billing reason
320
+ */
321
+ billingReason?: 'BILLING_CYCLE' | 'SUBSCRIPTION_CREATION' | 'SUBSCRIPTION_UPDATE' | 'MANUAL' | 'MINIMUM_INVOICE_AMOUNT_EXCEEDED' | 'OTHER' | null;
322
+ /**
323
+ * Invoice currency
324
+ */
325
+ currency?: string | null;
326
+ /**
327
+ * Invoice PDF URL
328
+ */
329
+ pdfUrl?: string | null;
330
+ /**
331
+ * Total amount
332
+ */
333
+ total?: number | null;
334
+ }
335
+ /**
336
+ * Minimum spend configuration
337
+ */
338
+ interface MinimumSpend {
339
+ /**
340
+ * The price amount
341
+ */
342
+ amount?: number;
343
+ /**
344
+ * The price currency
345
+ */
346
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
347
+ }
348
+ interface Price {
349
+ /**
350
+ * Addon identifier for the price override
351
+ */
352
+ addonId?: string | null;
353
+ /**
354
+ * The price amount
355
+ */
356
+ amount?: number;
357
+ /**
358
+ * Whether this is a base charge override
359
+ */
360
+ baseCharge?: boolean;
361
+ /**
362
+ * The billing country code of the price
363
+ */
364
+ billingCountryCode?: string;
365
+ /**
366
+ * Block size for pricing
367
+ */
368
+ blockSize?: number;
369
+ /**
370
+ * The price currency
371
+ */
372
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
373
+ /**
374
+ * Feature identifier for the price override
375
+ */
376
+ featureId?: string | null;
377
+ /**
378
+ * Pricing tiers configuration
379
+ */
380
+ tiers?: Array<Price.Tier>;
381
+ }
382
+ namespace Price {
383
+ interface Tier {
384
+ /**
385
+ * The flat fee price of the price tier
386
+ */
387
+ flatPrice?: Tier.FlatPrice;
388
+ /**
389
+ * The unit price of the price tier
390
+ */
391
+ unitPrice?: Tier.UnitPrice;
392
+ /**
393
+ * The up to quantity of the price tier
394
+ */
395
+ upTo?: number;
396
+ }
397
+ namespace Tier {
398
+ /**
399
+ * The flat fee price of the price tier
400
+ */
401
+ interface FlatPrice {
402
+ /**
403
+ * The price amount
404
+ */
405
+ amount: number;
406
+ /**
407
+ * ISO 4217 currency code
408
+ */
409
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
410
+ }
411
+ /**
412
+ * The unit price of the price tier
413
+ */
414
+ interface UnitPrice {
415
+ /**
416
+ * The price amount
417
+ */
418
+ amount: number;
419
+ /**
420
+ * ISO 4217 currency code
421
+ */
422
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
423
+ }
424
+ }
425
+ }
426
+ /**
427
+ * Subscription entitlement reference
428
+ */
429
+ interface SubscriptionEntitlement {
430
+ /**
431
+ * Feature ID or currency ID
432
+ */
433
+ id: string;
434
+ /**
435
+ * Entitlement type (FEATURE or CREDIT)
436
+ */
437
+ type: 'FEATURE' | 'CREDIT';
438
+ }
439
+ /**
440
+ * Trial configuration
441
+ */
442
+ interface Trial {
443
+ /**
444
+ * Behavior when the trial ends
445
+ */
446
+ trialEndBehavior: 'CONVERT_TO_PAID' | 'CANCEL_SUBSCRIPTION';
180
447
  }
181
448
  }
182
449
  }
@@ -220,6 +487,15 @@ export interface SubscriptionListResponse {
220
487
  * Subscription status
221
488
  */
222
489
  status: 'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED';
490
+ addons?: Array<SubscriptionListResponse.Addon>;
491
+ /**
492
+ * Billing cycle anchor date
493
+ */
494
+ billingCycleAnchor?: string | null;
495
+ /**
496
+ * Budget configuration
497
+ */
498
+ budget?: SubscriptionListResponse.Budget | null;
223
499
  /**
224
500
  * Subscription cancellation date
225
501
  */
@@ -228,6 +504,10 @@ export interface SubscriptionListResponse {
228
504
  * Subscription cancel reason
229
505
  */
230
506
  cancelReason?: 'UPGRADE_OR_DOWNGRADE' | 'CANCELLED_BY_BILLING' | 'EXPIRED' | 'DETACH_BILLING' | 'TRIAL_ENDED' | 'Immediate' | 'TRIAL_CONVERTED' | 'PENDING_PAYMENT_EXPIRED' | 'ScheduledCancellation' | 'CustomerArchived' | 'AutoCancellationRule' | null;
507
+ /**
508
+ * Coupons applied to the subscription
509
+ */
510
+ coupons?: Array<SubscriptionListResponse.Coupon>;
231
511
  /**
232
512
  * End of the current billing period
233
513
  */
@@ -244,12 +524,24 @@ export interface SubscriptionListResponse {
244
524
  * Subscription end date
245
525
  */
246
526
  endDate?: string | null;
527
+ /**
528
+ * Scheduled future updates for the subscription
529
+ */
530
+ futureUpdates?: Array<SubscriptionListResponse.FutureUpdate>;
531
+ /**
532
+ * Latest invoice for the subscription
533
+ */
534
+ latestInvoice?: SubscriptionListResponse.LatestInvoice | null;
247
535
  /**
248
536
  * Additional metadata for the subscription
249
537
  */
250
538
  metadata?: {
251
539
  [key: string]: string;
252
540
  };
541
+ /**
542
+ * Minimum spend configuration
543
+ */
544
+ minimumSpend?: SubscriptionListResponse.MinimumSpend | null;
253
545
  /**
254
546
  * Paying customer ID for delegated billing
255
547
  */
@@ -264,25 +556,267 @@ export interface SubscriptionListResponse {
264
556
  */
265
557
  resourceId?: string | null;
266
558
  /**
267
- * Subscription trial end date
559
+ * Entitlements associated with the subscription
560
+ */
561
+ subscriptionEntitlements?: Array<SubscriptionListResponse.SubscriptionEntitlement>;
562
+ /**
563
+ * Trial configuration
564
+ */
565
+ trial?: SubscriptionListResponse.Trial | null;
566
+ /**
567
+ * Subscription trial end date
568
+ */
569
+ trialEndDate?: string | null;
570
+ }
571
+ export declare namespace SubscriptionListResponse {
572
+ /**
573
+ * Addon configuration
574
+ */
575
+ interface Addon {
576
+ /**
577
+ * Addon ID
578
+ */
579
+ id: string;
580
+ /**
581
+ * Number of addon instances
582
+ */
583
+ quantity: number;
584
+ }
585
+ /**
586
+ * Budget configuration
587
+ */
588
+ interface Budget {
589
+ /**
590
+ * Whether the budget is a soft limit
591
+ */
592
+ hasSoftLimit: boolean;
593
+ /**
594
+ * Maximum spending limit
595
+ */
596
+ limit: number;
597
+ }
598
+ /**
599
+ * Coupon applied to a subscription
600
+ */
601
+ interface Coupon {
602
+ /**
603
+ * Coupon ID
604
+ */
605
+ id: string;
606
+ /**
607
+ * Coupon name
608
+ */
609
+ name: string;
610
+ /**
611
+ * Coupon status
612
+ */
613
+ status: 'ACTIVE' | 'EXPIRED' | 'REMOVED';
614
+ /**
615
+ * Fixed amount discounts by currency
616
+ */
617
+ amountsOff?: Array<Coupon.AmountsOff> | null;
618
+ /**
619
+ * Percentage discount
620
+ */
621
+ percentOff?: number | null;
622
+ }
623
+ namespace Coupon {
624
+ interface AmountsOff {
625
+ /**
626
+ * The price amount
627
+ */
628
+ amount?: number;
629
+ /**
630
+ * The price currency
631
+ */
632
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
633
+ }
634
+ }
635
+ /**
636
+ * Scheduled subscription update
637
+ */
638
+ interface FutureUpdate {
639
+ /**
640
+ * Scheduled execution time
641
+ */
642
+ scheduledExecutionTime: string;
643
+ /**
644
+ * Status of the scheduled update
645
+ */
646
+ scheduleStatus: 'PENDING_PAYMENT' | 'SCHEDULED' | 'CANCELED' | 'DONE' | 'FAILED';
647
+ /**
648
+ * Type of scheduled change
649
+ */
650
+ subscriptionScheduleType: 'DOWNGRADE' | 'PLAN' | 'BILLING_PERIOD' | 'UNIT_AMOUNT' | 'RECURRING_CREDITS' | 'PRICE_OVERRIDE' | 'ADDON' | 'COUPON' | 'MIGRATE_TO_LATEST' | 'ADDITIONAL_META_DATA' | 'BILLING_INFO_METADATA';
651
+ /**
652
+ * Target package for the update
653
+ */
654
+ targetPackage?: FutureUpdate.TargetPackage | null;
655
+ }
656
+ namespace FutureUpdate {
657
+ /**
658
+ * Target package for the update
659
+ */
660
+ interface TargetPackage {
661
+ /**
662
+ * Target package for the update
663
+ */
664
+ id: string;
665
+ }
666
+ }
667
+ /**
668
+ * Latest invoice for the subscription
669
+ */
670
+ interface LatestInvoice {
671
+ /**
672
+ * Invoice billing ID
673
+ */
674
+ billingId: string;
675
+ /**
676
+ * Invoice creation date
677
+ */
678
+ createdAt: string;
679
+ /**
680
+ * Whether payment requires action
681
+ */
682
+ requiresAction: boolean;
683
+ /**
684
+ * Invoice status
685
+ */
686
+ status: 'OPEN' | 'CANCELED' | 'PAID';
687
+ /**
688
+ * Amount due
689
+ */
690
+ amountDue?: number | null;
691
+ /**
692
+ * Billing reason
693
+ */
694
+ billingReason?: 'BILLING_CYCLE' | 'SUBSCRIPTION_CREATION' | 'SUBSCRIPTION_UPDATE' | 'MANUAL' | 'MINIMUM_INVOICE_AMOUNT_EXCEEDED' | 'OTHER' | null;
695
+ /**
696
+ * Invoice currency
697
+ */
698
+ currency?: string | null;
699
+ /**
700
+ * Invoice PDF URL
701
+ */
702
+ pdfUrl?: string | null;
703
+ /**
704
+ * Total amount
705
+ */
706
+ total?: number | null;
707
+ }
708
+ /**
709
+ * Minimum spend configuration
710
+ */
711
+ interface MinimumSpend {
712
+ /**
713
+ * The price amount
714
+ */
715
+ amount?: number;
716
+ /**
717
+ * The price currency
718
+ */
719
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
720
+ }
721
+ interface Price {
722
+ /**
723
+ * Addon identifier for the price override
724
+ */
725
+ addonId?: string | null;
726
+ /**
727
+ * The price amount
728
+ */
729
+ amount?: number;
730
+ /**
731
+ * Whether this is a base charge override
732
+ */
733
+ baseCharge?: boolean;
734
+ /**
735
+ * The billing country code of the price
736
+ */
737
+ billingCountryCode?: string;
738
+ /**
739
+ * Block size for pricing
740
+ */
741
+ blockSize?: number;
742
+ /**
743
+ * The price currency
744
+ */
745
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
746
+ /**
747
+ * Feature identifier for the price override
748
+ */
749
+ featureId?: string | null;
750
+ /**
751
+ * Pricing tiers configuration
752
+ */
753
+ tiers?: Array<Price.Tier>;
754
+ }
755
+ namespace Price {
756
+ interface Tier {
757
+ /**
758
+ * The flat fee price of the price tier
759
+ */
760
+ flatPrice?: Tier.FlatPrice;
761
+ /**
762
+ * The unit price of the price tier
763
+ */
764
+ unitPrice?: Tier.UnitPrice;
765
+ /**
766
+ * The up to quantity of the price tier
767
+ */
768
+ upTo?: number;
769
+ }
770
+ namespace Tier {
771
+ /**
772
+ * The flat fee price of the price tier
773
+ */
774
+ interface FlatPrice {
775
+ /**
776
+ * The price amount
777
+ */
778
+ amount: number;
779
+ /**
780
+ * ISO 4217 currency code
781
+ */
782
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
783
+ }
784
+ /**
785
+ * The unit price of the price tier
786
+ */
787
+ interface UnitPrice {
788
+ /**
789
+ * The price amount
790
+ */
791
+ amount: number;
792
+ /**
793
+ * ISO 4217 currency code
794
+ */
795
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
796
+ }
797
+ }
798
+ }
799
+ /**
800
+ * Subscription entitlement reference
268
801
  */
269
- trialEndDate?: string | null;
270
- }
271
- export declare namespace SubscriptionListResponse {
272
- interface Price {
802
+ interface SubscriptionEntitlement {
273
803
  /**
274
- * Price ID
804
+ * Feature ID or currency ID
275
805
  */
276
806
  id: string;
277
807
  /**
278
- * Creation timestamp
808
+ * Entitlement type (FEATURE or CREDIT)
279
809
  */
280
- createdAt: string;
810
+ type: 'FEATURE' | 'CREDIT';
811
+ }
812
+ /**
813
+ * Trial configuration
814
+ */
815
+ interface Trial {
281
816
  /**
282
- * Last update timestamp
817
+ * Behavior when the trial ends
283
818
  */
284
- updatedAt: string;
285
- [k: string]: unknown;
819
+ trialEndBehavior: 'CONVERT_TO_PAID' | 'CANCEL_SUBSCRIPTION';
286
820
  }
287
821
  }
288
822
  /**
@@ -468,15 +1002,15 @@ export declare namespace SubscriptionPreviewResponse {
468
1002
  start?: string;
469
1003
  }
470
1004
  /**
471
- * Free item in subscription
1005
+ * Addon configuration
472
1006
  */
473
1007
  interface FreeItem {
474
1008
  /**
475
1009
  * Addon ID
476
1010
  */
477
- addonId: string;
1011
+ id: string;
478
1012
  /**
479
- * Quantity
1013
+ * Number of addon instances
480
1014
  */
481
1015
  quantity: number;
482
1016
  }
@@ -673,6 +1207,10 @@ export declare namespace SubscriptionProvisionResponse {
673
1207
  }
674
1208
  namespace UnionObjectVariant0 {
675
1209
  interface Feature {
1210
+ /**
1211
+ * The unique reference ID of the entitlement.
1212
+ */
1213
+ id: string;
676
1214
  /**
677
1215
  * The human-readable name of the entitlement, shown in UI elements.
678
1216
  */
@@ -685,10 +1223,6 @@ export declare namespace SubscriptionProvisionResponse {
685
1223
  * The type of feature associated with the entitlement.
686
1224
  */
687
1225
  featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
688
- /**
689
- * The unique reference ID of the entitlement.
690
- */
691
- refId: string;
692
1226
  }
693
1227
  }
694
1228
  interface UnionObjectVariant1 {
@@ -727,6 +1261,28 @@ export declare namespace SubscriptionProvisionResponse {
727
1261
  * The unique identifier of the custom currency.
728
1262
  */
729
1263
  currencyId: string;
1264
+ /**
1265
+ * The display name of the currency.
1266
+ */
1267
+ displayName: string;
1268
+ /**
1269
+ * A description of the currency.
1270
+ */
1271
+ description?: string | null;
1272
+ /**
1273
+ * Additional metadata associated with the currency.
1274
+ */
1275
+ metadata?: {
1276
+ [key: string]: string;
1277
+ } | null;
1278
+ /**
1279
+ * The plural form of the currency unit.
1280
+ */
1281
+ unitPlural?: string | null;
1282
+ /**
1283
+ * The singular form of the currency unit.
1284
+ */
1285
+ unitSingular?: string | null;
730
1286
  }
731
1287
  }
732
1288
  /**
@@ -769,6 +1325,15 @@ export declare namespace SubscriptionProvisionResponse {
769
1325
  * Subscription status
770
1326
  */
771
1327
  status: 'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED';
1328
+ addons?: Array<Subscription.Addon>;
1329
+ /**
1330
+ * Billing cycle anchor date
1331
+ */
1332
+ billingCycleAnchor?: string | null;
1333
+ /**
1334
+ * Budget configuration
1335
+ */
1336
+ budget?: Subscription.Budget | null;
772
1337
  /**
773
1338
  * Subscription cancellation date
774
1339
  */
@@ -777,6 +1342,10 @@ export declare namespace SubscriptionProvisionResponse {
777
1342
  * Subscription cancel reason
778
1343
  */
779
1344
  cancelReason?: 'UPGRADE_OR_DOWNGRADE' | 'CANCELLED_BY_BILLING' | 'EXPIRED' | 'DETACH_BILLING' | 'TRIAL_ENDED' | 'Immediate' | 'TRIAL_CONVERTED' | 'PENDING_PAYMENT_EXPIRED' | 'ScheduledCancellation' | 'CustomerArchived' | 'AutoCancellationRule' | null;
1345
+ /**
1346
+ * Coupons applied to the subscription
1347
+ */
1348
+ coupons?: Array<Subscription.Coupon>;
780
1349
  /**
781
1350
  * End of the current billing period
782
1351
  */
@@ -793,12 +1362,24 @@ export declare namespace SubscriptionProvisionResponse {
793
1362
  * Subscription end date
794
1363
  */
795
1364
  endDate?: string | null;
1365
+ /**
1366
+ * Scheduled future updates for the subscription
1367
+ */
1368
+ futureUpdates?: Array<Subscription.FutureUpdate>;
1369
+ /**
1370
+ * Latest invoice for the subscription
1371
+ */
1372
+ latestInvoice?: Subscription.LatestInvoice | null;
796
1373
  /**
797
1374
  * Additional metadata for the subscription
798
1375
  */
799
1376
  metadata?: {
800
1377
  [key: string]: string;
801
1378
  };
1379
+ /**
1380
+ * Minimum spend configuration
1381
+ */
1382
+ minimumSpend?: Subscription.MinimumSpend | null;
802
1383
  /**
803
1384
  * Paying customer ID for delegated billing
804
1385
  */
@@ -812,56 +1393,204 @@ export declare namespace SubscriptionProvisionResponse {
812
1393
  * Resource ID
813
1394
  */
814
1395
  resourceId?: string | null;
1396
+ /**
1397
+ * Entitlements associated with the subscription
1398
+ */
1399
+ subscriptionEntitlements?: Array<Subscription.SubscriptionEntitlement>;
1400
+ /**
1401
+ * Trial configuration
1402
+ */
1403
+ trial?: Subscription.Trial | null;
815
1404
  /**
816
1405
  * Subscription trial end date
817
1406
  */
818
1407
  trialEndDate?: string | null;
819
1408
  }
820
1409
  namespace Subscription {
821
- interface Price {
1410
+ /**
1411
+ * Addon configuration
1412
+ */
1413
+ interface Addon {
822
1414
  /**
823
- * Addon identifier for the price override
1415
+ * Addon ID
824
1416
  */
825
- addonId?: string | null;
1417
+ id: string;
826
1418
  /**
827
- * Whether this is a base charge override
1419
+ * Number of addon instances
828
1420
  */
829
- baseCharge?: boolean;
1421
+ quantity: number;
1422
+ }
1423
+ /**
1424
+ * Budget configuration
1425
+ */
1426
+ interface Budget {
830
1427
  /**
831
- * Block size for pricing
1428
+ * Whether the budget is a soft limit
832
1429
  */
833
- blockSize?: number;
1430
+ hasSoftLimit: boolean;
834
1431
  /**
835
- * Feature identifier for the price override
1432
+ * Maximum spending limit
836
1433
  */
837
- featureId?: string | null;
1434
+ limit: number;
1435
+ }
1436
+ /**
1437
+ * Coupon applied to a subscription
1438
+ */
1439
+ interface Coupon {
838
1440
  /**
839
- * Override price amount
1441
+ * Coupon ID
840
1442
  */
841
- price?: Price.Price;
1443
+ id: string;
842
1444
  /**
843
- * Pricing tiers configuration
1445
+ * Coupon name
844
1446
  */
845
- tiers?: Array<Price.Tier>;
846
- }
847
- namespace Price {
1447
+ name: string;
1448
+ /**
1449
+ * Coupon status
1450
+ */
1451
+ status: 'ACTIVE' | 'EXPIRED' | 'REMOVED';
1452
+ /**
1453
+ * Fixed amount discounts by currency
1454
+ */
1455
+ amountsOff?: Array<Coupon.AmountsOff> | null;
848
1456
  /**
849
- * Override price amount
1457
+ * Percentage discount
850
1458
  */
851
- interface Price {
1459
+ percentOff?: number | null;
1460
+ }
1461
+ namespace Coupon {
1462
+ interface AmountsOff {
852
1463
  /**
853
1464
  * The price amount
854
1465
  */
855
1466
  amount?: number;
856
- /**
857
- * The billing country code of the price
858
- */
859
- billingCountryCode?: string | null;
860
1467
  /**
861
1468
  * The price currency
862
1469
  */
863
1470
  currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
864
1471
  }
1472
+ }
1473
+ /**
1474
+ * Scheduled subscription update
1475
+ */
1476
+ interface FutureUpdate {
1477
+ /**
1478
+ * Scheduled execution time
1479
+ */
1480
+ scheduledExecutionTime: string;
1481
+ /**
1482
+ * Status of the scheduled update
1483
+ */
1484
+ scheduleStatus: 'PENDING_PAYMENT' | 'SCHEDULED' | 'CANCELED' | 'DONE' | 'FAILED';
1485
+ /**
1486
+ * Type of scheduled change
1487
+ */
1488
+ subscriptionScheduleType: 'DOWNGRADE' | 'PLAN' | 'BILLING_PERIOD' | 'UNIT_AMOUNT' | 'RECURRING_CREDITS' | 'PRICE_OVERRIDE' | 'ADDON' | 'COUPON' | 'MIGRATE_TO_LATEST' | 'ADDITIONAL_META_DATA' | 'BILLING_INFO_METADATA';
1489
+ /**
1490
+ * Target package for the update
1491
+ */
1492
+ targetPackage?: FutureUpdate.TargetPackage | null;
1493
+ }
1494
+ namespace FutureUpdate {
1495
+ /**
1496
+ * Target package for the update
1497
+ */
1498
+ interface TargetPackage {
1499
+ /**
1500
+ * Target package for the update
1501
+ */
1502
+ id: string;
1503
+ }
1504
+ }
1505
+ /**
1506
+ * Latest invoice for the subscription
1507
+ */
1508
+ interface LatestInvoice {
1509
+ /**
1510
+ * Invoice billing ID
1511
+ */
1512
+ billingId: string;
1513
+ /**
1514
+ * Invoice creation date
1515
+ */
1516
+ createdAt: string;
1517
+ /**
1518
+ * Whether payment requires action
1519
+ */
1520
+ requiresAction: boolean;
1521
+ /**
1522
+ * Invoice status
1523
+ */
1524
+ status: 'OPEN' | 'CANCELED' | 'PAID';
1525
+ /**
1526
+ * Amount due
1527
+ */
1528
+ amountDue?: number | null;
1529
+ /**
1530
+ * Billing reason
1531
+ */
1532
+ billingReason?: 'BILLING_CYCLE' | 'SUBSCRIPTION_CREATION' | 'SUBSCRIPTION_UPDATE' | 'MANUAL' | 'MINIMUM_INVOICE_AMOUNT_EXCEEDED' | 'OTHER' | null;
1533
+ /**
1534
+ * Invoice currency
1535
+ */
1536
+ currency?: string | null;
1537
+ /**
1538
+ * Invoice PDF URL
1539
+ */
1540
+ pdfUrl?: string | null;
1541
+ /**
1542
+ * Total amount
1543
+ */
1544
+ total?: number | null;
1545
+ }
1546
+ /**
1547
+ * Minimum spend configuration
1548
+ */
1549
+ interface MinimumSpend {
1550
+ /**
1551
+ * The price amount
1552
+ */
1553
+ amount?: number;
1554
+ /**
1555
+ * The price currency
1556
+ */
1557
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1558
+ }
1559
+ interface Price {
1560
+ /**
1561
+ * Addon identifier for the price override
1562
+ */
1563
+ addonId?: string | null;
1564
+ /**
1565
+ * The price amount
1566
+ */
1567
+ amount?: number;
1568
+ /**
1569
+ * Whether this is a base charge override
1570
+ */
1571
+ baseCharge?: boolean;
1572
+ /**
1573
+ * The billing country code of the price
1574
+ */
1575
+ billingCountryCode?: string;
1576
+ /**
1577
+ * Block size for pricing
1578
+ */
1579
+ blockSize?: number;
1580
+ /**
1581
+ * The price currency
1582
+ */
1583
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1584
+ /**
1585
+ * Feature identifier for the price override
1586
+ */
1587
+ featureId?: string | null;
1588
+ /**
1589
+ * Pricing tiers configuration
1590
+ */
1591
+ tiers?: Array<Price.Tier>;
1592
+ }
1593
+ namespace Price {
865
1594
  interface Tier {
866
1595
  /**
867
1596
  * The flat fee price of the price tier
@@ -884,15 +1613,11 @@ export declare namespace SubscriptionProvisionResponse {
884
1613
  /**
885
1614
  * The price amount
886
1615
  */
887
- amount?: number;
888
- /**
889
- * The billing country code of the price
890
- */
891
- billingCountryCode?: string | null;
1616
+ amount: number;
892
1617
  /**
893
- * The price currency
1618
+ * ISO 4217 currency code
894
1619
  */
895
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1620
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
896
1621
  }
897
1622
  /**
898
1623
  * The unit price of the price tier
@@ -901,56 +1626,93 @@ export declare namespace SubscriptionProvisionResponse {
901
1626
  /**
902
1627
  * The price amount
903
1628
  */
904
- amount?: number;
905
- /**
906
- * The billing country code of the price
907
- */
908
- billingCountryCode?: string | null;
1629
+ amount: number;
909
1630
  /**
910
- * The price currency
1631
+ * ISO 4217 currency code
911
1632
  */
912
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1633
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
913
1634
  }
914
1635
  }
915
1636
  }
1637
+ /**
1638
+ * Subscription entitlement reference
1639
+ */
1640
+ interface SubscriptionEntitlement {
1641
+ /**
1642
+ * Feature ID or currency ID
1643
+ */
1644
+ id: string;
1645
+ /**
1646
+ * Entitlement type (FEATURE or CREDIT)
1647
+ */
1648
+ type: 'FEATURE' | 'CREDIT';
1649
+ }
1650
+ /**
1651
+ * Trial configuration
1652
+ */
1653
+ interface Trial {
1654
+ /**
1655
+ * Behavior when the trial ends
1656
+ */
1657
+ trialEndBehavior: 'CONVERT_TO_PAID' | 'CANCEL_SUBSCRIPTION';
1658
+ }
916
1659
  }
917
1660
  }
918
1661
  }
919
1662
  export interface SubscriptionUpdateParams {
920
1663
  addons?: Array<SubscriptionUpdateParams.Addon>;
921
1664
  appliedCoupon?: SubscriptionUpdateParams.AppliedCoupon;
1665
+ /**
1666
+ * Await payment confirmation
1667
+ */
922
1668
  awaitPaymentConfirmation?: boolean;
1669
+ billingCycleAnchor?: 'UNCHANGED' | 'NOW';
923
1670
  billingInformation?: SubscriptionUpdateParams.BillingInformation;
924
1671
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
925
1672
  budget?: SubscriptionUpdateParams.Budget | null;
926
1673
  charges?: Array<SubscriptionUpdateParams.Charge>;
1674
+ entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
927
1675
  /**
928
1676
  * Additional metadata for the subscription
929
1677
  */
930
1678
  metadata?: {
931
1679
  [key: string]: string;
932
1680
  };
1681
+ /**
1682
+ * Minimum spend amount
1683
+ */
933
1684
  minimumSpend?: SubscriptionUpdateParams.MinimumSpend | null;
934
1685
  priceOverrides?: Array<SubscriptionUpdateParams.PriceOverride>;
1686
+ /**
1687
+ * Promotion code
1688
+ */
935
1689
  promotionCode?: string;
936
1690
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
937
- subscriptionEntitlements?: Array<SubscriptionUpdateParams.SubscriptionEntitlement>;
938
1691
  /**
939
1692
  * Subscription trial end date
940
1693
  */
941
1694
  trialEndDate?: string;
942
1695
  }
943
1696
  export declare namespace SubscriptionUpdateParams {
1697
+ /**
1698
+ * Addon configuration
1699
+ */
944
1700
  interface Addon {
945
1701
  /**
946
1702
  * Addon ID
947
1703
  */
948
- addonId: string;
1704
+ id: string;
1705
+ /**
1706
+ * Number of addon instances
1707
+ */
949
1708
  quantity: number;
950
1709
  }
951
1710
  interface AppliedCoupon {
952
1711
  billingCouponId?: string;
953
1712
  configuration?: AppliedCoupon.Configuration;
1713
+ /**
1714
+ * Stigg coupon ID
1715
+ */
954
1716
  couponId?: string;
955
1717
  discount?: AppliedCoupon.Discount;
956
1718
  promotionCode?: string | null;
@@ -970,9 +1732,18 @@ export declare namespace SubscriptionUpdateParams {
970
1732
  percentOff?: number;
971
1733
  }
972
1734
  namespace Discount {
1735
+ /**
1736
+ * Monetary amount with currency
1737
+ */
973
1738
  interface AmountsOff {
1739
+ /**
1740
+ * The price amount
1741
+ */
974
1742
  amount: number;
975
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1743
+ /**
1744
+ * ISO 4217 currency code
1745
+ */
1746
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
976
1747
  }
977
1748
  }
978
1749
  }
@@ -991,7 +1762,7 @@ export declare namespace SubscriptionUpdateParams {
991
1762
  * Additional metadata for the subscription
992
1763
  */
993
1764
  metadata?: {
994
- [key: string]: unknown;
1765
+ [key: string]: string;
995
1766
  };
996
1767
  prorationBehavior?: 'INVOICE_IMMEDIATELY' | 'CREATE_PRORATIONS' | 'NONE';
997
1768
  taxIds?: Array<BillingInformation.TaxID>;
@@ -1034,7 +1805,13 @@ export declare namespace SubscriptionUpdateParams {
1034
1805
  }
1035
1806
  }
1036
1807
  interface Budget {
1808
+ /**
1809
+ * Whether the budget is a soft limit
1810
+ */
1037
1811
  hasSoftLimit: boolean;
1812
+ /**
1813
+ * Maximum spending limit
1814
+ */
1038
1815
  limit: number;
1039
1816
  }
1040
1817
  interface Charge {
@@ -1045,62 +1822,136 @@ export declare namespace SubscriptionUpdateParams {
1045
1822
  quantity: number;
1046
1823
  type: 'FEATURE' | 'CREDIT';
1047
1824
  }
1048
- interface MinimumSpend {
1049
- minimum?: MinimumSpend.Minimum | null;
1050
- }
1051
- namespace MinimumSpend {
1052
- interface Minimum {
1053
- amount: number;
1054
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1055
- }
1056
- }
1057
- interface PriceOverride {
1825
+ /**
1826
+ * Feature entitlement configuration for a subscription
1827
+ */
1828
+ interface Feature {
1058
1829
  /**
1059
- * Addon ID
1830
+ * The feature ID to attach the entitlement to
1060
1831
  */
1061
- addonId?: string;
1832
+ id: string;
1062
1833
  /**
1063
- * Whether this is a base charge override
1834
+ * SubscriptionFeatureEntitlementRequest
1064
1835
  */
1065
- baseCharge?: boolean;
1836
+ type: 'FEATURE';
1066
1837
  /**
1067
- * The corresponding custom currency id of the recurring credits price
1838
+ * Whether the usage limit is a soft limit
1068
1839
  */
1069
- currencyId?: string;
1840
+ hasSoftLimit?: boolean;
1070
1841
  /**
1071
- * Feature ID
1842
+ * Whether usage is unlimited
1072
1843
  */
1073
- featureId?: string;
1074
- price?: PriceOverride.Price;
1075
- }
1076
- namespace PriceOverride {
1077
- interface Price {
1078
- amount: number;
1079
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1080
- }
1081
- }
1082
- interface SubscriptionEntitlement {
1083
- id?: string;
1084
- featureId?: string;
1085
- hasSoftLimit?: boolean;
1086
1844
  hasUnlimitedUsage?: boolean;
1087
- monthlyResetPeriodConfiguration?: SubscriptionEntitlement.MonthlyResetPeriodConfiguration;
1845
+ /**
1846
+ * Configuration for monthly reset period
1847
+ */
1848
+ monthlyResetPeriodConfiguration?: Feature.MonthlyResetPeriodConfiguration | null;
1849
+ /**
1850
+ * Period at which usage resets
1851
+ */
1088
1852
  resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR';
1853
+ /**
1854
+ * Maximum allowed usage for the feature
1855
+ */
1089
1856
  usageLimit?: number;
1090
- weeklyResetPeriodConfiguration?: SubscriptionEntitlement.WeeklyResetPeriodConfiguration;
1091
- yearlyResetPeriodConfiguration?: SubscriptionEntitlement.YearlyResetPeriodConfiguration;
1857
+ /**
1858
+ * Configuration for weekly reset period
1859
+ */
1860
+ weeklyResetPeriodConfiguration?: Feature.WeeklyResetPeriodConfiguration | null;
1861
+ /**
1862
+ * Configuration for yearly reset period
1863
+ */
1864
+ yearlyResetPeriodConfiguration?: Feature.YearlyResetPeriodConfiguration | null;
1092
1865
  }
1093
- namespace SubscriptionEntitlement {
1866
+ namespace Feature {
1867
+ /**
1868
+ * Configuration for monthly reset period
1869
+ */
1094
1870
  interface MonthlyResetPeriodConfiguration {
1871
+ /**
1872
+ * Reset anchor (SubscriptionStart or StartOfTheMonth)
1873
+ */
1095
1874
  accordingTo: 'SubscriptionStart' | 'StartOfTheMonth';
1096
1875
  }
1876
+ /**
1877
+ * Configuration for weekly reset period
1878
+ */
1097
1879
  interface WeeklyResetPeriodConfiguration {
1880
+ /**
1881
+ * Reset anchor (SubscriptionStart or specific day)
1882
+ */
1098
1883
  accordingTo: 'SubscriptionStart' | 'EverySunday' | 'EveryMonday' | 'EveryTuesday' | 'EveryWednesday' | 'EveryThursday' | 'EveryFriday' | 'EverySaturday';
1099
1884
  }
1885
+ /**
1886
+ * Configuration for yearly reset period
1887
+ */
1100
1888
  interface YearlyResetPeriodConfiguration {
1889
+ /**
1890
+ * Reset anchor (SubscriptionStart)
1891
+ */
1101
1892
  accordingTo: 'SubscriptionStart';
1102
1893
  }
1103
1894
  }
1895
+ /**
1896
+ * Credit entitlement configuration for a subscription
1897
+ */
1898
+ interface Credit {
1899
+ /**
1900
+ * The custom currency ID for the credit entitlement
1901
+ */
1902
+ id: string;
1903
+ /**
1904
+ * Credit grant amount
1905
+ */
1906
+ amount: number;
1907
+ /**
1908
+ * Credit grant cadence (MONTH or YEAR)
1909
+ */
1910
+ cadence: 'MONTH' | 'YEAR';
1911
+ /**
1912
+ * SubscriptionCreditEntitlementRequest
1913
+ */
1914
+ type: 'CREDIT';
1915
+ }
1916
+ /**
1917
+ * Minimum spend amount
1918
+ */
1919
+ interface MinimumSpend {
1920
+ /**
1921
+ * The price amount
1922
+ */
1923
+ amount?: number;
1924
+ /**
1925
+ * The price currency
1926
+ */
1927
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1928
+ }
1929
+ interface PriceOverride {
1930
+ /**
1931
+ * Addon ID
1932
+ */
1933
+ addonId?: string;
1934
+ /**
1935
+ * The price amount
1936
+ */
1937
+ amount?: number;
1938
+ /**
1939
+ * Whether this is a base charge override
1940
+ */
1941
+ baseCharge?: boolean;
1942
+ /**
1943
+ * The price currency
1944
+ */
1945
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1946
+ /**
1947
+ * The corresponding custom currency id of the recurring credits price
1948
+ */
1949
+ currencyId?: string;
1950
+ /**
1951
+ * Feature ID
1952
+ */
1953
+ featureId?: string;
1954
+ }
1104
1955
  }
1105
1956
  export interface SubscriptionListParams extends MyCursorIDPageParams {
1106
1957
  /**
@@ -1118,7 +1969,7 @@ export interface SubscriptionListParams extends MyCursorIDPageParams {
1118
1969
  /**
1119
1970
  * Filter by pricing type. Supports comma-separated values for multiple types
1120
1971
  */
1121
- pricingType?: string;
1972
+ pricingType?: Array<'FREE' | 'PAID' | 'CUSTOM'>;
1122
1973
  /**
1123
1974
  * Filter by resource ID
1124
1975
  */
@@ -1127,7 +1978,7 @@ export interface SubscriptionListParams extends MyCursorIDPageParams {
1127
1978
  * Filter by subscription status. Supports comma-separated values for multiple
1128
1979
  * statuses
1129
1980
  */
1130
- status?: string;
1981
+ status?: Array<'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED'>;
1131
1982
  }
1132
1983
  export declare namespace SubscriptionListParams {
1133
1984
  /**
@@ -1202,10 +2053,16 @@ export declare namespace SubscriptionImportParams {
1202
2053
  * Plan ID
1203
2054
  */
1204
2055
  planId: string;
2056
+ addons?: Array<Subscription.Addon>;
1205
2057
  /**
1206
2058
  * Billing ID
1207
2059
  */
1208
2060
  billingId?: string | null;
2061
+ /**
2062
+ * Billing period (MONTHLY or ANNUALLY)
2063
+ */
2064
+ billingPeriod?: 'MONTHLY' | 'ANNUALLY';
2065
+ charges?: Array<Subscription.Charge>;
1209
2066
  /**
1210
2067
  * Subscription end date
1211
2068
  */
@@ -1225,6 +2082,39 @@ export declare namespace SubscriptionImportParams {
1225
2082
  */
1226
2083
  startDate?: string;
1227
2084
  }
2085
+ namespace Subscription {
2086
+ /**
2087
+ * Addon configuration
2088
+ */
2089
+ interface Addon {
2090
+ /**
2091
+ * Addon ID
2092
+ */
2093
+ id: string;
2094
+ /**
2095
+ * Number of addon instances
2096
+ */
2097
+ quantity: number;
2098
+ }
2099
+ /**
2100
+ * A charge selection for a subscription (references a catalog charge with a
2101
+ * quantity).
2102
+ */
2103
+ interface Charge {
2104
+ /**
2105
+ * Charge ID
2106
+ */
2107
+ id: string;
2108
+ /**
2109
+ * Charge quantity. Minimum is 0 (zero is allowed).
2110
+ */
2111
+ quantity: number;
2112
+ /**
2113
+ * Charge type
2114
+ */
2115
+ type: 'FEATURE' | 'CREDIT';
2116
+ }
2117
+ }
1228
2118
  }
1229
2119
  export interface SubscriptionMigrateParams {
1230
2120
  /**
@@ -1257,6 +2147,10 @@ export interface SubscriptionPreviewParams {
1257
2147
  * ISO 3166-1 country code for localization
1258
2148
  */
1259
2149
  billingCountryCode?: string;
2150
+ /**
2151
+ * Billing cycle anchor behavior for the subscription
2152
+ */
2153
+ billingCycleAnchor?: 'UNCHANGED' | 'NOW';
1260
2154
  /**
1261
2155
  * Billing and tax configuration
1262
2156
  */
@@ -1290,7 +2184,7 @@ export interface SubscriptionPreviewParams {
1290
2184
  */
1291
2185
  trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
1292
2186
  /**
1293
- * Unit quantity for per-unit pricing
2187
+ * Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
1294
2188
  */
1295
2189
  unitQuantity?: number;
1296
2190
  }
@@ -1302,11 +2196,11 @@ export declare namespace SubscriptionPreviewParams {
1302
2196
  /**
1303
2197
  * Addon ID
1304
2198
  */
1305
- addonId: string;
2199
+ id: string;
1306
2200
  /**
1307
2201
  * Number of addon instances
1308
2202
  */
1309
- quantity?: number;
2203
+ quantity: number;
1310
2204
  }
1311
2205
  /**
1312
2206
  * Coupon or discount to apply
@@ -1375,7 +2269,7 @@ export declare namespace SubscriptionPreviewParams {
1375
2269
  */
1376
2270
  amount: number;
1377
2271
  /**
1378
- * The price currency
2272
+ * ISO 4217 currency code
1379
2273
  */
1380
2274
  currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1381
2275
  }
@@ -1390,7 +2284,7 @@ export declare namespace SubscriptionPreviewParams {
1390
2284
  */
1391
2285
  featureId: string;
1392
2286
  /**
1393
- * Quantity of feature units
2287
+ * Quantity of feature units. Minimum is 0 (zero is allowed).
1394
2288
  */
1395
2289
  quantity: number;
1396
2290
  }
@@ -1425,7 +2319,9 @@ export declare namespace SubscriptionPreviewParams {
1425
2319
  /**
1426
2320
  * Additional billing metadata
1427
2321
  */
1428
- metadata?: unknown;
2322
+ metadata?: {
2323
+ [key: string]: string;
2324
+ };
1429
2325
  /**
1430
2326
  * Proration behavior
1431
2327
  */
@@ -1470,7 +2366,8 @@ export declare namespace SubscriptionPreviewParams {
1470
2366
  }
1471
2367
  }
1472
2368
  /**
1473
- * Charge item
2369
+ * A charge selection for a subscription (references a catalog charge with a
2370
+ * quantity).
1474
2371
  */
1475
2372
  interface Charge {
1476
2373
  /**
@@ -1478,7 +2375,7 @@ export declare namespace SubscriptionPreviewParams {
1478
2375
  */
1479
2376
  id: string;
1480
2377
  /**
1481
- * Charge quantity
2378
+ * Charge quantity. Minimum is 0 (zero is allowed).
1482
2379
  */
1483
2380
  quantity: number;
1484
2381
  /**
@@ -1530,6 +2427,10 @@ export interface SubscriptionProvisionParams {
1530
2427
  * The ISO 3166-1 alpha-2 country code for billing
1531
2428
  */
1532
2429
  billingCountryCode?: string | null;
2430
+ /**
2431
+ * Billing cycle anchor behavior for the subscription
2432
+ */
2433
+ billingCycleAnchor?: 'UNCHANGED' | 'NOW';
1533
2434
  /**
1534
2435
  * External billing system identifier
1535
2436
  */
@@ -1545,12 +2446,16 @@ export interface SubscriptionProvisionParams {
1545
2446
  * Checkout page configuration for payment collection
1546
2447
  */
1547
2448
  checkoutOptions?: SubscriptionProvisionParams.CheckoutOptions;
2449
+ entitlements?: Array<SubscriptionProvisionParams.Feature | SubscriptionProvisionParams.Credit>;
1548
2450
  /**
1549
2451
  * Additional metadata for the subscription
1550
2452
  */
1551
2453
  metadata?: {
1552
2454
  [key: string]: string;
1553
2455
  };
2456
+ /**
2457
+ * Minimum spend amount
2458
+ */
1554
2459
  minimumSpend?: SubscriptionProvisionParams.MinimumSpend | null;
1555
2460
  /**
1556
2461
  * Optional paying customer ID for split billing scenarios
@@ -1577,23 +2482,28 @@ export interface SubscriptionProvisionParams {
1577
2482
  * Subscription start date
1578
2483
  */
1579
2484
  startDate?: string;
1580
- subscriptionEntitlements?: Array<SubscriptionProvisionParams.SubscriptionEntitlement>;
1581
2485
  /**
1582
2486
  * Trial period override settings
1583
2487
  */
1584
2488
  trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
2489
+ /**
2490
+ * Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2491
+ */
1585
2492
  unitQuantity?: number;
1586
2493
  }
1587
2494
  export declare namespace SubscriptionProvisionParams {
2495
+ /**
2496
+ * Addon configuration
2497
+ */
1588
2498
  interface Addon {
1589
2499
  /**
1590
- * Addon identifier
2500
+ * Addon ID
1591
2501
  */
1592
- addonId: string;
2502
+ id: string;
1593
2503
  /**
1594
- * Number of addon units
2504
+ * Number of addon instances
1595
2505
  */
1596
- quantity?: number;
2506
+ quantity: number;
1597
2507
  }
1598
2508
  /**
1599
2509
  * Coupon configuration
@@ -1662,7 +2572,7 @@ export declare namespace SubscriptionProvisionParams {
1662
2572
  */
1663
2573
  amount: number;
1664
2574
  /**
1665
- * The price currency
2575
+ * ISO 4217 currency code
1666
2576
  */
1667
2577
  currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1668
2578
  }
@@ -1728,6 +2638,9 @@ export declare namespace SubscriptionProvisionParams {
1728
2638
  postalCode?: string;
1729
2639
  state?: string;
1730
2640
  }
2641
+ /**
2642
+ * Tax identifier with type and value for customer tax exemptions.
2643
+ */
1731
2644
  interface TaxID {
1732
2645
  /**
1733
2646
  * The type of tax exemption identifier, such as VAT.
@@ -1750,7 +2663,8 @@ export declare namespace SubscriptionProvisionParams {
1750
2663
  limit: number;
1751
2664
  }
1752
2665
  /**
1753
- * Charge item
2666
+ * A charge selection for a subscription (references a catalog charge with a
2667
+ * quantity).
1754
2668
  */
1755
2669
  interface Charge {
1756
2670
  /**
@@ -1758,7 +2672,7 @@ export declare namespace SubscriptionProvisionParams {
1758
2672
  */
1759
2673
  id: string;
1760
2674
  /**
1761
- * Charge quantity
2675
+ * Charge quantity. Minimum is 0 (zero is allowed).
1762
2676
  */
1763
2677
  quantity: number;
1764
2678
  /**
@@ -1799,40 +2713,127 @@ export declare namespace SubscriptionProvisionParams {
1799
2713
  */
1800
2714
  referenceId?: string | null;
1801
2715
  }
1802
- interface MinimumSpend {
2716
+ /**
2717
+ * Feature entitlement configuration for a subscription
2718
+ */
2719
+ interface Feature {
2720
+ /**
2721
+ * The feature ID to attach the entitlement to
2722
+ */
2723
+ id: string;
2724
+ /**
2725
+ * SubscriptionFeatureEntitlementRequest
2726
+ */
2727
+ type: 'FEATURE';
2728
+ /**
2729
+ * Whether the usage limit is a soft limit
2730
+ */
2731
+ hasSoftLimit?: boolean;
2732
+ /**
2733
+ * Whether usage is unlimited
2734
+ */
2735
+ hasUnlimitedUsage?: boolean;
2736
+ /**
2737
+ * Configuration for monthly reset period
2738
+ */
2739
+ monthlyResetPeriodConfiguration?: Feature.MonthlyResetPeriodConfiguration | null;
2740
+ /**
2741
+ * Period at which usage resets
2742
+ */
2743
+ resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR';
2744
+ /**
2745
+ * Maximum allowed usage for the feature
2746
+ */
2747
+ usageLimit?: number;
1803
2748
  /**
1804
- * Minimum spend amount
2749
+ * Configuration for weekly reset period
1805
2750
  */
1806
- minimum?: MinimumSpend.Minimum | null;
2751
+ weeklyResetPeriodConfiguration?: Feature.WeeklyResetPeriodConfiguration | null;
2752
+ /**
2753
+ * Configuration for yearly reset period
2754
+ */
2755
+ yearlyResetPeriodConfiguration?: Feature.YearlyResetPeriodConfiguration | null;
1807
2756
  }
1808
- namespace MinimumSpend {
2757
+ namespace Feature {
1809
2758
  /**
1810
- * Minimum spend amount
2759
+ * Configuration for monthly reset period
1811
2760
  */
1812
- interface Minimum {
2761
+ interface MonthlyResetPeriodConfiguration {
1813
2762
  /**
1814
- * The price amount
2763
+ * Reset anchor (SubscriptionStart or StartOfTheMonth)
1815
2764
  */
1816
- amount?: number;
2765
+ accordingTo: 'SubscriptionStart' | 'StartOfTheMonth';
2766
+ }
2767
+ /**
2768
+ * Configuration for weekly reset period
2769
+ */
2770
+ interface WeeklyResetPeriodConfiguration {
1817
2771
  /**
1818
- * The billing country code of the price
2772
+ * Reset anchor (SubscriptionStart or specific day)
1819
2773
  */
1820
- billingCountryCode?: string | null;
2774
+ accordingTo: 'SubscriptionStart' | 'EverySunday' | 'EveryMonday' | 'EveryTuesday' | 'EveryWednesday' | 'EveryThursday' | 'EveryFriday' | 'EverySaturday';
2775
+ }
2776
+ /**
2777
+ * Configuration for yearly reset period
2778
+ */
2779
+ interface YearlyResetPeriodConfiguration {
1821
2780
  /**
1822
- * The price currency
2781
+ * Reset anchor (SubscriptionStart)
1823
2782
  */
1824
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
2783
+ accordingTo: 'SubscriptionStart';
1825
2784
  }
1826
2785
  }
2786
+ /**
2787
+ * Credit entitlement configuration for a subscription
2788
+ */
2789
+ interface Credit {
2790
+ /**
2791
+ * The custom currency ID for the credit entitlement
2792
+ */
2793
+ id: string;
2794
+ /**
2795
+ * Credit grant amount
2796
+ */
2797
+ amount: number;
2798
+ /**
2799
+ * Credit grant cadence (MONTH or YEAR)
2800
+ */
2801
+ cadence: 'MONTH' | 'YEAR';
2802
+ /**
2803
+ * SubscriptionCreditEntitlementRequest
2804
+ */
2805
+ type: 'CREDIT';
2806
+ }
2807
+ /**
2808
+ * Minimum spend amount
2809
+ */
2810
+ interface MinimumSpend {
2811
+ /**
2812
+ * The price amount
2813
+ */
2814
+ amount?: number;
2815
+ /**
2816
+ * The price currency
2817
+ */
2818
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
2819
+ }
1827
2820
  interface PriceOverride {
1828
2821
  /**
1829
2822
  * Addon identifier for the price override
1830
2823
  */
1831
2824
  addonId?: string | null;
2825
+ /**
2826
+ * The price amount
2827
+ */
2828
+ amount?: number;
1832
2829
  /**
1833
2830
  * Whether this is a base charge override
1834
2831
  */
1835
2832
  baseCharge?: boolean;
2833
+ /**
2834
+ * The billing country code of the price
2835
+ */
2836
+ billingCountryCode?: string;
1836
2837
  /**
1837
2838
  * Block size for pricing
1838
2839
  */
@@ -1840,13 +2841,13 @@ export declare namespace SubscriptionProvisionParams {
1840
2841
  creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY';
1841
2842
  creditRate?: PriceOverride.CreditRate;
1842
2843
  /**
1843
- * Feature identifier for the price override
2844
+ * The price currency
1844
2845
  */
1845
- featureId?: string | null;
2846
+ currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1846
2847
  /**
1847
- * Override price amount
2848
+ * Feature identifier for the price override
1848
2849
  */
1849
- price?: PriceOverride.Price;
2850
+ featureId?: string | null;
1850
2851
  /**
1851
2852
  * Pricing tiers configuration
1852
2853
  */
@@ -1867,23 +2868,6 @@ export declare namespace SubscriptionProvisionParams {
1867
2868
  */
1868
2869
  costFormula?: string | null;
1869
2870
  }
1870
- /**
1871
- * Override price amount
1872
- */
1873
- interface Price {
1874
- /**
1875
- * The price amount
1876
- */
1877
- amount?: number;
1878
- /**
1879
- * The billing country code of the price
1880
- */
1881
- billingCountryCode?: string | null;
1882
- /**
1883
- * The price currency
1884
- */
1885
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1886
- }
1887
2871
  interface Tier {
1888
2872
  /**
1889
2873
  * The flat fee price of the price tier
@@ -1906,15 +2890,11 @@ export declare namespace SubscriptionProvisionParams {
1906
2890
  /**
1907
2891
  * The price amount
1908
2892
  */
1909
- amount?: number;
1910
- /**
1911
- * The billing country code of the price
1912
- */
1913
- billingCountryCode?: string | null;
2893
+ amount: number;
1914
2894
  /**
1915
- * The price currency
2895
+ * ISO 4217 currency code
1916
2896
  */
1917
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
2897
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1918
2898
  }
1919
2899
  /**
1920
2900
  * The unit price of the price tier
@@ -1923,26 +2903,14 @@ export declare namespace SubscriptionProvisionParams {
1923
2903
  /**
1924
2904
  * The price amount
1925
2905
  */
1926
- amount?: number;
1927
- /**
1928
- * The billing country code of the price
1929
- */
1930
- billingCountryCode?: string | null;
2906
+ amount: number;
1931
2907
  /**
1932
- * The price currency
2908
+ * ISO 4217 currency code
1933
2909
  */
1934
- currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
2910
+ currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
1935
2911
  }
1936
2912
  }
1937
2913
  }
1938
- interface SubscriptionEntitlement {
1939
- /**
1940
- * Feature ID
1941
- */
1942
- featureId: string;
1943
- usageLimit: number;
1944
- isGranted?: boolean;
1945
- }
1946
2914
  /**
1947
2915
  * Trial period override settings
1948
2916
  */
@@ -1969,7 +2937,7 @@ export interface SubscriptionTransferParams {
1969
2937
  }
1970
2938
  export declare namespace Subscriptions {
1971
2939
  export { type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
1972
- export { FutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
2940
+ export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
1973
2941
  export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, };
1974
2942
  export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
1975
2943
  }