rehive 3.1.3 → 4.0.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 (425) hide show
  1. package/README.md +211 -494
  2. package/dist/admin.d.mts +31284 -0
  3. package/dist/admin.d.ts +31284 -0
  4. package/dist/admin.js +1 -0
  5. package/dist/admin.mjs +1 -0
  6. package/dist/auth.d.mts +23 -0
  7. package/dist/auth.d.ts +23 -0
  8. package/dist/auth.js +1 -0
  9. package/dist/auth.mjs +1 -0
  10. package/dist/chunk-53JJUQ4V.js +1 -0
  11. package/dist/chunk-5MRX4DHT.js +1 -0
  12. package/dist/chunk-7WWCXCY2.mjs +1 -0
  13. package/dist/chunk-HF5XDXOU.mjs +1 -0
  14. package/dist/chunk-NFN3B6SG.mjs +1 -0
  15. package/dist/chunk-OEIQFP6T.js +1 -0
  16. package/dist/chunk-Q2ZX3WFY.mjs +7 -0
  17. package/dist/chunk-QWQ6ZENI.js +1 -0
  18. package/dist/chunk-RKDIBDG6.js +7 -0
  19. package/dist/chunk-S4QKN5WW.mjs +1 -0
  20. package/dist/chunk-UYUMXTPF.js +7 -0
  21. package/dist/chunk-V277OEVY.mjs +7 -0
  22. package/dist/create-api-client-BMeX50D6.d.ts +25 -0
  23. package/dist/create-api-client-BrsH1l8c.d.mts +25 -0
  24. package/dist/create-auth-UTklIOTc.d.mts +18340 -0
  25. package/dist/create-auth-UTklIOTc.d.ts +18340 -0
  26. package/dist/extensions/alchemy.d.mts +1114 -0
  27. package/dist/extensions/alchemy.d.ts +1114 -0
  28. package/dist/extensions/alchemy.js +7 -0
  29. package/dist/extensions/alchemy.mjs +7 -0
  30. package/dist/extensions/app.d.mts +2042 -0
  31. package/dist/extensions/app.d.ts +2042 -0
  32. package/dist/extensions/app.js +7 -0
  33. package/dist/extensions/app.mjs +7 -0
  34. package/dist/extensions/billing.d.mts +828 -0
  35. package/dist/extensions/billing.d.ts +828 -0
  36. package/dist/extensions/billing.js +7 -0
  37. package/dist/extensions/billing.mjs +7 -0
  38. package/dist/extensions/bridge.d.mts +2028 -0
  39. package/dist/extensions/bridge.d.ts +2028 -0
  40. package/dist/extensions/bridge.js +7 -0
  41. package/dist/extensions/bridge.mjs +7 -0
  42. package/dist/extensions/builder.d.mts +542 -0
  43. package/dist/extensions/builder.d.ts +542 -0
  44. package/dist/extensions/builder.js +7 -0
  45. package/dist/extensions/builder.mjs +7 -0
  46. package/dist/extensions/business.d.mts +8972 -0
  47. package/dist/extensions/business.d.ts +8972 -0
  48. package/dist/extensions/business.js +7 -0
  49. package/dist/extensions/business.mjs +7 -0
  50. package/dist/extensions/conversion.d.mts +2786 -0
  51. package/dist/extensions/conversion.d.ts +2786 -0
  52. package/dist/extensions/conversion.js +7 -0
  53. package/dist/extensions/conversion.mjs +7 -0
  54. package/dist/extensions/mass-send.d.mts +1294 -0
  55. package/dist/extensions/mass-send.d.ts +1294 -0
  56. package/dist/extensions/mass-send.js +7 -0
  57. package/dist/extensions/mass-send.mjs +7 -0
  58. package/dist/extensions/notifications.d.mts +2035 -0
  59. package/dist/extensions/notifications.d.ts +2035 -0
  60. package/dist/extensions/notifications.js +7 -0
  61. package/dist/extensions/notifications.mjs +7 -0
  62. package/dist/extensions/payment-requests.d.mts +3746 -0
  63. package/dist/extensions/payment-requests.d.ts +3746 -0
  64. package/dist/extensions/payment-requests.js +7 -0
  65. package/dist/extensions/payment-requests.mjs +7 -0
  66. package/dist/extensions/products.d.mts +10092 -0
  67. package/dist/extensions/products.d.ts +10092 -0
  68. package/dist/extensions/products.js +7 -0
  69. package/dist/extensions/products.mjs +7 -0
  70. package/dist/extensions/rain.d.mts +1896 -0
  71. package/dist/extensions/rain.d.ts +1896 -0
  72. package/dist/extensions/rain.js +7 -0
  73. package/dist/extensions/rain.mjs +7 -0
  74. package/dist/extensions/rewards.d.mts +2038 -0
  75. package/dist/extensions/rewards.d.ts +2038 -0
  76. package/dist/extensions/rewards.js +7 -0
  77. package/dist/extensions/rewards.mjs +7 -0
  78. package/dist/extensions/stellar-testnet.d.mts +3922 -0
  79. package/dist/extensions/stellar-testnet.d.ts +3922 -0
  80. package/dist/extensions/stellar-testnet.js +7 -0
  81. package/dist/extensions/stellar-testnet.mjs +7 -0
  82. package/dist/extensions/stellar.d.mts +3922 -0
  83. package/dist/extensions/stellar.d.ts +3922 -0
  84. package/dist/extensions/stellar.js +7 -0
  85. package/dist/extensions/stellar.mjs +7 -0
  86. package/dist/index.d.mts +6 -61050
  87. package/dist/index.d.ts +6 -61050
  88. package/dist/index.js +1 -1
  89. package/dist/index.mjs +1 -1
  90. package/dist/react.d.mts +8 -61087
  91. package/dist/react.d.ts +8 -61087
  92. package/dist/react.js +1 -1
  93. package/dist/react.mjs +1 -1
  94. package/dist/user.d.mts +1347 -0
  95. package/dist/user.d.ts +1347 -0
  96. package/dist/user.js +1 -0
  97. package/dist/user.mjs +1 -0
  98. package/package.json +99 -32
  99. package/src/auth/core/storage-adapters.ts +58 -0
  100. package/src/auth/create-auth.ts +563 -0
  101. package/src/auth/index.ts +4 -0
  102. package/src/auth/types/index.ts +28 -0
  103. package/src/extensions/alchemy/create-api.ts +13 -0
  104. package/src/extensions/alchemy/index.ts +3 -0
  105. package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +288 -0
  106. package/src/extensions/alchemy/openapi-ts/client/index.ts +25 -0
  107. package/src/extensions/alchemy/openapi-ts/client/types.gen.ts +213 -0
  108. package/src/extensions/alchemy/openapi-ts/client/utils.gen.ts +316 -0
  109. package/src/extensions/alchemy/openapi-ts/client.gen.ts +16 -0
  110. package/src/extensions/alchemy/openapi-ts/core/auth.gen.ts +41 -0
  111. package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +84 -0
  112. package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +169 -0
  113. package/src/extensions/alchemy/openapi-ts/core/pathSerializer.gen.ts +171 -0
  114. package/src/extensions/alchemy/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  115. package/src/extensions/alchemy/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  116. package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +104 -0
  117. package/src/extensions/alchemy/openapi-ts/core/utils.gen.ts +140 -0
  118. package/src/extensions/alchemy/openapi-ts/index.ts +4 -0
  119. package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +179 -0
  120. package/src/extensions/alchemy/openapi-ts/types.gen.ts +851 -0
  121. package/src/extensions/app/create-api.ts +13 -0
  122. package/src/extensions/app/index.ts +3 -0
  123. package/src/extensions/app/openapi-ts/client/client.gen.ts +288 -0
  124. package/src/extensions/app/openapi-ts/client/index.ts +25 -0
  125. package/src/extensions/app/openapi-ts/client/types.gen.ts +213 -0
  126. package/src/extensions/app/openapi-ts/client/utils.gen.ts +316 -0
  127. package/src/extensions/app/openapi-ts/client.gen.ts +16 -0
  128. package/src/extensions/app/openapi-ts/core/auth.gen.ts +41 -0
  129. package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +84 -0
  130. package/src/extensions/app/openapi-ts/core/params.gen.ts +169 -0
  131. package/src/extensions/app/openapi-ts/core/pathSerializer.gen.ts +171 -0
  132. package/src/extensions/app/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  133. package/src/extensions/app/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  134. package/src/extensions/app/openapi-ts/core/types.gen.ts +104 -0
  135. package/src/extensions/app/openapi-ts/core/utils.gen.ts +140 -0
  136. package/src/extensions/app/openapi-ts/index.ts +4 -0
  137. package/src/extensions/app/openapi-ts/sdk.gen.ts +539 -0
  138. package/src/extensions/app/openapi-ts/types.gen.ts +1702 -0
  139. package/src/extensions/billing/create-api.ts +13 -0
  140. package/src/extensions/billing/index.ts +3 -0
  141. package/src/extensions/billing/openapi-ts/client/client.gen.ts +288 -0
  142. package/src/extensions/billing/openapi-ts/client/index.ts +25 -0
  143. package/src/extensions/billing/openapi-ts/client/types.gen.ts +213 -0
  144. package/src/extensions/billing/openapi-ts/client/utils.gen.ts +316 -0
  145. package/src/extensions/billing/openapi-ts/client.gen.ts +16 -0
  146. package/src/extensions/billing/openapi-ts/core/auth.gen.ts +41 -0
  147. package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +84 -0
  148. package/src/extensions/billing/openapi-ts/core/params.gen.ts +169 -0
  149. package/src/extensions/billing/openapi-ts/core/pathSerializer.gen.ts +171 -0
  150. package/src/extensions/billing/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  151. package/src/extensions/billing/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  152. package/src/extensions/billing/openapi-ts/core/types.gen.ts +104 -0
  153. package/src/extensions/billing/openapi-ts/core/utils.gen.ts +140 -0
  154. package/src/extensions/billing/openapi-ts/index.ts +4 -0
  155. package/src/extensions/billing/openapi-ts/sdk.gen.ts +155 -0
  156. package/src/extensions/billing/openapi-ts/types.gen.ts +508 -0
  157. package/src/extensions/bridge/create-api.ts +13 -0
  158. package/src/extensions/bridge/index.ts +3 -0
  159. package/src/extensions/bridge/openapi-ts/client/client.gen.ts +288 -0
  160. package/src/extensions/bridge/openapi-ts/client/index.ts +25 -0
  161. package/src/extensions/bridge/openapi-ts/client/types.gen.ts +213 -0
  162. package/src/extensions/bridge/openapi-ts/client/utils.gen.ts +316 -0
  163. package/src/extensions/bridge/openapi-ts/client.gen.ts +16 -0
  164. package/src/extensions/bridge/openapi-ts/core/auth.gen.ts +41 -0
  165. package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +84 -0
  166. package/src/extensions/bridge/openapi-ts/core/params.gen.ts +169 -0
  167. package/src/extensions/bridge/openapi-ts/core/pathSerializer.gen.ts +171 -0
  168. package/src/extensions/bridge/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  169. package/src/extensions/bridge/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  170. package/src/extensions/bridge/openapi-ts/core/types.gen.ts +104 -0
  171. package/src/extensions/bridge/openapi-ts/core/utils.gen.ts +140 -0
  172. package/src/extensions/bridge/openapi-ts/index.ts +4 -0
  173. package/src/extensions/bridge/openapi-ts/sdk.gen.ts +383 -0
  174. package/src/extensions/bridge/openapi-ts/types.gen.ts +1855 -0
  175. package/src/extensions/builder/create-api.ts +13 -0
  176. package/src/extensions/builder/index.ts +3 -0
  177. package/src/extensions/builder/openapi-ts/client/client.gen.ts +288 -0
  178. package/src/extensions/builder/openapi-ts/client/index.ts +25 -0
  179. package/src/extensions/builder/openapi-ts/client/types.gen.ts +213 -0
  180. package/src/extensions/builder/openapi-ts/client/utils.gen.ts +316 -0
  181. package/src/extensions/builder/openapi-ts/client.gen.ts +16 -0
  182. package/src/extensions/builder/openapi-ts/core/auth.gen.ts +41 -0
  183. package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +84 -0
  184. package/src/extensions/builder/openapi-ts/core/params.gen.ts +169 -0
  185. package/src/extensions/builder/openapi-ts/core/pathSerializer.gen.ts +171 -0
  186. package/src/extensions/builder/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  187. package/src/extensions/builder/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  188. package/src/extensions/builder/openapi-ts/core/types.gen.ts +104 -0
  189. package/src/extensions/builder/openapi-ts/core/utils.gen.ts +140 -0
  190. package/src/extensions/builder/openapi-ts/index.ts +4 -0
  191. package/src/extensions/builder/openapi-ts/sdk.gen.ts +60 -0
  192. package/src/extensions/builder/openapi-ts/types.gen.ts +215 -0
  193. package/src/extensions/business/create-api.ts +13 -0
  194. package/src/extensions/business/index.ts +3 -0
  195. package/src/extensions/business/openapi-ts/client/client.gen.ts +288 -0
  196. package/src/extensions/business/openapi-ts/client/index.ts +25 -0
  197. package/src/extensions/business/openapi-ts/client/types.gen.ts +213 -0
  198. package/src/extensions/business/openapi-ts/client/utils.gen.ts +316 -0
  199. package/src/extensions/business/openapi-ts/client.gen.ts +16 -0
  200. package/src/extensions/business/openapi-ts/core/auth.gen.ts +41 -0
  201. package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +84 -0
  202. package/src/extensions/business/openapi-ts/core/params.gen.ts +169 -0
  203. package/src/extensions/business/openapi-ts/core/pathSerializer.gen.ts +171 -0
  204. package/src/extensions/business/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  205. package/src/extensions/business/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  206. package/src/extensions/business/openapi-ts/core/types.gen.ts +104 -0
  207. package/src/extensions/business/openapi-ts/core/utils.gen.ts +140 -0
  208. package/src/extensions/business/openapi-ts/index.ts +4 -0
  209. package/src/extensions/business/openapi-ts/sdk.gen.ts +903 -0
  210. package/src/extensions/business/openapi-ts/types.gen.ts +8718 -0
  211. package/src/extensions/conversion/create-api.ts +13 -0
  212. package/src/extensions/conversion/index.ts +3 -0
  213. package/src/extensions/conversion/openapi-ts/client/client.gen.ts +288 -0
  214. package/src/extensions/conversion/openapi-ts/client/index.ts +25 -0
  215. package/src/extensions/conversion/openapi-ts/client/types.gen.ts +213 -0
  216. package/src/extensions/conversion/openapi-ts/client/utils.gen.ts +316 -0
  217. package/src/extensions/conversion/openapi-ts/client.gen.ts +16 -0
  218. package/src/extensions/conversion/openapi-ts/core/auth.gen.ts +41 -0
  219. package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +84 -0
  220. package/src/extensions/conversion/openapi-ts/core/params.gen.ts +169 -0
  221. package/src/extensions/conversion/openapi-ts/core/pathSerializer.gen.ts +171 -0
  222. package/src/extensions/conversion/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  223. package/src/extensions/conversion/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  224. package/src/extensions/conversion/openapi-ts/core/types.gen.ts +104 -0
  225. package/src/extensions/conversion/openapi-ts/core/utils.gen.ts +140 -0
  226. package/src/extensions/conversion/openapi-ts/index.ts +4 -0
  227. package/src/extensions/conversion/openapi-ts/sdk.gen.ts +684 -0
  228. package/src/extensions/conversion/openapi-ts/types.gen.ts +2467 -0
  229. package/src/extensions/mass-send/create-api.ts +13 -0
  230. package/src/extensions/mass-send/index.ts +3 -0
  231. package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +288 -0
  232. package/src/extensions/mass-send/openapi-ts/client/index.ts +25 -0
  233. package/src/extensions/mass-send/openapi-ts/client/types.gen.ts +213 -0
  234. package/src/extensions/mass-send/openapi-ts/client/utils.gen.ts +316 -0
  235. package/src/extensions/mass-send/openapi-ts/client.gen.ts +16 -0
  236. package/src/extensions/mass-send/openapi-ts/core/auth.gen.ts +41 -0
  237. package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +84 -0
  238. package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +169 -0
  239. package/src/extensions/mass-send/openapi-ts/core/pathSerializer.gen.ts +171 -0
  240. package/src/extensions/mass-send/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  241. package/src/extensions/mass-send/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  242. package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +104 -0
  243. package/src/extensions/mass-send/openapi-ts/core/utils.gen.ts +140 -0
  244. package/src/extensions/mass-send/openapi-ts/index.ts +4 -0
  245. package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +270 -0
  246. package/src/extensions/mass-send/openapi-ts/types.gen.ts +988 -0
  247. package/src/extensions/notifications/create-api.ts +13 -0
  248. package/src/extensions/notifications/index.ts +3 -0
  249. package/src/extensions/notifications/openapi-ts/client/client.gen.ts +288 -0
  250. package/src/extensions/notifications/openapi-ts/client/index.ts +25 -0
  251. package/src/extensions/notifications/openapi-ts/client/types.gen.ts +213 -0
  252. package/src/extensions/notifications/openapi-ts/client/utils.gen.ts +316 -0
  253. package/src/extensions/notifications/openapi-ts/client.gen.ts +16 -0
  254. package/src/extensions/notifications/openapi-ts/core/auth.gen.ts +41 -0
  255. package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +84 -0
  256. package/src/extensions/notifications/openapi-ts/core/params.gen.ts +169 -0
  257. package/src/extensions/notifications/openapi-ts/core/pathSerializer.gen.ts +171 -0
  258. package/src/extensions/notifications/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  259. package/src/extensions/notifications/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  260. package/src/extensions/notifications/openapi-ts/core/types.gen.ts +104 -0
  261. package/src/extensions/notifications/openapi-ts/core/utils.gen.ts +140 -0
  262. package/src/extensions/notifications/openapi-ts/index.ts +4 -0
  263. package/src/extensions/notifications/openapi-ts/sdk.gen.ts +450 -0
  264. package/src/extensions/notifications/openapi-ts/types.gen.ts +1732 -0
  265. package/src/extensions/payment-requests/create-api.ts +13 -0
  266. package/src/extensions/payment-requests/index.ts +3 -0
  267. package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +288 -0
  268. package/src/extensions/payment-requests/openapi-ts/client/index.ts +25 -0
  269. package/src/extensions/payment-requests/openapi-ts/client/types.gen.ts +213 -0
  270. package/src/extensions/payment-requests/openapi-ts/client/utils.gen.ts +316 -0
  271. package/src/extensions/payment-requests/openapi-ts/client.gen.ts +16 -0
  272. package/src/extensions/payment-requests/openapi-ts/core/auth.gen.ts +41 -0
  273. package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +84 -0
  274. package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +169 -0
  275. package/src/extensions/payment-requests/openapi-ts/core/pathSerializer.gen.ts +171 -0
  276. package/src/extensions/payment-requests/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  277. package/src/extensions/payment-requests/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  278. package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +104 -0
  279. package/src/extensions/payment-requests/openapi-ts/core/utils.gen.ts +140 -0
  280. package/src/extensions/payment-requests/openapi-ts/index.ts +4 -0
  281. package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +845 -0
  282. package/src/extensions/payment-requests/openapi-ts/types.gen.ts +3415 -0
  283. package/src/extensions/products/create-api.ts +13 -0
  284. package/src/extensions/products/index.ts +3 -0
  285. package/src/extensions/products/openapi-ts/client/client.gen.ts +288 -0
  286. package/src/extensions/products/openapi-ts/client/index.ts +25 -0
  287. package/src/extensions/products/openapi-ts/client/types.gen.ts +213 -0
  288. package/src/extensions/products/openapi-ts/client/utils.gen.ts +316 -0
  289. package/src/extensions/products/openapi-ts/client.gen.ts +16 -0
  290. package/src/extensions/products/openapi-ts/core/auth.gen.ts +41 -0
  291. package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +84 -0
  292. package/src/extensions/products/openapi-ts/core/params.gen.ts +169 -0
  293. package/src/extensions/products/openapi-ts/core/pathSerializer.gen.ts +171 -0
  294. package/src/extensions/products/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  295. package/src/extensions/products/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  296. package/src/extensions/products/openapi-ts/core/types.gen.ts +104 -0
  297. package/src/extensions/products/openapi-ts/core/utils.gen.ts +140 -0
  298. package/src/extensions/products/openapi-ts/index.ts +4 -0
  299. package/src/extensions/products/openapi-ts/sdk.gen.ts +2619 -0
  300. package/src/extensions/products/openapi-ts/types.gen.ts +9717 -0
  301. package/src/extensions/rain/create-api.ts +13 -0
  302. package/src/extensions/rain/index.ts +3 -0
  303. package/src/extensions/rain/openapi-ts/client/client.gen.ts +288 -0
  304. package/src/extensions/rain/openapi-ts/client/index.ts +25 -0
  305. package/src/extensions/rain/openapi-ts/client/types.gen.ts +213 -0
  306. package/src/extensions/rain/openapi-ts/client/utils.gen.ts +316 -0
  307. package/src/extensions/rain/openapi-ts/client.gen.ts +16 -0
  308. package/src/extensions/rain/openapi-ts/core/auth.gen.ts +41 -0
  309. package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +84 -0
  310. package/src/extensions/rain/openapi-ts/core/params.gen.ts +169 -0
  311. package/src/extensions/rain/openapi-ts/core/pathSerializer.gen.ts +171 -0
  312. package/src/extensions/rain/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  313. package/src/extensions/rain/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  314. package/src/extensions/rain/openapi-ts/core/types.gen.ts +104 -0
  315. package/src/extensions/rain/openapi-ts/core/utils.gen.ts +140 -0
  316. package/src/extensions/rain/openapi-ts/index.ts +4 -0
  317. package/src/extensions/rain/openapi-ts/sdk.gen.ts +227 -0
  318. package/src/extensions/rain/openapi-ts/types.gen.ts +1660 -0
  319. package/src/extensions/rewards/create-api.ts +13 -0
  320. package/src/extensions/rewards/index.ts +3 -0
  321. package/src/extensions/rewards/openapi-ts/client/client.gen.ts +288 -0
  322. package/src/extensions/rewards/openapi-ts/client/index.ts +25 -0
  323. package/src/extensions/rewards/openapi-ts/client/types.gen.ts +213 -0
  324. package/src/extensions/rewards/openapi-ts/client/utils.gen.ts +316 -0
  325. package/src/extensions/rewards/openapi-ts/client.gen.ts +16 -0
  326. package/src/extensions/rewards/openapi-ts/core/auth.gen.ts +41 -0
  327. package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +84 -0
  328. package/src/extensions/rewards/openapi-ts/core/params.gen.ts +169 -0
  329. package/src/extensions/rewards/openapi-ts/core/pathSerializer.gen.ts +171 -0
  330. package/src/extensions/rewards/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  331. package/src/extensions/rewards/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  332. package/src/extensions/rewards/openapi-ts/core/types.gen.ts +104 -0
  333. package/src/extensions/rewards/openapi-ts/core/utils.gen.ts +140 -0
  334. package/src/extensions/rewards/openapi-ts/index.ts +4 -0
  335. package/src/extensions/rewards/openapi-ts/sdk.gen.ts +345 -0
  336. package/src/extensions/rewards/openapi-ts/types.gen.ts +1718 -0
  337. package/src/extensions/stellar/create-api.ts +13 -0
  338. package/src/extensions/stellar/index.ts +3 -0
  339. package/src/extensions/stellar/openapi-ts/client/client.gen.ts +288 -0
  340. package/src/extensions/stellar/openapi-ts/client/index.ts +25 -0
  341. package/src/extensions/stellar/openapi-ts/client/types.gen.ts +213 -0
  342. package/src/extensions/stellar/openapi-ts/client/utils.gen.ts +316 -0
  343. package/src/extensions/stellar/openapi-ts/client.gen.ts +16 -0
  344. package/src/extensions/stellar/openapi-ts/core/auth.gen.ts +41 -0
  345. package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +84 -0
  346. package/src/extensions/stellar/openapi-ts/core/params.gen.ts +169 -0
  347. package/src/extensions/stellar/openapi-ts/core/pathSerializer.gen.ts +171 -0
  348. package/src/extensions/stellar/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  349. package/src/extensions/stellar/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  350. package/src/extensions/stellar/openapi-ts/core/types.gen.ts +104 -0
  351. package/src/extensions/stellar/openapi-ts/core/utils.gen.ts +140 -0
  352. package/src/extensions/stellar/openapi-ts/index.ts +4 -0
  353. package/src/extensions/stellar/openapi-ts/sdk.gen.ts +1049 -0
  354. package/src/extensions/stellar/openapi-ts/types.gen.ts +3543 -0
  355. package/src/extensions/stellar-testnet/create-api.ts +13 -0
  356. package/src/extensions/stellar-testnet/index.ts +3 -0
  357. package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +288 -0
  358. package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +25 -0
  359. package/src/extensions/stellar-testnet/openapi-ts/client/types.gen.ts +213 -0
  360. package/src/extensions/stellar-testnet/openapi-ts/client/utils.gen.ts +316 -0
  361. package/src/extensions/stellar-testnet/openapi-ts/client.gen.ts +16 -0
  362. package/src/extensions/stellar-testnet/openapi-ts/core/auth.gen.ts +41 -0
  363. package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +84 -0
  364. package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +169 -0
  365. package/src/extensions/stellar-testnet/openapi-ts/core/pathSerializer.gen.ts +171 -0
  366. package/src/extensions/stellar-testnet/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  367. package/src/extensions/stellar-testnet/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  368. package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +104 -0
  369. package/src/extensions/stellar-testnet/openapi-ts/core/utils.gen.ts +140 -0
  370. package/src/extensions/stellar-testnet/openapi-ts/index.ts +4 -0
  371. package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +1049 -0
  372. package/src/extensions/stellar-testnet/openapi-ts/types.gen.ts +3543 -0
  373. package/src/platform/admin/create-api.ts +11 -0
  374. package/src/platform/admin/index.ts +3 -42
  375. package/src/platform/admin/openapi-ts/client/client.gen.ts +288 -0
  376. package/src/platform/admin/openapi-ts/client/index.ts +25 -0
  377. package/src/platform/admin/openapi-ts/client/types.gen.ts +213 -0
  378. package/src/platform/admin/openapi-ts/client/utils.gen.ts +316 -0
  379. package/src/platform/admin/openapi-ts/client.gen.ts +16 -0
  380. package/src/platform/admin/openapi-ts/core/auth.gen.ts +41 -0
  381. package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +84 -0
  382. package/src/platform/admin/openapi-ts/core/params.gen.ts +169 -0
  383. package/src/platform/admin/openapi-ts/core/pathSerializer.gen.ts +171 -0
  384. package/src/platform/admin/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  385. package/src/platform/admin/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  386. package/src/platform/admin/openapi-ts/core/types.gen.ts +104 -0
  387. package/src/platform/admin/openapi-ts/core/utils.gen.ts +140 -0
  388. package/src/platform/admin/openapi-ts/index.ts +4 -0
  389. package/src/platform/admin/openapi-ts/sdk.gen.ts +3975 -0
  390. package/src/platform/admin/openapi-ts/types.gen.ts +31193 -0
  391. package/src/platform/user/create-api.ts +11 -0
  392. package/src/platform/user/index.ts +3 -42
  393. package/src/platform/user/openapi-ts/client/client.gen.ts +288 -0
  394. package/src/platform/user/openapi-ts/client/index.ts +25 -0
  395. package/src/platform/user/openapi-ts/client/types.gen.ts +213 -0
  396. package/src/platform/user/openapi-ts/client/utils.gen.ts +316 -0
  397. package/src/platform/user/openapi-ts/client.gen.ts +16 -0
  398. package/src/platform/user/openapi-ts/core/auth.gen.ts +41 -0
  399. package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +84 -0
  400. package/src/platform/user/openapi-ts/core/params.gen.ts +169 -0
  401. package/src/platform/user/openapi-ts/core/pathSerializer.gen.ts +171 -0
  402. package/src/platform/user/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  403. package/src/platform/user/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  404. package/src/platform/user/openapi-ts/core/types.gen.ts +104 -0
  405. package/src/platform/user/openapi-ts/core/utils.gen.ts +140 -0
  406. package/src/platform/user/openapi-ts/index.ts +4 -0
  407. package/src/platform/user/openapi-ts/sdk.gen.ts +2090 -0
  408. package/src/platform/user/openapi-ts/types.gen.ts +19540 -0
  409. package/src/shared/api-utils.ts +22 -0
  410. package/src/shared/bind-sdk.ts +48 -0
  411. package/src/shared/create-api-client.ts +54 -0
  412. package/src/extensions/app/http-client.ts +0 -1
  413. package/src/extensions/app/rehive-app-api.ts +0 -1827
  414. package/src/extensions/bridge/rehive-bridge-api.ts +0 -1436
  415. package/src/extensions/business/rehive-business-api.ts +0 -9480
  416. package/src/extensions/conversion/rehive-conversion-api.ts +0 -3054
  417. package/src/extensions/mass-send/rehive-mass-send-api.ts +0 -1061
  418. package/src/extensions/notifications/rehive-notifications-api.ts +0 -1964
  419. package/src/extensions/payment-requests/rehive-payment-requests-api.ts +0 -4026
  420. package/src/extensions/products/rehive-products-api.ts +0 -13107
  421. package/src/extensions/rewards/rehive-rewards-api.ts +0 -2139
  422. package/src/extensions/stellar/rehive-stellar-api.ts +0 -4219
  423. package/src/extensions/stellar-testnet/rehive-stellar-testnet-api.ts +0 -4219
  424. package/src/platform/admin/rehive-platform-admin-api.ts +0 -35075
  425. package/src/platform/user/rehive-platform-user-api.ts +0 -21554
