@pollination-solutions/pollination-sdk 0.25.0 → 0.26.0

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 (887) hide show
  1. package/.apigentools-info +3 -3
  2. package/.openapi-generator/FILES +10 -37
  3. package/README.md +1 -1
  4. package/api/accounts-api.ts +1 -1
  5. package/api/apitokens-api.ts +1 -1
  6. package/api/artifacts-api.ts +1 -1
  7. package/api/jobs-api.ts +1 -1
  8. package/api/licenses-api.ts +1 -1
  9. package/api/orgs-api.ts +1 -1
  10. package/api/plugins-api.ts +1 -1
  11. package/api/projects-api.ts +1 -1
  12. package/api/recipes-api.ts +1 -1
  13. package/api/registries-api.ts +1 -1
  14. package/api/runs-api.ts +1 -1
  15. package/api/subscription-plans-api.ts +151 -0
  16. package/api/subscriptions-api.ts +514 -48
  17. package/api/teams-api.ts +1 -1
  18. package/api/user-api.ts +1 -1
  19. package/api/users-api.ts +1 -1
  20. package/api.ts +2 -2
  21. package/base.ts +1 -1
  22. package/configuration.ts +1 -1
  23. package/dist/api/accounts-api.d.ts +5 -5
  24. package/dist/api/accounts-api.js +1 -1
  25. package/dist/api/apitokens-api.d.ts +5 -5
  26. package/dist/api/apitokens-api.js +1 -1
  27. package/dist/api/artifacts-api.d.ts +5 -5
  28. package/dist/api/artifacts-api.js +1 -1
  29. package/dist/api/jobs-api.d.ts +8 -8
  30. package/dist/api/jobs-api.js +1 -1
  31. package/dist/api/licenses-api.d.ts +9 -9
  32. package/dist/api/licenses-api.js +1 -1
  33. package/dist/api/orgs-api.d.ts +9 -9
  34. package/dist/api/orgs-api.js +1 -1
  35. package/dist/api/plugins-api.d.ts +12 -12
  36. package/dist/api/plugins-api.js +1 -1
  37. package/dist/api/projects-api.d.ts +13 -13
  38. package/dist/api/projects-api.js +1 -1
  39. package/dist/api/recipes-api.d.ts +12 -12
  40. package/dist/api/recipes-api.js +1 -1
  41. package/dist/api/registries-api.d.ts +6 -6
  42. package/dist/api/registries-api.js +1 -1
  43. package/dist/api/runs-api.d.ts +10 -10
  44. package/dist/api/runs-api.js +1 -1
  45. package/dist/api/subscription-plans-api.d.ts +88 -0
  46. package/dist/api/subscription-plans-api.js +138 -0
  47. package/dist/api/subscriptions-api.d.ts +230 -32
  48. package/dist/api/subscriptions-api.js +407 -37
  49. package/dist/api/teams-api.d.ts +9 -9
  50. package/dist/api/teams-api.js +1 -1
  51. package/dist/api/user-api.d.ts +5 -5
  52. package/dist/api/user-api.js +1 -1
  53. package/dist/api/users-api.d.ts +4 -4
  54. package/dist/api/users-api.js +1 -1
  55. package/dist/api.d.ts +2 -2
  56. package/dist/api.js +2 -2
  57. package/dist/base.d.ts +1 -1
  58. package/dist/base.js +1 -1
  59. package/dist/configuration.d.ts +1 -1
  60. package/dist/configuration.js +1 -1
  61. package/dist/index.d.ts +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/models/accessor.d.ts +1 -1
  64. package/dist/models/accessor.js +1 -1
  65. package/dist/models/account-public.d.ts +1 -1
  66. package/dist/models/account-public.js +1 -1
  67. package/dist/models/account-type.d.ts +1 -1
  68. package/dist/models/account-type.js +1 -1
  69. package/dist/models/activation-list.d.ts +1 -1
  70. package/dist/models/activation-list.js +1 -1
  71. package/dist/models/activation.d.ts +1 -1
  72. package/dist/models/activation.js +1 -1
  73. package/dist/models/apitoken-create.d.ts +1 -1
  74. package/dist/models/apitoken-create.js +1 -1
  75. package/dist/models/apitoken-list.d.ts +1 -1
  76. package/dist/models/apitoken-list.js +1 -1
  77. package/dist/models/apitoken-private.d.ts +1 -1
  78. package/dist/models/apitoken-private.js +1 -1
  79. package/dist/models/apitoken.d.ts +1 -1
  80. package/dist/models/apitoken.js +1 -1
  81. package/dist/models/baked-recipe.d.ts +1 -1
  82. package/dist/models/baked-recipe.js +1 -1
  83. package/dist/models/billing-info.d.ts +81 -0
  84. package/dist/models/{card-public.js → billing-info.js} +1 -1
  85. package/dist/models/billing-option.d.ts +50 -0
  86. package/dist/models/{card.js → billing-option.js} +1 -1
  87. package/dist/models/body-post-plugin-owner-plugins-post.d.ts +1 -1
  88. package/dist/models/body-post-plugin-owner-plugins-post.js +1 -1
  89. package/dist/models/body-post-recipe-owner-recipes-post.d.ts +1 -1
  90. package/dist/models/body-post-recipe-owner-recipes-post.js +1 -1
  91. package/dist/models/{invoice-status.d.ts → card-type.d.ts} +10 -7
  92. package/dist/models/card-type.js +32 -0
  93. package/dist/models/cloud-job-list.d.ts +1 -1
  94. package/dist/models/cloud-job-list.js +1 -1
  95. package/dist/models/cloud-job.d.ts +1 -1
  96. package/dist/models/cloud-job.js +1 -1
  97. package/dist/models/created-content.d.ts +1 -1
  98. package/dist/models/created-content.js +1 -1
  99. package/dist/models/dag.d.ts +1 -1
  100. package/dist/models/dag.js +1 -1
  101. package/dist/models/dagarray-input-alias.d.ts +1 -1
  102. package/dist/models/dagarray-input-alias.js +1 -1
  103. package/dist/models/dagarray-input.d.ts +1 -1
  104. package/dist/models/dagarray-input.js +1 -1
  105. package/dist/models/dagarray-output-alias.d.ts +1 -1
  106. package/dist/models/dagarray-output-alias.js +1 -1
  107. package/dist/models/dagarray-output.d.ts +1 -1
  108. package/dist/models/dagarray-output.js +1 -1
  109. package/dist/models/dagboolean-input-alias.d.ts +1 -1
  110. package/dist/models/dagboolean-input-alias.js +1 -1
  111. package/dist/models/dagboolean-input.d.ts +1 -1
  112. package/dist/models/dagboolean-input.js +1 -1
  113. package/dist/models/dagboolean-output-alias.d.ts +1 -1
  114. package/dist/models/dagboolean-output-alias.js +1 -1
  115. package/dist/models/dagboolean-output.d.ts +1 -1
  116. package/dist/models/dagboolean-output.js +1 -1
  117. package/dist/models/dagfile-input-alias.d.ts +1 -1
  118. package/dist/models/dagfile-input-alias.js +1 -1
  119. package/dist/models/dagfile-input.d.ts +1 -1
  120. package/dist/models/dagfile-input.js +1 -1
  121. package/dist/models/dagfile-output-alias.d.ts +1 -1
  122. package/dist/models/dagfile-output-alias.js +1 -1
  123. package/dist/models/dagfile-output.d.ts +1 -1
  124. package/dist/models/dagfile-output.js +1 -1
  125. package/dist/models/dagfolder-input-alias.d.ts +1 -1
  126. package/dist/models/dagfolder-input-alias.js +1 -1
  127. package/dist/models/dagfolder-input.d.ts +1 -1
  128. package/dist/models/dagfolder-input.js +1 -1
  129. package/dist/models/dagfolder-output-alias.d.ts +1 -1
  130. package/dist/models/dagfolder-output-alias.js +1 -1
  131. package/dist/models/dagfolder-output.d.ts +1 -1
  132. package/dist/models/dagfolder-output.js +1 -1
  133. package/dist/models/daggeneric-input-alias.d.ts +1 -1
  134. package/dist/models/daggeneric-input-alias.js +1 -1
  135. package/dist/models/daggeneric-input.d.ts +1 -1
  136. package/dist/models/daggeneric-input.js +1 -1
  137. package/dist/models/daggeneric-output-alias.d.ts +1 -1
  138. package/dist/models/daggeneric-output-alias.js +1 -1
  139. package/dist/models/daggeneric-output.d.ts +1 -1
  140. package/dist/models/daggeneric-output.js +1 -1
  141. package/dist/models/daginteger-input-alias.d.ts +1 -1
  142. package/dist/models/daginteger-input-alias.js +1 -1
  143. package/dist/models/daginteger-input.d.ts +1 -1
  144. package/dist/models/daginteger-input.js +1 -1
  145. package/dist/models/daginteger-output-alias.d.ts +1 -1
  146. package/dist/models/daginteger-output-alias.js +1 -1
  147. package/dist/models/daginteger-output.d.ts +1 -1
  148. package/dist/models/daginteger-output.js +1 -1
  149. package/dist/models/dagjsonobject-input-alias.d.ts +1 -1
  150. package/dist/models/dagjsonobject-input-alias.js +1 -1
  151. package/dist/models/dagjsonobject-input.d.ts +1 -1
  152. package/dist/models/dagjsonobject-input.js +1 -1
  153. package/dist/models/dagjsonobject-output-alias.d.ts +1 -1
  154. package/dist/models/dagjsonobject-output-alias.js +1 -1
  155. package/dist/models/dagjsonobject-output.d.ts +1 -1
  156. package/dist/models/dagjsonobject-output.js +1 -1
  157. package/dist/models/daglinked-input-alias.d.ts +1 -1
  158. package/dist/models/daglinked-input-alias.js +1 -1
  159. package/dist/models/daglinked-output-alias.d.ts +1 -1
  160. package/dist/models/daglinked-output-alias.js +1 -1
  161. package/dist/models/dagnumber-input-alias.d.ts +1 -1
  162. package/dist/models/dagnumber-input-alias.js +1 -1
  163. package/dist/models/dagnumber-input.d.ts +1 -1
  164. package/dist/models/dagnumber-input.js +1 -1
  165. package/dist/models/dagnumber-output-alias.d.ts +1 -1
  166. package/dist/models/dagnumber-output-alias.js +1 -1
  167. package/dist/models/dagnumber-output.d.ts +1 -1
  168. package/dist/models/dagnumber-output.js +1 -1
  169. package/dist/models/dagpath-input-alias.d.ts +1 -1
  170. package/dist/models/dagpath-input-alias.js +1 -1
  171. package/dist/models/dagpath-input.d.ts +1 -1
  172. package/dist/models/dagpath-input.js +1 -1
  173. package/dist/models/dagpath-output-alias.d.ts +1 -1
  174. package/dist/models/dagpath-output-alias.js +1 -1
  175. package/dist/models/dagpath-output.d.ts +1 -1
  176. package/dist/models/dagpath-output.js +1 -1
  177. package/dist/models/dagstring-input-alias.d.ts +1 -1
  178. package/dist/models/dagstring-input-alias.js +1 -1
  179. package/dist/models/dagstring-input.d.ts +1 -1
  180. package/dist/models/dagstring-input.js +1 -1
  181. package/dist/models/dagstring-output-alias.d.ts +1 -1
  182. package/dist/models/dagstring-output-alias.js +1 -1
  183. package/dist/models/dagstring-output.d.ts +1 -1
  184. package/dist/models/dagstring-output.js +1 -1
  185. package/dist/models/dagtask-loop.d.ts +1 -1
  186. package/dist/models/dagtask-loop.js +1 -1
  187. package/dist/models/dagtask.d.ts +1 -1
  188. package/dist/models/dagtask.js +1 -1
  189. package/dist/models/daily-usage.d.ts +1 -1
  190. package/dist/models/daily-usage.js +1 -1
  191. package/dist/models/dependency-kind.d.ts +1 -1
  192. package/dist/models/dependency-kind.js +1 -1
  193. package/dist/models/dependency.d.ts +1 -1
  194. package/dist/models/dependency.js +1 -1
  195. package/dist/models/docker-config.d.ts +1 -1
  196. package/dist/models/docker-config.js +1 -1
  197. package/dist/models/file-meta.d.ts +1 -1
  198. package/dist/models/file-meta.js +1 -1
  199. package/dist/models/file-reference.d.ts +1 -1
  200. package/dist/models/file-reference.js +1 -1
  201. package/dist/models/folder-reference.d.ts +1 -1
  202. package/dist/models/folder-reference.js +1 -1
  203. package/dist/models/function-array-input.d.ts +1 -1
  204. package/dist/models/function-array-input.js +1 -1
  205. package/dist/models/function-array-output.d.ts +1 -1
  206. package/dist/models/function-array-output.js +1 -1
  207. package/dist/models/function-boolean-input.d.ts +1 -1
  208. package/dist/models/function-boolean-input.js +1 -1
  209. package/dist/models/function-boolean-output.d.ts +1 -1
  210. package/dist/models/function-boolean-output.js +1 -1
  211. package/dist/models/function-file-input.d.ts +1 -1
  212. package/dist/models/function-file-input.js +1 -1
  213. package/dist/models/function-file-output.d.ts +1 -1
  214. package/dist/models/function-file-output.js +1 -1
  215. package/dist/models/function-folder-input.d.ts +1 -1
  216. package/dist/models/function-folder-input.js +1 -1
  217. package/dist/models/function-folder-output.d.ts +1 -1
  218. package/dist/models/function-folder-output.js +1 -1
  219. package/dist/models/function-integer-input.d.ts +1 -1
  220. package/dist/models/function-integer-input.js +1 -1
  221. package/dist/models/function-integer-output.d.ts +1 -1
  222. package/dist/models/function-integer-output.js +1 -1
  223. package/dist/models/function-jsonobject-input.d.ts +1 -1
  224. package/dist/models/function-jsonobject-input.js +1 -1
  225. package/dist/models/function-jsonobject-output.d.ts +1 -1
  226. package/dist/models/function-jsonobject-output.js +1 -1
  227. package/dist/models/function-number-input.d.ts +1 -1
  228. package/dist/models/function-number-input.js +1 -1
  229. package/dist/models/function-number-output.d.ts +1 -1
  230. package/dist/models/function-number-output.js +1 -1
  231. package/dist/models/function-path-input.d.ts +1 -1
  232. package/dist/models/function-path-input.js +1 -1
  233. package/dist/models/function-path-output.d.ts +1 -1
  234. package/dist/models/function-path-output.js +1 -1
  235. package/dist/models/function-string-input.d.ts +1 -1
  236. package/dist/models/function-string-input.js +1 -1
  237. package/dist/models/function-string-output.d.ts +1 -1
  238. package/dist/models/function-string-output.js +1 -1
  239. package/dist/models/function.d.ts +1 -1
  240. package/dist/models/function.js +1 -1
  241. package/dist/models/http.d.ts +1 -1
  242. package/dist/models/http.js +1 -1
  243. package/dist/models/httpvalidation-error.d.ts +1 -1
  244. package/dist/models/httpvalidation-error.js +1 -1
  245. package/dist/models/index.d.ts +9 -36
  246. package/dist/models/index.js +9 -36
  247. package/dist/models/input-file-reference.d.ts +1 -1
  248. package/dist/models/input-file-reference.js +1 -1
  249. package/dist/models/input-folder-reference.d.ts +1 -1
  250. package/dist/models/input-folder-reference.js +1 -1
  251. package/dist/models/input-path-reference.d.ts +1 -1
  252. package/dist/models/input-path-reference.js +1 -1
  253. package/dist/models/input-reference.d.ts +1 -1
  254. package/dist/models/input-reference.js +1 -1
  255. package/dist/models/ioalias-handler.d.ts +1 -1
  256. package/dist/models/ioalias-handler.js +1 -1
  257. package/dist/models/item-reference.d.ts +1 -1
  258. package/dist/models/item-reference.js +1 -1
  259. package/dist/models/item-type.d.ts +1 -1
  260. package/dist/models/item-type.js +1 -1
  261. package/dist/models/job-argument.d.ts +1 -1
  262. package/dist/models/job-argument.js +1 -1
  263. package/dist/models/job-path-argument.d.ts +1 -1
  264. package/dist/models/job-path-argument.js +1 -1
  265. package/dist/models/job-status-enum.d.ts +1 -1
  266. package/dist/models/job-status-enum.js +1 -1
  267. package/dist/models/job-status.d.ts +1 -1
  268. package/dist/models/job-status.js +1 -1
  269. package/dist/models/job.d.ts +1 -1
  270. package/dist/models/job.js +1 -1
  271. package/dist/models/key-request.d.ts +1 -1
  272. package/dist/models/key-request.js +1 -1
  273. package/dist/models/license-pool-access-policy-list.d.ts +1 -1
  274. package/dist/models/license-pool-access-policy-list.js +1 -1
  275. package/dist/models/license-pool-access-policy.d.ts +1 -1
  276. package/dist/models/license-pool-access-policy.js +1 -1
  277. package/dist/models/license-pool-list.d.ts +1 -1
  278. package/dist/models/license-pool-list.js +1 -1
  279. package/dist/models/license-pool-policy-subject-list.d.ts +1 -1
  280. package/dist/models/license-pool-policy-subject-list.js +1 -1
  281. package/dist/models/license-pool-policy-subject.d.ts +1 -1
  282. package/dist/models/license-pool-policy-subject.js +1 -1
  283. package/dist/models/license-pool-public.d.ts +1 -1
  284. package/dist/models/license-pool-public.js +1 -1
  285. package/dist/models/license-pool-update.d.ts +1 -1
  286. package/dist/models/license-pool-update.js +1 -1
  287. package/dist/models/license-public.d.ts +1 -1
  288. package/dist/models/license-public.js +1 -1
  289. package/dist/models/license-type.d.ts +1 -1
  290. package/dist/models/license-type.js +1 -1
  291. package/dist/models/license.d.ts +1 -1
  292. package/dist/models/license.js +1 -1
  293. package/dist/models/local-config.d.ts +1 -1
  294. package/dist/models/local-config.js +1 -1
  295. package/dist/models/location.d.ts +1 -1
  296. package/dist/models/location.js +1 -1
  297. package/dist/models/maintainer.d.ts +1 -1
  298. package/dist/models/maintainer.js +1 -1
  299. package/dist/models/meta-data.d.ts +1 -1
  300. package/dist/models/meta-data.js +1 -1
  301. package/dist/models/metadata.d.ts +1 -1
  302. package/dist/models/metadata.js +1 -1
  303. package/dist/models/new-plugin-package.d.ts +1 -1
  304. package/dist/models/new-plugin-package.js +1 -1
  305. package/dist/models/new-recipe-package.d.ts +1 -1
  306. package/dist/models/new-recipe-package.js +1 -1
  307. package/dist/models/organization-create.d.ts +1 -1
  308. package/dist/models/organization-create.js +1 -1
  309. package/dist/models/organization-list.d.ts +1 -1
  310. package/dist/models/organization-list.js +1 -1
  311. package/dist/models/organization-member-list.d.ts +1 -1
  312. package/dist/models/organization-member-list.js +1 -1
  313. package/dist/models/organization-member.d.ts +1 -1
  314. package/dist/models/organization-member.js +1 -1
  315. package/dist/models/organization-role-enum.d.ts +1 -1
  316. package/dist/models/organization-role-enum.js +1 -1
  317. package/dist/models/organization-update.d.ts +1 -1
  318. package/dist/models/organization-update.js +1 -1
  319. package/dist/models/organization.d.ts +1 -1
  320. package/dist/models/organization.js +1 -1
  321. package/dist/models/package-sort-key.d.ts +1 -1
  322. package/dist/models/package-sort-key.js +1 -1
  323. package/dist/models/package-version.d.ts +1 -1
  324. package/dist/models/package-version.js +1 -1
  325. package/dist/models/{coupon-duration.d.ts → paused-reason.d.ts} +4 -5
  326. package/dist/models/{coupon-duration.js → paused-reason.js} +7 -8
  327. package/dist/models/{payment-create.d.ts → pay-link.d.ts} +6 -6
  328. package/dist/models/{delete-subscription-item.js → pay-link.js} +1 -1
  329. package/dist/models/{price-type.d.ts → payment-method-enum.d.ts} +3 -4
  330. package/dist/models/{price-type.js → payment-method-enum.js} +6 -7
  331. package/dist/models/payment-method.d.ts +10 -22
  332. package/dist/models/payment-method.js +1 -1
  333. package/dist/models/{coupon.d.ts → payment.d.ts} +24 -25
  334. package/dist/models/{coupon.js → payment.js} +1 -1
  335. package/dist/models/permission.d.ts +1 -1
  336. package/dist/models/permission.js +1 -1
  337. package/dist/models/plan-type.d.ts +21 -0
  338. package/dist/models/{payment-method-type.js → plan-type.js} +9 -7
  339. package/dist/models/plugin-config.d.ts +1 -1
  340. package/dist/models/plugin-config.js +1 -1
  341. package/dist/models/plugin-package-list.d.ts +1 -1
  342. package/dist/models/plugin-package-list.js +1 -1
  343. package/dist/models/plugin-package.d.ts +1 -1
  344. package/dist/models/plugin-package.js +1 -1
  345. package/dist/models/plugin.d.ts +1 -1
  346. package/dist/models/plugin.js +1 -1
  347. package/dist/models/policy-subject.d.ts +1 -1
  348. package/dist/models/policy-subject.js +1 -1
  349. package/dist/models/project-access-policy-list.d.ts +1 -1
  350. package/dist/models/project-access-policy-list.js +1 -1
  351. package/dist/models/project-access-policy.d.ts +1 -1
  352. package/dist/models/project-access-policy.js +1 -1
  353. package/dist/models/project-create.d.ts +1 -1
  354. package/dist/models/project-create.js +1 -1
  355. package/dist/models/project-folder.d.ts +1 -1
  356. package/dist/models/project-folder.js +1 -1
  357. package/dist/models/project-list.d.ts +1 -1
  358. package/dist/models/project-list.js +1 -1
  359. package/dist/models/project-policy-subject.d.ts +1 -1
  360. package/dist/models/project-policy-subject.js +1 -1
  361. package/dist/models/project-recipe-filter-list.d.ts +1 -1
  362. package/dist/models/project-recipe-filter-list.js +1 -1
  363. package/dist/models/project-recipe-filter.d.ts +1 -1
  364. package/dist/models/project-recipe-filter.js +1 -1
  365. package/dist/models/project-sort-key.d.ts +1 -1
  366. package/dist/models/project-sort-key.js +1 -1
  367. package/dist/models/project-update.d.ts +1 -1
  368. package/dist/models/project-update.js +1 -1
  369. package/dist/models/project.d.ts +1 -1
  370. package/dist/models/project.js +1 -1
  371. package/dist/models/public-account-list.d.ts +1 -1
  372. package/dist/models/public-account-list.js +1 -1
  373. package/dist/models/quota-list.d.ts +1 -1
  374. package/dist/models/quota-list.js +1 -1
  375. package/dist/models/quota-plan.d.ts +11 -4
  376. package/dist/models/quota-plan.js +1 -1
  377. package/dist/models/quota-type.d.ts +1 -1
  378. package/dist/models/quota-type.js +1 -1
  379. package/dist/models/quota.d.ts +1 -1
  380. package/dist/models/quota.js +1 -1
  381. package/dist/models/recipe-interface-list.d.ts +1 -1
  382. package/dist/models/recipe-interface-list.js +1 -1
  383. package/dist/models/recipe-interface.d.ts +1 -1
  384. package/dist/models/recipe-interface.js +1 -1
  385. package/dist/models/recipe-package-list.d.ts +1 -1
  386. package/dist/models/recipe-package-list.js +1 -1
  387. package/dist/models/recipe-package.d.ts +1 -1
  388. package/dist/models/recipe-package.js +1 -1
  389. package/dist/models/recipe.d.ts +1 -1
  390. package/dist/models/recipe.js +1 -1
  391. package/dist/models/repository-access-policy-list.d.ts +1 -1
  392. package/dist/models/repository-access-policy-list.js +1 -1
  393. package/dist/models/repository-access-policy.d.ts +1 -1
  394. package/dist/models/repository-access-policy.js +1 -1
  395. package/dist/models/repository-create.d.ts +1 -1
  396. package/dist/models/repository-create.js +1 -1
  397. package/dist/models/repository-index.d.ts +1 -1
  398. package/dist/models/repository-index.js +1 -1
  399. package/dist/models/repository-list.d.ts +1 -1
  400. package/dist/models/repository-list.js +1 -1
  401. package/dist/models/repository-metadata.d.ts +1 -1
  402. package/dist/models/repository-metadata.js +1 -1
  403. package/dist/models/repository-policy-subject.d.ts +1 -1
  404. package/dist/models/repository-policy-subject.js +1 -1
  405. package/dist/models/repository-sort-key.d.ts +1 -1
  406. package/dist/models/repository-sort-key.js +1 -1
  407. package/dist/models/repository-update.d.ts +1 -1
  408. package/dist/models/repository-update.js +1 -1
  409. package/dist/models/repository-user-permissions.d.ts +1 -1
  410. package/dist/models/repository-user-permissions.js +1 -1
  411. package/dist/models/repository.d.ts +1 -1
  412. package/dist/models/repository.js +1 -1
  413. package/dist/models/resources-duration.d.ts +1 -1
  414. package/dist/models/resources-duration.js +1 -1
  415. package/dist/models/role-enum.d.ts +1 -1
  416. package/dist/models/role-enum.js +1 -1
  417. package/dist/models/run-list.d.ts +1 -1
  418. package/dist/models/run-list.js +1 -1
  419. package/dist/models/run-meta.d.ts +1 -1
  420. package/dist/models/run-meta.js +1 -1
  421. package/dist/models/run-progress.d.ts +1 -1
  422. package/dist/models/run-progress.js +1 -1
  423. package/dist/models/run-result-list.d.ts +1 -1
  424. package/dist/models/run-result-list.js +1 -1
  425. package/dist/models/run-status-enum.d.ts +1 -1
  426. package/dist/models/run-status-enum.js +1 -1
  427. package/dist/models/run-status.d.ts +1 -1
  428. package/dist/models/run-status.js +1 -1
  429. package/dist/models/run.d.ts +1 -1
  430. package/dist/models/run.js +1 -1
  431. package/dist/models/s3-upload-request.d.ts +1 -1
  432. package/dist/models/s3-upload-request.js +1 -1
  433. package/dist/models/s3.d.ts +1 -1
  434. package/dist/models/s3.js +1 -1
  435. package/dist/models/sort-enum.d.ts +1 -1
  436. package/dist/models/sort-enum.js +1 -1
  437. package/dist/models/status-type.d.ts +1 -1
  438. package/dist/models/status-type.js +1 -1
  439. package/dist/models/step-array-input.d.ts +1 -1
  440. package/dist/models/step-array-input.js +1 -1
  441. package/dist/models/step-array-output.d.ts +1 -1
  442. package/dist/models/step-array-output.js +1 -1
  443. package/dist/models/step-boolean-input.d.ts +1 -1
  444. package/dist/models/step-boolean-input.js +1 -1
  445. package/dist/models/step-boolean-output.d.ts +1 -1
  446. package/dist/models/step-boolean-output.js +1 -1
  447. package/dist/models/step-file-input.d.ts +1 -1
  448. package/dist/models/step-file-input.js +1 -1
  449. package/dist/models/step-file-output.d.ts +1 -1
  450. package/dist/models/step-file-output.js +1 -1
  451. package/dist/models/step-folder-input.d.ts +1 -1
  452. package/dist/models/step-folder-input.js +1 -1
  453. package/dist/models/step-folder-output.d.ts +1 -1
  454. package/dist/models/step-folder-output.js +1 -1
  455. package/dist/models/step-integer-input.d.ts +1 -1
  456. package/dist/models/step-integer-input.js +1 -1
  457. package/dist/models/step-integer-output.d.ts +1 -1
  458. package/dist/models/step-integer-output.js +1 -1
  459. package/dist/models/step-jsonobject-input.d.ts +1 -1
  460. package/dist/models/step-jsonobject-input.js +1 -1
  461. package/dist/models/step-jsonobject-output.d.ts +1 -1
  462. package/dist/models/step-jsonobject-output.js +1 -1
  463. package/dist/models/step-list.d.ts +1 -1
  464. package/dist/models/step-list.js +1 -1
  465. package/dist/models/step-number-input.d.ts +1 -1
  466. package/dist/models/step-number-input.js +1 -1
  467. package/dist/models/step-number-output.d.ts +1 -1
  468. package/dist/models/step-number-output.js +1 -1
  469. package/dist/models/step-path-input.d.ts +1 -1
  470. package/dist/models/step-path-input.js +1 -1
  471. package/dist/models/step-path-output.d.ts +1 -1
  472. package/dist/models/step-path-output.js +1 -1
  473. package/dist/models/step-status-enum.d.ts +1 -1
  474. package/dist/models/step-status-enum.js +1 -1
  475. package/dist/models/step-status.d.ts +1 -1
  476. package/dist/models/step-status.js +1 -1
  477. package/dist/models/step-string-input.d.ts +1 -1
  478. package/dist/models/step-string-input.js +1 -1
  479. package/dist/models/step-string-output.d.ts +1 -1
  480. package/dist/models/step-string-output.js +1 -1
  481. package/dist/models/subject-type.d.ts +1 -1
  482. package/dist/models/subject-type.js +1 -1
  483. package/dist/models/subscription-create.d.ts +16 -5
  484. package/dist/models/subscription-create.js +1 -1
  485. package/dist/models/{price-recurrence.d.ts → subscription-payment.d.ts} +11 -11
  486. package/dist/models/subscription-payment.js +15 -0
  487. package/dist/models/subscription-plan.d.ts +16 -2
  488. package/dist/models/subscription-plan.js +1 -1
  489. package/dist/models/subscription-update.d.ts +4 -31
  490. package/dist/models/subscription-update.js +1 -1
  491. package/dist/models/subscription.d.ts +26 -37
  492. package/dist/models/subscription.js +1 -1
  493. package/dist/models/task-argument.d.ts +1 -1
  494. package/dist/models/task-argument.js +1 -1
  495. package/dist/models/task-file-reference.d.ts +1 -1
  496. package/dist/models/task-file-reference.js +1 -1
  497. package/dist/models/task-folder-reference.d.ts +1 -1
  498. package/dist/models/task-folder-reference.js +1 -1
  499. package/dist/models/task-path-argument.d.ts +1 -1
  500. package/dist/models/task-path-argument.js +1 -1
  501. package/dist/models/task-path-reference.d.ts +1 -1
  502. package/dist/models/task-path-reference.js +1 -1
  503. package/dist/models/task-path-return.d.ts +1 -1
  504. package/dist/models/task-path-return.js +1 -1
  505. package/dist/models/task-reference.d.ts +1 -1
  506. package/dist/models/task-reference.js +1 -1
  507. package/dist/models/task-return.d.ts +1 -1
  508. package/dist/models/task-return.js +1 -1
  509. package/dist/models/team-create.d.ts +1 -1
  510. package/dist/models/team-create.js +1 -1
  511. package/dist/models/team-list.d.ts +1 -1
  512. package/dist/models/team-list.js +1 -1
  513. package/dist/models/team-member-list.d.ts +1 -1
  514. package/dist/models/team-member-list.js +1 -1
  515. package/dist/models/team-member.d.ts +1 -1
  516. package/dist/models/team-member.js +1 -1
  517. package/dist/models/team-role-enum.d.ts +1 -1
  518. package/dist/models/team-role-enum.js +1 -1
  519. package/dist/models/team-update.d.ts +1 -1
  520. package/dist/models/team-update.js +1 -1
  521. package/dist/models/team.d.ts +1 -1
  522. package/dist/models/team.js +1 -1
  523. package/dist/models/template-function.d.ts +1 -1
  524. package/dist/models/template-function.js +1 -1
  525. package/dist/models/update-accepted.d.ts +1 -1
  526. package/dist/models/update-accepted.js +1 -1
  527. package/dist/models/usage.d.ts +1 -1
  528. package/dist/models/usage.js +1 -1
  529. package/dist/models/user-create.d.ts +1 -1
  530. package/dist/models/user-create.js +1 -1
  531. package/dist/models/user-permission.d.ts +1 -1
  532. package/dist/models/user-permission.js +1 -1
  533. package/dist/models/user-private.d.ts +1 -1
  534. package/dist/models/user-private.js +1 -1
  535. package/dist/models/user-public-list.d.ts +1 -1
  536. package/dist/models/user-public-list.js +1 -1
  537. package/dist/models/user-public.d.ts +1 -1
  538. package/dist/models/user-public.js +1 -1
  539. package/dist/models/user-update.d.ts +1 -1
  540. package/dist/models/user-update.js +1 -1
  541. package/dist/models/validation-error.d.ts +1 -1
  542. package/dist/models/validation-error.js +1 -1
  543. package/dist/models/value-file-reference.d.ts +1 -1
  544. package/dist/models/value-file-reference.js +1 -1
  545. package/dist/models/value-folder-reference.d.ts +1 -1
  546. package/dist/models/value-folder-reference.js +1 -1
  547. package/dist/models/value-list-reference.d.ts +1 -1
  548. package/dist/models/value-list-reference.js +1 -1
  549. package/dist/models/value-reference.d.ts +1 -1
  550. package/dist/models/value-reference.js +1 -1
  551. package/index.ts +1 -1
  552. package/models/accessor.ts +1 -1
  553. package/models/account-public.ts +1 -1
  554. package/models/account-type.ts +1 -1
  555. package/models/activation-list.ts +1 -1
  556. package/models/activation.ts +1 -1
  557. package/models/apitoken-create.ts +1 -1
  558. package/models/apitoken-list.ts +1 -1
  559. package/models/apitoken-private.ts +1 -1
  560. package/models/apitoken.ts +1 -1
  561. package/models/baked-recipe.ts +1 -1
  562. package/models/billing-info.ts +88 -0
  563. package/models/billing-option.ts +55 -0
  564. package/models/body-post-plugin-owner-plugins-post.ts +1 -1
  565. package/models/body-post-recipe-owner-recipes-post.ts +1 -1
  566. package/models/{invoice-status.ts → card-type.ts} +10 -7
  567. package/models/cloud-job-list.ts +1 -1
  568. package/models/cloud-job.ts +1 -1
  569. package/models/created-content.ts +1 -1
  570. package/models/dag.ts +1 -1
  571. package/models/dagarray-input-alias.ts +1 -1
  572. package/models/dagarray-input.ts +1 -1
  573. package/models/dagarray-output-alias.ts +1 -1
  574. package/models/dagarray-output.ts +1 -1
  575. package/models/dagboolean-input-alias.ts +1 -1
  576. package/models/dagboolean-input.ts +1 -1
  577. package/models/dagboolean-output-alias.ts +1 -1
  578. package/models/dagboolean-output.ts +1 -1
  579. package/models/dagfile-input-alias.ts +1 -1
  580. package/models/dagfile-input.ts +1 -1
  581. package/models/dagfile-output-alias.ts +1 -1
  582. package/models/dagfile-output.ts +1 -1
  583. package/models/dagfolder-input-alias.ts +1 -1
  584. package/models/dagfolder-input.ts +1 -1
  585. package/models/dagfolder-output-alias.ts +1 -1
  586. package/models/dagfolder-output.ts +1 -1
  587. package/models/daggeneric-input-alias.ts +1 -1
  588. package/models/daggeneric-input.ts +1 -1
  589. package/models/daggeneric-output-alias.ts +1 -1
  590. package/models/daggeneric-output.ts +1 -1
  591. package/models/daginteger-input-alias.ts +1 -1
  592. package/models/daginteger-input.ts +1 -1
  593. package/models/daginteger-output-alias.ts +1 -1
  594. package/models/daginteger-output.ts +1 -1
  595. package/models/dagjsonobject-input-alias.ts +1 -1
  596. package/models/dagjsonobject-input.ts +1 -1
  597. package/models/dagjsonobject-output-alias.ts +1 -1
  598. package/models/dagjsonobject-output.ts +1 -1
  599. package/models/daglinked-input-alias.ts +1 -1
  600. package/models/daglinked-output-alias.ts +1 -1
  601. package/models/dagnumber-input-alias.ts +1 -1
  602. package/models/dagnumber-input.ts +1 -1
  603. package/models/dagnumber-output-alias.ts +1 -1
  604. package/models/dagnumber-output.ts +1 -1
  605. package/models/dagpath-input-alias.ts +1 -1
  606. package/models/dagpath-input.ts +1 -1
  607. package/models/dagpath-output-alias.ts +1 -1
  608. package/models/dagpath-output.ts +1 -1
  609. package/models/dagstring-input-alias.ts +1 -1
  610. package/models/dagstring-input.ts +1 -1
  611. package/models/dagstring-output-alias.ts +1 -1
  612. package/models/dagstring-output.ts +1 -1
  613. package/models/dagtask-loop.ts +1 -1
  614. package/models/dagtask.ts +1 -1
  615. package/models/daily-usage.ts +1 -1
  616. package/models/dependency-kind.ts +1 -1
  617. package/models/dependency.ts +1 -1
  618. package/models/docker-config.ts +1 -1
  619. package/models/file-meta.ts +1 -1
  620. package/models/file-reference.ts +1 -1
  621. package/models/folder-reference.ts +1 -1
  622. package/models/function-array-input.ts +1 -1
  623. package/models/function-array-output.ts +1 -1
  624. package/models/function-boolean-input.ts +1 -1
  625. package/models/function-boolean-output.ts +1 -1
  626. package/models/function-file-input.ts +1 -1
  627. package/models/function-file-output.ts +1 -1
  628. package/models/function-folder-input.ts +1 -1
  629. package/models/function-folder-output.ts +1 -1
  630. package/models/function-integer-input.ts +1 -1
  631. package/models/function-integer-output.ts +1 -1
  632. package/models/function-jsonobject-input.ts +1 -1
  633. package/models/function-jsonobject-output.ts +1 -1
  634. package/models/function-number-input.ts +1 -1
  635. package/models/function-number-output.ts +1 -1
  636. package/models/function-path-input.ts +1 -1
  637. package/models/function-path-output.ts +1 -1
  638. package/models/function-string-input.ts +1 -1
  639. package/models/function-string-output.ts +1 -1
  640. package/models/function.ts +1 -1
  641. package/models/http.ts +1 -1
  642. package/models/httpvalidation-error.ts +1 -1
  643. package/models/index.ts +9 -36
  644. package/models/input-file-reference.ts +1 -1
  645. package/models/input-folder-reference.ts +1 -1
  646. package/models/input-path-reference.ts +1 -1
  647. package/models/input-reference.ts +1 -1
  648. package/models/ioalias-handler.ts +1 -1
  649. package/models/item-reference.ts +1 -1
  650. package/models/item-type.ts +1 -1
  651. package/models/job-argument.ts +1 -1
  652. package/models/job-path-argument.ts +1 -1
  653. package/models/job-status-enum.ts +1 -1
  654. package/models/job-status.ts +1 -1
  655. package/models/job.ts +1 -1
  656. package/models/key-request.ts +1 -1
  657. package/models/license-pool-access-policy-list.ts +1 -1
  658. package/models/license-pool-access-policy.ts +1 -1
  659. package/models/license-pool-list.ts +1 -1
  660. package/models/license-pool-policy-subject-list.ts +1 -1
  661. package/models/license-pool-policy-subject.ts +1 -1
  662. package/models/license-pool-public.ts +1 -1
  663. package/models/license-pool-update.ts +1 -1
  664. package/models/license-public.ts +1 -1
  665. package/models/license-type.ts +1 -1
  666. package/models/license.ts +1 -1
  667. package/models/local-config.ts +1 -1
  668. package/models/location.ts +1 -1
  669. package/models/maintainer.ts +1 -1
  670. package/models/meta-data.ts +1 -1
  671. package/models/metadata.ts +1 -1
  672. package/models/new-plugin-package.ts +1 -1
  673. package/models/new-recipe-package.ts +1 -1
  674. package/models/organization-create.ts +1 -1
  675. package/models/organization-list.ts +1 -1
  676. package/models/organization-member-list.ts +1 -1
  677. package/models/organization-member.ts +1 -1
  678. package/models/organization-role-enum.ts +1 -1
  679. package/models/organization-update.ts +1 -1
  680. package/models/organization.ts +1 -1
  681. package/models/package-sort-key.ts +1 -1
  682. package/models/package-version.ts +1 -1
  683. package/models/{coupon-duration.ts → paused-reason.ts} +4 -5
  684. package/models/{payment-create.ts → pay-link.ts} +6 -6
  685. package/models/{price-type.ts → payment-method-enum.ts} +3 -4
  686. package/models/payment-method.ts +10 -22
  687. package/models/{coupon.ts → payment.ts} +24 -25
  688. package/models/permission.ts +1 -1
  689. package/models/{payment-method-type.ts → plan-type.ts} +6 -4
  690. package/models/plugin-config.ts +1 -1
  691. package/models/plugin-package-list.ts +1 -1
  692. package/models/plugin-package.ts +1 -1
  693. package/models/plugin.ts +1 -1
  694. package/models/policy-subject.ts +1 -1
  695. package/models/project-access-policy-list.ts +1 -1
  696. package/models/project-access-policy.ts +1 -1
  697. package/models/project-create.ts +1 -1
  698. package/models/project-folder.ts +1 -1
  699. package/models/project-list.ts +1 -1
  700. package/models/project-policy-subject.ts +1 -1
  701. package/models/project-recipe-filter-list.ts +1 -1
  702. package/models/project-recipe-filter.ts +1 -1
  703. package/models/project-sort-key.ts +1 -1
  704. package/models/project-update.ts +1 -1
  705. package/models/project.ts +1 -1
  706. package/models/public-account-list.ts +1 -1
  707. package/models/quota-list.ts +1 -1
  708. package/models/quota-plan.ts +11 -4
  709. package/models/quota-type.ts +1 -1
  710. package/models/quota.ts +1 -1
  711. package/models/recipe-interface-list.ts +1 -1
  712. package/models/recipe-interface.ts +1 -1
  713. package/models/recipe-package-list.ts +1 -1
  714. package/models/recipe-package.ts +1 -1
  715. package/models/recipe.ts +1 -1
  716. package/models/repository-access-policy-list.ts +1 -1
  717. package/models/repository-access-policy.ts +1 -1
  718. package/models/repository-create.ts +1 -1
  719. package/models/repository-index.ts +1 -1
  720. package/models/repository-list.ts +1 -1
  721. package/models/repository-metadata.ts +1 -1
  722. package/models/repository-policy-subject.ts +1 -1
  723. package/models/repository-sort-key.ts +1 -1
  724. package/models/repository-update.ts +1 -1
  725. package/models/repository-user-permissions.ts +1 -1
  726. package/models/repository.ts +1 -1
  727. package/models/resources-duration.ts +1 -1
  728. package/models/role-enum.ts +1 -1
  729. package/models/run-list.ts +1 -1
  730. package/models/run-meta.ts +1 -1
  731. package/models/run-progress.ts +1 -1
  732. package/models/run-result-list.ts +1 -1
  733. package/models/run-status-enum.ts +1 -1
  734. package/models/run-status.ts +1 -1
  735. package/models/run.ts +1 -1
  736. package/models/s3-upload-request.ts +1 -1
  737. package/models/s3.ts +1 -1
  738. package/models/sort-enum.ts +1 -1
  739. package/models/status-type.ts +1 -1
  740. package/models/step-array-input.ts +1 -1
  741. package/models/step-array-output.ts +1 -1
  742. package/models/step-boolean-input.ts +1 -1
  743. package/models/step-boolean-output.ts +1 -1
  744. package/models/step-file-input.ts +1 -1
  745. package/models/step-file-output.ts +1 -1
  746. package/models/step-folder-input.ts +1 -1
  747. package/models/step-folder-output.ts +1 -1
  748. package/models/step-integer-input.ts +1 -1
  749. package/models/step-integer-output.ts +1 -1
  750. package/models/step-jsonobject-input.ts +1 -1
  751. package/models/step-jsonobject-output.ts +1 -1
  752. package/models/step-list.ts +1 -1
  753. package/models/step-number-input.ts +1 -1
  754. package/models/step-number-output.ts +1 -1
  755. package/models/step-path-input.ts +1 -1
  756. package/models/step-path-output.ts +1 -1
  757. package/models/step-status-enum.ts +1 -1
  758. package/models/step-status.ts +1 -1
  759. package/models/step-string-input.ts +1 -1
  760. package/models/step-string-output.ts +1 -1
  761. package/models/subject-type.ts +1 -1
  762. package/models/subscription-create.ts +16 -5
  763. package/models/{price-recurrence.ts → subscription-payment.ts} +11 -11
  764. package/models/subscription-plan.ts +16 -2
  765. package/models/subscription-update.ts +4 -31
  766. package/models/subscription.ts +26 -37
  767. package/models/task-argument.ts +1 -1
  768. package/models/task-file-reference.ts +1 -1
  769. package/models/task-folder-reference.ts +1 -1
  770. package/models/task-path-argument.ts +1 -1
  771. package/models/task-path-reference.ts +1 -1
  772. package/models/task-path-return.ts +1 -1
  773. package/models/task-reference.ts +1 -1
  774. package/models/task-return.ts +1 -1
  775. package/models/team-create.ts +1 -1
  776. package/models/team-list.ts +1 -1
  777. package/models/team-member-list.ts +1 -1
  778. package/models/team-member.ts +1 -1
  779. package/models/team-role-enum.ts +1 -1
  780. package/models/team-update.ts +1 -1
  781. package/models/team.ts +1 -1
  782. package/models/template-function.ts +1 -1
  783. package/models/update-accepted.ts +1 -1
  784. package/models/usage.ts +1 -1
  785. package/models/user-create.ts +1 -1
  786. package/models/user-permission.ts +1 -1
  787. package/models/user-private.ts +1 -1
  788. package/models/user-public-list.ts +1 -1
  789. package/models/user-public.ts +1 -1
  790. package/models/user-update.ts +1 -1
  791. package/models/validation-error.ts +1 -1
  792. package/models/value-file-reference.ts +1 -1
  793. package/models/value-folder-reference.ts +1 -1
  794. package/models/value-list-reference.ts +1 -1
  795. package/models/value-reference.ts +1 -1
  796. package/package.json +2 -2
  797. package/api/payments-api.ts +0 -2204
  798. package/dist/api/payments-api.d.ts +0 -975
  799. package/dist/api/payments-api.js +0 -1761
  800. package/dist/models/card-public.d.ts +0 -36
  801. package/dist/models/card.d.ts +0 -54
  802. package/dist/models/delete-subscription-item.d.ts +0 -49
  803. package/dist/models/discount-amount.d.ts +0 -30
  804. package/dist/models/discount-amount.js +0 -15
  805. package/dist/models/discount.d.ts +0 -55
  806. package/dist/models/discount.js +0 -15
  807. package/dist/models/inventory.d.ts +0 -25
  808. package/dist/models/inventory.js +0 -15
  809. package/dist/models/invoice-list.d.ts +0 -31
  810. package/dist/models/invoice-list.js +0 -15
  811. package/dist/models/invoice-preview.d.ts +0 -139
  812. package/dist/models/invoice-preview.js +0 -15
  813. package/dist/models/invoice-status-transitions.d.ts +0 -42
  814. package/dist/models/invoice-status-transitions.js +0 -15
  815. package/dist/models/invoice-status.js +0 -29
  816. package/dist/models/invoice.d.ts +0 -144
  817. package/dist/models/invoice.js +0 -15
  818. package/dist/models/line-item-list.d.ts +0 -31
  819. package/dist/models/line-item-list.js +0 -15
  820. package/dist/models/line-item.d.ts +0 -80
  821. package/dist/models/line-item.js +0 -15
  822. package/dist/models/new-subscription-item.d.ts +0 -31
  823. package/dist/models/new-subscription-item.js +0 -15
  824. package/dist/models/payment-create.js +0 -15
  825. package/dist/models/payment-intent.d.ts +0 -24
  826. package/dist/models/payment-intent.js +0 -15
  827. package/dist/models/payment-method-list.d.ts +0 -55
  828. package/dist/models/payment-method-list.js +0 -15
  829. package/dist/models/payment-method-type.d.ts +0 -19
  830. package/dist/models/payment-setup.d.ts +0 -24
  831. package/dist/models/payment-setup.js +0 -15
  832. package/dist/models/period.d.ts +0 -30
  833. package/dist/models/period.js +0 -15
  834. package/dist/models/pollination-subscription.d.ts +0 -62
  835. package/dist/models/pollination-subscription.js +0 -15
  836. package/dist/models/price-recurrence.js +0 -15
  837. package/dist/models/price-tier.d.ts +0 -48
  838. package/dist/models/price-tier.js +0 -15
  839. package/dist/models/price.d.ts +0 -81
  840. package/dist/models/price.js +0 -15
  841. package/dist/models/product-family.d.ts +0 -55
  842. package/dist/models/product-family.js +0 -15
  843. package/dist/models/quota-extension.d.ts +0 -49
  844. package/dist/models/quota-extension.js +0 -15
  845. package/dist/models/status.d.ts +0 -24
  846. package/dist/models/status.js +0 -15
  847. package/dist/models/subscribe.d.ts +0 -25
  848. package/dist/models/subscribe.js +0 -15
  849. package/dist/models/subscription-item-list.d.ts +0 -32
  850. package/dist/models/subscription-item-list.js +0 -15
  851. package/dist/models/subscription-item.d.ts +0 -43
  852. package/dist/models/subscription-item.js +0 -15
  853. package/dist/models/tax-amount.d.ts +0 -36
  854. package/dist/models/tax-amount.js +0 -15
  855. package/dist/models/update-invoice-preview.d.ts +0 -45
  856. package/dist/models/update-invoice-preview.js +0 -15
  857. package/dist/models/update-payment-method.d.ts +0 -24
  858. package/dist/models/update-payment-method.js +0 -15
  859. package/models/card-public.ts +0 -43
  860. package/models/card.ts +0 -61
  861. package/models/delete-subscription-item.ts +0 -56
  862. package/models/discount-amount.ts +0 -37
  863. package/models/discount.ts +0 -62
  864. package/models/inventory.ts +0 -32
  865. package/models/invoice-list.ts +0 -38
  866. package/models/invoice-preview.ts +0 -146
  867. package/models/invoice-status-transitions.ts +0 -49
  868. package/models/invoice.ts +0 -151
  869. package/models/line-item-list.ts +0 -38
  870. package/models/line-item.ts +0 -87
  871. package/models/new-subscription-item.ts +0 -38
  872. package/models/payment-intent.ts +0 -31
  873. package/models/payment-method-list.ts +0 -62
  874. package/models/payment-setup.ts +0 -31
  875. package/models/period.ts +0 -37
  876. package/models/pollination-subscription.ts +0 -69
  877. package/models/price-tier.ts +0 -55
  878. package/models/price.ts +0 -88
  879. package/models/product-family.ts +0 -62
  880. package/models/quota-extension.ts +0 -56
  881. package/models/status.ts +0 -31
  882. package/models/subscribe.ts +0 -32
  883. package/models/subscription-item-list.ts +0 -39
  884. package/models/subscription-item.ts +0 -50
  885. package/models/tax-amount.ts +0 -43
  886. package/models/update-invoice-preview.ts +0 -52
  887. package/models/update-payment-method.ts +0 -31
@@ -1,2204 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * pollination-server
5
- * Pollination Server OpenAPI Definition
6
- *
7
- * The version of the OpenAPI document: 0.25.0
8
- * Contact: info@pollination.cloud
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
21
- // @ts-ignore
22
- import { CreatedContent } from '../models';
23
- // @ts-ignore
24
- import { HTTPValidationError } from '../models';
25
- // @ts-ignore
26
- import { Inventory } from '../models';
27
- // @ts-ignore
28
- import { InvoiceList } from '../models';
29
- // @ts-ignore
30
- import { InvoicePreview } from '../models';
31
- // @ts-ignore
32
- import { PaymentCreate } from '../models';
33
- // @ts-ignore
34
- import { PaymentIntent } from '../models';
35
- // @ts-ignore
36
- import { PaymentMethod } from '../models';
37
- // @ts-ignore
38
- import { PaymentMethodList } from '../models';
39
- // @ts-ignore
40
- import { PaymentSetup } from '../models';
41
- // @ts-ignore
42
- import { Status } from '../models';
43
- // @ts-ignore
44
- import { Subscribe } from '../models';
45
- // @ts-ignore
46
- import { Subscription } from '../models';
47
- // @ts-ignore
48
- import { SubscriptionCreate } from '../models';
49
- // @ts-ignore
50
- import { SubscriptionUpdate } from '../models';
51
- // @ts-ignore
52
- import { UpdateInvoicePreview } from '../models';
53
- // @ts-ignore
54
- import { UpdatePaymentMethod } from '../models';
55
- /**
56
- * PaymentsApi - axios parameter creator
57
- * @export
58
- */
59
- export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
60
- return {
61
- /**
62
- *
63
- * @summary Cancel Subscription
64
- * @param {string} accountName
65
- * @param {*} [options] Override http request option.
66
- * @throws {RequiredError}
67
- */
68
- cancelSubscription: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
69
- // verify required parameter 'accountName' is not null or undefined
70
- if (accountName === null || accountName === undefined) {
71
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling cancelSubscription.');
72
- }
73
- const localVarPath = `/payments/{account_name}/subscription`
74
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
75
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
76
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
77
- let baseOptions;
78
- if (configuration) {
79
- baseOptions = configuration.baseOptions;
80
- }
81
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
82
- const localVarHeaderParameter = {} as any;
83
- const localVarQueryParameter = {} as any;
84
-
85
- // authentication APIKeyAuth required
86
- if (configuration && configuration.apiKey) {
87
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
88
- ? await configuration.apiKey("x-pollination-token")
89
- : await configuration.apiKey;
90
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
91
- }
92
-
93
- // authentication JWTAuth required
94
- // http bearer authentication required
95
- if (configuration && configuration.accessToken) {
96
- const accessToken = typeof configuration.accessToken === 'function'
97
- ? await configuration.accessToken()
98
- : await configuration.accessToken;
99
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
100
- }
101
-
102
-
103
-
104
- const query = new URLSearchParams(localVarUrlObj.search);
105
- for (const key in localVarQueryParameter) {
106
- query.set(key, localVarQueryParameter[key]);
107
- }
108
- for (const key in options.query) {
109
- query.set(key, options.query[key]);
110
- }
111
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
112
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
113
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
114
-
115
- return {
116
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
117
- options: localVarRequestOptions,
118
- };
119
- },
120
- /**
121
- *
122
- * @summary Add Payment Method
123
- * @param {string} accountName
124
- * @param {PaymentCreate} paymentCreate
125
- * @param {*} [options] Override http request option.
126
- * @throws {RequiredError}
127
- */
128
- createPaymentMethod: async (accountName: string, paymentCreate: PaymentCreate, options: any = {}): Promise<RequestArgs> => {
129
- // verify required parameter 'accountName' is not null or undefined
130
- if (accountName === null || accountName === undefined) {
131
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling createPaymentMethod.');
132
- }
133
- // verify required parameter 'paymentCreate' is not null or undefined
134
- if (paymentCreate === null || paymentCreate === undefined) {
135
- throw new RequiredError('paymentCreate','Required parameter paymentCreate was null or undefined when calling createPaymentMethod.');
136
- }
137
- const localVarPath = `/payments/{account_name}/methods`
138
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
139
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
140
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
141
- let baseOptions;
142
- if (configuration) {
143
- baseOptions = configuration.baseOptions;
144
- }
145
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
146
- const localVarHeaderParameter = {} as any;
147
- const localVarQueryParameter = {} as any;
148
-
149
- // authentication APIKeyAuth required
150
- if (configuration && configuration.apiKey) {
151
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
152
- ? await configuration.apiKey("x-pollination-token")
153
- : await configuration.apiKey;
154
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
155
- }
156
-
157
- // authentication JWTAuth required
158
- // http bearer authentication required
159
- if (configuration && configuration.accessToken) {
160
- const accessToken = typeof configuration.accessToken === 'function'
161
- ? await configuration.accessToken()
162
- : await configuration.accessToken;
163
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
164
- }
165
-
166
-
167
-
168
- localVarHeaderParameter['Content-Type'] = 'application/json';
169
-
170
- const query = new URLSearchParams(localVarUrlObj.search);
171
- for (const key in localVarQueryParameter) {
172
- query.set(key, localVarQueryParameter[key]);
173
- }
174
- for (const key in options.query) {
175
- query.set(key, options.query[key]);
176
- }
177
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
178
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
180
- const needsSerialization = (typeof paymentCreate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
181
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(paymentCreate !== undefined ? paymentCreate : {}) : (paymentCreate || "");
182
-
183
- return {
184
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
185
- options: localVarRequestOptions,
186
- };
187
- },
188
- /**
189
- *
190
- * @summary Create Subscription
191
- * @param {string} accountName
192
- * @param {SubscriptionCreate} subscriptionCreate
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- createSubscription: async (accountName: string, subscriptionCreate: SubscriptionCreate, options: any = {}): Promise<RequestArgs> => {
197
- // verify required parameter 'accountName' is not null or undefined
198
- if (accountName === null || accountName === undefined) {
199
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling createSubscription.');
200
- }
201
- // verify required parameter 'subscriptionCreate' is not null or undefined
202
- if (subscriptionCreate === null || subscriptionCreate === undefined) {
203
- throw new RequiredError('subscriptionCreate','Required parameter subscriptionCreate was null or undefined when calling createSubscription.');
204
- }
205
- const localVarPath = `/payments/{account_name}/subscription`
206
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
207
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
209
- let baseOptions;
210
- if (configuration) {
211
- baseOptions = configuration.baseOptions;
212
- }
213
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
214
- const localVarHeaderParameter = {} as any;
215
- const localVarQueryParameter = {} as any;
216
-
217
- // authentication APIKeyAuth required
218
- if (configuration && configuration.apiKey) {
219
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
220
- ? await configuration.apiKey("x-pollination-token")
221
- : await configuration.apiKey;
222
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
223
- }
224
-
225
- // authentication JWTAuth required
226
- // http bearer authentication required
227
- if (configuration && configuration.accessToken) {
228
- const accessToken = typeof configuration.accessToken === 'function'
229
- ? await configuration.accessToken()
230
- : await configuration.accessToken;
231
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
232
- }
233
-
234
-
235
-
236
- localVarHeaderParameter['Content-Type'] = 'application/json';
237
-
238
- const query = new URLSearchParams(localVarUrlObj.search);
239
- for (const key in localVarQueryParameter) {
240
- query.set(key, localVarQueryParameter[key]);
241
- }
242
- for (const key in options.query) {
243
- query.set(key, options.query[key]);
244
- }
245
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
246
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
248
- const needsSerialization = (typeof subscriptionCreate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
249
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionCreate !== undefined ? subscriptionCreate : {}) : (subscriptionCreate || "");
250
-
251
- return {
252
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
253
- options: localVarRequestOptions,
254
- };
255
- },
256
- /**
257
- *
258
- * @summary Delete Payment Method
259
- * @param {string} accountName
260
- * @param {string} id
261
- * @param {*} [options] Override http request option.
262
- * @throws {RequiredError}
263
- */
264
- deletePaymentMethod: async (accountName: string, id: string, options: any = {}): Promise<RequestArgs> => {
265
- // verify required parameter 'accountName' is not null or undefined
266
- if (accountName === null || accountName === undefined) {
267
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling deletePaymentMethod.');
268
- }
269
- // verify required parameter 'id' is not null or undefined
270
- if (id === null || id === undefined) {
271
- throw new RequiredError('id','Required parameter id was null or undefined when calling deletePaymentMethod.');
272
- }
273
- const localVarPath = `/payments/{account_name}/methods/{id}`
274
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)))
275
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
276
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
278
- let baseOptions;
279
- if (configuration) {
280
- baseOptions = configuration.baseOptions;
281
- }
282
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
283
- const localVarHeaderParameter = {} as any;
284
- const localVarQueryParameter = {} as any;
285
-
286
- // authentication APIKeyAuth required
287
- if (configuration && configuration.apiKey) {
288
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
289
- ? await configuration.apiKey("x-pollination-token")
290
- : await configuration.apiKey;
291
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
292
- }
293
-
294
- // authentication JWTAuth required
295
- // http bearer authentication required
296
- if (configuration && configuration.accessToken) {
297
- const accessToken = typeof configuration.accessToken === 'function'
298
- ? await configuration.accessToken()
299
- : await configuration.accessToken;
300
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
301
- }
302
-
303
-
304
-
305
- const query = new URLSearchParams(localVarUrlObj.search);
306
- for (const key in localVarQueryParameter) {
307
- query.set(key, localVarQueryParameter[key]);
308
- }
309
- for (const key in options.query) {
310
- query.set(key, options.query[key]);
311
- }
312
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
313
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
315
-
316
- return {
317
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
318
- options: localVarRequestOptions,
319
- };
320
- },
321
- /**
322
- *
323
- * @summary Get Default Payment Method
324
- * @param {string} accountName
325
- * @param {*} [options] Override http request option.
326
- * @throws {RequiredError}
327
- */
328
- getDefaultPaymentMethod: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
329
- // verify required parameter 'accountName' is not null or undefined
330
- if (accountName === null || accountName === undefined) {
331
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getDefaultPaymentMethod.');
332
- }
333
- const localVarPath = `/payments/{account_name}/methods/default`
334
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
335
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
336
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
337
- let baseOptions;
338
- if (configuration) {
339
- baseOptions = configuration.baseOptions;
340
- }
341
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
342
- const localVarHeaderParameter = {} as any;
343
- const localVarQueryParameter = {} as any;
344
-
345
- // authentication APIKeyAuth required
346
- if (configuration && configuration.apiKey) {
347
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
348
- ? await configuration.apiKey("x-pollination-token")
349
- : await configuration.apiKey;
350
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
351
- }
352
-
353
- // authentication JWTAuth required
354
- // http bearer authentication required
355
- if (configuration && configuration.accessToken) {
356
- const accessToken = typeof configuration.accessToken === 'function'
357
- ? await configuration.accessToken()
358
- : await configuration.accessToken;
359
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
360
- }
361
-
362
-
363
-
364
- const query = new URLSearchParams(localVarUrlObj.search);
365
- for (const key in localVarQueryParameter) {
366
- query.set(key, localVarQueryParameter[key]);
367
- }
368
- for (const key in options.query) {
369
- query.set(key, options.query[key]);
370
- }
371
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
372
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
373
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
374
-
375
- return {
376
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
377
- options: localVarRequestOptions,
378
- };
379
- },
380
- /**
381
- *
382
- * @summary Get Failed Payment
383
- * @param {string} accountName
384
- * @param {*} [options] Override http request option.
385
- * @throws {RequiredError}
386
- */
387
- getFailedPayment: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
388
- // verify required parameter 'accountName' is not null or undefined
389
- if (accountName === null || accountName === undefined) {
390
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getFailedPayment.');
391
- }
392
- const localVarPath = `/payments/{account_name}/failed`
393
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
394
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
395
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
396
- let baseOptions;
397
- if (configuration) {
398
- baseOptions = configuration.baseOptions;
399
- }
400
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
401
- const localVarHeaderParameter = {} as any;
402
- const localVarQueryParameter = {} as any;
403
-
404
- // authentication APIKeyAuth required
405
- if (configuration && configuration.apiKey) {
406
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
407
- ? await configuration.apiKey("x-pollination-token")
408
- : await configuration.apiKey;
409
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
410
- }
411
-
412
- // authentication JWTAuth required
413
- // http bearer authentication required
414
- if (configuration && configuration.accessToken) {
415
- const accessToken = typeof configuration.accessToken === 'function'
416
- ? await configuration.accessToken()
417
- : await configuration.accessToken;
418
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
419
- }
420
-
421
-
422
-
423
- const query = new URLSearchParams(localVarUrlObj.search);
424
- for (const key in localVarQueryParameter) {
425
- query.set(key, localVarQueryParameter[key]);
426
- }
427
- for (const key in options.query) {
428
- query.set(key, options.query[key]);
429
- }
430
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
431
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
432
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
433
-
434
- return {
435
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
436
- options: localVarRequestOptions,
437
- };
438
- },
439
- /**
440
- *
441
- * @summary Get Inventory
442
- * @param {string} accountName
443
- * @param {*} [options] Override http request option.
444
- * @throws {RequiredError}
445
- */
446
- getInventory: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
447
- // verify required parameter 'accountName' is not null or undefined
448
- if (accountName === null || accountName === undefined) {
449
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getInventory.');
450
- }
451
- const localVarPath = `/payments/{account_name}/inventory`
452
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
453
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
454
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
455
- let baseOptions;
456
- if (configuration) {
457
- baseOptions = configuration.baseOptions;
458
- }
459
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
460
- const localVarHeaderParameter = {} as any;
461
- const localVarQueryParameter = {} as any;
462
-
463
- // authentication APIKeyAuth required
464
- if (configuration && configuration.apiKey) {
465
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
466
- ? await configuration.apiKey("x-pollination-token")
467
- : await configuration.apiKey;
468
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
469
- }
470
-
471
- // authentication JWTAuth required
472
- // http bearer authentication required
473
- if (configuration && configuration.accessToken) {
474
- const accessToken = typeof configuration.accessToken === 'function'
475
- ? await configuration.accessToken()
476
- : await configuration.accessToken;
477
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
478
- }
479
-
480
-
481
-
482
- const query = new URLSearchParams(localVarUrlObj.search);
483
- for (const key in localVarQueryParameter) {
484
- query.set(key, localVarQueryParameter[key]);
485
- }
486
- for (const key in options.query) {
487
- query.set(key, options.query[key]);
488
- }
489
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
490
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
492
-
493
- return {
494
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
495
- options: localVarRequestOptions,
496
- };
497
- },
498
- /**
499
- *
500
- * @summary Get Invoice List
501
- * @param {string} accountName
502
- * @param {string} [startingAfter]
503
- * @param {string} [endingBefore]
504
- * @param {number} [limit]
505
- * @param {number} [perPage] Number of items per page
506
- * @param {*} [options] Override http request option.
507
- * @throws {RequiredError}
508
- */
509
- getInvoiceList: async (accountName: string, startingAfter?: string, endingBefore?: string, limit?: number, perPage?: number, options: any = {}): Promise<RequestArgs> => {
510
- // verify required parameter 'accountName' is not null or undefined
511
- if (accountName === null || accountName === undefined) {
512
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getInvoiceList.');
513
- }
514
- const localVarPath = `/payments/{account_name}/invoices`
515
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
516
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
517
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
518
- let baseOptions;
519
- if (configuration) {
520
- baseOptions = configuration.baseOptions;
521
- }
522
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
523
- const localVarHeaderParameter = {} as any;
524
- const localVarQueryParameter = {} as any;
525
-
526
- // authentication APIKeyAuth required
527
- if (configuration && configuration.apiKey) {
528
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
529
- ? await configuration.apiKey("x-pollination-token")
530
- : await configuration.apiKey;
531
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
532
- }
533
-
534
- // authentication JWTAuth required
535
- // http bearer authentication required
536
- if (configuration && configuration.accessToken) {
537
- const accessToken = typeof configuration.accessToken === 'function'
538
- ? await configuration.accessToken()
539
- : await configuration.accessToken;
540
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
541
- }
542
-
543
- if (startingAfter !== undefined) {
544
- localVarQueryParameter['starting_after'] = startingAfter;
545
- }
546
-
547
- if (endingBefore !== undefined) {
548
- localVarQueryParameter['ending_before'] = endingBefore;
549
- }
550
-
551
- if (limit !== undefined) {
552
- localVarQueryParameter['limit'] = limit;
553
- }
554
-
555
- if (perPage !== undefined) {
556
- localVarQueryParameter['per-page'] = perPage;
557
- }
558
-
559
-
560
-
561
- const query = new URLSearchParams(localVarUrlObj.search);
562
- for (const key in localVarQueryParameter) {
563
- query.set(key, localVarQueryParameter[key]);
564
- }
565
- for (const key in options.query) {
566
- query.set(key, options.query[key]);
567
- }
568
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
569
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
571
-
572
- return {
573
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
574
- options: localVarRequestOptions,
575
- };
576
- },
577
- /**
578
- *
579
- * @summary Get Next Invoice
580
- * @param {string} accountName
581
- * @param {*} [options] Override http request option.
582
- * @throws {RequiredError}
583
- */
584
- getNextInvoice: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
585
- // verify required parameter 'accountName' is not null or undefined
586
- if (accountName === null || accountName === undefined) {
587
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getNextInvoice.');
588
- }
589
- const localVarPath = `/payments/{account_name}/invoices/next`
590
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
591
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
592
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
593
- let baseOptions;
594
- if (configuration) {
595
- baseOptions = configuration.baseOptions;
596
- }
597
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
598
- const localVarHeaderParameter = {} as any;
599
- const localVarQueryParameter = {} as any;
600
-
601
- // authentication APIKeyAuth required
602
- if (configuration && configuration.apiKey) {
603
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
604
- ? await configuration.apiKey("x-pollination-token")
605
- : await configuration.apiKey;
606
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
607
- }
608
-
609
- // authentication JWTAuth required
610
- // http bearer authentication required
611
- if (configuration && configuration.accessToken) {
612
- const accessToken = typeof configuration.accessToken === 'function'
613
- ? await configuration.accessToken()
614
- : await configuration.accessToken;
615
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
616
- }
617
-
618
-
619
-
620
- const query = new URLSearchParams(localVarUrlObj.search);
621
- for (const key in localVarQueryParameter) {
622
- query.set(key, localVarQueryParameter[key]);
623
- }
624
- for (const key in options.query) {
625
- query.set(key, options.query[key]);
626
- }
627
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
628
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
630
-
631
- return {
632
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
633
- options: localVarRequestOptions,
634
- };
635
- },
636
- /**
637
- *
638
- * @summary Get Status
639
- * @param {string} accountName
640
- * @param {*} [options] Override http request option.
641
- * @throws {RequiredError}
642
- */
643
- getStatus: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
644
- // verify required parameter 'accountName' is not null or undefined
645
- if (accountName === null || accountName === undefined) {
646
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getStatus.');
647
- }
648
- const localVarPath = `/payments/{account_name}/status`
649
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
650
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
651
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
652
- let baseOptions;
653
- if (configuration) {
654
- baseOptions = configuration.baseOptions;
655
- }
656
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
657
- const localVarHeaderParameter = {} as any;
658
- const localVarQueryParameter = {} as any;
659
-
660
- // authentication APIKeyAuth required
661
- if (configuration && configuration.apiKey) {
662
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
663
- ? await configuration.apiKey("x-pollination-token")
664
- : await configuration.apiKey;
665
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
666
- }
667
-
668
- // authentication JWTAuth required
669
- // http bearer authentication required
670
- if (configuration && configuration.accessToken) {
671
- const accessToken = typeof configuration.accessToken === 'function'
672
- ? await configuration.accessToken()
673
- : await configuration.accessToken;
674
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
675
- }
676
-
677
-
678
-
679
- const query = new URLSearchParams(localVarUrlObj.search);
680
- for (const key in localVarQueryParameter) {
681
- query.set(key, localVarQueryParameter[key]);
682
- }
683
- for (const key in options.query) {
684
- query.set(key, options.query[key]);
685
- }
686
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
687
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
688
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
689
-
690
- return {
691
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
692
- options: localVarRequestOptions,
693
- };
694
- },
695
- /**
696
- *
697
- * @summary Get Subscription
698
- * @param {string} accountName
699
- * @param {*} [options] Override http request option.
700
- * @throws {RequiredError}
701
- */
702
- getSubscription: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
703
- // verify required parameter 'accountName' is not null or undefined
704
- if (accountName === null || accountName === undefined) {
705
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getSubscription.');
706
- }
707
- const localVarPath = `/payments/{account_name}/subscription`
708
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
709
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
710
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
711
- let baseOptions;
712
- if (configuration) {
713
- baseOptions = configuration.baseOptions;
714
- }
715
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
716
- const localVarHeaderParameter = {} as any;
717
- const localVarQueryParameter = {} as any;
718
-
719
- // authentication APIKeyAuth required
720
- if (configuration && configuration.apiKey) {
721
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
722
- ? await configuration.apiKey("x-pollination-token")
723
- : await configuration.apiKey;
724
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
725
- }
726
-
727
- // authentication JWTAuth required
728
- // http bearer authentication required
729
- if (configuration && configuration.accessToken) {
730
- const accessToken = typeof configuration.accessToken === 'function'
731
- ? await configuration.accessToken()
732
- : await configuration.accessToken;
733
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
734
- }
735
-
736
-
737
-
738
- const query = new URLSearchParams(localVarUrlObj.search);
739
- for (const key in localVarQueryParameter) {
740
- query.set(key, localVarQueryParameter[key]);
741
- }
742
- for (const key in options.query) {
743
- query.set(key, options.query[key]);
744
- }
745
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
746
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
747
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
748
-
749
- return {
750
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
751
- options: localVarRequestOptions,
752
- };
753
- },
754
- /**
755
- *
756
- * @summary Get Unfiltered Inventory
757
- * @param {*} [options] Override http request option.
758
- * @throws {RequiredError}
759
- */
760
- getUnfilteredInventory: async (options: any = {}): Promise<RequestArgs> => {
761
- const localVarPath = `/payments/inventory`;
762
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
763
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
764
- let baseOptions;
765
- if (configuration) {
766
- baseOptions = configuration.baseOptions;
767
- }
768
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
769
- const localVarHeaderParameter = {} as any;
770
- const localVarQueryParameter = {} as any;
771
-
772
-
773
-
774
- const query = new URLSearchParams(localVarUrlObj.search);
775
- for (const key in localVarQueryParameter) {
776
- query.set(key, localVarQueryParameter[key]);
777
- }
778
- for (const key in options.query) {
779
- query.set(key, options.query[key]);
780
- }
781
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
782
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
783
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
784
-
785
- return {
786
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
787
- options: localVarRequestOptions,
788
- };
789
- },
790
- /**
791
- *
792
- * @summary Get Upcoming Subscription
793
- * @param {string} accountName
794
- * @param {*} [options] Override http request option.
795
- * @throws {RequiredError}
796
- */
797
- getUpcomingSubscription: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
798
- // verify required parameter 'accountName' is not null or undefined
799
- if (accountName === null || accountName === undefined) {
800
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling getUpcomingSubscription.');
801
- }
802
- const localVarPath = `/payments/{account_name}/subscription/upcoming`
803
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
804
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
805
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
806
- let baseOptions;
807
- if (configuration) {
808
- baseOptions = configuration.baseOptions;
809
- }
810
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
811
- const localVarHeaderParameter = {} as any;
812
- const localVarQueryParameter = {} as any;
813
-
814
- // authentication APIKeyAuth required
815
- if (configuration && configuration.apiKey) {
816
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
817
- ? await configuration.apiKey("x-pollination-token")
818
- : await configuration.apiKey;
819
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
820
- }
821
-
822
- // authentication JWTAuth required
823
- // http bearer authentication required
824
- if (configuration && configuration.accessToken) {
825
- const accessToken = typeof configuration.accessToken === 'function'
826
- ? await configuration.accessToken()
827
- : await configuration.accessToken;
828
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
829
- }
830
-
831
-
832
-
833
- const query = new URLSearchParams(localVarUrlObj.search);
834
- for (const key in localVarQueryParameter) {
835
- query.set(key, localVarQueryParameter[key]);
836
- }
837
- for (const key in options.query) {
838
- query.set(key, options.query[key]);
839
- }
840
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
841
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
842
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
843
-
844
- return {
845
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
846
- options: localVarRequestOptions,
847
- };
848
- },
849
- /**
850
- *
851
- * @summary Get Payment Methods
852
- * @param {string} accountName
853
- * @param {*} [options] Override http request option.
854
- * @throws {RequiredError}
855
- */
856
- listPaymentMethods: async (accountName: string, options: any = {}): Promise<RequestArgs> => {
857
- // verify required parameter 'accountName' is not null or undefined
858
- if (accountName === null || accountName === undefined) {
859
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling listPaymentMethods.');
860
- }
861
- const localVarPath = `/payments/{account_name}/methods`
862
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
863
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
864
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
865
- let baseOptions;
866
- if (configuration) {
867
- baseOptions = configuration.baseOptions;
868
- }
869
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
870
- const localVarHeaderParameter = {} as any;
871
- const localVarQueryParameter = {} as any;
872
-
873
- // authentication APIKeyAuth required
874
- if (configuration && configuration.apiKey) {
875
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
876
- ? await configuration.apiKey("x-pollination-token")
877
- : await configuration.apiKey;
878
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
879
- }
880
-
881
- // authentication JWTAuth required
882
- // http bearer authentication required
883
- if (configuration && configuration.accessToken) {
884
- const accessToken = typeof configuration.accessToken === 'function'
885
- ? await configuration.accessToken()
886
- : await configuration.accessToken;
887
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
888
- }
889
-
890
-
891
-
892
- const query = new URLSearchParams(localVarUrlObj.search);
893
- for (const key in localVarQueryParameter) {
894
- query.set(key, localVarQueryParameter[key]);
895
- }
896
- for (const key in options.query) {
897
- query.set(key, options.query[key]);
898
- }
899
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
900
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
901
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
902
-
903
- return {
904
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
905
- options: localVarRequestOptions,
906
- };
907
- },
908
- /**
909
- *
910
- * @summary Preview Update Subscription
911
- * @param {string} accountName
912
- * @param {SubscriptionUpdate} subscriptionUpdate
913
- * @param {*} [options] Override http request option.
914
- * @throws {RequiredError}
915
- */
916
- previewUpdateSubscription: async (accountName: string, subscriptionUpdate: SubscriptionUpdate, options: any = {}): Promise<RequestArgs> => {
917
- // verify required parameter 'accountName' is not null or undefined
918
- if (accountName === null || accountName === undefined) {
919
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling previewUpdateSubscription.');
920
- }
921
- // verify required parameter 'subscriptionUpdate' is not null or undefined
922
- if (subscriptionUpdate === null || subscriptionUpdate === undefined) {
923
- throw new RequiredError('subscriptionUpdate','Required parameter subscriptionUpdate was null or undefined when calling previewUpdateSubscription.');
924
- }
925
- const localVarPath = `/payments/{account_name}/subscription/preview`
926
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
927
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
928
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
929
- let baseOptions;
930
- if (configuration) {
931
- baseOptions = configuration.baseOptions;
932
- }
933
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
934
- const localVarHeaderParameter = {} as any;
935
- const localVarQueryParameter = {} as any;
936
-
937
- // authentication APIKeyAuth required
938
- if (configuration && configuration.apiKey) {
939
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
940
- ? await configuration.apiKey("x-pollination-token")
941
- : await configuration.apiKey;
942
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
943
- }
944
-
945
- // authentication JWTAuth required
946
- // http bearer authentication required
947
- if (configuration && configuration.accessToken) {
948
- const accessToken = typeof configuration.accessToken === 'function'
949
- ? await configuration.accessToken()
950
- : await configuration.accessToken;
951
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
952
- }
953
-
954
-
955
-
956
- localVarHeaderParameter['Content-Type'] = 'application/json';
957
-
958
- const query = new URLSearchParams(localVarUrlObj.search);
959
- for (const key in localVarQueryParameter) {
960
- query.set(key, localVarQueryParameter[key]);
961
- }
962
- for (const key in options.query) {
963
- query.set(key, options.query[key]);
964
- }
965
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
966
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
967
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
968
- const needsSerialization = (typeof subscriptionUpdate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
969
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionUpdate !== undefined ? subscriptionUpdate : {}) : (subscriptionUpdate || "");
970
-
971
- return {
972
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
973
- options: localVarRequestOptions,
974
- };
975
- },
976
- /**
977
- *
978
- * @summary Subscribe
979
- * @param {string} accountName
980
- * @param {Subscribe} subscribe
981
- * @param {*} [options] Override http request option.
982
- * @throws {RequiredError}
983
- */
984
- subscribe: async (accountName: string, subscribe: Subscribe, options: any = {}): Promise<RequestArgs> => {
985
- // verify required parameter 'accountName' is not null or undefined
986
- if (accountName === null || accountName === undefined) {
987
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling subscribe.');
988
- }
989
- // verify required parameter 'subscribe' is not null or undefined
990
- if (subscribe === null || subscribe === undefined) {
991
- throw new RequiredError('subscribe','Required parameter subscribe was null or undefined when calling subscribe.');
992
- }
993
- const localVarPath = `/payments/{account_name}/subscribe`
994
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
995
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
996
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
997
- let baseOptions;
998
- if (configuration) {
999
- baseOptions = configuration.baseOptions;
1000
- }
1001
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1002
- const localVarHeaderParameter = {} as any;
1003
- const localVarQueryParameter = {} as any;
1004
-
1005
- // authentication APIKeyAuth required
1006
- if (configuration && configuration.apiKey) {
1007
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
1008
- ? await configuration.apiKey("x-pollination-token")
1009
- : await configuration.apiKey;
1010
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
1011
- }
1012
-
1013
- // authentication JWTAuth required
1014
- // http bearer authentication required
1015
- if (configuration && configuration.accessToken) {
1016
- const accessToken = typeof configuration.accessToken === 'function'
1017
- ? await configuration.accessToken()
1018
- : await configuration.accessToken;
1019
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
1020
- }
1021
-
1022
-
1023
-
1024
- localVarHeaderParameter['Content-Type'] = 'application/json';
1025
-
1026
- const query = new URLSearchParams(localVarUrlObj.search);
1027
- for (const key in localVarQueryParameter) {
1028
- query.set(key, localVarQueryParameter[key]);
1029
- }
1030
- for (const key in options.query) {
1031
- query.set(key, options.query[key]);
1032
- }
1033
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
1034
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1035
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1036
- const needsSerialization = (typeof subscribe !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
1037
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscribe !== undefined ? subscribe : {}) : (subscribe || "");
1038
-
1039
- return {
1040
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
1041
- options: localVarRequestOptions,
1042
- };
1043
- },
1044
- /**
1045
- *
1046
- * @summary Update Payment Method
1047
- * @param {string} accountName
1048
- * @param {string} id
1049
- * @param {UpdatePaymentMethod} updatePaymentMethod
1050
- * @param {*} [options] Override http request option.
1051
- * @throws {RequiredError}
1052
- */
1053
- updatePaymentMethod: async (accountName: string, id: string, updatePaymentMethod: UpdatePaymentMethod, options: any = {}): Promise<RequestArgs> => {
1054
- // verify required parameter 'accountName' is not null or undefined
1055
- if (accountName === null || accountName === undefined) {
1056
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling updatePaymentMethod.');
1057
- }
1058
- // verify required parameter 'id' is not null or undefined
1059
- if (id === null || id === undefined) {
1060
- throw new RequiredError('id','Required parameter id was null or undefined when calling updatePaymentMethod.');
1061
- }
1062
- // verify required parameter 'updatePaymentMethod' is not null or undefined
1063
- if (updatePaymentMethod === null || updatePaymentMethod === undefined) {
1064
- throw new RequiredError('updatePaymentMethod','Required parameter updatePaymentMethod was null or undefined when calling updatePaymentMethod.');
1065
- }
1066
- const localVarPath = `/payments/{account_name}/methods/{id}`
1067
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)))
1068
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1069
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1070
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
1071
- let baseOptions;
1072
- if (configuration) {
1073
- baseOptions = configuration.baseOptions;
1074
- }
1075
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1076
- const localVarHeaderParameter = {} as any;
1077
- const localVarQueryParameter = {} as any;
1078
-
1079
- // authentication APIKeyAuth required
1080
- if (configuration && configuration.apiKey) {
1081
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
1082
- ? await configuration.apiKey("x-pollination-token")
1083
- : await configuration.apiKey;
1084
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
1085
- }
1086
-
1087
- // authentication JWTAuth required
1088
- // http bearer authentication required
1089
- if (configuration && configuration.accessToken) {
1090
- const accessToken = typeof configuration.accessToken === 'function'
1091
- ? await configuration.accessToken()
1092
- : await configuration.accessToken;
1093
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
1094
- }
1095
-
1096
-
1097
-
1098
- localVarHeaderParameter['Content-Type'] = 'application/json';
1099
-
1100
- const query = new URLSearchParams(localVarUrlObj.search);
1101
- for (const key in localVarQueryParameter) {
1102
- query.set(key, localVarQueryParameter[key]);
1103
- }
1104
- for (const key in options.query) {
1105
- query.set(key, options.query[key]);
1106
- }
1107
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
1108
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1109
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1110
- const needsSerialization = (typeof updatePaymentMethod !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
1111
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(updatePaymentMethod !== undefined ? updatePaymentMethod : {}) : (updatePaymentMethod || "");
1112
-
1113
- return {
1114
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
1115
- options: localVarRequestOptions,
1116
- };
1117
- },
1118
- /**
1119
- *
1120
- * @summary Update Subscription
1121
- * @param {string} accountName
1122
- * @param {SubscriptionUpdate} subscriptionUpdate
1123
- * @param {*} [options] Override http request option.
1124
- * @throws {RequiredError}
1125
- */
1126
- updateSubscription: async (accountName: string, subscriptionUpdate: SubscriptionUpdate, options: any = {}): Promise<RequestArgs> => {
1127
- // verify required parameter 'accountName' is not null or undefined
1128
- if (accountName === null || accountName === undefined) {
1129
- throw new RequiredError('accountName','Required parameter accountName was null or undefined when calling updateSubscription.');
1130
- }
1131
- // verify required parameter 'subscriptionUpdate' is not null or undefined
1132
- if (subscriptionUpdate === null || subscriptionUpdate === undefined) {
1133
- throw new RequiredError('subscriptionUpdate','Required parameter subscriptionUpdate was null or undefined when calling updateSubscription.');
1134
- }
1135
- const localVarPath = `/payments/{account_name}/subscription`
1136
- .replace(`{${"account_name"}}`, encodeURIComponent(String(accountName)));
1137
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1138
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
1139
- let baseOptions;
1140
- if (configuration) {
1141
- baseOptions = configuration.baseOptions;
1142
- }
1143
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1144
- const localVarHeaderParameter = {} as any;
1145
- const localVarQueryParameter = {} as any;
1146
-
1147
- // authentication APIKeyAuth required
1148
- if (configuration && configuration.apiKey) {
1149
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
1150
- ? await configuration.apiKey("x-pollination-token")
1151
- : await configuration.apiKey;
1152
- localVarHeaderParameter["x-pollination-token"] = localVarApiKeyValue;
1153
- }
1154
-
1155
- // authentication JWTAuth required
1156
- // http bearer authentication required
1157
- if (configuration && configuration.accessToken) {
1158
- const accessToken = typeof configuration.accessToken === 'function'
1159
- ? await configuration.accessToken()
1160
- : await configuration.accessToken;
1161
- localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
1162
- }
1163
-
1164
-
1165
-
1166
- localVarHeaderParameter['Content-Type'] = 'application/json';
1167
-
1168
- const query = new URLSearchParams(localVarUrlObj.search);
1169
- for (const key in localVarQueryParameter) {
1170
- query.set(key, localVarQueryParameter[key]);
1171
- }
1172
- for (const key in options.query) {
1173
- query.set(key, options.query[key]);
1174
- }
1175
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
1176
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1177
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1178
- const needsSerialization = (typeof subscriptionUpdate !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
1179
- localVarRequestOptions.data = needsSerialization ? JSON.stringify(subscriptionUpdate !== undefined ? subscriptionUpdate : {}) : (subscriptionUpdate || "");
1180
-
1181
- return {
1182
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
1183
- options: localVarRequestOptions,
1184
- };
1185
- },
1186
- }
1187
- };
1188
-
1189
- /**
1190
- * PaymentsApi - functional programming interface
1191
- * @export
1192
- */
1193
- export const PaymentsApiFp = function(configuration?: Configuration) {
1194
- return {
1195
- /**
1196
- *
1197
- * @summary Cancel Subscription
1198
- * @param {string} accountName
1199
- * @param {*} [options] Override http request option.
1200
- * @throws {RequiredError}
1201
- */
1202
- async cancelSubscription(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
1203
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).cancelSubscription(accountName, options);
1204
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1205
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1206
- return axios.request(axiosRequestArgs);
1207
- };
1208
- },
1209
- /**
1210
- *
1211
- * @summary Add Payment Method
1212
- * @param {string} accountName
1213
- * @param {PaymentCreate} paymentCreate
1214
- * @param {*} [options] Override http request option.
1215
- * @throws {RequiredError}
1216
- */
1217
- async createPaymentMethod(accountName: string, paymentCreate: PaymentCreate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSetup>> {
1218
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).createPaymentMethod(accountName, paymentCreate, options);
1219
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1220
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1221
- return axios.request(axiosRequestArgs);
1222
- };
1223
- },
1224
- /**
1225
- *
1226
- * @summary Create Subscription
1227
- * @param {string} accountName
1228
- * @param {SubscriptionCreate} subscriptionCreate
1229
- * @param {*} [options] Override http request option.
1230
- * @throws {RequiredError}
1231
- */
1232
- async createSubscription(accountName: string, subscriptionCreate: SubscriptionCreate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatedContent>> {
1233
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).createSubscription(accountName, subscriptionCreate, options);
1234
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1235
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1236
- return axios.request(axiosRequestArgs);
1237
- };
1238
- },
1239
- /**
1240
- *
1241
- * @summary Delete Payment Method
1242
- * @param {string} accountName
1243
- * @param {string} id
1244
- * @param {*} [options] Override http request option.
1245
- * @throws {RequiredError}
1246
- */
1247
- async deletePaymentMethod(accountName: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
1248
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).deletePaymentMethod(accountName, id, options);
1249
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1250
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1251
- return axios.request(axiosRequestArgs);
1252
- };
1253
- },
1254
- /**
1255
- *
1256
- * @summary Get Default Payment Method
1257
- * @param {string} accountName
1258
- * @param {*} [options] Override http request option.
1259
- * @throws {RequiredError}
1260
- */
1261
- async getDefaultPaymentMethod(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethod>> {
1262
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getDefaultPaymentMethod(accountName, options);
1263
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1264
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1265
- return axios.request(axiosRequestArgs);
1266
- };
1267
- },
1268
- /**
1269
- *
1270
- * @summary Get Failed Payment
1271
- * @param {string} accountName
1272
- * @param {*} [options] Override http request option.
1273
- * @throws {RequiredError}
1274
- */
1275
- async getFailedPayment(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentIntent>> {
1276
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getFailedPayment(accountName, options);
1277
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1278
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1279
- return axios.request(axiosRequestArgs);
1280
- };
1281
- },
1282
- /**
1283
- *
1284
- * @summary Get Inventory
1285
- * @param {string} accountName
1286
- * @param {*} [options] Override http request option.
1287
- * @throws {RequiredError}
1288
- */
1289
- async getInventory(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Inventory>> {
1290
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getInventory(accountName, options);
1291
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1292
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1293
- return axios.request(axiosRequestArgs);
1294
- };
1295
- },
1296
- /**
1297
- *
1298
- * @summary Get Invoice List
1299
- * @param {string} accountName
1300
- * @param {string} [startingAfter]
1301
- * @param {string} [endingBefore]
1302
- * @param {number} [limit]
1303
- * @param {number} [perPage] Number of items per page
1304
- * @param {*} [options] Override http request option.
1305
- * @throws {RequiredError}
1306
- */
1307
- async getInvoiceList(accountName: string, startingAfter?: string, endingBefore?: string, limit?: number, perPage?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvoiceList>> {
1308
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getInvoiceList(accountName, startingAfter, endingBefore, limit, perPage, options);
1309
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1310
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1311
- return axios.request(axiosRequestArgs);
1312
- };
1313
- },
1314
- /**
1315
- *
1316
- * @summary Get Next Invoice
1317
- * @param {string} accountName
1318
- * @param {*} [options] Override http request option.
1319
- * @throws {RequiredError}
1320
- */
1321
- async getNextInvoice(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvoicePreview>> {
1322
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getNextInvoice(accountName, options);
1323
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1324
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1325
- return axios.request(axiosRequestArgs);
1326
- };
1327
- },
1328
- /**
1329
- *
1330
- * @summary Get Status
1331
- * @param {string} accountName
1332
- * @param {*} [options] Override http request option.
1333
- * @throws {RequiredError}
1334
- */
1335
- async getStatus(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
1336
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getStatus(accountName, options);
1337
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1338
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1339
- return axios.request(axiosRequestArgs);
1340
- };
1341
- },
1342
- /**
1343
- *
1344
- * @summary Get Subscription
1345
- * @param {string} accountName
1346
- * @param {*} [options] Override http request option.
1347
- * @throws {RequiredError}
1348
- */
1349
- async getSubscription(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Subscription>> {
1350
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getSubscription(accountName, options);
1351
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1352
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1353
- return axios.request(axiosRequestArgs);
1354
- };
1355
- },
1356
- /**
1357
- *
1358
- * @summary Get Unfiltered Inventory
1359
- * @param {*} [options] Override http request option.
1360
- * @throws {RequiredError}
1361
- */
1362
- async getUnfilteredInventory(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Inventory>> {
1363
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getUnfilteredInventory(options);
1364
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1365
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1366
- return axios.request(axiosRequestArgs);
1367
- };
1368
- },
1369
- /**
1370
- *
1371
- * @summary Get Upcoming Subscription
1372
- * @param {string} accountName
1373
- * @param {*} [options] Override http request option.
1374
- * @throws {RequiredError}
1375
- */
1376
- async getUpcomingSubscription(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Subscription>> {
1377
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).getUpcomingSubscription(accountName, options);
1378
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1379
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1380
- return axios.request(axiosRequestArgs);
1381
- };
1382
- },
1383
- /**
1384
- *
1385
- * @summary Get Payment Methods
1386
- * @param {string} accountName
1387
- * @param {*} [options] Override http request option.
1388
- * @throws {RequiredError}
1389
- */
1390
- async listPaymentMethods(accountName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodList>> {
1391
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).listPaymentMethods(accountName, options);
1392
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1393
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1394
- return axios.request(axiosRequestArgs);
1395
- };
1396
- },
1397
- /**
1398
- *
1399
- * @summary Preview Update Subscription
1400
- * @param {string} accountName
1401
- * @param {SubscriptionUpdate} subscriptionUpdate
1402
- * @param {*} [options] Override http request option.
1403
- * @throws {RequiredError}
1404
- */
1405
- async previewUpdateSubscription(accountName: string, subscriptionUpdate: SubscriptionUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateInvoicePreview>> {
1406
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).previewUpdateSubscription(accountName, subscriptionUpdate, options);
1407
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1408
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1409
- return axios.request(axiosRequestArgs);
1410
- };
1411
- },
1412
- /**
1413
- *
1414
- * @summary Subscribe
1415
- * @param {string} accountName
1416
- * @param {Subscribe} subscribe
1417
- * @param {*} [options] Override http request option.
1418
- * @throws {RequiredError}
1419
- */
1420
- async subscribe(accountName: string, subscribe: Subscribe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatedContent>> {
1421
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).subscribe(accountName, subscribe, options);
1422
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1423
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1424
- return axios.request(axiosRequestArgs);
1425
- };
1426
- },
1427
- /**
1428
- *
1429
- * @summary Update Payment Method
1430
- * @param {string} accountName
1431
- * @param {string} id
1432
- * @param {UpdatePaymentMethod} updatePaymentMethod
1433
- * @param {*} [options] Override http request option.
1434
- * @throws {RequiredError}
1435
- */
1436
- async updatePaymentMethod(accountName: string, id: string, updatePaymentMethod: UpdatePaymentMethod, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
1437
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).updatePaymentMethod(accountName, id, updatePaymentMethod, options);
1438
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1439
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1440
- return axios.request(axiosRequestArgs);
1441
- };
1442
- },
1443
- /**
1444
- *
1445
- * @summary Update Subscription
1446
- * @param {string} accountName
1447
- * @param {SubscriptionUpdate} subscriptionUpdate
1448
- * @param {*} [options] Override http request option.
1449
- * @throws {RequiredError}
1450
- */
1451
- async updateSubscription(accountName: string, subscriptionUpdate: SubscriptionUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Subscription>> {
1452
- const localVarAxiosArgs = await PaymentsApiAxiosParamCreator(configuration).updateSubscription(accountName, subscriptionUpdate, options);
1453
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1454
- const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1455
- return axios.request(axiosRequestArgs);
1456
- };
1457
- },
1458
- }
1459
- };
1460
-
1461
- /**
1462
- * PaymentsApi - factory interface
1463
- * @export
1464
- */
1465
- export const PaymentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1466
- return {
1467
- /**
1468
- *
1469
- * @summary Cancel Subscription
1470
- * @param {string} accountName
1471
- * @param {*} [options] Override http request option.
1472
- * @throws {RequiredError}
1473
- */
1474
- cancelSubscription(accountName: string, options?: any): AxiosPromise<any> {
1475
- return PaymentsApiFp(configuration).cancelSubscription(accountName, options).then((request) => request(axios, basePath));
1476
- },
1477
- /**
1478
- *
1479
- * @summary Add Payment Method
1480
- * @param {string} accountName
1481
- * @param {PaymentCreate} paymentCreate
1482
- * @param {*} [options] Override http request option.
1483
- * @throws {RequiredError}
1484
- */
1485
- createPaymentMethod(accountName: string, paymentCreate: PaymentCreate, options?: any): AxiosPromise<PaymentSetup> {
1486
- return PaymentsApiFp(configuration).createPaymentMethod(accountName, paymentCreate, options).then((request) => request(axios, basePath));
1487
- },
1488
- /**
1489
- *
1490
- * @summary Create Subscription
1491
- * @param {string} accountName
1492
- * @param {SubscriptionCreate} subscriptionCreate
1493
- * @param {*} [options] Override http request option.
1494
- * @throws {RequiredError}
1495
- */
1496
- createSubscription(accountName: string, subscriptionCreate: SubscriptionCreate, options?: any): AxiosPromise<CreatedContent> {
1497
- return PaymentsApiFp(configuration).createSubscription(accountName, subscriptionCreate, options).then((request) => request(axios, basePath));
1498
- },
1499
- /**
1500
- *
1501
- * @summary Delete Payment Method
1502
- * @param {string} accountName
1503
- * @param {string} id
1504
- * @param {*} [options] Override http request option.
1505
- * @throws {RequiredError}
1506
- */
1507
- deletePaymentMethod(accountName: string, id: string, options?: any): AxiosPromise<any> {
1508
- return PaymentsApiFp(configuration).deletePaymentMethod(accountName, id, options).then((request) => request(axios, basePath));
1509
- },
1510
- /**
1511
- *
1512
- * @summary Get Default Payment Method
1513
- * @param {string} accountName
1514
- * @param {*} [options] Override http request option.
1515
- * @throws {RequiredError}
1516
- */
1517
- getDefaultPaymentMethod(accountName: string, options?: any): AxiosPromise<PaymentMethod> {
1518
- return PaymentsApiFp(configuration).getDefaultPaymentMethod(accountName, options).then((request) => request(axios, basePath));
1519
- },
1520
- /**
1521
- *
1522
- * @summary Get Failed Payment
1523
- * @param {string} accountName
1524
- * @param {*} [options] Override http request option.
1525
- * @throws {RequiredError}
1526
- */
1527
- getFailedPayment(accountName: string, options?: any): AxiosPromise<PaymentIntent> {
1528
- return PaymentsApiFp(configuration).getFailedPayment(accountName, options).then((request) => request(axios, basePath));
1529
- },
1530
- /**
1531
- *
1532
- * @summary Get Inventory
1533
- * @param {string} accountName
1534
- * @param {*} [options] Override http request option.
1535
- * @throws {RequiredError}
1536
- */
1537
- getInventory(accountName: string, options?: any): AxiosPromise<Inventory> {
1538
- return PaymentsApiFp(configuration).getInventory(accountName, options).then((request) => request(axios, basePath));
1539
- },
1540
- /**
1541
- *
1542
- * @summary Get Invoice List
1543
- * @param {string} accountName
1544
- * @param {string} [startingAfter]
1545
- * @param {string} [endingBefore]
1546
- * @param {number} [limit]
1547
- * @param {number} [perPage] Number of items per page
1548
- * @param {*} [options] Override http request option.
1549
- * @throws {RequiredError}
1550
- */
1551
- getInvoiceList(accountName: string, startingAfter?: string, endingBefore?: string, limit?: number, perPage?: number, options?: any): AxiosPromise<InvoiceList> {
1552
- return PaymentsApiFp(configuration).getInvoiceList(accountName, startingAfter, endingBefore, limit, perPage, options).then((request) => request(axios, basePath));
1553
- },
1554
- /**
1555
- *
1556
- * @summary Get Next Invoice
1557
- * @param {string} accountName
1558
- * @param {*} [options] Override http request option.
1559
- * @throws {RequiredError}
1560
- */
1561
- getNextInvoice(accountName: string, options?: any): AxiosPromise<InvoicePreview> {
1562
- return PaymentsApiFp(configuration).getNextInvoice(accountName, options).then((request) => request(axios, basePath));
1563
- },
1564
- /**
1565
- *
1566
- * @summary Get Status
1567
- * @param {string} accountName
1568
- * @param {*} [options] Override http request option.
1569
- * @throws {RequiredError}
1570
- */
1571
- getStatus(accountName: string, options?: any): AxiosPromise<Status> {
1572
- return PaymentsApiFp(configuration).getStatus(accountName, options).then((request) => request(axios, basePath));
1573
- },
1574
- /**
1575
- *
1576
- * @summary Get Subscription
1577
- * @param {string} accountName
1578
- * @param {*} [options] Override http request option.
1579
- * @throws {RequiredError}
1580
- */
1581
- getSubscription(accountName: string, options?: any): AxiosPromise<Subscription> {
1582
- return PaymentsApiFp(configuration).getSubscription(accountName, options).then((request) => request(axios, basePath));
1583
- },
1584
- /**
1585
- *
1586
- * @summary Get Unfiltered Inventory
1587
- * @param {*} [options] Override http request option.
1588
- * @throws {RequiredError}
1589
- */
1590
- getUnfilteredInventory(options?: any): AxiosPromise<Inventory> {
1591
- return PaymentsApiFp(configuration).getUnfilteredInventory(options).then((request) => request(axios, basePath));
1592
- },
1593
- /**
1594
- *
1595
- * @summary Get Upcoming Subscription
1596
- * @param {string} accountName
1597
- * @param {*} [options] Override http request option.
1598
- * @throws {RequiredError}
1599
- */
1600
- getUpcomingSubscription(accountName: string, options?: any): AxiosPromise<Subscription> {
1601
- return PaymentsApiFp(configuration).getUpcomingSubscription(accountName, options).then((request) => request(axios, basePath));
1602
- },
1603
- /**
1604
- *
1605
- * @summary Get Payment Methods
1606
- * @param {string} accountName
1607
- * @param {*} [options] Override http request option.
1608
- * @throws {RequiredError}
1609
- */
1610
- listPaymentMethods(accountName: string, options?: any): AxiosPromise<PaymentMethodList> {
1611
- return PaymentsApiFp(configuration).listPaymentMethods(accountName, options).then((request) => request(axios, basePath));
1612
- },
1613
- /**
1614
- *
1615
- * @summary Preview Update Subscription
1616
- * @param {string} accountName
1617
- * @param {SubscriptionUpdate} subscriptionUpdate
1618
- * @param {*} [options] Override http request option.
1619
- * @throws {RequiredError}
1620
- */
1621
- previewUpdateSubscription(accountName: string, subscriptionUpdate: SubscriptionUpdate, options?: any): AxiosPromise<UpdateInvoicePreview> {
1622
- return PaymentsApiFp(configuration).previewUpdateSubscription(accountName, subscriptionUpdate, options).then((request) => request(axios, basePath));
1623
- },
1624
- /**
1625
- *
1626
- * @summary Subscribe
1627
- * @param {string} accountName
1628
- * @param {Subscribe} subscribe
1629
- * @param {*} [options] Override http request option.
1630
- * @throws {RequiredError}
1631
- */
1632
- subscribe(accountName: string, subscribe: Subscribe, options?: any): AxiosPromise<CreatedContent> {
1633
- return PaymentsApiFp(configuration).subscribe(accountName, subscribe, options).then((request) => request(axios, basePath));
1634
- },
1635
- /**
1636
- *
1637
- * @summary Update Payment Method
1638
- * @param {string} accountName
1639
- * @param {string} id
1640
- * @param {UpdatePaymentMethod} updatePaymentMethod
1641
- * @param {*} [options] Override http request option.
1642
- * @throws {RequiredError}
1643
- */
1644
- updatePaymentMethod(accountName: string, id: string, updatePaymentMethod: UpdatePaymentMethod, options?: any): AxiosPromise<any> {
1645
- return PaymentsApiFp(configuration).updatePaymentMethod(accountName, id, updatePaymentMethod, options).then((request) => request(axios, basePath));
1646
- },
1647
- /**
1648
- *
1649
- * @summary Update Subscription
1650
- * @param {string} accountName
1651
- * @param {SubscriptionUpdate} subscriptionUpdate
1652
- * @param {*} [options] Override http request option.
1653
- * @throws {RequiredError}
1654
- */
1655
- updateSubscription(accountName: string, subscriptionUpdate: SubscriptionUpdate, options?: any): AxiosPromise<Subscription> {
1656
- return PaymentsApiFp(configuration).updateSubscription(accountName, subscriptionUpdate, options).then((request) => request(axios, basePath));
1657
- },
1658
- };
1659
- };
1660
-
1661
- /**
1662
- * Request parameters for cancelSubscription operation in PaymentsApi.
1663
- * @export
1664
- * @interface PaymentsApiCancelSubscriptionRequest
1665
- */
1666
- export interface PaymentsApiCancelSubscriptionRequest {
1667
- /**
1668
- *
1669
- * @type {string}
1670
- * @memberof PaymentsApiCancelSubscription
1671
- */
1672
- readonly accountName: string
1673
- }
1674
-
1675
- /**
1676
- * Request parameters for createPaymentMethod operation in PaymentsApi.
1677
- * @export
1678
- * @interface PaymentsApiCreatePaymentMethodRequest
1679
- */
1680
- export interface PaymentsApiCreatePaymentMethodRequest {
1681
- /**
1682
- *
1683
- * @type {string}
1684
- * @memberof PaymentsApiCreatePaymentMethod
1685
- */
1686
- readonly accountName: string
1687
-
1688
- /**
1689
- *
1690
- * @type {PaymentCreate}
1691
- * @memberof PaymentsApiCreatePaymentMethod
1692
- */
1693
- readonly paymentCreate: PaymentCreate
1694
- }
1695
-
1696
- /**
1697
- * Request parameters for createSubscription operation in PaymentsApi.
1698
- * @export
1699
- * @interface PaymentsApiCreateSubscriptionRequest
1700
- */
1701
- export interface PaymentsApiCreateSubscriptionRequest {
1702
- /**
1703
- *
1704
- * @type {string}
1705
- * @memberof PaymentsApiCreateSubscription
1706
- */
1707
- readonly accountName: string
1708
-
1709
- /**
1710
- *
1711
- * @type {SubscriptionCreate}
1712
- * @memberof PaymentsApiCreateSubscription
1713
- */
1714
- readonly subscriptionCreate: SubscriptionCreate
1715
- }
1716
-
1717
- /**
1718
- * Request parameters for deletePaymentMethod operation in PaymentsApi.
1719
- * @export
1720
- * @interface PaymentsApiDeletePaymentMethodRequest
1721
- */
1722
- export interface PaymentsApiDeletePaymentMethodRequest {
1723
- /**
1724
- *
1725
- * @type {string}
1726
- * @memberof PaymentsApiDeletePaymentMethod
1727
- */
1728
- readonly accountName: string
1729
-
1730
- /**
1731
- *
1732
- * @type {string}
1733
- * @memberof PaymentsApiDeletePaymentMethod
1734
- */
1735
- readonly id: string
1736
- }
1737
-
1738
- /**
1739
- * Request parameters for getDefaultPaymentMethod operation in PaymentsApi.
1740
- * @export
1741
- * @interface PaymentsApiGetDefaultPaymentMethodRequest
1742
- */
1743
- export interface PaymentsApiGetDefaultPaymentMethodRequest {
1744
- /**
1745
- *
1746
- * @type {string}
1747
- * @memberof PaymentsApiGetDefaultPaymentMethod
1748
- */
1749
- readonly accountName: string
1750
- }
1751
-
1752
- /**
1753
- * Request parameters for getFailedPayment operation in PaymentsApi.
1754
- * @export
1755
- * @interface PaymentsApiGetFailedPaymentRequest
1756
- */
1757
- export interface PaymentsApiGetFailedPaymentRequest {
1758
- /**
1759
- *
1760
- * @type {string}
1761
- * @memberof PaymentsApiGetFailedPayment
1762
- */
1763
- readonly accountName: string
1764
- }
1765
-
1766
- /**
1767
- * Request parameters for getInventory operation in PaymentsApi.
1768
- * @export
1769
- * @interface PaymentsApiGetInventoryRequest
1770
- */
1771
- export interface PaymentsApiGetInventoryRequest {
1772
- /**
1773
- *
1774
- * @type {string}
1775
- * @memberof PaymentsApiGetInventory
1776
- */
1777
- readonly accountName: string
1778
- }
1779
-
1780
- /**
1781
- * Request parameters for getInvoiceList operation in PaymentsApi.
1782
- * @export
1783
- * @interface PaymentsApiGetInvoiceListRequest
1784
- */
1785
- export interface PaymentsApiGetInvoiceListRequest {
1786
- /**
1787
- *
1788
- * @type {string}
1789
- * @memberof PaymentsApiGetInvoiceList
1790
- */
1791
- readonly accountName: string
1792
-
1793
- /**
1794
- *
1795
- * @type {string}
1796
- * @memberof PaymentsApiGetInvoiceList
1797
- */
1798
- readonly startingAfter?: string
1799
-
1800
- /**
1801
- *
1802
- * @type {string}
1803
- * @memberof PaymentsApiGetInvoiceList
1804
- */
1805
- readonly endingBefore?: string
1806
-
1807
- /**
1808
- *
1809
- * @type {number}
1810
- * @memberof PaymentsApiGetInvoiceList
1811
- */
1812
- readonly limit?: number
1813
-
1814
- /**
1815
- * Number of items per page
1816
- * @type {number}
1817
- * @memberof PaymentsApiGetInvoiceList
1818
- */
1819
- readonly perPage?: number
1820
- }
1821
-
1822
- /**
1823
- * Request parameters for getNextInvoice operation in PaymentsApi.
1824
- * @export
1825
- * @interface PaymentsApiGetNextInvoiceRequest
1826
- */
1827
- export interface PaymentsApiGetNextInvoiceRequest {
1828
- /**
1829
- *
1830
- * @type {string}
1831
- * @memberof PaymentsApiGetNextInvoice
1832
- */
1833
- readonly accountName: string
1834
- }
1835
-
1836
- /**
1837
- * Request parameters for getStatus operation in PaymentsApi.
1838
- * @export
1839
- * @interface PaymentsApiGetStatusRequest
1840
- */
1841
- export interface PaymentsApiGetStatusRequest {
1842
- /**
1843
- *
1844
- * @type {string}
1845
- * @memberof PaymentsApiGetStatus
1846
- */
1847
- readonly accountName: string
1848
- }
1849
-
1850
- /**
1851
- * Request parameters for getSubscription operation in PaymentsApi.
1852
- * @export
1853
- * @interface PaymentsApiGetSubscriptionRequest
1854
- */
1855
- export interface PaymentsApiGetSubscriptionRequest {
1856
- /**
1857
- *
1858
- * @type {string}
1859
- * @memberof PaymentsApiGetSubscription
1860
- */
1861
- readonly accountName: string
1862
- }
1863
-
1864
- /**
1865
- * Request parameters for getUpcomingSubscription operation in PaymentsApi.
1866
- * @export
1867
- * @interface PaymentsApiGetUpcomingSubscriptionRequest
1868
- */
1869
- export interface PaymentsApiGetUpcomingSubscriptionRequest {
1870
- /**
1871
- *
1872
- * @type {string}
1873
- * @memberof PaymentsApiGetUpcomingSubscription
1874
- */
1875
- readonly accountName: string
1876
- }
1877
-
1878
- /**
1879
- * Request parameters for listPaymentMethods operation in PaymentsApi.
1880
- * @export
1881
- * @interface PaymentsApiListPaymentMethodsRequest
1882
- */
1883
- export interface PaymentsApiListPaymentMethodsRequest {
1884
- /**
1885
- *
1886
- * @type {string}
1887
- * @memberof PaymentsApiListPaymentMethods
1888
- */
1889
- readonly accountName: string
1890
- }
1891
-
1892
- /**
1893
- * Request parameters for previewUpdateSubscription operation in PaymentsApi.
1894
- * @export
1895
- * @interface PaymentsApiPreviewUpdateSubscriptionRequest
1896
- */
1897
- export interface PaymentsApiPreviewUpdateSubscriptionRequest {
1898
- /**
1899
- *
1900
- * @type {string}
1901
- * @memberof PaymentsApiPreviewUpdateSubscription
1902
- */
1903
- readonly accountName: string
1904
-
1905
- /**
1906
- *
1907
- * @type {SubscriptionUpdate}
1908
- * @memberof PaymentsApiPreviewUpdateSubscription
1909
- */
1910
- readonly subscriptionUpdate: SubscriptionUpdate
1911
- }
1912
-
1913
- /**
1914
- * Request parameters for subscribe operation in PaymentsApi.
1915
- * @export
1916
- * @interface PaymentsApiSubscribeRequest
1917
- */
1918
- export interface PaymentsApiSubscribeRequest {
1919
- /**
1920
- *
1921
- * @type {string}
1922
- * @memberof PaymentsApiSubscribe
1923
- */
1924
- readonly accountName: string
1925
-
1926
- /**
1927
- *
1928
- * @type {Subscribe}
1929
- * @memberof PaymentsApiSubscribe
1930
- */
1931
- readonly subscribe: Subscribe
1932
- }
1933
-
1934
- /**
1935
- * Request parameters for updatePaymentMethod operation in PaymentsApi.
1936
- * @export
1937
- * @interface PaymentsApiUpdatePaymentMethodRequest
1938
- */
1939
- export interface PaymentsApiUpdatePaymentMethodRequest {
1940
- /**
1941
- *
1942
- * @type {string}
1943
- * @memberof PaymentsApiUpdatePaymentMethod
1944
- */
1945
- readonly accountName: string
1946
-
1947
- /**
1948
- *
1949
- * @type {string}
1950
- * @memberof PaymentsApiUpdatePaymentMethod
1951
- */
1952
- readonly id: string
1953
-
1954
- /**
1955
- *
1956
- * @type {UpdatePaymentMethod}
1957
- * @memberof PaymentsApiUpdatePaymentMethod
1958
- */
1959
- readonly updatePaymentMethod: UpdatePaymentMethod
1960
- }
1961
-
1962
- /**
1963
- * Request parameters for updateSubscription operation in PaymentsApi.
1964
- * @export
1965
- * @interface PaymentsApiUpdateSubscriptionRequest
1966
- */
1967
- export interface PaymentsApiUpdateSubscriptionRequest {
1968
- /**
1969
- *
1970
- * @type {string}
1971
- * @memberof PaymentsApiUpdateSubscription
1972
- */
1973
- readonly accountName: string
1974
-
1975
- /**
1976
- *
1977
- * @type {SubscriptionUpdate}
1978
- * @memberof PaymentsApiUpdateSubscription
1979
- */
1980
- readonly subscriptionUpdate: SubscriptionUpdate
1981
- }
1982
-
1983
- /**
1984
- * PaymentsApi - object-oriented interface
1985
- * @export
1986
- * @class PaymentsApi
1987
- * @extends {BaseAPI}
1988
- */
1989
- export class PaymentsApi extends BaseAPI {
1990
- /**
1991
- *
1992
- * @summary Cancel Subscription
1993
- * @param {PaymentsApiCancelSubscriptionRequest} requestParameters Request parameters.
1994
- * @param {*} [options] Override http request option.
1995
- * @throws {RequiredError}
1996
- * @memberof PaymentsApi
1997
- */
1998
- public cancelSubscription(requestParameters: PaymentsApiCancelSubscriptionRequest, options?: any) {
1999
- return PaymentsApiFp(this.configuration).cancelSubscription(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2000
- }
2001
-
2002
- /**
2003
- *
2004
- * @summary Add Payment Method
2005
- * @param {PaymentsApiCreatePaymentMethodRequest} requestParameters Request parameters.
2006
- * @param {*} [options] Override http request option.
2007
- * @throws {RequiredError}
2008
- * @memberof PaymentsApi
2009
- */
2010
- public createPaymentMethod(requestParameters: PaymentsApiCreatePaymentMethodRequest, options?: any) {
2011
- return PaymentsApiFp(this.configuration).createPaymentMethod(requestParameters.accountName, requestParameters.paymentCreate, options).then((request) => request(this.axios, this.basePath));
2012
- }
2013
-
2014
- /**
2015
- *
2016
- * @summary Create Subscription
2017
- * @param {PaymentsApiCreateSubscriptionRequest} requestParameters Request parameters.
2018
- * @param {*} [options] Override http request option.
2019
- * @throws {RequiredError}
2020
- * @memberof PaymentsApi
2021
- */
2022
- public createSubscription(requestParameters: PaymentsApiCreateSubscriptionRequest, options?: any) {
2023
- return PaymentsApiFp(this.configuration).createSubscription(requestParameters.accountName, requestParameters.subscriptionCreate, options).then((request) => request(this.axios, this.basePath));
2024
- }
2025
-
2026
- /**
2027
- *
2028
- * @summary Delete Payment Method
2029
- * @param {PaymentsApiDeletePaymentMethodRequest} requestParameters Request parameters.
2030
- * @param {*} [options] Override http request option.
2031
- * @throws {RequiredError}
2032
- * @memberof PaymentsApi
2033
- */
2034
- public deletePaymentMethod(requestParameters: PaymentsApiDeletePaymentMethodRequest, options?: any) {
2035
- return PaymentsApiFp(this.configuration).deletePaymentMethod(requestParameters.accountName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2036
- }
2037
-
2038
- /**
2039
- *
2040
- * @summary Get Default Payment Method
2041
- * @param {PaymentsApiGetDefaultPaymentMethodRequest} requestParameters Request parameters.
2042
- * @param {*} [options] Override http request option.
2043
- * @throws {RequiredError}
2044
- * @memberof PaymentsApi
2045
- */
2046
- public getDefaultPaymentMethod(requestParameters: PaymentsApiGetDefaultPaymentMethodRequest, options?: any) {
2047
- return PaymentsApiFp(this.configuration).getDefaultPaymentMethod(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2048
- }
2049
-
2050
- /**
2051
- *
2052
- * @summary Get Failed Payment
2053
- * @param {PaymentsApiGetFailedPaymentRequest} requestParameters Request parameters.
2054
- * @param {*} [options] Override http request option.
2055
- * @throws {RequiredError}
2056
- * @memberof PaymentsApi
2057
- */
2058
- public getFailedPayment(requestParameters: PaymentsApiGetFailedPaymentRequest, options?: any) {
2059
- return PaymentsApiFp(this.configuration).getFailedPayment(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2060
- }
2061
-
2062
- /**
2063
- *
2064
- * @summary Get Inventory
2065
- * @param {PaymentsApiGetInventoryRequest} requestParameters Request parameters.
2066
- * @param {*} [options] Override http request option.
2067
- * @throws {RequiredError}
2068
- * @memberof PaymentsApi
2069
- */
2070
- public getInventory(requestParameters: PaymentsApiGetInventoryRequest, options?: any) {
2071
- return PaymentsApiFp(this.configuration).getInventory(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2072
- }
2073
-
2074
- /**
2075
- *
2076
- * @summary Get Invoice List
2077
- * @param {PaymentsApiGetInvoiceListRequest} requestParameters Request parameters.
2078
- * @param {*} [options] Override http request option.
2079
- * @throws {RequiredError}
2080
- * @memberof PaymentsApi
2081
- */
2082
- public getInvoiceList(requestParameters: PaymentsApiGetInvoiceListRequest, options?: any) {
2083
- return PaymentsApiFp(this.configuration).getInvoiceList(requestParameters.accountName, requestParameters.startingAfter, requestParameters.endingBefore, requestParameters.limit, requestParameters.perPage, options).then((request) => request(this.axios, this.basePath));
2084
- }
2085
-
2086
- /**
2087
- *
2088
- * @summary Get Next Invoice
2089
- * @param {PaymentsApiGetNextInvoiceRequest} requestParameters Request parameters.
2090
- * @param {*} [options] Override http request option.
2091
- * @throws {RequiredError}
2092
- * @memberof PaymentsApi
2093
- */
2094
- public getNextInvoice(requestParameters: PaymentsApiGetNextInvoiceRequest, options?: any) {
2095
- return PaymentsApiFp(this.configuration).getNextInvoice(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2096
- }
2097
-
2098
- /**
2099
- *
2100
- * @summary Get Status
2101
- * @param {PaymentsApiGetStatusRequest} requestParameters Request parameters.
2102
- * @param {*} [options] Override http request option.
2103
- * @throws {RequiredError}
2104
- * @memberof PaymentsApi
2105
- */
2106
- public getStatus(requestParameters: PaymentsApiGetStatusRequest, options?: any) {
2107
- return PaymentsApiFp(this.configuration).getStatus(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2108
- }
2109
-
2110
- /**
2111
- *
2112
- * @summary Get Subscription
2113
- * @param {PaymentsApiGetSubscriptionRequest} requestParameters Request parameters.
2114
- * @param {*} [options] Override http request option.
2115
- * @throws {RequiredError}
2116
- * @memberof PaymentsApi
2117
- */
2118
- public getSubscription(requestParameters: PaymentsApiGetSubscriptionRequest, options?: any) {
2119
- return PaymentsApiFp(this.configuration).getSubscription(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2120
- }
2121
-
2122
- /**
2123
- *
2124
- * @summary Get Unfiltered Inventory
2125
- * @param {*} [options] Override http request option.
2126
- * @throws {RequiredError}
2127
- * @memberof PaymentsApi
2128
- */
2129
- public getUnfilteredInventory(options?: any) {
2130
- return PaymentsApiFp(this.configuration).getUnfilteredInventory(options).then((request) => request(this.axios, this.basePath));
2131
- }
2132
-
2133
- /**
2134
- *
2135
- * @summary Get Upcoming Subscription
2136
- * @param {PaymentsApiGetUpcomingSubscriptionRequest} requestParameters Request parameters.
2137
- * @param {*} [options] Override http request option.
2138
- * @throws {RequiredError}
2139
- * @memberof PaymentsApi
2140
- */
2141
- public getUpcomingSubscription(requestParameters: PaymentsApiGetUpcomingSubscriptionRequest, options?: any) {
2142
- return PaymentsApiFp(this.configuration).getUpcomingSubscription(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2143
- }
2144
-
2145
- /**
2146
- *
2147
- * @summary Get Payment Methods
2148
- * @param {PaymentsApiListPaymentMethodsRequest} requestParameters Request parameters.
2149
- * @param {*} [options] Override http request option.
2150
- * @throws {RequiredError}
2151
- * @memberof PaymentsApi
2152
- */
2153
- public listPaymentMethods(requestParameters: PaymentsApiListPaymentMethodsRequest, options?: any) {
2154
- return PaymentsApiFp(this.configuration).listPaymentMethods(requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2155
- }
2156
-
2157
- /**
2158
- *
2159
- * @summary Preview Update Subscription
2160
- * @param {PaymentsApiPreviewUpdateSubscriptionRequest} requestParameters Request parameters.
2161
- * @param {*} [options] Override http request option.
2162
- * @throws {RequiredError}
2163
- * @memberof PaymentsApi
2164
- */
2165
- public previewUpdateSubscription(requestParameters: PaymentsApiPreviewUpdateSubscriptionRequest, options?: any) {
2166
- return PaymentsApiFp(this.configuration).previewUpdateSubscription(requestParameters.accountName, requestParameters.subscriptionUpdate, options).then((request) => request(this.axios, this.basePath));
2167
- }
2168
-
2169
- /**
2170
- *
2171
- * @summary Subscribe
2172
- * @param {PaymentsApiSubscribeRequest} requestParameters Request parameters.
2173
- * @param {*} [options] Override http request option.
2174
- * @throws {RequiredError}
2175
- * @memberof PaymentsApi
2176
- */
2177
- public subscribe(requestParameters: PaymentsApiSubscribeRequest, options?: any) {
2178
- return PaymentsApiFp(this.configuration).subscribe(requestParameters.accountName, requestParameters.subscribe, options).then((request) => request(this.axios, this.basePath));
2179
- }
2180
-
2181
- /**
2182
- *
2183
- * @summary Update Payment Method
2184
- * @param {PaymentsApiUpdatePaymentMethodRequest} requestParameters Request parameters.
2185
- * @param {*} [options] Override http request option.
2186
- * @throws {RequiredError}
2187
- * @memberof PaymentsApi
2188
- */
2189
- public updatePaymentMethod(requestParameters: PaymentsApiUpdatePaymentMethodRequest, options?: any) {
2190
- return PaymentsApiFp(this.configuration).updatePaymentMethod(requestParameters.accountName, requestParameters.id, requestParameters.updatePaymentMethod, options).then((request) => request(this.axios, this.basePath));
2191
- }
2192
-
2193
- /**
2194
- *
2195
- * @summary Update Subscription
2196
- * @param {PaymentsApiUpdateSubscriptionRequest} requestParameters Request parameters.
2197
- * @param {*} [options] Override http request option.
2198
- * @throws {RequiredError}
2199
- * @memberof PaymentsApi
2200
- */
2201
- public updateSubscription(requestParameters: PaymentsApiUpdateSubscriptionRequest, options?: any) {
2202
- return PaymentsApiFp(this.configuration).updateSubscription(requestParameters.accountName, requestParameters.subscriptionUpdate, options).then((request) => request(this.axios, this.basePath));
2203
- }
2204
- }