@@ -1,4026 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- /** This serializer can be used if only a `status` is required in the response. */
14
- export interface ActionResponse {
15
- /** @default "sucess" */
16
- status?: string;
17
- }
18
-
19
- /**
20
- * Serialize the activation data, should be a token that represents an admin
21
- * user.
22
- */
23
- export interface Activate {
24
- token: string;
25
- id: string;
26
- name: string;
27
- /** @format uuid */
28
- secret: string;
29
- }
30
-
31
- /** Serialize company, update and delete. */
32
- export interface AdminCompany {
33
- id: string;
34
- /** @format uuid */
35
- secret: string;
36
- name: string;
37
- reminder_intervals?: number[];
38
- }
39
-
40
- /** Serialize Company Payment Processors, view, create and update. */
41
- export interface AdminCompanyPaymentProcessor {
42
- id: string;
43
- active?: boolean;
44
- /** @maxLength 255 */
45
- company_base_endpoint: string;
46
- /** @maxLength 255 */
47
- company_external_api_key: string;
48
- payment_processor?: string;
49
- /** @maxItems 100 */
50
- currencies?: string[];
51
- generate_accounts?: boolean;
52
- }
53
-
54
- export interface AdminCompanyPaymentProcessorResponse {
55
- /** @example "success" */
56
- status?: string;
57
- /** Serialize Company Payment Processors, view, create and update. */
58
- data?: AdminCompanyPaymentProcessor;
59
- }
60
-
61
- export interface AdminCompanyResponse {
62
- /** @example "success" */
63
- status?: string;
64
- /** Serialize company, update and delete. */
65
- data?: AdminCompany;
66
- }
67
-
68
- /**
69
- * A ModelSerializer that takes additional arguments for
70
- * "fields", "omit" and "expand" in order to
71
- * control which fields are displayed, and whether to replace simple
72
- * values with complex, nested serializations
73
- */
74
- export interface AdminPaymentProcessor {
75
- id: string;
76
- native: boolean;
77
- /** @maxLength 100 */
78
- unique_string_name: string;
79
- /** @maxLength 100 */
80
- logo?: string | null;
81
- /** @maxLength 100 */
82
- name: string;
83
- /**
84
- * * `wallet` - Wallet
85
- * * `crypto` - Crypto
86
- * * `credit_card` - Credit Card
87
- * * `redirect` - Redirect
88
- * * `bank` - Bank
89
- * * `custom` - Custom
90
- */
91
- type: "wallet" | "crypto" | "credit_card" | "redirect" | "bank" | "custom";
92
- /** @maxLength 255 */
93
- description: string;
94
- /** @maxLength 255 */
95
- selector_description?: string | null;
96
- /** @maxLength 255 */
97
- pending_processing_description?: string | null;
98
- /** @maxLength 255 */
99
- processing_description?: string | null;
100
- currencies?: (string | null)[];
101
- /**
102
- * @format int64
103
- * @min -9223372036854776000
104
- * @max 9223372036854776000
105
- */
106
- longest_expiration_time?: number;
107
- rehive_transaction_identifier?: Record<string, any>;
108
- /** @maxLength 255 */
109
- rehive_subtype?: string | null;
110
- generate_accounts?: boolean;
111
- }
112
-
113
- export interface AdminPaymentProcessorResponse {
114
- /** @example "success" */
115
- status?: string;
116
- /**
117
- * A ModelSerializer that takes additional arguments for
118
- * "fields", "omit" and "expand" in order to
119
- * control which fields are displayed, and whether to replace simple
120
- * values with complex, nested serializations
121
- */
122
- data?: AdminPaymentProcessor;
123
- }
124
-
125
- /**
126
- * A ModelSerializer that takes additional arguments for
127
- * "fields", "omit" and "expand" in order to
128
- * control which fields are displayed, and whether to replace simple
129
- * values with complex, nested serializations
130
- */
131
- export interface AdminRefund {
132
- id: string;
133
- /**
134
- * @format int64
135
- * @min -9223372036854776000
136
- * @max 9223372036854776000
137
- */
138
- amount?: number;
139
- currency: string;
140
- /**
141
- * * `pending` - Pending
142
- * * `processing` - Processing
143
- * * `complete` - Complete
144
- * * `failed` - Failed
145
- */
146
- status: "pending" | "processing" | "complete" | "failed";
147
- /** * `native` - Native */
148
- type?: "native";
149
- transaction_collection: string | null;
150
- /** @maxLength 100 */
151
- reason?: string | null;
152
- request: number;
153
- created?: number;
154
- updated?: number;
155
- }
156
-
157
- export interface AdminRefundResponse {
158
- /** @example "success" */
159
- status?: string;
160
- /**
161
- * A ModelSerializer that takes additional arguments for
162
- * "fields", "omit" and "expand" in order to
163
- * control which fields are displayed, and whether to replace simple
164
- * values with complex, nested serializations
165
- */
166
- data?: AdminRefund;
167
- }
168
-
169
- /**
170
- * A ModelSerializer that takes additional arguments for
171
- * "fields", "omit" and "expand" in order to
172
- * control which fields are displayed, and whether to replace simple
173
- * values with complex, nested serializations
174
- */
175
- export interface AdminRequestCreateUpdate {
176
- id: string;
177
- /** @format uuid */
178
- user: string;
179
- /**
180
- * A ModelSerializer that takes additional arguments for
181
- * "fields", "omit" and "expand" in order to
182
- * control which fields are displayed, and whether to replace simple
183
- * values with complex, nested serializations
184
- */
185
- payer_user?: User;
186
- /** @maxLength 255 */
187
- request_reference?: string | null;
188
- request_currency: string;
189
- /**
190
- * @format int64
191
- * @min -9223372036854776000
192
- * @max 9223372036854776000
193
- */
194
- request_amount?: number | null;
195
- primary_payment_processor?: string;
196
- /** @maxLength 255 */
197
- description?: string | null;
198
- metadata?: Record<string, any>;
199
- /**
200
- * * `draft` - Draft
201
- * * `initiated` - Initiated
202
- * * `processing` - Processing
203
- * * `received` - Received
204
- * * `paid` - Paid
205
- * * `complete` - Complete
206
- * * `failed` - Failed
207
- * * `overpaid` - Overpaid
208
- * * `cancelled` - Cancelled
209
- * * `expired` - Expired
210
- * * `late` - Late
211
- * * `underpaid` - Underpaid
212
- */
213
- status?:
214
- | "draft"
215
- | "initiated"
216
- | "processing"
217
- | "received"
218
- | "paid"
219
- | "complete"
220
- | "failed"
221
- | "overpaid"
222
- | "cancelled"
223
- | "expired"
224
- | "late"
225
- | "underpaid";
226
- expiration_date?: number;
227
- due_date?: number;
228
- send_request_on?: number;
229
- redirect_url: string;
230
- /** @format email */
231
- payer_email?: string;
232
- /** @maxLength 255 */
233
- account: string;
234
- send_reminders?: boolean;
235
- reminder_intervals?: number[];
236
- /** @maxLength 255 */
237
- note?: string | null;
238
- /** @maxLength 255 */
239
- return_url?: string | null;
240
- payer_mobile_number?: string;
241
- payment_processor_quotes?: PaymentProcessorQuote[];
242
- }
243
-
244
- export interface AdminRequestCreateUpdateResponse {
245
- /** @example "success" */
246
- status?: string;
247
- /**
248
- * A ModelSerializer that takes additional arguments for
249
- * "fields", "omit" and "expand" in order to
250
- * control which fields are displayed, and whether to replace simple
251
- * values with complex, nested serializations
252
- */
253
- data?: AdminRequestCreateUpdate;
254
- }
255
-
256
- /**
257
- * A ModelSerializer that takes additional arguments for
258
- * "fields", "omit" and "expand" in order to
259
- * control which fields are displayed, and whether to replace simple
260
- * values with complex, nested serializations
261
- */
262
- export interface AdminUser {
263
- id: string;
264
- /** @maxLength 30 */
265
- base_currency?: string | null;
266
- /**
267
- * @format decimal
268
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
269
- */
270
- rate_padding?: string | null;
271
- email: string | null;
272
- mobile_number: string | null;
273
- first_name: string | null;
274
- profile: string | null;
275
- last_name: string | null;
276
- }
277
-
278
- export interface AdminUserResponse {
279
- /** @example "success" */
280
- status?: string;
281
- /**
282
- * A ModelSerializer that takes additional arguments for
283
- * "fields", "omit" and "expand" in order to
284
- * control which fields are displayed, and whether to replace simple
285
- * values with complex, nested serializations
286
- */
287
- data?: AdminUser;
288
- }
289
-
290
- /**
291
- * A ModelSerializer that takes additional arguments for
292
- * "fields", "omit" and "expand" in order to
293
- * control which fields are displayed, and whether to replace simple
294
- * values with complex, nested serializations
295
- */
296
- export interface AdminWebhook {
297
- id: string;
298
- /** @maxLength 150 */
299
- secret?: string | null;
300
- /** @maxLength 150 */
301
- url: string;
302
- /**
303
- * * `service_payment_requests.request.create` - service_payment_requests.request.create
304
- * * `service_payment_requests.request.update` - service_payment_requests.request.update
305
- * * `service_payment_requests.quote.create` - Payment Requests Quote Create
306
- * * `service_payment_requests.otp.create` - service_payment_requests.otp.create
307
- * * `service_payment_requests.payer_reminder` - Payment Requests Payer Reminder
308
- * * `service_payment_requests.payer_requested` - Payment Requests Request Payer Requested
309
- */
310
- event:
311
- | "service_payment_requests.request.create"
312
- | "service_payment_requests.request.update"
313
- | "service_payment_requests.quote.create"
314
- | "service_payment_requests.otp.create"
315
- | "service_payment_requests.payer_reminder"
316
- | "service_payment_requests.payer_requested";
317
- }
318
-
319
- export interface AdminWebhookResponse {
320
- /** @example "success" */
321
- status?: string;
322
- /**
323
- * A ModelSerializer that takes additional arguments for
324
- * "fields", "omit" and "expand" in order to
325
- * control which fields are displayed, and whether to replace simple
326
- * values with complex, nested serializations
327
- */
328
- data?: AdminWebhook;
329
- }
330
-
331
- /**
332
- * A ModelSerializer that takes additional arguments for
333
- * "fields", "omit" and "expand" in order to
334
- * control which fields are displayed, and whether to replace simple
335
- * values with complex, nested serializations
336
- */
337
- export interface AvailablePaymentProcessor {
338
- id: string;
339
- native: boolean;
340
- unique_string_name: string;
341
- logo: string | null;
342
- name: string;
343
- description: string;
344
- selector_description: string | null;
345
- pending_processing_description: string | null;
346
- processing_description: string | null;
347
- currencies: (string | null)[];
348
- /**
349
- * * `wallet` - Wallet
350
- * * `crypto` - Crypto
351
- * * `credit_card` - Credit Card
352
- * * `redirect` - Redirect
353
- * * `bank` - Bank
354
- * * `custom` - Custom
355
- */
356
- type: "wallet" | "crypto" | "credit_card" | "redirect" | "bank" | "custom";
357
- longest_expiration_time: number;
358
- rehive_transaction_identifier: Record<string, any>;
359
- rehive_subtype: string | null;
360
- active_weight: number;
361
- generate_accounts: boolean;
362
- selectable_currencies: string[];
363
- weight: number;
364
- }
365
-
366
- /** Serialize company, update and delete. */
367
- export interface CompanyConfiguration {
368
- /** @maxLength 100 */
369
- base_redirect_url?: string | null;
370
- otp_notification_id: string | null;
371
- request_notification_id: string | null;
372
- reminder_default?: boolean;
373
- /** @maxLength 50 */
374
- request_param_config?: string | null;
375
- }
376
-
377
- export interface CompanyConfigurationResponse {
378
- /** @example "success" */
379
- status?: string;
380
- /** Serialize company, update and delete. */
381
- data?: CompanyConfiguration;
382
- }
383
-
384
- /** Serialize Company Payment Processor, view, create and update. */
385
- export interface CompanyPaymentProcessor {
386
- id: string;
387
- active: boolean;
388
- payment_processor: PaymentProcessor;
389
- currencies: Currency[];
390
- }
391
-
392
- export interface CompanyPaymentProcessorResponse {
393
- /** @example "success" */
394
- status?: string;
395
- /** Serialize Company Payment Processor, view, create and update. */
396
- data?: CompanyPaymentProcessor;
397
- }
398
-
399
- /**
400
- * A ModelSerializer that takes additional arguments for
401
- * "fields", "omit" and "expand" in order to
402
- * control which fields are displayed, and whether to replace simple
403
- * values with complex, nested serializations
404
- */
405
- export interface ConversionQuote {
406
- /**
407
- * * `quoted` - Quoted
408
- * * `pending` - Pending
409
- * * `complete` - Complete
410
- * * `failed` - Failed
411
- * * `cancelled` - Cancelled
412
- */
413
- status: "quoted" | "pending" | "complete" | "failed" | "cancelled";
414
- conversion_quote_id: string;
415
- rate: string | null;
416
- }
417
-
418
- /**
419
- * A ModelSerializer that takes additional arguments for
420
- * "fields", "omit" and "expand" in order to
421
- * control which fields are displayed, and whether to replace simple
422
- * values with complex, nested serializations
423
- */
424
- export interface CreateRefund {
425
- id: string;
426
- /**
427
- * @format int64
428
- * @min -9223372036854776000
429
- * @max 9223372036854776000
430
- */
431
- amount?: number;
432
- currency: string;
433
- /**
434
- * * `pending` - Pending
435
- * * `processing` - Processing
436
- * * `complete` - Complete
437
- * * `failed` - Failed
438
- */
439
- status: "pending" | "processing" | "complete" | "failed";
440
- /** * `native` - Native */
441
- type?: "native";
442
- transaction_collection: string | null;
443
- /** @maxLength 100 */
444
- reason?: string | null;
445
- request: number;
446
- created?: number;
447
- updated?: number;
448
- }
449
-
450
- export interface CreateRefundResponse {
451
- /** @example "success" */
452
- status?: string;
453
- /**
454
- * A ModelSerializer that takes additional arguments for
455
- * "fields", "omit" and "expand" in order to
456
- * control which fields are displayed, and whether to replace simple
457
- * values with complex, nested serializations
458
- */
459
- data?: CreateRefund;
460
- }
461
-
462
- /**
463
- * A ModelSerializer that takes additional arguments for
464
- * "fields", "omit" and "expand" in order to
465
- * control which fields are displayed, and whether to replace simple
466
- * values with complex, nested serializations
467
- */
468
- export interface Currency {
469
- /** @maxLength 30 */
470
- code: string;
471
- /** @maxLength 30 */
472
- display_code?: string | null;
473
- /** @maxLength 255 */
474
- description?: string | null;
475
- /** @maxLength 30 */
476
- symbol?: string | null;
477
- /** @maxLength 30 */
478
- unit?: string | null;
479
- /**
480
- * @min -2147483648
481
- * @max 2147483647
482
- */
483
- divisibility?: number;
484
- }
485
-
486
- /**
487
- * Serialize the deactivation data, should be a token that represents an admin
488
- * user.
489
- */
490
- export interface Deactivate {
491
- token: string;
492
- /** @default false */
493
- purge?: boolean;
494
- }
495
-
496
- export interface OTPChallenge {
497
- otp: string;
498
- }
499
-
500
- export interface PaginatedAdminUserList {
501
- /** @example 123 */
502
- count?: number;
503
- /**
504
- * @format uri
505
- * @example "http://api.example.org/accounts/?page=4"
506
- */
507
- next?: string | null;
508
- /**
509
- * @format uri
510
- * @example "http://api.example.org/accounts/?page=2"
511
- */
512
- previous?: string | null;
513
- results?: AdminUser[];
514
- }
515
-
516
- export interface PaginatedAdminUserListResponse {
517
- /** @example "success" */
518
- status?: string;
519
- data?: PaginatedAdminUserList;
520
- }
521
-
522
- export interface PaginatedAdminWebhookList {
523
- /** @example 123 */
524
- count?: number;
525
- /**
526
- * @format uri
527
- * @example "http://api.example.org/accounts/?page=4"
528
- */
529
- next?: string | null;
530
- /**
531
- * @format uri
532
- * @example "http://api.example.org/accounts/?page=2"
533
- */
534
- previous?: string | null;
535
- results?: AdminWebhook[];
536
- }
537
-
538
- export interface PaginatedAdminWebhookListResponse {
539
- /** @example "success" */
540
- status?: string;
541
- data?: PaginatedAdminWebhookList;
542
- }
543
-
544
- export interface PaginatedCompanyPaymentProcessorList {
545
- /** @example 123 */
546
- count?: number;
547
- /**
548
- * @format uri
549
- * @example "http://api.example.org/accounts/?page=4"
550
- */
551
- next?: string | null;
552
- /**
553
- * @format uri
554
- * @example "http://api.example.org/accounts/?page=2"
555
- */
556
- previous?: string | null;
557
- results?: CompanyPaymentProcessor[];
558
- }
559
-
560
- export interface PaginatedCompanyPaymentProcessorListResponse {
561
- /** @example "success" */
562
- status?: string;
563
- data?: PaginatedCompanyPaymentProcessorList;
564
- }
565
-
566
- export interface PaginatedPaymentProcessorList {
567
- /** @example 123 */
568
- count?: number;
569
- /**
570
- * @format uri
571
- * @example "http://api.example.org/accounts/?page=4"
572
- */
573
- next?: string | null;
574
- /**
575
- * @format uri
576
- * @example "http://api.example.org/accounts/?page=2"
577
- */
578
- previous?: string | null;
579
- results?: PaymentProcessor[];
580
- }
581
-
582
- export interface PaginatedPaymentProcessorListResponse {
583
- /** @example "success" */
584
- status?: string;
585
- data?: PaginatedPaymentProcessorList;
586
- }
587
-
588
- export interface PaginatedPaymentProcessorQuoteList {
589
- /** @example 123 */
590
- count?: number;
591
- /**
592
- * @format uri
593
- * @example "http://api.example.org/accounts/?page=4"
594
- */
595
- next?: string | null;
596
- /**
597
- * @format uri
598
- * @example "http://api.example.org/accounts/?page=2"
599
- */
600
- previous?: string | null;
601
- results?: PaymentProcessorQuote[];
602
- }
603
-
604
- export interface PaginatedPaymentProcessorQuoteListResponse {
605
- /** @example "success" */
606
- status?: string;
607
- data?: PaginatedPaymentProcessorQuoteList;
608
- }
609
-
610
- export interface PaginatedRefundList {
611
- /** @example 123 */
612
- count?: number;
613
- /**
614
- * @format uri
615
- * @example "http://api.example.org/accounts/?page=4"
616
- */
617
- next?: string | null;
618
- /**
619
- * @format uri
620
- * @example "http://api.example.org/accounts/?page=2"
621
- */
622
- previous?: string | null;
623
- results?: Refund[];
624
- }
625
-
626
- export interface PaginatedRefundListResponse {
627
- /** @example "success" */
628
- status?: string;
629
- data?: PaginatedRefundList;
630
- }
631
-
632
- export interface PaginatedRequestList {
633
- /** @example 123 */
634
- count?: number;
635
- /**
636
- * @format uri
637
- * @example "http://api.example.org/accounts/?page=4"
638
- */
639
- next?: string | null;
640
- /**
641
- * @format uri
642
- * @example "http://api.example.org/accounts/?page=2"
643
- */
644
- previous?: string | null;
645
- results?: Request[];
646
- }
647
-
648
- export interface PaginatedRequestListResponse {
649
- /** @example "success" */
650
- status?: string;
651
- data?: PaginatedRequestList;
652
- }
653
-
654
- export interface PaginatedRequestLogsList {
655
- /** @example 123 */
656
- count?: number;
657
- /**
658
- * @format uri
659
- * @example "http://api.example.org/accounts/?page=4"
660
- */
661
- next?: string | null;
662
- /**
663
- * @format uri
664
- * @example "http://api.example.org/accounts/?page=2"
665
- */
666
- previous?: string | null;
667
- results?: RequestLogs[];
668
- }
669
-
670
- export interface PaginatedRequestLogsListResponse {
671
- /** @example "success" */
672
- status?: string;
673
- data?: PaginatedRequestLogsList;
674
- }
675
-
676
- export interface PaginatedRequestTransactionList {
677
- /** @example 123 */
678
- count?: number;
679
- /**
680
- * @format uri
681
- * @example "http://api.example.org/accounts/?page=4"
682
- */
683
- next?: string | null;
684
- /**
685
- * @format uri
686
- * @example "http://api.example.org/accounts/?page=2"
687
- */
688
- previous?: string | null;
689
- results?: RequestTransaction[];
690
- }
691
-
692
- export interface PaginatedRequestTransactionListResponse {
693
- /** @example "success" */
694
- status?: string;
695
- data?: PaginatedRequestTransactionList;
696
- }
697
-
698
- export interface PaginatedUserCompanyPaymentProcessorList {
699
- /** @example 123 */
700
- count?: number;
701
- /**
702
- * @format uri
703
- * @example "http://api.example.org/accounts/?page=4"
704
- */
705
- next?: string | null;
706
- /**
707
- * @format uri
708
- * @example "http://api.example.org/accounts/?page=2"
709
- */
710
- previous?: string | null;
711
- results?: UserCompanyPaymentProcessor[];
712
- }
713
-
714
- export interface PaginatedUserCompanyPaymentProcessorListResponse {
715
- /** @example "success" */
716
- status?: string;
717
- data?: PaginatedUserCompanyPaymentProcessorList;
718
- }
719
-
720
- export interface PaginatedWebhookList {
721
- /** @example 123 */
722
- count?: number;
723
- /**
724
- * @format uri
725
- * @example "http://api.example.org/accounts/?page=4"
726
- */
727
- next?: string | null;
728
- /**
729
- * @format uri
730
- * @example "http://api.example.org/accounts/?page=2"
731
- */
732
- previous?: string | null;
733
- results?: Webhook[];
734
- }
735
-
736
- export interface PaginatedWebhookListResponse {
737
- /** @example "success" */
738
- status?: string;
739
- data?: PaginatedWebhookList;
740
- }
741
-
742
- /** Serialize company, update and delete. */
743
- export interface PatchedAdminCompany {
744
- id?: string;
745
- /** @format uuid */
746
- secret?: string;
747
- name?: string;
748
- reminder_intervals?: number[];
749
- }
750
-
751
- /** Serialize Company Payment Processors, view, create and update. */
752
- export interface PatchedAdminCompanyPaymentProcessor {
753
- id?: string;
754
- active?: boolean;
755
- /** @maxLength 255 */
756
- company_base_endpoint?: string;
757
- /** @maxLength 255 */
758
- company_external_api_key?: string;
759
- payment_processor?: string;
760
- /** @maxItems 100 */
761
- currencies?: string[];
762
- generate_accounts?: boolean;
763
- }
764
-
765
- /**
766
- * A ModelSerializer that takes additional arguments for
767
- * "fields", "omit" and "expand" in order to
768
- * control which fields are displayed, and whether to replace simple
769
- * values with complex, nested serializations
770
- */
771
- export interface PatchedAdminPaymentProcessor {
772
- id?: string;
773
- native?: boolean;
774
- /** @maxLength 100 */
775
- unique_string_name?: string;
776
- /** @maxLength 100 */
777
- logo?: string | null;
778
- /** @maxLength 100 */
779
- name?: string;
780
- /**
781
- * * `wallet` - Wallet
782
- * * `crypto` - Crypto
783
- * * `credit_card` - Credit Card
784
- * * `redirect` - Redirect
785
- * * `bank` - Bank
786
- * * `custom` - Custom
787
- */
788
- type?: "wallet" | "crypto" | "credit_card" | "redirect" | "bank" | "custom";
789
- /** @maxLength 255 */
790
- description?: string;
791
- /** @maxLength 255 */
792
- selector_description?: string | null;
793
- /** @maxLength 255 */
794
- pending_processing_description?: string | null;
795
- /** @maxLength 255 */
796
- processing_description?: string | null;
797
- currencies?: (string | null)[];
798
- /**
799
- * @format int64
800
- * @min -9223372036854776000
801
- * @max 9223372036854776000
802
- */
803
- longest_expiration_time?: number;
804
- rehive_transaction_identifier?: Record<string, any>;
805
- /** @maxLength 255 */
806
- rehive_subtype?: string | null;
807
- generate_accounts?: boolean;
808
- }
809
-
810
- /**
811
- * A ModelSerializer that takes additional arguments for
812
- * "fields", "omit" and "expand" in order to
813
- * control which fields are displayed, and whether to replace simple
814
- * values with complex, nested serializations
815
- */
816
- export interface PatchedAdminRequestCreateUpdate {
817
- id?: string;
818
- /** @format uuid */
819
- user?: string;
820
- /**
821
- * A ModelSerializer that takes additional arguments for
822
- * "fields", "omit" and "expand" in order to
823
- * control which fields are displayed, and whether to replace simple
824
- * values with complex, nested serializations
825
- */
826
- payer_user?: User;
827
- /** @maxLength 255 */
828
- request_reference?: string | null;
829
- request_currency?: string;
830
- /**
831
- * @format int64
832
- * @min -9223372036854776000
833
- * @max 9223372036854776000
834
- */
835
- request_amount?: number | null;
836
- primary_payment_processor?: string;
837
- /** @maxLength 255 */
838
- description?: string | null;
839
- metadata?: Record<string, any>;
840
- /**
841
- * * `draft` - Draft
842
- * * `initiated` - Initiated
843
- * * `processing` - Processing
844
- * * `received` - Received
845
- * * `paid` - Paid
846
- * * `complete` - Complete
847
- * * `failed` - Failed
848
- * * `overpaid` - Overpaid
849
- * * `cancelled` - Cancelled
850
- * * `expired` - Expired
851
- * * `late` - Late
852
- * * `underpaid` - Underpaid
853
- */
854
- status?:
855
- | "draft"
856
- | "initiated"
857
- | "processing"
858
- | "received"
859
- | "paid"
860
- | "complete"
861
- | "failed"
862
- | "overpaid"
863
- | "cancelled"
864
- | "expired"
865
- | "late"
866
- | "underpaid";
867
- expiration_date?: number;
868
- due_date?: number;
869
- send_request_on?: number;
870
- redirect_url?: string;
871
- /** @format email */
872
- payer_email?: string;
873
- /** @maxLength 255 */
874
- account?: string;
875
- send_reminders?: boolean;
876
- reminder_intervals?: number[];
877
- /** @maxLength 255 */
878
- note?: string | null;
879
- /** @maxLength 255 */
880
- return_url?: string | null;
881
- payer_mobile_number?: string;
882
- payment_processor_quotes?: PaymentProcessorQuote[];
883
- }
884
-
885
- /**
886
- * A ModelSerializer that takes additional arguments for
887
- * "fields", "omit" and "expand" in order to
888
- * control which fields are displayed, and whether to replace simple
889
- * values with complex, nested serializations
890
- */
891
- export interface PatchedAdminUser {
892
- id?: string;
893
- /** @maxLength 30 */
894
- base_currency?: string | null;
895
- /**
896
- * @format decimal
897
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
898
- */
899
- rate_padding?: string | null;
900
- email?: string | null;
901
- mobile_number?: string | null;
902
- first_name?: string | null;
903
- profile?: string | null;
904
- last_name?: string | null;
905
- }
906
-
907
- /**
908
- * A ModelSerializer that takes additional arguments for
909
- * "fields", "omit" and "expand" in order to
910
- * control which fields are displayed, and whether to replace simple
911
- * values with complex, nested serializations
912
- */
913
- export interface PatchedAdminWebhook {
914
- id?: string;
915
- /** @maxLength 150 */
916
- secret?: string | null;
917
- /** @maxLength 150 */
918
- url?: string;
919
- /**
920
- * * `service_payment_requests.request.create` - service_payment_requests.request.create
921
- * * `service_payment_requests.request.update` - service_payment_requests.request.update
922
- * * `service_payment_requests.quote.create` - Payment Requests Quote Create
923
- * * `service_payment_requests.otp.create` - service_payment_requests.otp.create
924
- * * `service_payment_requests.payer_reminder` - Payment Requests Payer Reminder
925
- * * `service_payment_requests.payer_requested` - Payment Requests Request Payer Requested
926
- */
927
- event?:
928
- | "service_payment_requests.request.create"
929
- | "service_payment_requests.request.update"
930
- | "service_payment_requests.quote.create"
931
- | "service_payment_requests.otp.create"
932
- | "service_payment_requests.payer_reminder"
933
- | "service_payment_requests.payer_requested";
934
- }
935
-
936
- /** Serialize company, update and delete. */
937
- export interface PatchedCompanyConfiguration {
938
- /** @maxLength 100 */
939
- base_redirect_url?: string | null;
940
- otp_notification_id?: string | null;
941
- request_notification_id?: string | null;
942
- reminder_default?: boolean;
943
- /** @maxLength 50 */
944
- request_param_config?: string | null;
945
- }
946
-
947
- /**
948
- * A ModelSerializer that takes additional arguments for
949
- * "fields", "omit" and "expand" in order to
950
- * control which fields are displayed, and whether to replace simple
951
- * values with complex, nested serializations
952
- */
953
- export interface PatchedPublicRequestUpdate {
954
- id?: string;
955
- /**
956
- * A ModelSerializer that takes additional arguments for
957
- * "fields", "omit" and "expand" in order to
958
- * control which fields are displayed, and whether to replace simple
959
- * values with complex, nested serializations
960
- */
961
- user?: User;
962
- request_reference?: string | null;
963
- request_currency?: Record<string, any>;
964
- request_amount?: number | null;
965
- primary_payment_processor?: string;
966
- description?: string | null;
967
- metadata?: Record<string, any>;
968
- /**
969
- * * `draft` - Draft
970
- * * `initiated` - Initiated
971
- * * `processing` - Processing
972
- * * `received` - Received
973
- * * `paid` - Paid
974
- * * `complete` - Complete
975
- * * `failed` - Failed
976
- * * `overpaid` - Overpaid
977
- * * `cancelled` - Cancelled
978
- * * `expired` - Expired
979
- * * `late` - Late
980
- * * `underpaid` - Underpaid
981
- */
982
- status?:
983
- | "draft"
984
- | "initiated"
985
- | "processing"
986
- | "received"
987
- | "paid"
988
- | "complete"
989
- | "failed"
990
- | "overpaid"
991
- | "cancelled"
992
- | "expired"
993
- | "late"
994
- | "underpaid";
995
- redirect_url?: string;
996
- account?: string;
997
- /** @format email */
998
- payer_email?: string;
999
- return_url?: string | null;
1000
- payer_mobile_number?: string;
1001
- refunded?: boolean;
1002
- payment_processor_quotes?: PaymentProcessorQuote[];
1003
- payment_processor_currency?: string;
1004
- available_payment_processors?: AvailablePaymentProcessor[];
1005
- quote_amount?: string;
1006
- /** @maxLength 255 */
1007
- note?: string | null;
1008
- }
1009
-
1010
- /**
1011
- * A ModelSerializer that takes additional arguments for
1012
- * "fields", "omit" and "expand" in order to
1013
- * control which fields are displayed, and whether to replace simple
1014
- * values with complex, nested serializations
1015
- */
1016
- export interface PatchedRequestCreateUpdate {
1017
- id?: string;
1018
- /**
1019
- * A ModelSerializer that takes additional arguments for
1020
- * "fields", "omit" and "expand" in order to
1021
- * control which fields are displayed, and whether to replace simple
1022
- * values with complex, nested serializations
1023
- */
1024
- user?: User;
1025
- /**
1026
- * A ModelSerializer that takes additional arguments for
1027
- * "fields", "omit" and "expand" in order to
1028
- * control which fields are displayed, and whether to replace simple
1029
- * values with complex, nested serializations
1030
- */
1031
- payer_user?: User;
1032
- /** @maxLength 255 */
1033
- request_reference?: string | null;
1034
- request_currency?: string;
1035
- /**
1036
- * @format int64
1037
- * @min -9223372036854776000
1038
- * @max 9223372036854776000
1039
- */
1040
- request_amount?: number | null;
1041
- primary_payment_processor?: string;
1042
- /** @maxLength 255 */
1043
- description?: string | null;
1044
- metadata?: Record<string, any>;
1045
- /**
1046
- * * `draft` - Draft
1047
- * * `initiated` - Initiated
1048
- * * `processing` - Processing
1049
- * * `received` - Received
1050
- * * `paid` - Paid
1051
- * * `complete` - Complete
1052
- * * `failed` - Failed
1053
- * * `overpaid` - Overpaid
1054
- * * `cancelled` - Cancelled
1055
- * * `expired` - Expired
1056
- * * `late` - Late
1057
- * * `underpaid` - Underpaid
1058
- */
1059
- status?:
1060
- | "draft"
1061
- | "initiated"
1062
- | "processing"
1063
- | "received"
1064
- | "paid"
1065
- | "complete"
1066
- | "failed"
1067
- | "overpaid"
1068
- | "cancelled"
1069
- | "expired"
1070
- | "late"
1071
- | "underpaid";
1072
- expiration_date?: number;
1073
- due_date?: number;
1074
- send_request_on?: number;
1075
- redirect_url?: string;
1076
- /** @maxLength 255 */
1077
- account?: string;
1078
- send_reminders?: boolean;
1079
- reminder_intervals?: number[];
1080
- /** @maxLength 255 */
1081
- note?: string | null;
1082
- /** @format email */
1083
- payer_email?: string;
1084
- /** @maxLength 255 */
1085
- return_url?: string | null;
1086
- payer_mobile_number?: string;
1087
- payment_processor_quotes?: PaymentProcessorQuote[];
1088
- }
1089
-
1090
- /** Serialize Company Payment Processors, view, create and update. */
1091
- export interface PatchedUserCRUDCompanyPaymentProcessor {
1092
- id?: string;
1093
- active?: boolean;
1094
- company_payment_processor?: number;
1095
- /** @maxItems 100 */
1096
- currencies?: string[];
1097
- }
1098
-
1099
- /**
1100
- * A ModelSerializer that takes additional arguments for
1101
- * "fields", "omit" and "expand" in order to
1102
- * control which fields are displayed, and whether to replace simple
1103
- * values with complex, nested serializations
1104
- */
1105
- export interface PatchedWebhook {
1106
- id?: string;
1107
- /** @maxLength 150 */
1108
- secret?: string | null;
1109
- /** @maxLength 150 */
1110
- url?: string;
1111
- /**
1112
- * * `service_payment_requests.request.create` - service_payment_requests.request.create
1113
- * * `service_payment_requests.request.update` - service_payment_requests.request.update
1114
- * * `service_payment_requests.quote.create` - Payment Requests Quote Create
1115
- * * `service_payment_requests.otp.create` - service_payment_requests.otp.create
1116
- * * `service_payment_requests.payer_reminder` - Payment Requests Payer Reminder
1117
- * * `service_payment_requests.payer_requested` - Payment Requests Request Payer Requested
1118
- */
1119
- event?:
1120
- | "service_payment_requests.request.create"
1121
- | "service_payment_requests.request.update"
1122
- | "service_payment_requests.quote.create"
1123
- | "service_payment_requests.otp.create"
1124
- | "service_payment_requests.payer_reminder"
1125
- | "service_payment_requests.payer_requested";
1126
- }
1127
-
1128
- /**
1129
- * A ModelSerializer that takes additional arguments for
1130
- * "fields", "omit" and "expand" in order to
1131
- * control which fields are displayed, and whether to replace simple
1132
- * values with complex, nested serializations
1133
- */
1134
- export interface PaymentProcessor {
1135
- id: string;
1136
- native: boolean;
1137
- unique_string_name: string;
1138
- logo: string | null;
1139
- name: string;
1140
- description: string;
1141
- selector_description: string | null;
1142
- pending_processing_description: string | null;
1143
- processing_description: string | null;
1144
- currencies: (string | null)[];
1145
- /**
1146
- * * `wallet` - Wallet
1147
- * * `crypto` - Crypto
1148
- * * `credit_card` - Credit Card
1149
- * * `redirect` - Redirect
1150
- * * `bank` - Bank
1151
- * * `custom` - Custom
1152
- */
1153
- type: "wallet" | "crypto" | "credit_card" | "redirect" | "bank" | "custom";
1154
- longest_expiration_time: number;
1155
- rehive_transaction_identifier: Record<string, any>;
1156
- rehive_subtype: string | null;
1157
- active_weight: number;
1158
- generate_accounts: boolean;
1159
- weight: number;
1160
- }
1161
-
1162
- /**
1163
- * A ModelSerializer that takes additional arguments for
1164
- * "fields", "omit" and "expand" in order to
1165
- * control which fields are displayed, and whether to replace simple
1166
- * values with complex, nested serializations
1167
- */
1168
- export interface PaymentProcessorQuote {
1169
- id: string;
1170
- request: number;
1171
- reference: string | null;
1172
- deposit_details: Record<string, any>;
1173
- /**
1174
- * A ModelSerializer that takes additional arguments for
1175
- * "fields", "omit" and "expand" in order to
1176
- * control which fields are displayed, and whether to replace simple
1177
- * values with complex, nested serializations
1178
- */
1179
- payment_processor?: PaymentProcessor;
1180
- currency: Record<string, any>;
1181
- amount: number;
1182
- total_paid: number;
1183
- total_pending: number;
1184
- expiration_date?: number;
1185
- /**
1186
- * * `pending` - Pending
1187
- * * `processing` - Processing
1188
- * * `received` - Received
1189
- * * `overpaid` - Overpaid
1190
- * * `paid` - Paid
1191
- * * `failed` - Failed
1192
- * * `expired` - Expired
1193
- * * `late` - Late
1194
- * * `underpaid` - Underpaid
1195
- */
1196
- status:
1197
- | "pending"
1198
- | "processing"
1199
- | "received"
1200
- | "overpaid"
1201
- | "paid"
1202
- | "failed"
1203
- | "expired"
1204
- | "late"
1205
- | "underpaid";
1206
- /**
1207
- * A ModelSerializer that takes additional arguments for
1208
- * "fields", "omit" and "expand" in order to
1209
- * control which fields are displayed, and whether to replace simple
1210
- * values with complex, nested serializations
1211
- */
1212
- conversion_quote?: ConversionQuote;
1213
- created?: number;
1214
- account: string | null;
1215
- updated?: number;
1216
- }
1217
-
1218
- export interface PaymentProcessorQuoteResponse {
1219
- /** @example "success" */
1220
- status?: string;
1221
- /**
1222
- * A ModelSerializer that takes additional arguments for
1223
- * "fields", "omit" and "expand" in order to
1224
- * control which fields are displayed, and whether to replace simple
1225
- * values with complex, nested serializations
1226
- */
1227
- data?: PaymentProcessorQuote;
1228
- }
1229
-
1230
- export interface PaymentProcessorResponse {
1231
- /** @example "success" */
1232
- status?: string;
1233
- /**
1234
- * A ModelSerializer that takes additional arguments for
1235
- * "fields", "omit" and "expand" in order to
1236
- * control which fields are displayed, and whether to replace simple
1237
- * values with complex, nested serializations
1238
- */
1239
- data?: PaymentProcessor;
1240
- }
1241
-
1242
- /**
1243
- * A ModelSerializer that takes additional arguments for
1244
- * "fields", "omit" and "expand" in order to
1245
- * control which fields are displayed, and whether to replace simple
1246
- * values with complex, nested serializations
1247
- */
1248
- export interface PublicRequest {
1249
- id: string;
1250
- /**
1251
- * A ModelSerializer that takes additional arguments for
1252
- * "fields", "omit" and "expand" in order to
1253
- * control which fields are displayed, and whether to replace simple
1254
- * values with complex, nested serializations
1255
- */
1256
- user?: User;
1257
- /**
1258
- * A ModelSerializer that takes additional arguments for
1259
- * "fields", "omit" and "expand" in order to
1260
- * control which fields are displayed, and whether to replace simple
1261
- * values with complex, nested serializations
1262
- */
1263
- payer_user?: User;
1264
- request_reference: string | null;
1265
- request_currency: Record<string, any>;
1266
- request_amount: number | null;
1267
- /**
1268
- * A ModelSerializer that takes additional arguments for
1269
- * "fields", "omit" and "expand" in order to
1270
- * control which fields are displayed, and whether to replace simple
1271
- * values with complex, nested serializations
1272
- */
1273
- primary_payment_processor?: PaymentProcessor;
1274
- description: string | null;
1275
- metadata: Record<string, any>;
1276
- /**
1277
- * * `draft` - Draft
1278
- * * `initiated` - Initiated
1279
- * * `processing` - Processing
1280
- * * `received` - Received
1281
- * * `paid` - Paid
1282
- * * `complete` - Complete
1283
- * * `failed` - Failed
1284
- * * `overpaid` - Overpaid
1285
- * * `cancelled` - Cancelled
1286
- * * `expired` - Expired
1287
- * * `late` - Late
1288
- * * `underpaid` - Underpaid
1289
- */
1290
- status:
1291
- | "draft"
1292
- | "initiated"
1293
- | "processing"
1294
- | "received"
1295
- | "paid"
1296
- | "complete"
1297
- | "failed"
1298
- | "overpaid"
1299
- | "cancelled"
1300
- | "expired"
1301
- | "late"
1302
- | "underpaid";
1303
- account: string;
1304
- redirect_url: string;
1305
- /** @format email */
1306
- payer_email?: string;
1307
- payer_mobile_number: string;
1308
- return_url: string | null;
1309
- payment_processor_quotes?: PaymentProcessorQuote[];
1310
- available_payment_processors?: AvailablePaymentProcessor[];
1311
- expiration_date?: number;
1312
- /** @maxLength 255 */
1313
- note?: string | null;
1314
- refunded: boolean;
1315
- due_date?: number;
1316
- created?: number;
1317
- updated?: number;
1318
- }
1319
-
1320
- export interface PublicRequestResponse {
1321
- /** @example "success" */
1322
- status?: string;
1323
- /**
1324
- * A ModelSerializer that takes additional arguments for
1325
- * "fields", "omit" and "expand" in order to
1326
- * control which fields are displayed, and whether to replace simple
1327
- * values with complex, nested serializations
1328
- */
1329
- data?: PublicRequest;
1330
- }
1331
-
1332
- /**
1333
- * A ModelSerializer that takes additional arguments for
1334
- * "fields", "omit" and "expand" in order to
1335
- * control which fields are displayed, and whether to replace simple
1336
- * values with complex, nested serializations
1337
- */
1338
- export interface Refund {
1339
- id: string;
1340
- /**
1341
- * @format int64
1342
- * @min -9223372036854776000
1343
- * @max 9223372036854776000
1344
- */
1345
- amount?: number;
1346
- /**
1347
- * A ModelSerializer that takes additional arguments for
1348
- * "fields", "omit" and "expand" in order to
1349
- * control which fields are displayed, and whether to replace simple
1350
- * values with complex, nested serializations
1351
- */
1352
- currency: Currency;
1353
- /**
1354
- * * `pending` - Pending
1355
- * * `processing` - Processing
1356
- * * `complete` - Complete
1357
- * * `failed` - Failed
1358
- */
1359
- status: "pending" | "processing" | "complete" | "failed";
1360
- /** * `native` - Native */
1361
- type?: "native";
1362
- transaction_collection: string | null;
1363
- /** @maxLength 100 */
1364
- reason?: string | null;
1365
- request: number;
1366
- created?: number;
1367
- updated?: number;
1368
- }
1369
-
1370
- export interface RehiveWebhook {
1371
- id: string;
1372
- /**
1373
- * * `currency.create` - currency.create
1374
- * * `currency.update` - currency.update
1375
- * * `transaction.initiate` - transaction.initiate
1376
- * * `transaction.execute` - transaction.execute
1377
- * * `user.create` - user.create
1378
- * * `user.update` - user.update
1379
- */
1380
- event:
1381
- | "currency.create"
1382
- | "currency.update"
1383
- | "transaction.initiate"
1384
- | "transaction.execute"
1385
- | "user.create"
1386
- | "user.update";
1387
- company: string;
1388
- data: Record<string, any>;
1389
- }
1390
-
1391
- /**
1392
- * A ModelSerializer that takes additional arguments for
1393
- * "fields", "omit" and "expand" in order to
1394
- * control which fields are displayed, and whether to replace simple
1395
- * values with complex, nested serializations
1396
- */
1397
- export interface Request {
1398
- id: string;
1399
- /**
1400
- * A ModelSerializer that takes additional arguments for
1401
- * "fields", "omit" and "expand" in order to
1402
- * control which fields are displayed, and whether to replace simple
1403
- * values with complex, nested serializations
1404
- */
1405
- user?: User;
1406
- /**
1407
- * A ModelSerializer that takes additional arguments for
1408
- * "fields", "omit" and "expand" in order to
1409
- * control which fields are displayed, and whether to replace simple
1410
- * values with complex, nested serializations
1411
- */
1412
- payer_user?: User;
1413
- payer_email: string;
1414
- payer_mobile_number: string;
1415
- /** @maxLength 255 */
1416
- request_reference?: string | null;
1417
- request_currency: Record<string, any>;
1418
- /**
1419
- * @format int64
1420
- * @min -9223372036854776000
1421
- * @max 9223372036854776000
1422
- */
1423
- request_amount?: number | null;
1424
- /**
1425
- * A ModelSerializer that takes additional arguments for
1426
- * "fields", "omit" and "expand" in order to
1427
- * control which fields are displayed, and whether to replace simple
1428
- * values with complex, nested serializations
1429
- */
1430
- primary_payment_processor?: PaymentProcessor;
1431
- /** @maxLength 255 */
1432
- description?: string | null;
1433
- metadata?: Record<string, any>;
1434
- /**
1435
- * * `draft` - Draft
1436
- * * `initiated` - Initiated
1437
- * * `processing` - Processing
1438
- * * `received` - Received
1439
- * * `paid` - Paid
1440
- * * `complete` - Complete
1441
- * * `failed` - Failed
1442
- * * `overpaid` - Overpaid
1443
- * * `cancelled` - Cancelled
1444
- * * `expired` - Expired
1445
- * * `late` - Late
1446
- * * `underpaid` - Underpaid
1447
- */
1448
- status:
1449
- | "draft"
1450
- | "initiated"
1451
- | "processing"
1452
- | "received"
1453
- | "paid"
1454
- | "complete"
1455
- | "failed"
1456
- | "overpaid"
1457
- | "cancelled"
1458
- | "expired"
1459
- | "late"
1460
- | "underpaid";
1461
- expiration_date?: number;
1462
- due_date?: number;
1463
- redirect_url: string;
1464
- payment_processor_quotes?: PaymentProcessorQuote[];
1465
- refunds?: Refund[];
1466
- /** @maxLength 255 */
1467
- return_url?: string | null;
1468
- send_request_on?: number;
1469
- /** @maxLength 255 */
1470
- account: string;
1471
- send_reminders?: boolean;
1472
- reminder_intervals?: number[];
1473
- /** @maxLength 255 */
1474
- note?: string | null;
1475
- refunded: boolean;
1476
- created?: number;
1477
- updated?: number;
1478
- }
1479
-
1480
- /**
1481
- * A ModelSerializer that takes additional arguments for
1482
- * "fields", "omit" and "expand" in order to
1483
- * control which fields are displayed, and whether to replace simple
1484
- * values with complex, nested serializations
1485
- */
1486
- export interface RequestCreateUpdate {
1487
- id: string;
1488
- /**
1489
- * A ModelSerializer that takes additional arguments for
1490
- * "fields", "omit" and "expand" in order to
1491
- * control which fields are displayed, and whether to replace simple
1492
- * values with complex, nested serializations
1493
- */
1494
- user?: User;
1495
- /**
1496
- * A ModelSerializer that takes additional arguments for
1497
- * "fields", "omit" and "expand" in order to
1498
- * control which fields are displayed, and whether to replace simple
1499
- * values with complex, nested serializations
1500
- */
1501
- payer_user?: User;
1502
- /** @maxLength 255 */
1503
- request_reference?: string | null;
1504
- request_currency: string;
1505
- /**
1506
- * @format int64
1507
- * @min -9223372036854776000
1508
- * @max 9223372036854776000
1509
- */
1510
- request_amount?: number | null;
1511
- primary_payment_processor?: string;
1512
- /** @maxLength 255 */
1513
- description?: string | null;
1514
- metadata?: Record<string, any>;
1515
- /**
1516
- * * `draft` - Draft
1517
- * * `initiated` - Initiated
1518
- * * `processing` - Processing
1519
- * * `received` - Received
1520
- * * `paid` - Paid
1521
- * * `complete` - Complete
1522
- * * `failed` - Failed
1523
- * * `overpaid` - Overpaid
1524
- * * `cancelled` - Cancelled
1525
- * * `expired` - Expired
1526
- * * `late` - Late
1527
- * * `underpaid` - Underpaid
1528
- */
1529
- status?:
1530
- | "draft"
1531
- | "initiated"
1532
- | "processing"
1533
- | "received"
1534
- | "paid"
1535
- | "complete"
1536
- | "failed"
1537
- | "overpaid"
1538
- | "cancelled"
1539
- | "expired"
1540
- | "late"
1541
- | "underpaid";
1542
- expiration_date?: number;
1543
- due_date?: number;
1544
- send_request_on?: number;
1545
- redirect_url: string;
1546
- /** @maxLength 255 */
1547
- account: string;
1548
- send_reminders?: boolean;
1549
- reminder_intervals?: number[];
1550
- /** @maxLength 255 */
1551
- note?: string | null;
1552
- /** @format email */
1553
- payer_email?: string;
1554
- /** @maxLength 255 */
1555
- return_url?: string | null;
1556
- payer_mobile_number?: string;
1557
- payment_processor_quotes?: PaymentProcessorQuote[];
1558
- }
1559
-
1560
- export interface RequestCreateUpdateResponse {
1561
- /** @example "success" */
1562
- status?: string;
1563
- /**
1564
- * A ModelSerializer that takes additional arguments for
1565
- * "fields", "omit" and "expand" in order to
1566
- * control which fields are displayed, and whether to replace simple
1567
- * values with complex, nested serializations
1568
- */
1569
- data?: RequestCreateUpdate;
1570
- }
1571
-
1572
- /**
1573
- * A ModelSerializer that takes additional arguments for
1574
- * "fields", "omit" and "expand" in order to
1575
- * control which fields are displayed, and whether to replace simple
1576
- * values with complex, nested serializations
1577
- */
1578
- export interface RequestLogs {
1579
- request: number;
1580
- user_agent: string | null;
1581
- ip_address: string | null;
1582
- email: string | null;
1583
- mobile_number: string | null;
1584
- }
1585
-
1586
- export interface RequestResponse {
1587
- /** @example "success" */
1588
- status?: string;
1589
- /**
1590
- * A ModelSerializer that takes additional arguments for
1591
- * "fields", "omit" and "expand" in order to
1592
- * control which fields are displayed, and whether to replace simple
1593
- * values with complex, nested serializations
1594
- */
1595
- data?: Request;
1596
- }
1597
-
1598
- /**
1599
- * A ModelSerializer that takes additional arguments for
1600
- * "fields", "omit" and "expand" in order to
1601
- * control which fields are displayed, and whether to replace simple
1602
- * values with complex, nested serializations
1603
- */
1604
- export interface RequestTransaction {
1605
- rehive_code: string;
1606
- /**
1607
- * * `pending` - Pending
1608
- * * `pending_settled` - Pending Settled
1609
- * * `settled` - Settled
1610
- * * `complete` - Complete
1611
- * * `failed` - Failed
1612
- */
1613
- status: "pending" | "pending_settled" | "settled" | "complete" | "failed";
1614
- payment_processor_quote: number;
1615
- details: Record<string, any>;
1616
- }
1617
-
1618
- /**
1619
- * A ModelSerializer that takes additional arguments for
1620
- * "fields", "omit" and "expand" in order to
1621
- * control which fields are displayed, and whether to replace simple
1622
- * values with complex, nested serializations
1623
- */
1624
- export interface User {
1625
- id: string;
1626
- /** @maxLength 30 */
1627
- base_currency?: string | null;
1628
- company: string;
1629
- mobile_number: string | null;
1630
- email: string | null;
1631
- first_name: string | null;
1632
- profile: string | null;
1633
- last_name: string | null;
1634
- }
1635
-
1636
- /** Serialize Company Payment Processors, view, create and update. */
1637
- export interface UserCRUDCompanyPaymentProcessor {
1638
- id: string;
1639
- active?: boolean;
1640
- company_payment_processor: number;
1641
- /** @maxItems 100 */
1642
- currencies?: string[];
1643
- }
1644
-
1645
- export interface UserCRUDCompanyPaymentProcessorResponse {
1646
- /** @example "success" */
1647
- status?: string;
1648
- /** Serialize Company Payment Processors, view, create and update. */
1649
- data?: UserCRUDCompanyPaymentProcessor;
1650
- }
1651
-
1652
- /** Serialize Company Payment Processors, view, create and update. */
1653
- export interface UserCompanyPaymentProcessor {
1654
- id: string;
1655
- active: boolean;
1656
- /** Serialize Company Payment Processor, view, create and update. */
1657
- company_payment_processor: CompanyPaymentProcessor;
1658
- currencies: Currency[];
1659
- }
1660
-
1661
- export interface UserCompanyPaymentProcessorResponse {
1662
- /** @example "success" */
1663
- status?: string;
1664
- /** Serialize Company Payment Processors, view, create and update. */
1665
- data?: UserCompanyPaymentProcessor;
1666
- }
1667
-
1668
- /**
1669
- * A ModelSerializer that takes additional arguments for
1670
- * "fields", "omit" and "expand" in order to
1671
- * control which fields are displayed, and whether to replace simple
1672
- * values with complex, nested serializations
1673
- */
1674
- export interface Webhook {
1675
- id: string;
1676
- /** @maxLength 150 */
1677
- secret?: string | null;
1678
- /** @maxLength 150 */
1679
- url: string;
1680
- /**
1681
- * * `service_payment_requests.request.create` - service_payment_requests.request.create
1682
- * * `service_payment_requests.request.update` - service_payment_requests.request.update
1683
- * * `service_payment_requests.quote.create` - Payment Requests Quote Create
1684
- * * `service_payment_requests.otp.create` - service_payment_requests.otp.create
1685
- * * `service_payment_requests.payer_reminder` - Payment Requests Payer Reminder
1686
- * * `service_payment_requests.payer_requested` - Payment Requests Request Payer Requested
1687
- */
1688
- event:
1689
- | "service_payment_requests.request.create"
1690
- | "service_payment_requests.request.update"
1691
- | "service_payment_requests.quote.create"
1692
- | "service_payment_requests.otp.create"
1693
- | "service_payment_requests.payer_reminder"
1694
- | "service_payment_requests.payer_requested";
1695
- }
1696
-
1697
- export interface WebhookResponse {
1698
- /** @example "success" */
1699
- status?: string;
1700
- /**
1701
- * A ModelSerializer that takes additional arguments for
1702
- * "fields", "omit" and "expand" in order to
1703
- * control which fields are displayed, and whether to replace simple
1704
- * values with complex, nested serializations
1705
- */
1706
- data?: Webhook;
1707
- }
1708
-
1709
- export type ActivateCreateData = ActionResponse;
1710
-
1711
- export type AdminCompanyRetrieveData = AdminCompanyResponse;
1712
-
1713
- export type AdminCompanyUpdateData = AdminCompanyResponse;
1714
-
1715
- export type AdminCompanyPartialUpdateData = AdminCompanyResponse;
1716
-
1717
- export type AdminCompanyConfigurationRetrieveData =
1718
- CompanyConfigurationResponse;
1719
-
1720
- export type AdminCompanyConfigurationUpdateData = CompanyConfigurationResponse;
1721
-
1722
- export type AdminCompanyConfigurationPartialUpdateData =
1723
- CompanyConfigurationResponse;
1724
-
1725
- export interface AdminCompanyPaymentProcessorsListParams {
1726
- /** @format date-time */
1727
- created?: string;
1728
- /** @format date-time */
1729
- created__gt?: string;
1730
- /** @format date-time */
1731
- created__gte?: string;
1732
- /** @format date-time */
1733
- created__lt?: string;
1734
- /** @format date-time */
1735
- created__lte?: string;
1736
- /** A page number within the paginated result set. */
1737
- page?: number;
1738
- /** Number of results to return per page. */
1739
- page_size?: number;
1740
- unique_string_name?: string;
1741
- }
1742
-
1743
- export type AdminCompanyPaymentProcessorsListData =
1744
- PaginatedCompanyPaymentProcessorListResponse;
1745
-
1746
- export type AdminCompanyPaymentProcessorsCreateData =
1747
- CompanyPaymentProcessorResponse;
1748
-
1749
- export type AdminCompanyPaymentProcessorsRetrieveData =
1750
- CompanyPaymentProcessorResponse;
1751
-
1752
- export type AdminCompanyPaymentProcessorsUpdateData =
1753
- AdminCompanyPaymentProcessorResponse;
1754
-
1755
- export type AdminCompanyPaymentProcessorsPartialUpdateData =
1756
- AdminCompanyPaymentProcessorResponse;
1757
-
1758
- export type AdminCompanyPaymentProcessorsDestroyData =
1759
- AdminCompanyPaymentProcessorResponse;
1760
-
1761
- export interface AdminPaymentProcessorQuoteListParams {
1762
- /** A page number within the paginated result set. */
1763
- page?: number;
1764
- /** Number of results to return per page. */
1765
- page_size?: number;
1766
- }
1767
-
1768
- export type AdminPaymentProcessorQuoteListData =
1769
- PaginatedPaymentProcessorQuoteListResponse;
1770
-
1771
- export interface AdminPaymentProcessorsListParams {
1772
- /** A page number within the paginated result set. */
1773
- page?: number;
1774
- /** Number of results to return per page. */
1775
- page_size?: number;
1776
- }
1777
-
1778
- export type AdminPaymentProcessorsListData =
1779
- PaginatedPaymentProcessorListResponse;
1780
-
1781
- export type AdminPaymentProcessorsCreateData = PaymentProcessorResponse;
1782
-
1783
- export type AdminPaymentProcessorsRetrieveData = PaymentProcessorResponse;
1784
-
1785
- export type AdminPaymentProcessorsUpdateData = AdminPaymentProcessorResponse;
1786
-
1787
- export type AdminPaymentProcessorsPartialUpdateData =
1788
- AdminPaymentProcessorResponse;
1789
-
1790
- export type AdminPaymentProcessorsDestroyData = AdminPaymentProcessorResponse;
1791
-
1792
- export interface AdminRequestsListParams {
1793
- /** @format date-time */
1794
- created?: string;
1795
- created__gt?: string;
1796
- created__gte?: string;
1797
- created__lt?: string;
1798
- created__lte?: string;
1799
- expiration_date__gt?: string;
1800
- expiration_date__gte?: string;
1801
- expiration_date__lt?: string;
1802
- expiration_date__lte?: string;
1803
- id?: string;
1804
- /** A page number within the paginated result set. */
1805
- page?: number;
1806
- /** Number of results to return per page. */
1807
- page_size?: number;
1808
- payer_email?: string;
1809
- payer_mobile_number?: string;
1810
- payment_processor_quote_reference?: string;
1811
- refund_status?: string;
1812
- refunded?: string;
1813
- request_currency?: string;
1814
- request_reference?: string;
1815
- request_type?: string;
1816
- status?: string;
1817
- status__in?: string;
1818
- }
1819
-
1820
- export type AdminRequestsListData = PaginatedRequestListResponse;
1821
-
1822
- export type AdminRequestsCreateData = RequestResponse;
1823
-
1824
- export type AdminRequestsRetrieveData = RequestResponse;
1825
-
1826
- export type AdminRequestsUpdateData = RequestResponse;
1827
-
1828
- export type AdminRequestsPartialUpdateData = AdminRequestCreateUpdateResponse;
1829
-
1830
- export interface AdminRequestsLogsListParams {
1831
- /** A page number within the paginated result set. */
1832
- page?: number;
1833
- /** Number of results to return per page. */
1834
- page_size?: number;
1835
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1836
- identifier: string;
1837
- }
1838
-
1839
- export type AdminRequestsLogsListData = PaginatedRequestLogsListResponse;
1840
-
1841
- export interface AdminRequestsPaymentProcessQuotesListParams {
1842
- /** A page number within the paginated result set. */
1843
- page?: number;
1844
- /** Number of results to return per page. */
1845
- page_size?: number;
1846
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1847
- identifier: string;
1848
- }
1849
-
1850
- export type AdminRequestsPaymentProcessQuotesListData =
1851
- PaginatedPaymentProcessorQuoteListResponse;
1852
-
1853
- export type AdminRequestsPaymentProcessQuotesRetrieveData =
1854
- PaymentProcessorQuoteResponse;
1855
-
1856
- export type AdminRequestsPaymentProcessQuotesExecuteRetrieveData =
1857
- PaymentProcessorQuoteResponse;
1858
-
1859
- export interface AdminRequestsRefundsListParams {
1860
- /** A page number within the paginated result set. */
1861
- page?: number;
1862
- /** Number of results to return per page. */
1863
- page_size?: number;
1864
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1865
- identifier: string;
1866
- }
1867
-
1868
- export type AdminRequestsRefundsListData = PaginatedRefundListResponse;
1869
-
1870
- export type AdminRequestsRefundsCreateData = AdminRefundResponse;
1871
-
1872
- export interface AdminRequestsTransactionsListParams {
1873
- /** A page number within the paginated result set. */
1874
- page?: number;
1875
- /** Number of results to return per page. */
1876
- page_size?: number;
1877
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1878
- identifier: string;
1879
- }
1880
-
1881
- export type AdminRequestsTransactionsListData =
1882
- PaginatedRequestTransactionListResponse;
1883
-
1884
- export interface AdminUsersListParams {
1885
- /** A page number within the paginated result set. */
1886
- page?: number;
1887
- /** Number of results to return per page. */
1888
- page_size?: number;
1889
- }
1890
-
1891
- export type AdminUsersListData = PaginatedAdminUserListResponse;
1892
-
1893
- export type AdminUsersRetrieveData = AdminUserResponse;
1894
-
1895
- export type AdminUsersUpdateData = AdminUserResponse;
1896
-
1897
- export type AdminUsersPartialUpdateData = AdminUserResponse;
1898
-
1899
- export interface AdminWebhooksListParams {
1900
- event?: string;
1901
- /** A page number within the paginated result set. */
1902
- page?: number;
1903
- /** Number of results to return per page. */
1904
- page_size?: number;
1905
- secret?: string;
1906
- url?: string;
1907
- }
1908
-
1909
- export type AdminWebhooksListData = PaginatedAdminWebhookListResponse;
1910
-
1911
- export type AdminWebhooksCreateData = AdminWebhookResponse;
1912
-
1913
- export type AdminWebhooksRetrieveData = AdminWebhookResponse;
1914
-
1915
- export type AdminWebhooksUpdateData = AdminWebhookResponse;
1916
-
1917
- export type AdminWebhooksPartialUpdateData = AdminWebhookResponse;
1918
-
1919
- export type AdminWebhooksDestroyData = AdminWebhookResponse;
1920
-
1921
- export type DeactivateCreateData = ActionResponse;
1922
-
1923
- export type RequestsRetrieveData = PublicRequestResponse;
1924
-
1925
- export type RequestsUpdateData = PublicRequestResponse;
1926
-
1927
- export type RequestsPartialUpdateData = PublicRequestResponse;
1928
-
1929
- export type RequestsOtpChallengeCreateData = ActionResponse;
1930
-
1931
- export interface RequestsPaymentProcessorsListParams {
1932
- /** A page number within the paginated result set. */
1933
- page?: number;
1934
- /** Number of results to return per page. */
1935
- page_size?: number;
1936
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1937
- identifier: string;
1938
- }
1939
-
1940
- export type RequestsPaymentProcessorsListData =
1941
- PaginatedPaymentProcessorListResponse;
1942
-
1943
- export type RequestsResendOtpCreateData = ActionResponse;
1944
-
1945
- export interface RequestsTransactionsListParams {
1946
- /** A page number within the paginated result set. */
1947
- page?: number;
1948
- /** Number of results to return per page. */
1949
- page_size?: number;
1950
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1951
- identifier: string;
1952
- }
1953
-
1954
- export type RequestsTransactionsListData =
1955
- PaginatedRequestTransactionListResponse;
1956
-
1957
- export interface UserPaymentProcessorsListParams {
1958
- /** A page number within the paginated result set. */
1959
- page?: number;
1960
- /** Number of results to return per page. */
1961
- page_size?: number;
1962
- }
1963
-
1964
- export type UserPaymentProcessorsListData =
1965
- PaginatedUserCompanyPaymentProcessorListResponse;
1966
-
1967
- export type UserPaymentProcessorsCreateData =
1968
- UserCompanyPaymentProcessorResponse;
1969
-
1970
- export type UserPaymentProcessorsRetrieveData =
1971
- UserCompanyPaymentProcessorResponse;
1972
-
1973
- export type UserPaymentProcessorsUpdateData =
1974
- UserCRUDCompanyPaymentProcessorResponse;
1975
-
1976
- export type UserPaymentProcessorsPartialUpdateData =
1977
- UserCRUDCompanyPaymentProcessorResponse;
1978
-
1979
- export type UserPaymentProcessorsDestroyData =
1980
- UserCRUDCompanyPaymentProcessorResponse;
1981
-
1982
- export interface UserRequestsListParams {
1983
- /** @format date-time */
1984
- created?: string;
1985
- created__gt?: string;
1986
- created__gte?: string;
1987
- created__lt?: string;
1988
- created__lte?: string;
1989
- expiration_date__gt?: string;
1990
- expiration_date__gte?: string;
1991
- expiration_date__lt?: string;
1992
- expiration_date__lte?: string;
1993
- id?: string;
1994
- /** A page number within the paginated result set. */
1995
- page?: number;
1996
- /** Number of results to return per page. */
1997
- page_size?: number;
1998
- payer_email?: string;
1999
- payer_mobile_number?: string;
2000
- payment_processor_quote_reference?: string;
2001
- refund_status?: string;
2002
- refunded?: string;
2003
- request_currency?: string;
2004
- request_reference?: string;
2005
- request_type?: string;
2006
- status?: string;
2007
- status__in?: string;
2008
- }
2009
-
2010
- export type UserRequestsListData = PaginatedRequestListResponse;
2011
-
2012
- export type UserRequestsCreateData = RequestCreateUpdateResponse;
2013
-
2014
- export type UserRequestsRetrieveData = RequestResponse;
2015
-
2016
- export type UserRequestsUpdateData = RequestResponse;
2017
-
2018
- export type UserRequestsPartialUpdateData = RequestCreateUpdateResponse;
2019
-
2020
- export type UserRequestsNotifyCreateData = ActionResponse;
2021
-
2022
- export interface UserRequestsRefundsListParams {
2023
- /** A page number within the paginated result set. */
2024
- page?: number;
2025
- /** Number of results to return per page. */
2026
- page_size?: number;
2027
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
2028
- identifier: string;
2029
- }
2030
-
2031
- export type UserRequestsRefundsListData = PaginatedRefundListResponse;
2032
-
2033
- export type UserRequestsRefundsCreateData = CreateRefundResponse;
2034
-
2035
- export interface UserRequestsTransactionsListParams {
2036
- /** A page number within the paginated result set. */
2037
- page?: number;
2038
- /** Number of results to return per page. */
2039
- page_size?: number;
2040
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
2041
- identifier: string;
2042
- }
2043
-
2044
- export type UserRequestsTransactionsListData =
2045
- PaginatedRequestTransactionListResponse;
2046
-
2047
- export interface UserWebhooksListParams {
2048
- /** A page number within the paginated result set. */
2049
- page?: number;
2050
- /** Number of results to return per page. */
2051
- page_size?: number;
2052
- }
2053
-
2054
- export type UserWebhooksListData = PaginatedWebhookListResponse;
2055
-
2056
- export type UserWebhooksCreateData = WebhookResponse;
2057
-
2058
- export type UserWebhooksRetrieveData = WebhookResponse;
2059
-
2060
- export type UserWebhooksUpdateData = WebhookResponse;
2061
-
2062
- export type UserWebhooksPartialUpdateData = WebhookResponse;
2063
-
2064
- export type UserWebhooksDestroyData = WebhookResponse;
2065
-
2066
- export type WebhookCreateData = ActionResponse;
2067
-
2068
- export type WebhooksRehiveTransactionExecutedCreateData = ActionResponse;
2069
-
2070
- export type WebhooksRehiveTransactionInitiatedCreateData = ActionResponse;
2071
-
2072
- export type WebhooksRehiveUserCreateCreateData = ActionResponse;
2073
-
2074
- export type WebhooksRehiveUserEmailUpdateCreateData = ActionResponse;
2075
-
2076
- export type WebhooksRehiveUserUpdateCreateData = ActionResponse;
2077
-
2078
- export type QueryParamsType = Record<string | number, any>;
2079
- export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
2080
-
2081
- export interface FullRequestParams extends Omit<RequestInit, "body"> {
2082
- /** set parameter to `true` for call `securityWorker` for this request */
2083
- secure?: boolean;
2084
- /** request path */
2085
- path: string;
2086
- /** content type of request body */
2087
- type?: ContentType;
2088
- /** query params */
2089
- query?: QueryParamsType;
2090
- /** format of response (i.e. response.json() -> format: "json") */
2091
- format?: ResponseFormat;
2092
- /** request body */
2093
- body?: unknown;
2094
- /** base url */
2095
- baseUrl?: string;
2096
- /** request cancellation token */
2097
- cancelToken?: CancelToken;
2098
- }
2099
-
2100
- export type RequestParams = Omit<
2101
- FullRequestParams,
2102
- "body" | "method" | "query" | "path"
2103
- >;
2104
-
2105
- export interface ApiConfig<SecurityDataType = unknown> {
2106
- baseUrl?: string;
2107
- baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
2108
- securityWorker?: (
2109
- securityData: SecurityDataType | null,
2110
- ) => Promise<RequestParams | void> | RequestParams | void;
2111
- customFetch?: typeof fetch;
2112
- }
2113
-
2114
- export interface HttpResponse<D extends unknown, E extends unknown = unknown>
2115
- extends Response {
2116
- data: D;
2117
- error: E;
2118
- }
2119
-
2120
- type CancelToken = Symbol | string | number;
2121
-
2122
- export enum ContentType {
2123
- Json = "application/json",
2124
- JsonApi = "application/vnd.api+json",
2125
- FormData = "multipart/form-data",
2126
- UrlEncoded = "application/x-www-form-urlencoded",
2127
- Text = "text/plain",
2128
- }
2129
-
2130
- export class HttpClient<SecurityDataType = unknown> {
2131
- public baseUrl: string = "https://payment-requests.services.rehive.com/api/";
2132
- private securityData: SecurityDataType | null = null;
2133
- private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
2134
- private abortControllers = new Map<CancelToken, AbortController>();
2135
- private customFetch = (...fetchParams: Parameters<typeof fetch>) =>
2136
- fetch(...fetchParams);
2137
-
2138
- private baseApiParams: RequestParams = {
2139
- credentials: "same-origin",
2140
- headers: {},
2141
- redirect: "follow",
2142
- referrerPolicy: "no-referrer",
2143
- };
2144
-
2145
- constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
2146
- Object.assign(this, apiConfig);
2147
- }
2148
-
2149
- public setSecurityData = (data: SecurityDataType | null) => {
2150
- this.securityData = data;
2151
- };
2152
-
2153
- protected encodeQueryParam(key: string, value: any) {
2154
- const encodedKey = encodeURIComponent(key);
2155
- return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
2156
- }
2157
-
2158
- protected addQueryParam(query: QueryParamsType, key: string) {
2159
- return this.encodeQueryParam(key, query[key]);
2160
- }
2161
-
2162
- protected addArrayQueryParam(query: QueryParamsType, key: string) {
2163
- const value = query[key];
2164
- return value.map((v: any) => this.encodeQueryParam(key, v)).join("&");
2165
- }
2166
-
2167
- protected toQueryString(rawQuery?: QueryParamsType): string {
2168
- const query = rawQuery || {};
2169
- const keys = Object.keys(query).filter(
2170
- (key) => "undefined" !== typeof query[key],
2171
- );
2172
- return keys
2173
- .map((key) =>
2174
- Array.isArray(query[key])
2175
- ? this.addArrayQueryParam(query, key)
2176
- : this.addQueryParam(query, key),
2177
- )
2178
- .join("&");
2179
- }
2180
-
2181
- protected addQueryParams(rawQuery?: QueryParamsType): string {
2182
- const queryString = this.toQueryString(rawQuery);
2183
- return queryString ? `?${queryString}` : "";
2184
- }
2185
-
2186
- private contentFormatters: Record<ContentType, (input: any) => any> = {
2187
- [ContentType.Json]: (input: any) =>
2188
- input !== null && (typeof input === "object" || typeof input === "string")
2189
- ? JSON.stringify(input)
2190
- : input,
2191
- [ContentType.JsonApi]: (input: any) =>
2192
- input !== null && (typeof input === "object" || typeof input === "string")
2193
- ? JSON.stringify(input)
2194
- : input,
2195
- [ContentType.Text]: (input: any) =>
2196
- input !== null && typeof input !== "string"
2197
- ? JSON.stringify(input)
2198
- : input,
2199
- [ContentType.FormData]: (input: any) =>
2200
- Object.keys(input || {}).reduce((formData, key) => {
2201
- const property = input[key];
2202
- formData.append(
2203
- key,
2204
- property instanceof Blob
2205
- ? property
2206
- : typeof property === "object" && property !== null
2207
- ? JSON.stringify(property)
2208
- : `${property}`,
2209
- );
2210
- return formData;
2211
- }, new FormData()),
2212
- [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),
2213
- };
2214
-
2215
- protected mergeRequestParams(
2216
- params1: RequestParams,
2217
- params2?: RequestParams,
2218
- ): RequestParams {
2219
- return {
2220
- ...this.baseApiParams,
2221
- ...params1,
2222
- ...(params2 || {}),
2223
- headers: {
2224
- ...(this.baseApiParams.headers || {}),
2225
- ...(params1.headers || {}),
2226
- ...((params2 && params2.headers) || {}),
2227
- },
2228
- };
2229
- }
2230
-
2231
- protected createAbortSignal = (
2232
- cancelToken: CancelToken,
2233
- ): AbortSignal | undefined => {
2234
- if (this.abortControllers.has(cancelToken)) {
2235
- const abortController = this.abortControllers.get(cancelToken);
2236
- if (abortController) {
2237
- return abortController.signal;
2238
- }
2239
- return void 0;
2240
- }
2241
-
2242
- const abortController = new AbortController();
2243
- this.abortControllers.set(cancelToken, abortController);
2244
- return abortController.signal;
2245
- };
2246
-
2247
- public abortRequest = (cancelToken: CancelToken) => {
2248
- const abortController = this.abortControllers.get(cancelToken);
2249
-
2250
- if (abortController) {
2251
- abortController.abort();
2252
- this.abortControllers.delete(cancelToken);
2253
- }
2254
- };
2255
-
2256
- public request = async <T = any, E = any>({
2257
- body,
2258
- secure,
2259
- path,
2260
- type,
2261
- query,
2262
- format,
2263
- baseUrl,
2264
- cancelToken,
2265
- ...params
2266
- }: FullRequestParams): Promise<HttpResponse<T, E>> => {
2267
- const secureParams =
2268
- ((typeof secure === "boolean" ? secure : this.baseApiParams.secure) &&
2269
- this.securityWorker &&
2270
- (await this.securityWorker(this.securityData))) ||
2271
- {};
2272
- const requestParams = this.mergeRequestParams(params, secureParams);
2273
- const queryString = query && this.toQueryString(query);
2274
- const payloadFormatter = this.contentFormatters[type || ContentType.Json];
2275
- const responseFormat = format || requestParams.format;
2276
-
2277
- return this.customFetch(
2278
- `${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
2279
- {
2280
- ...requestParams,
2281
- headers: {
2282
- ...(requestParams.headers || {}),
2283
- ...(type && type !== ContentType.FormData
2284
- ? { "Content-Type": type }
2285
- : {}),
2286
- },
2287
- signal:
2288
- (cancelToken
2289
- ? this.createAbortSignal(cancelToken)
2290
- : requestParams.signal) || null,
2291
- body:
2292
- typeof body === "undefined" || body === null
2293
- ? null
2294
- : payloadFormatter(body),
2295
- },
2296
- ).then(async (response) => {
2297
- const r = response.clone() as HttpResponse<T, E>;
2298
- r.data = null as unknown as T;
2299
- r.error = null as unknown as E;
2300
-
2301
- const data = !responseFormat
2302
- ? r
2303
- : await response[responseFormat]()
2304
- .then((data) => {
2305
- if (r.ok) {
2306
- r.data = data;
2307
- } else {
2308
- r.error = data;
2309
- }
2310
- return r;
2311
- })
2312
- .catch((e) => {
2313
- r.error = e;
2314
- return r;
2315
- });
2316
-
2317
- if (cancelToken) {
2318
- this.abortControllers.delete(cancelToken);
2319
- }
2320
-
2321
- if (!response.ok) throw data;
2322
- return data;
2323
- });
2324
- };
2325
- }
2326
-
2327
- /**
2328
- * @title Payment Request Service API
2329
- * @version 1 (1)
2330
- * @termsOfService https://rehive.com/terms/
2331
- * @baseUrl https://payment-requests.services.rehive.com/api/
2332
- * @externalDocs https://docs.rehive.com
2333
- * @contact Rehive Support <support@rehive.com> (https://rehive.com/support/)
2334
- *
2335
- *
2336
- * The **Payment Request Service API** is used for payments, payment requests, and invoices in Rehive.
2337
- *
2338
- */
2339
- export class Api<
2340
- SecurityDataType extends unknown,
2341
- > extends HttpClient<SecurityDataType> {
2342
- activate = {
2343
- /**
2344
- * No description
2345
- *
2346
- * @tags activate
2347
- * @name ActivateCreate
2348
- * @summary Activate service
2349
- * @request POST:/activate/
2350
- * @secure
2351
- */
2352
- activateCreate: (data: Activate, params: RequestParams = {}) =>
2353
- this.request<ActivateCreateData, any>({
2354
- path: `/activate/`,
2355
- method: "POST",
2356
- body: data,
2357
- secure: true,
2358
- type: ContentType.Json,
2359
- format: "json",
2360
- ...params,
2361
- }),
2362
- };
2363
- admin = {
2364
- /**
2365
- * No description
2366
- *
2367
- * @tags admin
2368
- * @name AdminCompanyRetrieve
2369
- * @summary Retrieve company
2370
- * @request GET:/admin/company/
2371
- * @secure
2372
- */
2373
- adminCompanyRetrieve: (params: RequestParams = {}) =>
2374
- this.request<AdminCompanyRetrieveData, any>({
2375
- path: `/admin/company/`,
2376
- method: "GET",
2377
- secure: true,
2378
- format: "json",
2379
- ...params,
2380
- }),
2381
-
2382
- /**
2383
- * No description
2384
- *
2385
- * @tags admin
2386
- * @name AdminCompanyUpdate
2387
- * @summary Update company
2388
- * @request PUT:/admin/company/
2389
- * @secure
2390
- */
2391
- adminCompanyUpdate: (data: AdminCompany, params: RequestParams = {}) =>
2392
- this.request<AdminCompanyUpdateData, any>({
2393
- path: `/admin/company/`,
2394
- method: "PUT",
2395
- body: data,
2396
- secure: true,
2397
- type: ContentType.Json,
2398
- format: "json",
2399
- ...params,
2400
- }),
2401
-
2402
- /**
2403
- * No description
2404
- *
2405
- * @tags admin
2406
- * @name AdminCompanyPartialUpdate
2407
- * @summary Partially update company
2408
- * @request PATCH:/admin/company/
2409
- * @secure
2410
- */
2411
- adminCompanyPartialUpdate: (
2412
- data: PatchedAdminCompany,
2413
- params: RequestParams = {},
2414
- ) =>
2415
- this.request<AdminCompanyPartialUpdateData, any>({
2416
- path: `/admin/company/`,
2417
- method: "PATCH",
2418
- body: data,
2419
- secure: true,
2420
- type: ContentType.Json,
2421
- format: "json",
2422
- ...params,
2423
- }),
2424
-
2425
- /**
2426
- * No description
2427
- *
2428
- * @tags admin
2429
- * @name AdminCompanyConfigurationRetrieve
2430
- * @summary Retrieve configuration
2431
- * @request GET:/admin/company/configuration/
2432
- * @secure
2433
- */
2434
- adminCompanyConfigurationRetrieve: (params: RequestParams = {}) =>
2435
- this.request<AdminCompanyConfigurationRetrieveData, any>({
2436
- path: `/admin/company/configuration/`,
2437
- method: "GET",
2438
- secure: true,
2439
- format: "json",
2440
- ...params,
2441
- }),
2442
-
2443
- /**
2444
- * No description
2445
- *
2446
- * @tags admin
2447
- * @name AdminCompanyConfigurationUpdate
2448
- * @summary Update configuration
2449
- * @request PUT:/admin/company/configuration/
2450
- * @secure
2451
- */
2452
- adminCompanyConfigurationUpdate: (
2453
- data: CompanyConfiguration,
2454
- params: RequestParams = {},
2455
- ) =>
2456
- this.request<AdminCompanyConfigurationUpdateData, any>({
2457
- path: `/admin/company/configuration/`,
2458
- method: "PUT",
2459
- body: data,
2460
- secure: true,
2461
- type: ContentType.Json,
2462
- format: "json",
2463
- ...params,
2464
- }),
2465
-
2466
- /**
2467
- * No description
2468
- *
2469
- * @tags admin
2470
- * @name AdminCompanyConfigurationPartialUpdate
2471
- * @summary Partially update configuration
2472
- * @request PATCH:/admin/company/configuration/
2473
- * @secure
2474
- */
2475
- adminCompanyConfigurationPartialUpdate: (
2476
- data: PatchedCompanyConfiguration,
2477
- params: RequestParams = {},
2478
- ) =>
2479
- this.request<AdminCompanyConfigurationPartialUpdateData, any>({
2480
- path: `/admin/company/configuration/`,
2481
- method: "PATCH",
2482
- body: data,
2483
- secure: true,
2484
- type: ContentType.Json,
2485
- format: "json",
2486
- ...params,
2487
- }),
2488
-
2489
- /**
2490
- * No description
2491
- *
2492
- * @tags admin
2493
- * @name AdminCompanyPaymentProcessorsList
2494
- * @summary List company payment processors
2495
- * @request GET:/admin/company_payment_processors/
2496
- * @secure
2497
- */
2498
- adminCompanyPaymentProcessorsList: (
2499
- query: AdminCompanyPaymentProcessorsListParams,
2500
- params: RequestParams = {},
2501
- ) =>
2502
- this.request<AdminCompanyPaymentProcessorsListData, any>({
2503
- path: `/admin/company_payment_processors/`,
2504
- method: "GET",
2505
- query: query,
2506
- secure: true,
2507
- format: "json",
2508
- ...params,
2509
- }),
2510
-
2511
- /**
2512
- * No description
2513
- *
2514
- * @tags admin
2515
- * @name AdminCompanyPaymentProcessorsCreate
2516
- * @summary Create company payment processor
2517
- * @request POST:/admin/company_payment_processors/
2518
- * @secure
2519
- */
2520
- adminCompanyPaymentProcessorsCreate: (
2521
- data: AdminCompanyPaymentProcessor,
2522
- params: RequestParams = {},
2523
- ) =>
2524
- this.request<AdminCompanyPaymentProcessorsCreateData, any>({
2525
- path: `/admin/company_payment_processors/`,
2526
- method: "POST",
2527
- body: data,
2528
- secure: true,
2529
- type: ContentType.Json,
2530
- format: "json",
2531
- ...params,
2532
- }),
2533
-
2534
- /**
2535
- * No description
2536
- *
2537
- * @tags admin
2538
- * @name AdminCompanyPaymentProcessorsRetrieve
2539
- * @summary Retrieve company payment processor
2540
- * @request GET:/admin/company_payment_processors/{identifier}/
2541
- * @secure
2542
- */
2543
- adminCompanyPaymentProcessorsRetrieve: (
2544
- identifier: string,
2545
- params: RequestParams = {},
2546
- ) =>
2547
- this.request<AdminCompanyPaymentProcessorsRetrieveData, any>({
2548
- path: `/admin/company_payment_processors/${identifier}/`,
2549
- method: "GET",
2550
- secure: true,
2551
- format: "json",
2552
- ...params,
2553
- }),
2554
-
2555
- /**
2556
- * No description
2557
- *
2558
- * @tags admin
2559
- * @name AdminCompanyPaymentProcessorsUpdate
2560
- * @summary Update company payment processor
2561
- * @request PUT:/admin/company_payment_processors/{identifier}/
2562
- * @secure
2563
- */
2564
- adminCompanyPaymentProcessorsUpdate: (
2565
- identifier: string,
2566
- data: AdminCompanyPaymentProcessor,
2567
- params: RequestParams = {},
2568
- ) =>
2569
- this.request<AdminCompanyPaymentProcessorsUpdateData, any>({
2570
- path: `/admin/company_payment_processors/${identifier}/`,
2571
- method: "PUT",
2572
- body: data,
2573
- secure: true,
2574
- type: ContentType.Json,
2575
- format: "json",
2576
- ...params,
2577
- }),
2578
-
2579
- /**
2580
- * No description
2581
- *
2582
- * @tags admin
2583
- * @name AdminCompanyPaymentProcessorsPartialUpdate
2584
- * @summary Partially update company payment processor
2585
- * @request PATCH:/admin/company_payment_processors/{identifier}/
2586
- * @secure
2587
- */
2588
- adminCompanyPaymentProcessorsPartialUpdate: (
2589
- identifier: string,
2590
- data: PatchedAdminCompanyPaymentProcessor,
2591
- params: RequestParams = {},
2592
- ) =>
2593
- this.request<AdminCompanyPaymentProcessorsPartialUpdateData, any>({
2594
- path: `/admin/company_payment_processors/${identifier}/`,
2595
- method: "PATCH",
2596
- body: data,
2597
- secure: true,
2598
- type: ContentType.Json,
2599
- format: "json",
2600
- ...params,
2601
- }),
2602
-
2603
- /**
2604
- * No description
2605
- *
2606
- * @tags admin
2607
- * @name AdminCompanyPaymentProcessorsDestroy
2608
- * @summary Delete company payment processor
2609
- * @request DELETE:/admin/company_payment_processors/{identifier}/
2610
- * @secure
2611
- */
2612
- adminCompanyPaymentProcessorsDestroy: (
2613
- identifier: string,
2614
- params: RequestParams = {},
2615
- ) =>
2616
- this.request<AdminCompanyPaymentProcessorsDestroyData, any>({
2617
- path: `/admin/company_payment_processors/${identifier}/`,
2618
- method: "DELETE",
2619
- secure: true,
2620
- format: "json",
2621
- ...params,
2622
- }),
2623
-
2624
- /**
2625
- * No description
2626
- *
2627
- * @tags admin
2628
- * @name AdminPaymentProcessorQuoteList
2629
- * @summary List payment processor quotes
2630
- * @request GET:/admin/payment_processor_quote/
2631
- * @secure
2632
- */
2633
- adminPaymentProcessorQuoteList: (
2634
- query: AdminPaymentProcessorQuoteListParams,
2635
- params: RequestParams = {},
2636
- ) =>
2637
- this.request<AdminPaymentProcessorQuoteListData, any>({
2638
- path: `/admin/payment_processor_quote/`,
2639
- method: "GET",
2640
- query: query,
2641
- secure: true,
2642
- format: "json",
2643
- ...params,
2644
- }),
2645
-
2646
- /**
2647
- * No description
2648
- *
2649
- * @tags admin
2650
- * @name AdminPaymentProcessorsList
2651
- * @summary List payment processors
2652
- * @request GET:/admin/payment_processors/
2653
- * @secure
2654
- */
2655
- adminPaymentProcessorsList: (
2656
- query: AdminPaymentProcessorsListParams,
2657
- params: RequestParams = {},
2658
- ) =>
2659
- this.request<AdminPaymentProcessorsListData, any>({
2660
- path: `/admin/payment_processors/`,
2661
- method: "GET",
2662
- query: query,
2663
- secure: true,
2664
- format: "json",
2665
- ...params,
2666
- }),
2667
-
2668
- /**
2669
- * No description
2670
- *
2671
- * @tags admin
2672
- * @name AdminPaymentProcessorsCreate
2673
- * @summary Create payment processor
2674
- * @request POST:/admin/payment_processors/
2675
- * @secure
2676
- */
2677
- adminPaymentProcessorsCreate: (
2678
- data: AdminPaymentProcessor,
2679
- params: RequestParams = {},
2680
- ) =>
2681
- this.request<AdminPaymentProcessorsCreateData, any>({
2682
- path: `/admin/payment_processors/`,
2683
- method: "POST",
2684
- body: data,
2685
- secure: true,
2686
- type: ContentType.Json,
2687
- format: "json",
2688
- ...params,
2689
- }),
2690
-
2691
- /**
2692
- * No description
2693
- *
2694
- * @tags admin
2695
- * @name AdminPaymentProcessorsRetrieve
2696
- * @summary Retrieve payment processor
2697
- * @request GET:/admin/payment_processors/{identifier}/
2698
- * @secure
2699
- */
2700
- adminPaymentProcessorsRetrieve: (
2701
- identifier: string,
2702
- params: RequestParams = {},
2703
- ) =>
2704
- this.request<AdminPaymentProcessorsRetrieveData, any>({
2705
- path: `/admin/payment_processors/${identifier}/`,
2706
- method: "GET",
2707
- secure: true,
2708
- format: "json",
2709
- ...params,
2710
- }),
2711
-
2712
- /**
2713
- * No description
2714
- *
2715
- * @tags admin
2716
- * @name AdminPaymentProcessorsUpdate
2717
- * @summary Update payment processor
2718
- * @request PUT:/admin/payment_processors/{identifier}/
2719
- * @secure
2720
- */
2721
- adminPaymentProcessorsUpdate: (
2722
- identifier: string,
2723
- data: AdminPaymentProcessor,
2724
- params: RequestParams = {},
2725
- ) =>
2726
- this.request<AdminPaymentProcessorsUpdateData, any>({
2727
- path: `/admin/payment_processors/${identifier}/`,
2728
- method: "PUT",
2729
- body: data,
2730
- secure: true,
2731
- type: ContentType.Json,
2732
- format: "json",
2733
- ...params,
2734
- }),
2735
-
2736
- /**
2737
- * No description
2738
- *
2739
- * @tags admin
2740
- * @name AdminPaymentProcessorsPartialUpdate
2741
- * @summary Partially update payment processor
2742
- * @request PATCH:/admin/payment_processors/{identifier}/
2743
- * @secure
2744
- */
2745
- adminPaymentProcessorsPartialUpdate: (
2746
- identifier: string,
2747
- data: PatchedAdminPaymentProcessor,
2748
- params: RequestParams = {},
2749
- ) =>
2750
- this.request<AdminPaymentProcessorsPartialUpdateData, any>({
2751
- path: `/admin/payment_processors/${identifier}/`,
2752
- method: "PATCH",
2753
- body: data,
2754
- secure: true,
2755
- type: ContentType.Json,
2756
- format: "json",
2757
- ...params,
2758
- }),
2759
-
2760
- /**
2761
- * No description
2762
- *
2763
- * @tags admin
2764
- * @name AdminPaymentProcessorsDestroy
2765
- * @summary Delete payment processor
2766
- * @request DELETE:/admin/payment_processors/{identifier}/
2767
- * @secure
2768
- */
2769
- adminPaymentProcessorsDestroy: (
2770
- identifier: string,
2771
- params: RequestParams = {},
2772
- ) =>
2773
- this.request<AdminPaymentProcessorsDestroyData, any>({
2774
- path: `/admin/payment_processors/${identifier}/`,
2775
- method: "DELETE",
2776
- secure: true,
2777
- format: "json",
2778
- ...params,
2779
- }),
2780
-
2781
- /**
2782
- * No description
2783
- *
2784
- * @tags admin
2785
- * @name AdminRequestsList
2786
- * @summary List requests
2787
- * @request GET:/admin/requests/
2788
- * @secure
2789
- */
2790
- adminRequestsList: (
2791
- query: AdminRequestsListParams,
2792
- params: RequestParams = {},
2793
- ) =>
2794
- this.request<AdminRequestsListData, any>({
2795
- path: `/admin/requests/`,
2796
- method: "GET",
2797
- query: query,
2798
- secure: true,
2799
- format: "json",
2800
- ...params,
2801
- }),
2802
-
2803
- /**
2804
- * No description
2805
- *
2806
- * @tags admin
2807
- * @name AdminRequestsCreate
2808
- * @summary Create request
2809
- * @request POST:/admin/requests/
2810
- * @secure
2811
- */
2812
- adminRequestsCreate: (
2813
- data: AdminRequestCreateUpdate,
2814
- params: RequestParams = {},
2815
- ) =>
2816
- this.request<AdminRequestsCreateData, any>({
2817
- path: `/admin/requests/`,
2818
- method: "POST",
2819
- body: data,
2820
- secure: true,
2821
- type: ContentType.Json,
2822
- format: "json",
2823
- ...params,
2824
- }),
2825
-
2826
- /**
2827
- * No description
2828
- *
2829
- * @tags admin
2830
- * @name AdminRequestsRetrieve
2831
- * @summary Retrieve request
2832
- * @request GET:/admin/requests/{identifier}/
2833
- * @secure
2834
- */
2835
- adminRequestsRetrieve: (identifier: string, params: RequestParams = {}) =>
2836
- this.request<AdminRequestsRetrieveData, any>({
2837
- path: `/admin/requests/${identifier}/`,
2838
- method: "GET",
2839
- secure: true,
2840
- format: "json",
2841
- ...params,
2842
- }),
2843
-
2844
- /**
2845
- * No description
2846
- *
2847
- * @tags admin
2848
- * @name AdminRequestsUpdate
2849
- * @summary Update request
2850
- * @request PUT:/admin/requests/{identifier}/
2851
- * @secure
2852
- */
2853
- adminRequestsUpdate: (
2854
- identifier: string,
2855
- data: Request,
2856
- params: RequestParams = {},
2857
- ) =>
2858
- this.request<AdminRequestsUpdateData, any>({
2859
- path: `/admin/requests/${identifier}/`,
2860
- method: "PUT",
2861
- body: data,
2862
- secure: true,
2863
- type: ContentType.Json,
2864
- format: "json",
2865
- ...params,
2866
- }),
2867
-
2868
- /**
2869
- * No description
2870
- *
2871
- * @tags admin
2872
- * @name AdminRequestsPartialUpdate
2873
- * @summary Partially update request
2874
- * @request PATCH:/admin/requests/{identifier}/
2875
- * @secure
2876
- */
2877
- adminRequestsPartialUpdate: (
2878
- identifier: string,
2879
- data: PatchedAdminRequestCreateUpdate,
2880
- params: RequestParams = {},
2881
- ) =>
2882
- this.request<AdminRequestsPartialUpdateData, any>({
2883
- path: `/admin/requests/${identifier}/`,
2884
- method: "PATCH",
2885
- body: data,
2886
- secure: true,
2887
- type: ContentType.Json,
2888
- format: "json",
2889
- ...params,
2890
- }),
2891
-
2892
- /**
2893
- * No description
2894
- *
2895
- * @tags admin
2896
- * @name AdminRequestsLogsList
2897
- * @summary List request logs
2898
- * @request GET:/admin/requests/{identifier}/logs/
2899
- * @secure
2900
- */
2901
- adminRequestsLogsList: (
2902
- { identifier, ...query }: AdminRequestsLogsListParams,
2903
- params: RequestParams = {},
2904
- ) =>
2905
- this.request<AdminRequestsLogsListData, any>({
2906
- path: `/admin/requests/${identifier}/logs/`,
2907
- method: "GET",
2908
- query: query,
2909
- secure: true,
2910
- format: "json",
2911
- ...params,
2912
- }),
2913
-
2914
- /**
2915
- * No description
2916
- *
2917
- * @tags admin
2918
- * @name AdminRequestsPaymentProcessQuotesList
2919
- * @summary List request payment processor quotes
2920
- * @request GET:/admin/requests/{identifier}/payment-process-quotes/
2921
- * @secure
2922
- */
2923
- adminRequestsPaymentProcessQuotesList: (
2924
- { identifier, ...query }: AdminRequestsPaymentProcessQuotesListParams,
2925
- params: RequestParams = {},
2926
- ) =>
2927
- this.request<AdminRequestsPaymentProcessQuotesListData, any>({
2928
- path: `/admin/requests/${identifier}/payment-process-quotes/`,
2929
- method: "GET",
2930
- query: query,
2931
- secure: true,
2932
- format: "json",
2933
- ...params,
2934
- }),
2935
-
2936
- /**
2937
- * No description
2938
- *
2939
- * @tags admin
2940
- * @name AdminRequestsPaymentProcessQuotesRetrieve
2941
- * @summary Retrieve request payment processor quote
2942
- * @request GET:/admin/requests/{identifier}/payment-process-quotes/{quote_identifier}/
2943
- * @secure
2944
- */
2945
- adminRequestsPaymentProcessQuotesRetrieve: (
2946
- identifier: string,
2947
- quoteIdentifier: string,
2948
- params: RequestParams = {},
2949
- ) =>
2950
- this.request<AdminRequestsPaymentProcessQuotesRetrieveData, any>({
2951
- path: `/admin/requests/${identifier}/payment-process-quotes/${quoteIdentifier}/`,
2952
- method: "GET",
2953
- secure: true,
2954
- format: "json",
2955
- ...params,
2956
- }),
2957
-
2958
- /**
2959
- * No description
2960
- *
2961
- * @tags admin
2962
- * @name AdminRequestsPaymentProcessQuotesExecuteRetrieve
2963
- * @summary Retrieve request payment processor quote conversion
2964
- * @request GET:/admin/requests/{identifier}/payment-process-quotes/{quote_identifier}/execute/
2965
- * @secure
2966
- */
2967
- adminRequestsPaymentProcessQuotesExecuteRetrieve: (
2968
- identifier: string,
2969
- quoteIdentifier: string,
2970
- params: RequestParams = {},
2971
- ) =>
2972
- this.request<AdminRequestsPaymentProcessQuotesExecuteRetrieveData, any>({
2973
- path: `/admin/requests/${identifier}/payment-process-quotes/${quoteIdentifier}/execute/`,
2974
- method: "GET",
2975
- secure: true,
2976
- format: "json",
2977
- ...params,
2978
- }),
2979
-
2980
- /**
2981
- * No description
2982
- *
2983
- * @tags admin
2984
- * @name AdminRequestsRefundsList
2985
- * @summary List request refunds
2986
- * @request GET:/admin/requests/{identifier}/refunds/
2987
- * @secure
2988
- */
2989
- adminRequestsRefundsList: (
2990
- { identifier, ...query }: AdminRequestsRefundsListParams,
2991
- params: RequestParams = {},
2992
- ) =>
2993
- this.request<AdminRequestsRefundsListData, any>({
2994
- path: `/admin/requests/${identifier}/refunds/`,
2995
- method: "GET",
2996
- query: query,
2997
- secure: true,
2998
- format: "json",
2999
- ...params,
3000
- }),
3001
-
3002
- /**
3003
- * No description
3004
- *
3005
- * @tags admin
3006
- * @name AdminRequestsRefundsCreate
3007
- * @summary Create request refund
3008
- * @request POST:/admin/requests/{identifier}/refunds/
3009
- * @secure
3010
- */
3011
- adminRequestsRefundsCreate: (
3012
- identifier: string,
3013
- data: AdminRefund,
3014
- params: RequestParams = {},
3015
- ) =>
3016
- this.request<AdminRequestsRefundsCreateData, any>({
3017
- path: `/admin/requests/${identifier}/refunds/`,
3018
- method: "POST",
3019
- body: data,
3020
- secure: true,
3021
- type: ContentType.Json,
3022
- format: "json",
3023
- ...params,
3024
- }),
3025
-
3026
- /**
3027
- * No description
3028
- *
3029
- * @tags admin
3030
- * @name AdminRequestsTransactionsList
3031
- * @summary List request transactions
3032
- * @request GET:/admin/requests/{identifier}/transactions/
3033
- * @secure
3034
- */
3035
- adminRequestsTransactionsList: (
3036
- { identifier, ...query }: AdminRequestsTransactionsListParams,
3037
- params: RequestParams = {},
3038
- ) =>
3039
- this.request<AdminRequestsTransactionsListData, any>({
3040
- path: `/admin/requests/${identifier}/transactions/`,
3041
- method: "GET",
3042
- query: query,
3043
- secure: true,
3044
- format: "json",
3045
- ...params,
3046
- }),
3047
-
3048
- /**
3049
- * No description
3050
- *
3051
- * @tags admin
3052
- * @name AdminUsersList
3053
- * @summary List users
3054
- * @request GET:/admin/users/
3055
- * @secure
3056
- */
3057
- adminUsersList: (query: AdminUsersListParams, params: RequestParams = {}) =>
3058
- this.request<AdminUsersListData, any>({
3059
- path: `/admin/users/`,
3060
- method: "GET",
3061
- query: query,
3062
- secure: true,
3063
- format: "json",
3064
- ...params,
3065
- }),
3066
-
3067
- /**
3068
- * No description
3069
- *
3070
- * @tags admin
3071
- * @name AdminUsersRetrieve
3072
- * @summary Retrieve user
3073
- * @request GET:/admin/users/{identifier}/
3074
- * @secure
3075
- */
3076
- adminUsersRetrieve: (identifier: string, params: RequestParams = {}) =>
3077
- this.request<AdminUsersRetrieveData, any>({
3078
- path: `/admin/users/${identifier}/`,
3079
- method: "GET",
3080
- secure: true,
3081
- format: "json",
3082
- ...params,
3083
- }),
3084
-
3085
- /**
3086
- * No description
3087
- *
3088
- * @tags admin
3089
- * @name AdminUsersUpdate
3090
- * @summary Update user
3091
- * @request PUT:/admin/users/{identifier}/
3092
- * @secure
3093
- */
3094
- adminUsersUpdate: (
3095
- identifier: string,
3096
- data: AdminUser,
3097
- params: RequestParams = {},
3098
- ) =>
3099
- this.request<AdminUsersUpdateData, any>({
3100
- path: `/admin/users/${identifier}/`,
3101
- method: "PUT",
3102
- body: data,
3103
- secure: true,
3104
- type: ContentType.Json,
3105
- format: "json",
3106
- ...params,
3107
- }),
3108
-
3109
- /**
3110
- * No description
3111
- *
3112
- * @tags admin
3113
- * @name AdminUsersPartialUpdate
3114
- * @summary Partially update user
3115
- * @request PATCH:/admin/users/{identifier}/
3116
- * @secure
3117
- */
3118
- adminUsersPartialUpdate: (
3119
- identifier: string,
3120
- data: PatchedAdminUser,
3121
- params: RequestParams = {},
3122
- ) =>
3123
- this.request<AdminUsersPartialUpdateData, any>({
3124
- path: `/admin/users/${identifier}/`,
3125
- method: "PATCH",
3126
- body: data,
3127
- secure: true,
3128
- type: ContentType.Json,
3129
- format: "json",
3130
- ...params,
3131
- }),
3132
-
3133
- /**
3134
- * No description
3135
- *
3136
- * @tags admin
3137
- * @name AdminWebhooksList
3138
- * @summary List webhooks
3139
- * @request GET:/admin/webhooks/
3140
- * @secure
3141
- */
3142
- adminWebhooksList: (
3143
- query: AdminWebhooksListParams,
3144
- params: RequestParams = {},
3145
- ) =>
3146
- this.request<AdminWebhooksListData, any>({
3147
- path: `/admin/webhooks/`,
3148
- method: "GET",
3149
- query: query,
3150
- secure: true,
3151
- format: "json",
3152
- ...params,
3153
- }),
3154
-
3155
- /**
3156
- * No description
3157
- *
3158
- * @tags admin
3159
- * @name AdminWebhooksCreate
3160
- * @summary Create webhook
3161
- * @request POST:/admin/webhooks/
3162
- * @secure
3163
- */
3164
- adminWebhooksCreate: (data: AdminWebhook, params: RequestParams = {}) =>
3165
- this.request<AdminWebhooksCreateData, any>({
3166
- path: `/admin/webhooks/`,
3167
- method: "POST",
3168
- body: data,
3169
- secure: true,
3170
- type: ContentType.Json,
3171
- format: "json",
3172
- ...params,
3173
- }),
3174
-
3175
- /**
3176
- * No description
3177
- *
3178
- * @tags admin
3179
- * @name AdminWebhooksRetrieve
3180
- * @summary Retrieve webhook
3181
- * @request GET:/admin/webhooks/{identifier}/
3182
- * @secure
3183
- */
3184
- adminWebhooksRetrieve: (identifier: string, params: RequestParams = {}) =>
3185
- this.request<AdminWebhooksRetrieveData, any>({
3186
- path: `/admin/webhooks/${identifier}/`,
3187
- method: "GET",
3188
- secure: true,
3189
- format: "json",
3190
- ...params,
3191
- }),
3192
-
3193
- /**
3194
- * No description
3195
- *
3196
- * @tags admin
3197
- * @name AdminWebhooksUpdate
3198
- * @summary Update webhook
3199
- * @request PUT:/admin/webhooks/{identifier}/
3200
- * @secure
3201
- */
3202
- adminWebhooksUpdate: (
3203
- identifier: string,
3204
- data: AdminWebhook,
3205
- params: RequestParams = {},
3206
- ) =>
3207
- this.request<AdminWebhooksUpdateData, any>({
3208
- path: `/admin/webhooks/${identifier}/`,
3209
- method: "PUT",
3210
- body: data,
3211
- secure: true,
3212
- type: ContentType.Json,
3213
- format: "json",
3214
- ...params,
3215
- }),
3216
-
3217
- /**
3218
- * No description
3219
- *
3220
- * @tags admin
3221
- * @name AdminWebhooksPartialUpdate
3222
- * @summary Partially update webhook
3223
- * @request PATCH:/admin/webhooks/{identifier}/
3224
- * @secure
3225
- */
3226
- adminWebhooksPartialUpdate: (
3227
- identifier: string,
3228
- data: PatchedAdminWebhook,
3229
- params: RequestParams = {},
3230
- ) =>
3231
- this.request<AdminWebhooksPartialUpdateData, any>({
3232
- path: `/admin/webhooks/${identifier}/`,
3233
- method: "PATCH",
3234
- body: data,
3235
- secure: true,
3236
- type: ContentType.Json,
3237
- format: "json",
3238
- ...params,
3239
- }),
3240
-
3241
- /**
3242
- * No description
3243
- *
3244
- * @tags admin
3245
- * @name AdminWebhooksDestroy
3246
- * @summary Delete webhook
3247
- * @request DELETE:/admin/webhooks/{identifier}/
3248
- * @secure
3249
- */
3250
- adminWebhooksDestroy: (identifier: string, params: RequestParams = {}) =>
3251
- this.request<AdminWebhooksDestroyData, any>({
3252
- path: `/admin/webhooks/${identifier}/`,
3253
- method: "DELETE",
3254
- secure: true,
3255
- format: "json",
3256
- ...params,
3257
- }),
3258
- };
3259
- deactivate = {
3260
- /**
3261
- * No description
3262
- *
3263
- * @tags deactivate
3264
- * @name DeactivateCreate
3265
- * @summary Deactivate service
3266
- * @request POST:/deactivate/
3267
- * @secure
3268
- */
3269
- deactivateCreate: (data: Deactivate, params: RequestParams = {}) =>
3270
- this.request<DeactivateCreateData, any>({
3271
- path: `/deactivate/`,
3272
- method: "POST",
3273
- body: data,
3274
- secure: true,
3275
- type: ContentType.Json,
3276
- format: "json",
3277
- ...params,
3278
- }),
3279
- };
3280
- requests = {
3281
- /**
3282
- * No description
3283
- *
3284
- * @tags requests
3285
- * @name RequestsRetrieve
3286
- * @summary Retrieve request
3287
- * @request GET:/requests/{identifier}/
3288
- * @secure
3289
- */
3290
- requestsRetrieve: (identifier: string, params: RequestParams = {}) =>
3291
- this.request<RequestsRetrieveData, any>({
3292
- path: `/requests/${identifier}/`,
3293
- method: "GET",
3294
- secure: true,
3295
- format: "json",
3296
- ...params,
3297
- }),
3298
-
3299
- /**
3300
- * No description
3301
- *
3302
- * @tags requests
3303
- * @name RequestsUpdate
3304
- * @summary Update request
3305
- * @request PUT:/requests/{identifier}/
3306
- * @secure
3307
- */
3308
- requestsUpdate: (
3309
- identifier: string,
3310
- data: PublicRequest,
3311
- params: RequestParams = {},
3312
- ) =>
3313
- this.request<RequestsUpdateData, any>({
3314
- path: `/requests/${identifier}/`,
3315
- method: "PUT",
3316
- body: data,
3317
- secure: true,
3318
- type: ContentType.Json,
3319
- format: "json",
3320
- ...params,
3321
- }),
3322
-
3323
- /**
3324
- * No description
3325
- *
3326
- * @tags requests
3327
- * @name RequestsPartialUpdate
3328
- * @summary Partially update request
3329
- * @request PATCH:/requests/{identifier}/
3330
- * @secure
3331
- */
3332
- requestsPartialUpdate: (
3333
- identifier: string,
3334
- data: PatchedPublicRequestUpdate,
3335
- params: RequestParams = {},
3336
- ) =>
3337
- this.request<RequestsPartialUpdateData, any>({
3338
- path: `/requests/${identifier}/`,
3339
- method: "PATCH",
3340
- body: data,
3341
- secure: true,
3342
- type: ContentType.Json,
3343
- format: "json",
3344
- ...params,
3345
- }),
3346
-
3347
- /**
3348
- * No description
3349
- *
3350
- * @tags requests
3351
- * @name RequestsOtpChallengeCreate
3352
- * @summary Create OTP challenge
3353
- * @request POST:/requests/{identifier}/otp_challenge/
3354
- * @secure
3355
- */
3356
- requestsOtpChallengeCreate: (
3357
- identifier: string,
3358
- data: OTPChallenge,
3359
- params: RequestParams = {},
3360
- ) =>
3361
- this.request<RequestsOtpChallengeCreateData, any>({
3362
- path: `/requests/${identifier}/otp_challenge/`,
3363
- method: "POST",
3364
- body: data,
3365
- secure: true,
3366
- type: ContentType.Json,
3367
- format: "json",
3368
- ...params,
3369
- }),
3370
-
3371
- /**
3372
- * No description
3373
- *
3374
- * @tags requests
3375
- * @name RequestsPaymentProcessorsList
3376
- * @summary List request payment processors
3377
- * @request GET:/requests/{identifier}/payment_processors/
3378
- * @secure
3379
- */
3380
- requestsPaymentProcessorsList: (
3381
- { identifier, ...query }: RequestsPaymentProcessorsListParams,
3382
- params: RequestParams = {},
3383
- ) =>
3384
- this.request<RequestsPaymentProcessorsListData, any>({
3385
- path: `/requests/${identifier}/payment_processors/`,
3386
- method: "GET",
3387
- query: query,
3388
- secure: true,
3389
- format: "json",
3390
- ...params,
3391
- }),
3392
-
3393
- /**
3394
- * No description
3395
- *
3396
- * @tags requests
3397
- * @name RequestsResendOtpCreate
3398
- * @summary Resend OTP challenge
3399
- * @request POST:/requests/{identifier}/resend_otp/
3400
- * @secure
3401
- */
3402
- requestsResendOtpCreate: (identifier: string, params: RequestParams = {}) =>
3403
- this.request<RequestsResendOtpCreateData, any>({
3404
- path: `/requests/${identifier}/resend_otp/`,
3405
- method: "POST",
3406
- secure: true,
3407
- format: "json",
3408
- ...params,
3409
- }),
3410
-
3411
- /**
3412
- * No description
3413
- *
3414
- * @tags requests
3415
- * @name RequestsTransactionsList
3416
- * @summary List request transactions
3417
- * @request GET:/requests/{identifier}/transactions/
3418
- * @secure
3419
- */
3420
- requestsTransactionsList: (
3421
- { identifier, ...query }: RequestsTransactionsListParams,
3422
- params: RequestParams = {},
3423
- ) =>
3424
- this.request<RequestsTransactionsListData, any>({
3425
- path: `/requests/${identifier}/transactions/`,
3426
- method: "GET",
3427
- query: query,
3428
- secure: true,
3429
- format: "json",
3430
- ...params,
3431
- }),
3432
- };
3433
- user = {
3434
- /**
3435
- * No description
3436
- *
3437
- * @tags user
3438
- * @name UserPaymentProcessorsList
3439
- * @summary List payment processors
3440
- * @request GET:/user/payment_processors/
3441
- * @secure
3442
- */
3443
- userPaymentProcessorsList: (
3444
- query: UserPaymentProcessorsListParams,
3445
- params: RequestParams = {},
3446
- ) =>
3447
- this.request<UserPaymentProcessorsListData, any>({
3448
- path: `/user/payment_processors/`,
3449
- method: "GET",
3450
- query: query,
3451
- secure: true,
3452
- format: "json",
3453
- ...params,
3454
- }),
3455
-
3456
- /**
3457
- * No description
3458
- *
3459
- * @tags user
3460
- * @name UserPaymentProcessorsCreate
3461
- * @summary Create payment processor
3462
- * @request POST:/user/payment_processors/
3463
- * @secure
3464
- */
3465
- userPaymentProcessorsCreate: (
3466
- data: UserCRUDCompanyPaymentProcessor,
3467
- params: RequestParams = {},
3468
- ) =>
3469
- this.request<UserPaymentProcessorsCreateData, any>({
3470
- path: `/user/payment_processors/`,
3471
- method: "POST",
3472
- body: data,
3473
- secure: true,
3474
- type: ContentType.Json,
3475
- format: "json",
3476
- ...params,
3477
- }),
3478
-
3479
- /**
3480
- * No description
3481
- *
3482
- * @tags user
3483
- * @name UserPaymentProcessorsRetrieve
3484
- * @summary Retrieve payment processor
3485
- * @request GET:/user/payment_processors/{id}/
3486
- * @secure
3487
- */
3488
- userPaymentProcessorsRetrieve: (id: string, params: RequestParams = {}) =>
3489
- this.request<UserPaymentProcessorsRetrieveData, any>({
3490
- path: `/user/payment_processors/${id}/`,
3491
- method: "GET",
3492
- secure: true,
3493
- format: "json",
3494
- ...params,
3495
- }),
3496
-
3497
- /**
3498
- * No description
3499
- *
3500
- * @tags user
3501
- * @name UserPaymentProcessorsUpdate
3502
- * @summary Update payment processor
3503
- * @request PUT:/user/payment_processors/{id}/
3504
- * @secure
3505
- */
3506
- userPaymentProcessorsUpdate: (
3507
- id: string,
3508
- data: UserCRUDCompanyPaymentProcessor,
3509
- params: RequestParams = {},
3510
- ) =>
3511
- this.request<UserPaymentProcessorsUpdateData, any>({
3512
- path: `/user/payment_processors/${id}/`,
3513
- method: "PUT",
3514
- body: data,
3515
- secure: true,
3516
- type: ContentType.Json,
3517
- format: "json",
3518
- ...params,
3519
- }),
3520
-
3521
- /**
3522
- * No description
3523
- *
3524
- * @tags user
3525
- * @name UserPaymentProcessorsPartialUpdate
3526
- * @summary Partially update payment processor
3527
- * @request PATCH:/user/payment_processors/{id}/
3528
- * @secure
3529
- */
3530
- userPaymentProcessorsPartialUpdate: (
3531
- id: string,
3532
- data: PatchedUserCRUDCompanyPaymentProcessor,
3533
- params: RequestParams = {},
3534
- ) =>
3535
- this.request<UserPaymentProcessorsPartialUpdateData, any>({
3536
- path: `/user/payment_processors/${id}/`,
3537
- method: "PATCH",
3538
- body: data,
3539
- secure: true,
3540
- type: ContentType.Json,
3541
- format: "json",
3542
- ...params,
3543
- }),
3544
-
3545
- /**
3546
- * No description
3547
- *
3548
- * @tags user
3549
- * @name UserPaymentProcessorsDestroy
3550
- * @summary Delete payment processor
3551
- * @request DELETE:/user/payment_processors/{id}/
3552
- * @secure
3553
- */
3554
- userPaymentProcessorsDestroy: (id: string, params: RequestParams = {}) =>
3555
- this.request<UserPaymentProcessorsDestroyData, any>({
3556
- path: `/user/payment_processors/${id}/`,
3557
- method: "DELETE",
3558
- secure: true,
3559
- format: "json",
3560
- ...params,
3561
- }),
3562
-
3563
- /**
3564
- * No description
3565
- *
3566
- * @tags user
3567
- * @name UserRequestsList
3568
- * @summary List request
3569
- * @request GET:/user/requests/
3570
- * @secure
3571
- */
3572
- userRequestsList: (
3573
- query: UserRequestsListParams,
3574
- params: RequestParams = {},
3575
- ) =>
3576
- this.request<UserRequestsListData, any>({
3577
- path: `/user/requests/`,
3578
- method: "GET",
3579
- query: query,
3580
- secure: true,
3581
- format: "json",
3582
- ...params,
3583
- }),
3584
-
3585
- /**
3586
- * No description
3587
- *
3588
- * @tags user
3589
- * @name UserRequestsCreate
3590
- * @summary Create request
3591
- * @request POST:/user/requests/
3592
- * @secure
3593
- */
3594
- userRequestsCreate: (
3595
- data: RequestCreateUpdate,
3596
- params: RequestParams = {},
3597
- ) =>
3598
- this.request<UserRequestsCreateData, any>({
3599
- path: `/user/requests/`,
3600
- method: "POST",
3601
- body: data,
3602
- secure: true,
3603
- type: ContentType.Json,
3604
- format: "json",
3605
- ...params,
3606
- }),
3607
-
3608
- /**
3609
- * No description
3610
- *
3611
- * @tags user
3612
- * @name UserRequestsRetrieve
3613
- * @summary Retrieve request
3614
- * @request GET:/user/requests/{identifier}/
3615
- * @secure
3616
- */
3617
- userRequestsRetrieve: (identifier: string, params: RequestParams = {}) =>
3618
- this.request<UserRequestsRetrieveData, any>({
3619
- path: `/user/requests/${identifier}/`,
3620
- method: "GET",
3621
- secure: true,
3622
- format: "json",
3623
- ...params,
3624
- }),
3625
-
3626
- /**
3627
- * No description
3628
- *
3629
- * @tags user
3630
- * @name UserRequestsUpdate
3631
- * @summary Update request
3632
- * @request PUT:/user/requests/{identifier}/
3633
- * @secure
3634
- */
3635
- userRequestsUpdate: (
3636
- identifier: string,
3637
- data: Request,
3638
- params: RequestParams = {},
3639
- ) =>
3640
- this.request<UserRequestsUpdateData, any>({
3641
- path: `/user/requests/${identifier}/`,
3642
- method: "PUT",
3643
- body: data,
3644
- secure: true,
3645
- type: ContentType.Json,
3646
- format: "json",
3647
- ...params,
3648
- }),
3649
-
3650
- /**
3651
- * No description
3652
- *
3653
- * @tags user
3654
- * @name UserRequestsPartialUpdate
3655
- * @summary Partially update request
3656
- * @request PATCH:/user/requests/{identifier}/
3657
- * @secure
3658
- */
3659
- userRequestsPartialUpdate: (
3660
- identifier: string,
3661
- data: PatchedRequestCreateUpdate,
3662
- params: RequestParams = {},
3663
- ) =>
3664
- this.request<UserRequestsPartialUpdateData, any>({
3665
- path: `/user/requests/${identifier}/`,
3666
- method: "PATCH",
3667
- body: data,
3668
- secure: true,
3669
- type: ContentType.Json,
3670
- format: "json",
3671
- ...params,
3672
- }),
3673
-
3674
- /**
3675
- * No description
3676
- *
3677
- * @tags user
3678
- * @name UserRequestsNotifyCreate
3679
- * @summary Send notification
3680
- * @request POST:/user/requests/{identifier}/notify/
3681
- * @secure
3682
- */
3683
- userRequestsNotifyCreate: (
3684
- identifier: string,
3685
- params: RequestParams = {},
3686
- ) =>
3687
- this.request<UserRequestsNotifyCreateData, any>({
3688
- path: `/user/requests/${identifier}/notify/`,
3689
- method: "POST",
3690
- secure: true,
3691
- format: "json",
3692
- ...params,
3693
- }),
3694
-
3695
- /**
3696
- * No description
3697
- *
3698
- * @tags user
3699
- * @name UserRequestsRefundsList
3700
- * @summary List request refunds
3701
- * @request GET:/user/requests/{identifier}/refunds/
3702
- * @secure
3703
- */
3704
- userRequestsRefundsList: (
3705
- { identifier, ...query }: UserRequestsRefundsListParams,
3706
- params: RequestParams = {},
3707
- ) =>
3708
- this.request<UserRequestsRefundsListData, any>({
3709
- path: `/user/requests/${identifier}/refunds/`,
3710
- method: "GET",
3711
- query: query,
3712
- secure: true,
3713
- format: "json",
3714
- ...params,
3715
- }),
3716
-
3717
- /**
3718
- * No description
3719
- *
3720
- * @tags user
3721
- * @name UserRequestsRefundsCreate
3722
- * @summary Create request refund
3723
- * @request POST:/user/requests/{identifier}/refunds/
3724
- * @secure
3725
- */
3726
- userRequestsRefundsCreate: (
3727
- identifier: string,
3728
- data: CreateRefund,
3729
- params: RequestParams = {},
3730
- ) =>
3731
- this.request<UserRequestsRefundsCreateData, any>({
3732
- path: `/user/requests/${identifier}/refunds/`,
3733
- method: "POST",
3734
- body: data,
3735
- secure: true,
3736
- type: ContentType.Json,
3737
- format: "json",
3738
- ...params,
3739
- }),
3740
-
3741
- /**
3742
- * No description
3743
- *
3744
- * @tags user
3745
- * @name UserRequestsTransactionsList
3746
- * @summary List request transactions
3747
- * @request GET:/user/requests/{identifier}/transactions/
3748
- * @secure
3749
- */
3750
- userRequestsTransactionsList: (
3751
- { identifier, ...query }: UserRequestsTransactionsListParams,
3752
- params: RequestParams = {},
3753
- ) =>
3754
- this.request<UserRequestsTransactionsListData, any>({
3755
- path: `/user/requests/${identifier}/transactions/`,
3756
- method: "GET",
3757
- query: query,
3758
- secure: true,
3759
- format: "json",
3760
- ...params,
3761
- }),
3762
-
3763
- /**
3764
- * No description
3765
- *
3766
- * @tags user
3767
- * @name UserWebhooksList
3768
- * @summary List webhooks
3769
- * @request GET:/user/webhooks/
3770
- * @secure
3771
- */
3772
- userWebhooksList: (
3773
- query: UserWebhooksListParams,
3774
- params: RequestParams = {},
3775
- ) =>
3776
- this.request<UserWebhooksListData, any>({
3777
- path: `/user/webhooks/`,
3778
- method: "GET",
3779
- query: query,
3780
- secure: true,
3781
- format: "json",
3782
- ...params,
3783
- }),
3784
-
3785
- /**
3786
- * No description
3787
- *
3788
- * @tags user
3789
- * @name UserWebhooksCreate
3790
- * @summary Create webhook
3791
- * @request POST:/user/webhooks/
3792
- * @secure
3793
- */
3794
- userWebhooksCreate: (data: Webhook, params: RequestParams = {}) =>
3795
- this.request<UserWebhooksCreateData, any>({
3796
- path: `/user/webhooks/`,
3797
- method: "POST",
3798
- body: data,
3799
- secure: true,
3800
- type: ContentType.Json,
3801
- format: "json",
3802
- ...params,
3803
- }),
3804
-
3805
- /**
3806
- * No description
3807
- *
3808
- * @tags user
3809
- * @name UserWebhooksRetrieve
3810
- * @summary Retrieve webhook
3811
- * @request GET:/user/webhooks/{identifier}/
3812
- * @secure
3813
- */
3814
- userWebhooksRetrieve: (identifier: string, params: RequestParams = {}) =>
3815
- this.request<UserWebhooksRetrieveData, any>({
3816
- path: `/user/webhooks/${identifier}/`,
3817
- method: "GET",
3818
- secure: true,
3819
- format: "json",
3820
- ...params,
3821
- }),
3822
-
3823
- /**
3824
- * No description
3825
- *
3826
- * @tags user
3827
- * @name UserWebhooksUpdate
3828
- * @summary Update webhook
3829
- * @request PUT:/user/webhooks/{identifier}/
3830
- * @secure
3831
- */
3832
- userWebhooksUpdate: (
3833
- identifier: string,
3834
- data: Webhook,
3835
- params: RequestParams = {},
3836
- ) =>
3837
- this.request<UserWebhooksUpdateData, any>({
3838
- path: `/user/webhooks/${identifier}/`,
3839
- method: "PUT",
3840
- body: data,
3841
- secure: true,
3842
- type: ContentType.Json,
3843
- format: "json",
3844
- ...params,
3845
- }),
3846
-
3847
- /**
3848
- * No description
3849
- *
3850
- * @tags user
3851
- * @name UserWebhooksPartialUpdate
3852
- * @summary Partially webhook
3853
- * @request PATCH:/user/webhooks/{identifier}/
3854
- * @secure
3855
- */
3856
- userWebhooksPartialUpdate: (
3857
- identifier: string,
3858
- data: PatchedWebhook,
3859
- params: RequestParams = {},
3860
- ) =>
3861
- this.request<UserWebhooksPartialUpdateData, any>({
3862
- path: `/user/webhooks/${identifier}/`,
3863
- method: "PATCH",
3864
- body: data,
3865
- secure: true,
3866
- type: ContentType.Json,
3867
- format: "json",
3868
- ...params,
3869
- }),
3870
-
3871
- /**
3872
- * No description
3873
- *
3874
- * @tags user
3875
- * @name UserWebhooksDestroy
3876
- * @summary Delete webhook
3877
- * @request DELETE:/user/webhooks/{identifier}/
3878
- * @secure
3879
- */
3880
- userWebhooksDestroy: (identifier: string, params: RequestParams = {}) =>
3881
- this.request<UserWebhooksDestroyData, any>({
3882
- path: `/user/webhooks/${identifier}/`,
3883
- method: "DELETE",
3884
- secure: true,
3885
- format: "json",
3886
- ...params,
3887
- }),
3888
- };
3889
- webhook = {
3890
- /**
3891
- * No description
3892
- *
3893
- * @tags webhook
3894
- * @name WebhookCreate
3895
- * @summary Receive Platform webhook
3896
- * @request POST:/webhook/
3897
- * @secure
3898
- */
3899
- webhookCreate: (data: RehiveWebhook, params: RequestParams = {}) =>
3900
- this.request<WebhookCreateData, any>({
3901
- path: `/webhook/`,
3902
- method: "POST",
3903
- body: data,
3904
- secure: true,
3905
- type: ContentType.Json,
3906
- format: "json",
3907
- ...params,
3908
- }),
3909
- };
3910
- webhooks = {
3911
- /**
3912
- * No description
3913
- *
3914
- * @tags webhooks
3915
- * @name WebhooksRehiveTransactionExecutedCreate
3916
- * @summary Receive Platform webhook
3917
- * @request POST:/webhooks/rehive_transaction/executed/
3918
- * @secure
3919
- */
3920
- webhooksRehiveTransactionExecutedCreate: (
3921
- data: RehiveWebhook,
3922
- params: RequestParams = {},
3923
- ) =>
3924
- this.request<WebhooksRehiveTransactionExecutedCreateData, any>({
3925
- path: `/webhooks/rehive_transaction/executed/`,
3926
- method: "POST",
3927
- body: data,
3928
- secure: true,
3929
- type: ContentType.Json,
3930
- format: "json",
3931
- ...params,
3932
- }),
3933
-
3934
- /**
3935
- * No description
3936
- *
3937
- * @tags webhooks
3938
- * @name WebhooksRehiveTransactionInitiatedCreate
3939
- * @summary Receive Platform webhook
3940
- * @request POST:/webhooks/rehive_transaction/initiated/
3941
- * @secure
3942
- */
3943
- webhooksRehiveTransactionInitiatedCreate: (
3944
- data: RehiveWebhook,
3945
- params: RequestParams = {},
3946
- ) =>
3947
- this.request<WebhooksRehiveTransactionInitiatedCreateData, any>({
3948
- path: `/webhooks/rehive_transaction/initiated/`,
3949
- method: "POST",
3950
- body: data,
3951
- secure: true,
3952
- type: ContentType.Json,
3953
- format: "json",
3954
- ...params,
3955
- }),
3956
-
3957
- /**
3958
- * No description
3959
- *
3960
- * @tags webhooks
3961
- * @name WebhooksRehiveUserCreateCreate
3962
- * @summary Receive Platform webhook
3963
- * @request POST:/webhooks/rehive_user/create/
3964
- * @secure
3965
- */
3966
- webhooksRehiveUserCreateCreate: (
3967
- data: RehiveWebhook,
3968
- params: RequestParams = {},
3969
- ) =>
3970
- this.request<WebhooksRehiveUserCreateCreateData, any>({
3971
- path: `/webhooks/rehive_user/create/`,
3972
- method: "POST",
3973
- body: data,
3974
- secure: true,
3975
- type: ContentType.Json,
3976
- format: "json",
3977
- ...params,
3978
- }),
3979
-
3980
- /**
3981
- * No description
3982
- *
3983
- * @tags webhooks
3984
- * @name WebhooksRehiveUserEmailUpdateCreate
3985
- * @summary Receive Platform webhook
3986
- * @request POST:/webhooks/rehive_user/email_update/
3987
- * @secure
3988
- */
3989
- webhooksRehiveUserEmailUpdateCreate: (
3990
- data: RehiveWebhook,
3991
- params: RequestParams = {},
3992
- ) =>
3993
- this.request<WebhooksRehiveUserEmailUpdateCreateData, any>({
3994
- path: `/webhooks/rehive_user/email_update/`,
3995
- method: "POST",
3996
- body: data,
3997
- secure: true,
3998
- type: ContentType.Json,
3999
- format: "json",
4000
- ...params,
4001
- }),
4002
-
4003
- /**
4004
- * No description
4005
- *
4006
- * @tags webhooks
4007
- * @name WebhooksRehiveUserUpdateCreate
4008
- * @summary Receive Platform webhook
4009
- * @request POST:/webhooks/rehive_user/update/
4010
- * @secure
4011
- */
4012
- webhooksRehiveUserUpdateCreate: (
4013
- data: RehiveWebhook,
4014
- params: RequestParams = {},
4015
- ) =>
4016
- this.request<WebhooksRehiveUserUpdateCreateData, any>({
4017
- path: `/webhooks/rehive_user/update/`,
4018
- method: "POST",
4019
- body: data,
4020
- secure: true,
4021
- type: ContentType.Json,
4022
- format: "json",
4023
- ...params,
4024
- }),
4025
- };
4026
- }