@djangocfg/api 1.0.1

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 (295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/dist/index.cjs +28422 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +31214 -0
  6. package/dist/index.d.ts +31214 -0
  7. package/dist/index.mjs +28334 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +83 -0
  10. package/src/cfg/BaseClient.ts +56 -0
  11. package/src/cfg/contexts/AccountsContext.tsx +205 -0
  12. package/src/cfg/contexts/LeadsContext.tsx +145 -0
  13. package/src/cfg/contexts/NewsletterContext.tsx +244 -0
  14. package/src/cfg/contexts/SupportContext.tsx +256 -0
  15. package/src/cfg/contexts/index.ts +48 -0
  16. package/src/cfg/contexts/knowbase/ChatContext.tsx +174 -0
  17. package/src/cfg/contexts/knowbase/DocumentsContext.tsx +304 -0
  18. package/src/cfg/contexts/knowbase/SessionsContext.tsx +174 -0
  19. package/src/cfg/contexts/knowbase/index.ts +58 -0
  20. package/src/cfg/contexts/payments/ApiKeysContext.tsx +115 -0
  21. package/src/cfg/contexts/payments/BalancesContext.tsx +118 -0
  22. package/src/cfg/contexts/payments/CurrenciesContext.tsx +105 -0
  23. package/src/cfg/contexts/payments/OverviewContext.tsx +141 -0
  24. package/src/cfg/contexts/payments/PaymentsContext.tsx +131 -0
  25. package/src/cfg/contexts/payments/README.md +201 -0
  26. package/src/cfg/contexts/payments/index.ts +65 -0
  27. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +66 -0
  28. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +50 -0
  29. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +121 -0
  30. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +49 -0
  31. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +64 -0
  32. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +122 -0
  33. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +50 -0
  34. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +81 -0
  35. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +50 -0
  36. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +123 -0
  37. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +49 -0
  38. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +64 -0
  39. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +81 -0
  40. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +50 -0
  41. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +2489 -0
  42. package/src/cfg/generated/_utils/fetchers/cfg__payments__webhooks.ts +109 -0
  43. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +212 -0
  44. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +182 -0
  45. package/src/cfg/generated/_utils/fetchers/index.ts +45 -0
  46. package/src/cfg/generated/_utils/hooks/cfg__accounts.ts +61 -0
  47. package/src/cfg/generated/_utils/hooks/cfg__accounts__auth.ts +41 -0
  48. package/src/cfg/generated/_utils/hooks/cfg__accounts__user_profile.ts +128 -0
  49. package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +36 -0
  50. package/src/cfg/generated/_utils/hooks/cfg__health.ts +51 -0
  51. package/src/cfg/generated/_utils/hooks/cfg__leads.ts +127 -0
  52. package/src/cfg/generated/_utils/hooks/cfg__leads__lead_submission.ts +41 -0
  53. package/src/cfg/generated/_utils/hooks/cfg__newsletter.ts +80 -0
  54. package/src/cfg/generated/_utils/hooks/cfg__newsletter__bulk_email.ts +41 -0
  55. package/src/cfg/generated/_utils/hooks/cfg__newsletter__campaigns.ts +128 -0
  56. package/src/cfg/generated/_utils/hooks/cfg__newsletter__logs.ts +36 -0
  57. package/src/cfg/generated/_utils/hooks/cfg__newsletter__newsletters.ts +51 -0
  58. package/src/cfg/generated/_utils/hooks/cfg__newsletter__subscriptions.ts +76 -0
  59. package/src/cfg/generated/_utils/hooks/cfg__newsletter__testing.ts +41 -0
  60. package/src/cfg/generated/_utils/hooks/cfg__payments.ts +2716 -0
  61. package/src/cfg/generated/_utils/hooks/cfg__payments__webhooks.ts +100 -0
  62. package/src/cfg/generated/_utils/hooks/cfg__support.ts +235 -0
  63. package/src/cfg/generated/_utils/hooks/cfg__tasks.ts +193 -0
  64. package/src/cfg/generated/_utils/hooks/index.ts +43 -0
  65. package/src/cfg/generated/_utils/schemas/APIKeyCreate.schema.ts +24 -0
  66. package/src/cfg/generated/_utils/schemas/APIKeyCreateRequest.schema.ts +24 -0
  67. package/src/cfg/generated/_utils/schemas/APIKeyDetail.schema.ts +35 -0
  68. package/src/cfg/generated/_utils/schemas/APIKeyList.schema.ts +32 -0
  69. package/src/cfg/generated/_utils/schemas/APIKeyUpdate.schema.ts +24 -0
  70. package/src/cfg/generated/_utils/schemas/APIKeyUpdateRequest.schema.ts +24 -0
  71. package/src/cfg/generated/_utils/schemas/APIKeyValidationRequest.schema.ts +23 -0
  72. package/src/cfg/generated/_utils/schemas/APIKeyValidationResponse.schema.ts +29 -0
  73. package/src/cfg/generated/_utils/schemas/APIKeysOverview.schema.ts +26 -0
  74. package/src/cfg/generated/_utils/schemas/APIResponse.schema.ts +22 -0
  75. package/src/cfg/generated/_utils/schemas/APIResponseRequest.schema.ts +22 -0
  76. package/src/cfg/generated/_utils/schemas/AdminPaymentCreate.schema.ts +26 -0
  77. package/src/cfg/generated/_utils/schemas/AdminPaymentCreateRequest.schema.ts +27 -0
  78. package/src/cfg/generated/_utils/schemas/AdminPaymentDetail.schema.ts +50 -0
  79. package/src/cfg/generated/_utils/schemas/AdminPaymentList.schema.ts +38 -0
  80. package/src/cfg/generated/_utils/schemas/AdminPaymentStats.schema.ts +29 -0
  81. package/src/cfg/generated/_utils/schemas/AdminPaymentUpdate.schema.ts +25 -0
  82. package/src/cfg/generated/_utils/schemas/AdminPaymentUpdateRequest.schema.ts +25 -0
  83. package/src/cfg/generated/_utils/schemas/AdminUser.schema.ts +24 -0
  84. package/src/cfg/generated/_utils/schemas/BalanceOverview.schema.ts +25 -0
  85. package/src/cfg/generated/_utils/schemas/BulkEmailRequest.schema.ts +26 -0
  86. package/src/cfg/generated/_utils/schemas/BulkEmailResponse.schema.ts +23 -0
  87. package/src/cfg/generated/_utils/schemas/ChartDataPoint.schema.ts +20 -0
  88. package/src/cfg/generated/_utils/schemas/ChartSeries.schema.ts +22 -0
  89. package/src/cfg/generated/_utils/schemas/Currency.schema.ts +35 -0
  90. package/src/cfg/generated/_utils/schemas/CurrencyAnalyticsItem.schema.ts +25 -0
  91. package/src/cfg/generated/_utils/schemas/CurrencyList.schema.ts +30 -0
  92. package/src/cfg/generated/_utils/schemas/EmailLog.schema.ts +31 -0
  93. package/src/cfg/generated/_utils/schemas/Endpoint.schema.ts +35 -0
  94. package/src/cfg/generated/_utils/schemas/EndpointGroup.schema.ts +28 -0
  95. package/src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts +28 -0
  96. package/src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts +20 -0
  97. package/src/cfg/generated/_utils/schemas/HealthCheck.schema.ts +24 -0
  98. package/src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts +29 -0
  99. package/src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts +21 -0
  100. package/src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts +29 -0
  101. package/src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts +21 -0
  102. package/src/cfg/generated/_utils/schemas/Message.schema.ts +21 -0
  103. package/src/cfg/generated/_utils/schemas/MessageCreate.schema.ts +15 -0
  104. package/src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts +15 -0
  105. package/src/cfg/generated/_utils/schemas/MessageRequest.schema.ts +15 -0
  106. package/src/cfg/generated/_utils/schemas/Network.schema.ts +30 -0
  107. package/src/cfg/generated/_utils/schemas/Newsletter.schema.ts +26 -0
  108. package/src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts +33 -0
  109. package/src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts +26 -0
  110. package/src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts +27 -0
  111. package/src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts +19 -0
  112. package/src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts +22 -0
  113. package/src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts +19 -0
  114. package/src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts +23 -0
  115. package/src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts +22 -0
  116. package/src/cfg/generated/_utils/schemas/PaginatedAPIKeyListList.schema.ts +24 -0
  117. package/src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts +24 -0
  118. package/src/cfg/generated/_utils/schemas/PaginatedAdminPaymentStatsList.schema.ts +24 -0
  119. package/src/cfg/generated/_utils/schemas/PaginatedAdminUserList.schema.ts +24 -0
  120. package/src/cfg/generated/_utils/schemas/PaginatedCurrencyListList.schema.ts +24 -0
  121. package/src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts +24 -0
  122. package/src/cfg/generated/_utils/schemas/PaginatedEndpointGroupList.schema.ts +24 -0
  123. package/src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts +24 -0
  124. package/src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts +24 -0
  125. package/src/cfg/generated/_utils/schemas/PaginatedNetworkList.schema.ts +24 -0
  126. package/src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts +24 -0
  127. package/src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts +24 -0
  128. package/src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts +24 -0
  129. package/src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts +24 -0
  130. package/src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts +24 -0
  131. package/src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts +24 -0
  132. package/src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts +24 -0
  133. package/src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts +24 -0
  134. package/src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts +24 -0
  135. package/src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts +24 -0
  136. package/src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts +24 -0
  137. package/src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts +24 -0
  138. package/src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts +24 -0
  139. package/src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts +24 -0
  140. package/src/cfg/generated/_utils/schemas/PatchedAPIKeyUpdateRequest.schema.ts +24 -0
  141. package/src/cfg/generated/_utils/schemas/PatchedAdminPaymentUpdateRequest.schema.ts +25 -0
  142. package/src/cfg/generated/_utils/schemas/PatchedLeadSubmissionRequest.schema.ts +29 -0
  143. package/src/cfg/generated/_utils/schemas/PatchedMessageRequest.schema.ts +15 -0
  144. package/src/cfg/generated/_utils/schemas/PatchedNewsletterCampaignRequest.schema.ts +26 -0
  145. package/src/cfg/generated/_utils/schemas/PatchedPaymentRequest.schema.ts +32 -0
  146. package/src/cfg/generated/_utils/schemas/PatchedSubscriptionRequest.schema.ts +26 -0
  147. package/src/cfg/generated/_utils/schemas/PatchedTicketRequest.schema.ts +18 -0
  148. package/src/cfg/generated/_utils/schemas/PatchedUnsubscribeRequest.schema.ts +19 -0
  149. package/src/cfg/generated/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts +23 -0
  150. package/src/cfg/generated/_utils/schemas/Payment.schema.ts +48 -0
  151. package/src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts +22 -0
  152. package/src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts +30 -0
  153. package/src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts +30 -0
  154. package/src/cfg/generated/_utils/schemas/PaymentList.schema.ts +32 -0
  155. package/src/cfg/generated/_utils/schemas/PaymentOverview.schema.ts +31 -0
  156. package/src/cfg/generated/_utils/schemas/PaymentRequest.schema.ts +32 -0
  157. package/src/cfg/generated/_utils/schemas/PaymentsChartResponse.schema.ts +24 -0
  158. package/src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts +26 -0
  159. package/src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts +26 -0
  160. package/src/cfg/generated/_utils/schemas/ProviderAnalyticsItem.schema.ts +24 -0
  161. package/src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts +36 -0
  162. package/src/cfg/generated/_utils/schemas/QueueAction.schema.ts +21 -0
  163. package/src/cfg/generated/_utils/schemas/QueueActionRequest.schema.ts +21 -0
  164. package/src/cfg/generated/_utils/schemas/QueueStatus.schema.ts +23 -0
  165. package/src/cfg/generated/_utils/schemas/QuickHealth.schema.ts +21 -0
  166. package/src/cfg/generated/_utils/schemas/RecentPayment.schema.ts +32 -0
  167. package/src/cfg/generated/_utils/schemas/RecentTransaction.schema.ts +29 -0
  168. package/src/cfg/generated/_utils/schemas/SendCampaignRequest.schema.ts +19 -0
  169. package/src/cfg/generated/_utils/schemas/SendCampaignResponse.schema.ts +22 -0
  170. package/src/cfg/generated/_utils/schemas/Sender.schema.ts +21 -0
  171. package/src/cfg/generated/_utils/schemas/SubscribeRequest.schema.ts +20 -0
  172. package/src/cfg/generated/_utils/schemas/SubscribeResponse.schema.ts +21 -0
  173. package/src/cfg/generated/_utils/schemas/Subscription.schema.ts +41 -0
  174. package/src/cfg/generated/_utils/schemas/SubscriptionCreate.schema.ts +25 -0
  175. package/src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts +25 -0
  176. package/src/cfg/generated/_utils/schemas/SubscriptionList.schema.ts +32 -0
  177. package/src/cfg/generated/_utils/schemas/SubscriptionOverview.schema.ts +37 -0
  178. package/src/cfg/generated/_utils/schemas/SubscriptionRequest.schema.ts +26 -0
  179. package/src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts +20 -0
  180. package/src/cfg/generated/_utils/schemas/SupportedProviders.schema.ts +22 -0
  181. package/src/cfg/generated/_utils/schemas/Tariff.schema.ts +34 -0
  182. package/src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts +22 -0
  183. package/src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts +21 -0
  184. package/src/cfg/generated/_utils/schemas/Ticket.schema.ts +21 -0
  185. package/src/cfg/generated/_utils/schemas/TicketRequest.schema.ts +18 -0
  186. package/src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts +16 -0
  187. package/src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts +15 -0
  188. package/src/cfg/generated/_utils/schemas/Transaction.schema.ts +35 -0
  189. package/src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts +19 -0
  190. package/src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts +19 -0
  191. package/src/cfg/generated/_utils/schemas/User.schema.ts +34 -0
  192. package/src/cfg/generated/_utils/schemas/UserBalance.schema.ts +29 -0
  193. package/src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts +23 -0
  194. package/src/cfg/generated/_utils/schemas/WebhookEvent.schema.ts +31 -0
  195. package/src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts +25 -0
  196. package/src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts +25 -0
  197. package/src/cfg/generated/_utils/schemas/WebhookEventRequest.schema.ts +30 -0
  198. package/src/cfg/generated/_utils/schemas/WebhookHealth.schema.ts +21 -0
  199. package/src/cfg/generated/_utils/schemas/WebhookProviderStats.schema.ts +23 -0
  200. package/src/cfg/generated/_utils/schemas/WebhookProviderStatsRequest.schema.ts +23 -0
  201. package/src/cfg/generated/_utils/schemas/WebhookResponse.schema.ts +27 -0
  202. package/src/cfg/generated/_utils/schemas/WebhookResponseRequest.schema.ts +27 -0
  203. package/src/cfg/generated/_utils/schemas/WebhookStats.schema.ts +27 -0
  204. package/src/cfg/generated/_utils/schemas/WebhookStatsRequest.schema.ts +27 -0
  205. package/src/cfg/generated/_utils/schemas/WorkerAction.schema.ts +22 -0
  206. package/src/cfg/generated/_utils/schemas/WorkerActionRequest.schema.ts +22 -0
  207. package/src/cfg/generated/_utils/schemas/index.ts +160 -0
  208. package/src/cfg/generated/api-instance.ts +131 -0
  209. package/src/cfg/generated/cfg__accounts/client.ts +30 -0
  210. package/src/cfg/generated/cfg__accounts/index.ts +2 -0
  211. package/src/cfg/generated/cfg__accounts/models.ts +100 -0
  212. package/src/cfg/generated/cfg__accounts__auth/client.ts +22 -0
  213. package/src/cfg/generated/cfg__accounts__auth/index.ts +2 -0
  214. package/src/cfg/generated/cfg__accounts__auth/models.ts +17 -0
  215. package/src/cfg/generated/cfg__accounts__user_profile/client.ts +77 -0
  216. package/src/cfg/generated/cfg__accounts__user_profile/index.ts +2 -0
  217. package/src/cfg/generated/cfg__accounts__user_profile/models.ts +56 -0
  218. package/src/cfg/generated/cfg__endpoints/client.ts +22 -0
  219. package/src/cfg/generated/cfg__endpoints/index.ts +2 -0
  220. package/src/cfg/generated/cfg__endpoints/models.ts +68 -0
  221. package/src/cfg/generated/cfg__health/client.ts +30 -0
  222. package/src/cfg/generated/cfg__health/index.ts +2 -0
  223. package/src/cfg/generated/cfg__health/models.ts +34 -0
  224. package/src/cfg/generated/cfg__leads/client.ts +79 -0
  225. package/src/cfg/generated/cfg__leads/index.ts +2 -0
  226. package/src/cfg/generated/cfg__leads/models.ts +99 -0
  227. package/src/cfg/generated/cfg__leads__lead_submission/client.ts +25 -0
  228. package/src/cfg/generated/cfg__leads__lead_submission/index.ts +2 -0
  229. package/src/cfg/generated/cfg__leads__lead_submission/models.ts +48 -0
  230. package/src/cfg/generated/cfg__newsletter/client.ts +38 -0
  231. package/src/cfg/generated/cfg__newsletter/index.ts +2 -0
  232. package/src/cfg/generated/cfg__newsletter/models.ts +71 -0
  233. package/src/cfg/generated/cfg__newsletter__bulk_email/client.ts +24 -0
  234. package/src/cfg/generated/cfg__newsletter__bulk_email/index.ts +2 -0
  235. package/src/cfg/generated/cfg__newsletter__bulk_email/models.ts +29 -0
  236. package/src/cfg/generated/cfg__newsletter__campaigns/client.ts +85 -0
  237. package/src/cfg/generated/cfg__newsletter__campaigns/index.ts +2 -0
  238. package/src/cfg/generated/cfg__newsletter__campaigns/models.ts +100 -0
  239. package/src/cfg/generated/cfg__newsletter__logs/client.ts +35 -0
  240. package/src/cfg/generated/cfg__newsletter__logs/index.ts +2 -0
  241. package/src/cfg/generated/cfg__newsletter__logs/models.ts +51 -0
  242. package/src/cfg/generated/cfg__newsletter__newsletters/client.ts +45 -0
  243. package/src/cfg/generated/cfg__newsletter__newsletters/index.ts +2 -0
  244. package/src/cfg/generated/cfg__newsletter__newsletters/models.ts +42 -0
  245. package/src/cfg/generated/cfg__newsletter__subscriptions/client.ts +55 -0
  246. package/src/cfg/generated/cfg__newsletter__subscriptions/index.ts +2 -0
  247. package/src/cfg/generated/cfg__newsletter__subscriptions/models.ts +92 -0
  248. package/src/cfg/generated/cfg__newsletter__testing/client.ts +24 -0
  249. package/src/cfg/generated/cfg__newsletter__testing/index.ts +2 -0
  250. package/src/cfg/generated/cfg__newsletter__testing/models.ts +24 -0
  251. package/src/cfg/generated/cfg__payments/client.ts +1814 -0
  252. package/src/cfg/generated/cfg__payments/index.ts +2 -0
  253. package/src/cfg/generated/cfg__payments/models.ts +1855 -0
  254. package/src/cfg/generated/cfg__payments__webhooks/client.ts +75 -0
  255. package/src/cfg/generated/cfg__payments__webhooks/index.ts +2 -0
  256. package/src/cfg/generated/cfg__payments__webhooks/models.ts +87 -0
  257. package/src/cfg/generated/cfg__support/client.ts +133 -0
  258. package/src/cfg/generated/cfg__support/index.ts +2 -0
  259. package/src/cfg/generated/cfg__support/models.ts +165 -0
  260. package/src/cfg/generated/cfg__tasks/client.ts +94 -0
  261. package/src/cfg/generated/cfg__tasks/index.ts +2 -0
  262. package/src/cfg/generated/cfg__tasks/models.ts +140 -0
  263. package/src/cfg/generated/client.ts +302 -0
  264. package/src/cfg/generated/enums.ts +608 -0
  265. package/src/cfg/generated/errors.ts +116 -0
  266. package/src/cfg/generated/http.ts +98 -0
  267. package/src/cfg/generated/index.ts +299 -0
  268. package/src/cfg/generated/logger.ts +259 -0
  269. package/src/cfg/generated/package.json +39 -0
  270. package/src/cfg/generated/retry.ts +175 -0
  271. package/src/cfg/generated/schema.ts +18399 -0
  272. package/src/cfg/generated/storage.ts +158 -0
  273. package/src/cfg/generated/tsconfig.json +20 -0
  274. package/src/cfg/services/auth/AuthService.ts +165 -0
  275. package/src/cfg/services/auth/index.ts +7 -0
  276. package/src/cfg/services/index.ts +31 -0
  277. package/src/cfg/services/leads/LeadsService.ts +133 -0
  278. package/src/cfg/services/leads/index.ts +7 -0
  279. package/src/cfg/services/newsletter/BulkEmailService.ts +35 -0
  280. package/src/cfg/services/newsletter/CampaignsService.ts +138 -0
  281. package/src/cfg/services/newsletter/NewsletterService.ts +79 -0
  282. package/src/cfg/services/newsletter/NewslettersListService.ts +48 -0
  283. package/src/cfg/services/newsletter/index.ts +10 -0
  284. package/src/cfg/services/payments/ApiKeysService.ts +183 -0
  285. package/src/cfg/services/payments/DashboardService.ts +197 -0
  286. package/src/cfg/services/payments/PaymentsService.ts +192 -0
  287. package/src/cfg/services/payments/SubscriptionsService.ts +202 -0
  288. package/src/cfg/services/payments/index.ts +10 -0
  289. package/src/cfg/services/support/SupportService.ts +142 -0
  290. package/src/cfg/services/support/index.ts +7 -0
  291. package/src/cfg/services/tasks/TasksService.ts +170 -0
  292. package/src/cfg/services/tasks/index.ts +7 -0
  293. package/src/cfg/services/webhooks/WebhooksService.ts +108 -0
  294. package/src/cfg/services/webhooks/index.ts +7 -0
  295. package/src/index.ts +35 -0
@@ -0,0 +1,2489 @@
1
+ /**
2
+ * Typed fetchers for Payments
3
+ *
4
+ * Universal functions that work in any environment:
5
+ * - Next.js (App Router / Pages Router / Server Components)
6
+ * - React Native
7
+ * - Node.js backend
8
+ *
9
+ * These fetchers use Zod schemas for runtime validation.
10
+ *
11
+ * Usage:
12
+ * ```typescript
13
+ * // Configure API once (in your app entry point)
14
+ * import { configureAPI } from '../../api-instance'
15
+ * configureAPI({ baseUrl: 'https://api.example.com' })
16
+ *
17
+ * // Then use fetchers anywhere
18
+ * const users = await getUsers({ page: 1 })
19
+ *
20
+ * // With SWR
21
+ * const { data } = useSWR(['users', params], () => getUsers(params))
22
+ *
23
+ * // With React Query
24
+ * const { data } = useQuery(['users', params], () => getUsers(params))
25
+ *
26
+ * // In Server Component or SSR (pass custom client)
27
+ * import { API } from '../../index'
28
+ * const api = new API('https://api.example.com')
29
+ * const users = await getUsers({ page: 1 }, api)
30
+ * ```
31
+ */
32
+ import { APIKeyCreateSchema, type APIKeyCreate } from '../schemas/APIKeyCreate.schema'
33
+ import { APIKeyCreateRequestSchema, type APIKeyCreateRequest } from '../schemas/APIKeyCreateRequest.schema'
34
+ import { APIKeyDetailSchema, type APIKeyDetail } from '../schemas/APIKeyDetail.schema'
35
+ import { APIKeyUpdateSchema, type APIKeyUpdate } from '../schemas/APIKeyUpdate.schema'
36
+ import { APIKeyUpdateRequestSchema, type APIKeyUpdateRequest } from '../schemas/APIKeyUpdateRequest.schema'
37
+ import { APIKeyValidationRequestSchema, type APIKeyValidationRequest } from '../schemas/APIKeyValidationRequest.schema'
38
+ import { APIKeyValidationResponseSchema, type APIKeyValidationResponse } from '../schemas/APIKeyValidationResponse.schema'
39
+ import { APIKeysOverviewSchema, type APIKeysOverview } from '../schemas/APIKeysOverview.schema'
40
+ import { AdminPaymentCreateSchema, type AdminPaymentCreate } from '../schemas/AdminPaymentCreate.schema'
41
+ import { AdminPaymentCreateRequestSchema, type AdminPaymentCreateRequest } from '../schemas/AdminPaymentCreateRequest.schema'
42
+ import { AdminPaymentDetailSchema, type AdminPaymentDetail } from '../schemas/AdminPaymentDetail.schema'
43
+ import { AdminPaymentStatsSchema, type AdminPaymentStats } from '../schemas/AdminPaymentStats.schema'
44
+ import { AdminPaymentUpdateSchema, type AdminPaymentUpdate } from '../schemas/AdminPaymentUpdate.schema'
45
+ import { AdminPaymentUpdateRequestSchema, type AdminPaymentUpdateRequest } from '../schemas/AdminPaymentUpdateRequest.schema'
46
+ import { AdminUserSchema, type AdminUser } from '../schemas/AdminUser.schema'
47
+ import { BalanceOverviewSchema, type BalanceOverview } from '../schemas/BalanceOverview.schema'
48
+ import { CurrencySchema, type Currency } from '../schemas/Currency.schema'
49
+ import { EndpointGroupSchema, type EndpointGroup } from '../schemas/EndpointGroup.schema'
50
+ import { NetworkSchema, type Network } from '../schemas/Network.schema'
51
+ import { PaginatedAPIKeyListListSchema, type PaginatedAPIKeyListList } from '../schemas/PaginatedAPIKeyListList.schema'
52
+ import { PaginatedAdminPaymentListListSchema, type PaginatedAdminPaymentListList } from '../schemas/PaginatedAdminPaymentListList.schema'
53
+ import { PaginatedAdminPaymentStatsListSchema, type PaginatedAdminPaymentStatsList } from '../schemas/PaginatedAdminPaymentStatsList.schema'
54
+ import { PaginatedAdminUserListSchema, type PaginatedAdminUserList } from '../schemas/PaginatedAdminUserList.schema'
55
+ import { PaginatedCurrencyListListSchema, type PaginatedCurrencyListList } from '../schemas/PaginatedCurrencyListList.schema'
56
+ import { PaginatedEndpointGroupListSchema, type PaginatedEndpointGroupList } from '../schemas/PaginatedEndpointGroupList.schema'
57
+ import { PaginatedNetworkListSchema, type PaginatedNetworkList } from '../schemas/PaginatedNetworkList.schema'
58
+ import { PaginatedPaymentListListSchema, type PaginatedPaymentListList } from '../schemas/PaginatedPaymentListList.schema'
59
+ import { PaginatedProviderCurrencyListSchema, type PaginatedProviderCurrencyList } from '../schemas/PaginatedProviderCurrencyList.schema'
60
+ import { PaginatedRecentPaymentListSchema, type PaginatedRecentPaymentList } from '../schemas/PaginatedRecentPaymentList.schema'
61
+ import { PaginatedRecentTransactionListSchema, type PaginatedRecentTransactionList } from '../schemas/PaginatedRecentTransactionList.schema'
62
+ import { PaginatedSubscriptionListListSchema, type PaginatedSubscriptionListList } from '../schemas/PaginatedSubscriptionListList.schema'
63
+ import { PaginatedTariffListSchema, type PaginatedTariffList } from '../schemas/PaginatedTariffList.schema'
64
+ import { PaginatedTransactionListSchema, type PaginatedTransactionList } from '../schemas/PaginatedTransactionList.schema'
65
+ import { PaginatedUserBalanceListSchema, type PaginatedUserBalanceList } from '../schemas/PaginatedUserBalanceList.schema'
66
+ import { PaginatedWebhookEventListListSchema, type PaginatedWebhookEventListList } from '../schemas/PaginatedWebhookEventListList.schema'
67
+ import { PaginatedWebhookStatsListSchema, type PaginatedWebhookStatsList } from '../schemas/PaginatedWebhookStatsList.schema'
68
+ import { PatchedAPIKeyUpdateRequestSchema, type PatchedAPIKeyUpdateRequest } from '../schemas/PatchedAPIKeyUpdateRequest.schema'
69
+ import { PatchedAdminPaymentUpdateRequestSchema, type PatchedAdminPaymentUpdateRequest } from '../schemas/PatchedAdminPaymentUpdateRequest.schema'
70
+ import { PatchedPaymentRequestSchema, type PatchedPaymentRequest } from '../schemas/PatchedPaymentRequest.schema'
71
+ import { PatchedSubscriptionRequestSchema, type PatchedSubscriptionRequest } from '../schemas/PatchedSubscriptionRequest.schema'
72
+ import { PaymentSchema, type Payment } from '../schemas/Payment.schema'
73
+ import { PaymentAnalyticsResponseSchema, type PaymentAnalyticsResponse } from '../schemas/PaymentAnalyticsResponse.schema'
74
+ import { PaymentCreateSchema, type PaymentCreate } from '../schemas/PaymentCreate.schema'
75
+ import { PaymentCreateRequestSchema, type PaymentCreateRequest } from '../schemas/PaymentCreateRequest.schema'
76
+ import { PaymentRequestSchema, type PaymentRequest } from '../schemas/PaymentRequest.schema'
77
+ import { PaymentsChartResponseSchema, type PaymentsChartResponse } from '../schemas/PaymentsChartResponse.schema'
78
+ import { PaymentsDashboardOverviewSchema, type PaymentsDashboardOverview } from '../schemas/PaymentsDashboardOverview.schema'
79
+ import { PaymentsMetricsSchema, type PaymentsMetrics } from '../schemas/PaymentsMetrics.schema'
80
+ import { ProviderCurrencySchema, type ProviderCurrency } from '../schemas/ProviderCurrency.schema'
81
+ import { SubscriptionSchema, type Subscription } from '../schemas/Subscription.schema'
82
+ import { SubscriptionCreateSchema, type SubscriptionCreate } from '../schemas/SubscriptionCreate.schema'
83
+ import { SubscriptionCreateRequestSchema, type SubscriptionCreateRequest } from '../schemas/SubscriptionCreateRequest.schema'
84
+ import { SubscriptionOverviewSchema, type SubscriptionOverview } from '../schemas/SubscriptionOverview.schema'
85
+ import { SubscriptionRequestSchema, type SubscriptionRequest } from '../schemas/SubscriptionRequest.schema'
86
+ import { TariffSchema, type Tariff } from '../schemas/Tariff.schema'
87
+ import { TransactionSchema, type Transaction } from '../schemas/Transaction.schema'
88
+ import { UserBalanceSchema, type UserBalance } from '../schemas/UserBalance.schema'
89
+ import { WebhookEventListSchema, type WebhookEventList } from '../schemas/WebhookEventList.schema'
90
+ import { WebhookEventListRequestSchema, type WebhookEventListRequest } from '../schemas/WebhookEventListRequest.schema'
91
+ import { WebhookStatsSchema, type WebhookStats } from '../schemas/WebhookStats.schema'
92
+ import { WebhookStatsRequestSchema, type WebhookStatsRequest } from '../schemas/WebhookStatsRequest.schema'
93
+ import { getAPIInstance } from '../../api-instance'
94
+ import type { API } from '../../index'
95
+
96
+ /**
97
+ * API operation
98
+ *
99
+ * @method GET
100
+ * @path /cfg/payments/admin/api/payments/
101
+ */
102
+ export async function getPaymentsAdminApiPaymentsList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }, client?: API
103
+ ): Promise<PaginatedAdminPaymentListList> {
104
+ const api = client || getAPIInstance()
105
+ const response = await api.cfg_payments.adminApiPaymentsList(params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status, params?.user)
106
+ return PaginatedAdminPaymentListListSchema.parse(response)
107
+ }
108
+
109
+
110
+ /**
111
+ * API operation
112
+ *
113
+ * @method POST
114
+ * @path /cfg/payments/admin/api/payments/
115
+ */
116
+ export async function createPaymentsAdminApiPaymentsCreate( data: AdminPaymentCreateRequest, client?: API
117
+ ): Promise<AdminPaymentCreate> {
118
+ const api = client || getAPIInstance()
119
+ const response = await api.cfg_payments.adminApiPaymentsCreate(data)
120
+ return AdminPaymentCreateSchema.parse(response)
121
+ }
122
+
123
+
124
+ /**
125
+ * API operation
126
+ *
127
+ * @method GET
128
+ * @path /cfg/payments/admin/api/payments/{id}/
129
+ */
130
+ export async function getPaymentsAdminApiPaymentsRetrieve( id: string, client?: API
131
+ ): Promise<AdminPaymentDetail> {
132
+ const api = client || getAPIInstance()
133
+ const response = await api.cfg_payments.adminApiPaymentsRetrieve(id)
134
+ return AdminPaymentDetailSchema.parse(response)
135
+ }
136
+
137
+
138
+ /**
139
+ * API operation
140
+ *
141
+ * @method PUT
142
+ * @path /cfg/payments/admin/api/payments/{id}/
143
+ */
144
+ export async function updatePaymentsAdminApiPaymentsUpdate( id: string, data: AdminPaymentUpdateRequest, client?: API
145
+ ): Promise<AdminPaymentUpdate> {
146
+ const api = client || getAPIInstance()
147
+ const response = await api.cfg_payments.adminApiPaymentsUpdate(id, data)
148
+ return AdminPaymentUpdateSchema.parse(response)
149
+ }
150
+
151
+
152
+ /**
153
+ * API operation
154
+ *
155
+ * @method PATCH
156
+ * @path /cfg/payments/admin/api/payments/{id}/
157
+ */
158
+ export async function partialUpdatePaymentsAdminApiPaymentsPartialUpdate( id: string, data?: PatchedAdminPaymentUpdateRequest, client?: API
159
+ ): Promise<AdminPaymentUpdate> {
160
+ const api = client || getAPIInstance()
161
+ const response = await api.cfg_payments.adminApiPaymentsPartialUpdate(id, data)
162
+ return AdminPaymentUpdateSchema.parse(response)
163
+ }
164
+
165
+
166
+ /**
167
+ * API operation
168
+ *
169
+ * @method DELETE
170
+ * @path /cfg/payments/admin/api/payments/{id}/
171
+ */
172
+ export async function deletePaymentsAdminApiPaymentsDestroy( id: string, client?: API
173
+ ): Promise<void> {
174
+ const api = client || getAPIInstance()
175
+ const response = await api.cfg_payments.adminApiPaymentsDestroy(id)
176
+ return response
177
+ }
178
+
179
+
180
+ /**
181
+ * API operation
182
+ *
183
+ * @method POST
184
+ * @path /cfg/payments/admin/api/payments/{id}/cancel/
185
+ */
186
+ export async function createPaymentsAdminApiPaymentsCancelCreate( id: string, client?: API
187
+ ): Promise<AdminPaymentDetail> {
188
+ const api = client || getAPIInstance()
189
+ const response = await api.cfg_payments.adminApiPaymentsCancelCreate(id)
190
+ return AdminPaymentDetailSchema.parse(response)
191
+ }
192
+
193
+
194
+ /**
195
+ * API operation
196
+ *
197
+ * @method POST
198
+ * @path /cfg/payments/admin/api/payments/{id}/refresh_status/
199
+ */
200
+ export async function createPaymentsAdminApiPaymentsRefreshStatusCreate( id: string, client?: API
201
+ ): Promise<AdminPaymentDetail> {
202
+ const api = client || getAPIInstance()
203
+ const response = await api.cfg_payments.adminApiPaymentsRefreshStatusCreate(id)
204
+ return AdminPaymentDetailSchema.parse(response)
205
+ }
206
+
207
+
208
+ /**
209
+ * API operation
210
+ *
211
+ * @method POST
212
+ * @path /cfg/payments/admin/api/payments/{id}/refund/
213
+ */
214
+ export async function createPaymentsAdminApiPaymentsRefundCreate( id: string, client?: API
215
+ ): Promise<AdminPaymentDetail> {
216
+ const api = client || getAPIInstance()
217
+ const response = await api.cfg_payments.adminApiPaymentsRefundCreate(id)
218
+ return AdminPaymentDetailSchema.parse(response)
219
+ }
220
+
221
+
222
+ /**
223
+ * API operation
224
+ *
225
+ * @method GET
226
+ * @path /cfg/payments/admin/api/payments/stats/
227
+ */
228
+ export async function getPaymentsAdminApiPaymentsStatsRetrieve( client?: API
229
+ ): Promise<AdminPaymentStats> {
230
+ const api = client || getAPIInstance()
231
+ const response = await api.cfg_payments.adminApiPaymentsStatsRetrieve()
232
+ return AdminPaymentStatsSchema.parse(response)
233
+ }
234
+
235
+
236
+ /**
237
+ * API operation
238
+ *
239
+ * @method GET
240
+ * @path /cfg/payments/admin/api/stats/
241
+ */
242
+ export async function getPaymentsAdminApiStatsList( params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
243
+ ): Promise<PaginatedAdminPaymentStatsList> {
244
+ const api = client || getAPIInstance()
245
+ const response = await api.cfg_payments.adminApiStatsList(params?.ordering, params?.page, params?.page_size, params?.search)
246
+ return PaginatedAdminPaymentStatsListSchema.parse(response)
247
+ }
248
+
249
+
250
+ /**
251
+ * API operation
252
+ *
253
+ * @method GET
254
+ * @path /cfg/payments/admin/api/stats/{id}/
255
+ */
256
+ export async function getPaymentsAdminApiStatsRetrieve( id: string, client?: API
257
+ ): Promise<AdminPaymentStats> {
258
+ const api = client || getAPIInstance()
259
+ const response = await api.cfg_payments.adminApiStatsRetrieve(id)
260
+ return AdminPaymentStatsSchema.parse(response)
261
+ }
262
+
263
+
264
+ /**
265
+ * API operation
266
+ *
267
+ * @method GET
268
+ * @path /cfg/payments/admin/api/stats/payments/
269
+ */
270
+ export async function getPaymentsAdminApiStatsPaymentsRetrieve( client?: API
271
+ ): Promise<AdminPaymentStats> {
272
+ const api = client || getAPIInstance()
273
+ const response = await api.cfg_payments.adminApiStatsPaymentsRetrieve()
274
+ return AdminPaymentStatsSchema.parse(response)
275
+ }
276
+
277
+
278
+ /**
279
+ * API operation
280
+ *
281
+ * @method GET
282
+ * @path /cfg/payments/admin/api/stats/system/
283
+ */
284
+ export async function getPaymentsAdminApiStatsSystemRetrieve( client?: API
285
+ ): Promise<AdminPaymentStats> {
286
+ const api = client || getAPIInstance()
287
+ const response = await api.cfg_payments.adminApiStatsSystemRetrieve()
288
+ return AdminPaymentStatsSchema.parse(response)
289
+ }
290
+
291
+
292
+ /**
293
+ * API operation
294
+ *
295
+ * @method GET
296
+ * @path /cfg/payments/admin/api/stats/webhooks/
297
+ */
298
+ export async function getPaymentsAdminApiStatsWebhooksRetrieve( client?: API
299
+ ): Promise<AdminPaymentStats> {
300
+ const api = client || getAPIInstance()
301
+ const response = await api.cfg_payments.adminApiStatsWebhooksRetrieve()
302
+ return AdminPaymentStatsSchema.parse(response)
303
+ }
304
+
305
+
306
+ /**
307
+ * API operation
308
+ *
309
+ * @method GET
310
+ * @path /cfg/payments/admin/api/users/
311
+ */
312
+ export async function getPaymentsAdminApiUsersList( params?: { is_active?: boolean; is_staff?: boolean; is_superuser?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
313
+ ): Promise<PaginatedAdminUserList> {
314
+ const api = client || getAPIInstance()
315
+ const response = await api.cfg_payments.adminApiUsersList(params?.is_active, params?.is_staff, params?.is_superuser, params?.ordering, params?.page, params?.page_size, params?.search)
316
+ return PaginatedAdminUserListSchema.parse(response)
317
+ }
318
+
319
+
320
+ /**
321
+ * API operation
322
+ *
323
+ * @method GET
324
+ * @path /cfg/payments/admin/api/users/{id}/
325
+ */
326
+ export async function getPaymentsAdminApiUsersRetrieve( id: number, client?: API
327
+ ): Promise<AdminUser> {
328
+ const api = client || getAPIInstance()
329
+ const response = await api.cfg_payments.adminApiUsersRetrieve(id)
330
+ return AdminUserSchema.parse(response)
331
+ }
332
+
333
+
334
+ /**
335
+ * API operation
336
+ *
337
+ * @method POST
338
+ * @path /cfg/payments/admin/api/webhook-test/test/
339
+ */
340
+ export async function createPaymentsAdminApiWebhookTestTestCreate( data: WebhookStatsRequest, client?: API
341
+ ): Promise<WebhookStats> {
342
+ const api = client || getAPIInstance()
343
+ const response = await api.cfg_payments.adminApiWebhookTestTestCreate(data)
344
+ return WebhookStatsSchema.parse(response)
345
+ }
346
+
347
+
348
+ /**
349
+ * API operation
350
+ *
351
+ * @method GET
352
+ * @path /cfg/payments/admin/api/webhooks/
353
+ */
354
+ export async function getPaymentsAdminApiWebhooksList( params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
355
+ ): Promise<PaginatedWebhookStatsList> {
356
+ const api = client || getAPIInstance()
357
+ const response = await api.cfg_payments.adminApiWebhooksList(params?.ordering, params?.page, params?.page_size, params?.search)
358
+ return PaginatedWebhookStatsListSchema.parse(response)
359
+ }
360
+
361
+
362
+ /**
363
+ * API operation
364
+ *
365
+ * @method GET
366
+ * @path /cfg/payments/admin/api/webhooks/{id}/
367
+ */
368
+ export async function getPaymentsAdminApiWebhooksRetrieve( id: string, client?: API
369
+ ): Promise<WebhookStats> {
370
+ const api = client || getAPIInstance()
371
+ const response = await api.cfg_payments.adminApiWebhooksRetrieve(id)
372
+ return WebhookStatsSchema.parse(response)
373
+ }
374
+
375
+
376
+ /**
377
+ * API operation
378
+ *
379
+ * @method GET
380
+ * @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/
381
+ */
382
+ export async function getPaymentsAdminApiWebhooksEventsList( webhook_pk: string, params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
383
+ ): Promise<PaginatedWebhookEventListList> {
384
+ const api = client || getAPIInstance()
385
+ const response = await api.cfg_payments.adminApiWebhooksEventsList(webhook_pk, params?.ordering, params?.page, params?.page_size, params?.search)
386
+ return PaginatedWebhookEventListListSchema.parse(response)
387
+ }
388
+
389
+
390
+ /**
391
+ * API operation
392
+ *
393
+ * @method GET
394
+ * @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/{id}/
395
+ */
396
+ export async function getPaymentsAdminApiWebhooksEventsRetrieve( id: string, webhook_pk: string, client?: API
397
+ ): Promise<WebhookEventList> {
398
+ const api = client || getAPIInstance()
399
+ const response = await api.cfg_payments.adminApiWebhooksEventsRetrieve(id, webhook_pk)
400
+ return WebhookEventListSchema.parse(response)
401
+ }
402
+
403
+
404
+ /**
405
+ * API operation
406
+ *
407
+ * @method POST
408
+ * @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/{id}/retry/
409
+ */
410
+ export async function createPaymentsAdminApiWebhooksEventsRetryCreate( id: string, webhook_pk: string, data: WebhookEventListRequest, client?: API
411
+ ): Promise<WebhookEventList> {
412
+ const api = client || getAPIInstance()
413
+ const response = await api.cfg_payments.adminApiWebhooksEventsRetryCreate(id, webhook_pk, data)
414
+ return WebhookEventListSchema.parse(response)
415
+ }
416
+
417
+
418
+ /**
419
+ * API operation
420
+ *
421
+ * @method POST
422
+ * @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/clear_all/
423
+ */
424
+ export async function createPaymentsAdminApiWebhooksEventsClearAllCreate( webhook_pk: string, data: WebhookEventListRequest, client?: API
425
+ ): Promise<WebhookEventList> {
426
+ const api = client || getAPIInstance()
427
+ const response = await api.cfg_payments.adminApiWebhooksEventsClearAllCreate(webhook_pk, data)
428
+ return WebhookEventListSchema.parse(response)
429
+ }
430
+
431
+
432
+ /**
433
+ * API operation
434
+ *
435
+ * @method POST
436
+ * @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/retry_failed/
437
+ */
438
+ export async function createPaymentsAdminApiWebhooksEventsRetryFailedCreate( webhook_pk: string, data: WebhookEventListRequest, client?: API
439
+ ): Promise<WebhookEventList> {
440
+ const api = client || getAPIInstance()
441
+ const response = await api.cfg_payments.adminApiWebhooksEventsRetryFailedCreate(webhook_pk, data)
442
+ return WebhookEventListSchema.parse(response)
443
+ }
444
+
445
+
446
+ /**
447
+ * API operation
448
+ *
449
+ * @method GET
450
+ * @path /cfg/payments/admin/api/webhooks/stats/
451
+ */
452
+ export async function getPaymentsAdminApiWebhooksStatsRetrieve( client?: API
453
+ ): Promise<WebhookStats> {
454
+ const api = client || getAPIInstance()
455
+ const response = await api.cfg_payments.adminApiWebhooksStatsRetrieve()
456
+ return WebhookStatsSchema.parse(response)
457
+ }
458
+
459
+
460
+ /**
461
+ * API operation
462
+ *
463
+ * @method GET
464
+ * @path /cfg/payments/api-keys/
465
+ */
466
+ export async function getPaymentsApiKeysList( params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string; user?: number }, client?: API
467
+ ): Promise<PaginatedAPIKeyListList> {
468
+ const api = client || getAPIInstance()
469
+ const response = await api.cfg_payments.apiKeysList(params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search, params?.user)
470
+ return PaginatedAPIKeyListListSchema.parse(response)
471
+ }
472
+
473
+
474
+ /**
475
+ * API operation
476
+ *
477
+ * @method POST
478
+ * @path /cfg/payments/api-keys/
479
+ */
480
+ export async function createPaymentsApiKeysCreate( data: APIKeyCreateRequest, client?: API
481
+ ): Promise<APIKeyCreate> {
482
+ const api = client || getAPIInstance()
483
+ const response = await api.cfg_payments.apiKeysCreate(data)
484
+ return APIKeyCreateSchema.parse(response)
485
+ }
486
+
487
+
488
+ /**
489
+ * API operation
490
+ *
491
+ * @method GET
492
+ * @path /cfg/payments/api-keys/{id}/
493
+ */
494
+ export async function getPaymentsApiKeysRetrieve( id: string, client?: API
495
+ ): Promise<APIKeyDetail> {
496
+ const api = client || getAPIInstance()
497
+ const response = await api.cfg_payments.apiKeysRetrieve(id)
498
+ return APIKeyDetailSchema.parse(response)
499
+ }
500
+
501
+
502
+ /**
503
+ * API operation
504
+ *
505
+ * @method PUT
506
+ * @path /cfg/payments/api-keys/{id}/
507
+ */
508
+ export async function updatePaymentsApiKeysUpdate( id: string, data: APIKeyUpdateRequest, client?: API
509
+ ): Promise<APIKeyUpdate> {
510
+ const api = client || getAPIInstance()
511
+ const response = await api.cfg_payments.apiKeysUpdate(id, data)
512
+ return APIKeyUpdateSchema.parse(response)
513
+ }
514
+
515
+
516
+ /**
517
+ * API operation
518
+ *
519
+ * @method PATCH
520
+ * @path /cfg/payments/api-keys/{id}/
521
+ */
522
+ export async function partialUpdatePaymentsApiKeysPartialUpdate( id: string, data?: PatchedAPIKeyUpdateRequest, client?: API
523
+ ): Promise<APIKeyUpdate> {
524
+ const api = client || getAPIInstance()
525
+ const response = await api.cfg_payments.apiKeysPartialUpdate(id, data)
526
+ return APIKeyUpdateSchema.parse(response)
527
+ }
528
+
529
+
530
+ /**
531
+ * API operation
532
+ *
533
+ * @method DELETE
534
+ * @path /cfg/payments/api-keys/{id}/
535
+ */
536
+ export async function deletePaymentsApiKeysDestroy( id: string, client?: API
537
+ ): Promise<void> {
538
+ const api = client || getAPIInstance()
539
+ const response = await api.cfg_payments.apiKeysDestroy(id)
540
+ return response
541
+ }
542
+
543
+
544
+ /**
545
+ * API operation
546
+ *
547
+ * @method POST
548
+ * @path /cfg/payments/api-keys/{id}/perform_action/
549
+ */
550
+ export async function createPaymentsApiKeysPerformActionCreate( id: string, client?: API
551
+ ): Promise<APIKeyDetail> {
552
+ const api = client || getAPIInstance()
553
+ const response = await api.cfg_payments.apiKeysPerformActionCreate(id)
554
+ return APIKeyDetailSchema.parse(response)
555
+ }
556
+
557
+
558
+ /**
559
+ * API operation
560
+ *
561
+ * @method GET
562
+ * @path /cfg/payments/api-keys/analytics/
563
+ */
564
+ export async function getPaymentsApiKeysAnalyticsRetrieve( client?: API
565
+ ): Promise<APIKeyDetail> {
566
+ const api = client || getAPIInstance()
567
+ const response = await api.cfg_payments.apiKeysAnalyticsRetrieve()
568
+ return APIKeyDetailSchema.parse(response)
569
+ }
570
+
571
+
572
+ /**
573
+ * API operation
574
+ *
575
+ * @method GET
576
+ * @path /cfg/payments/api-keys/by_user/
577
+ */
578
+ export async function getPaymentsApiKeysByUserRetrieve( client?: API
579
+ ): Promise<APIKeyDetail> {
580
+ const api = client || getAPIInstance()
581
+ const response = await api.cfg_payments.apiKeysByUserRetrieve()
582
+ return APIKeyDetailSchema.parse(response)
583
+ }
584
+
585
+
586
+ /**
587
+ * API operation
588
+ *
589
+ * @method POST
590
+ * @path /cfg/payments/api-keys/create/
591
+ */
592
+ export async function createPaymentsApiKeysCreateCreate( data: APIKeyCreateRequest, client?: API
593
+ ): Promise<APIKeyCreate> {
594
+ const api = client || getAPIInstance()
595
+ const response = await api.cfg_payments.apiKeysCreateCreate(data)
596
+ return APIKeyCreateSchema.parse(response)
597
+ }
598
+
599
+
600
+ /**
601
+ * API operation
602
+ *
603
+ * @method GET
604
+ * @path /cfg/payments/api-keys/expiring_soon/
605
+ */
606
+ export async function getPaymentsApiKeysExpiringSoonRetrieve( client?: API
607
+ ): Promise<APIKeyDetail> {
608
+ const api = client || getAPIInstance()
609
+ const response = await api.cfg_payments.apiKeysExpiringSoonRetrieve()
610
+ return APIKeyDetailSchema.parse(response)
611
+ }
612
+
613
+
614
+ /**
615
+ * API operation
616
+ *
617
+ * @method GET
618
+ * @path /cfg/payments/api-keys/health/
619
+ */
620
+ export async function getPaymentsApiKeysHealthRetrieve( client?: API
621
+ ): Promise<APIKeyDetail> {
622
+ const api = client || getAPIInstance()
623
+ const response = await api.cfg_payments.apiKeysHealthRetrieve()
624
+ return APIKeyDetailSchema.parse(response)
625
+ }
626
+
627
+
628
+ /**
629
+ * API operation
630
+ *
631
+ * @method GET
632
+ * @path /cfg/payments/api-keys/stats/
633
+ */
634
+ export async function getPaymentsApiKeysStatsRetrieve( client?: API
635
+ ): Promise<APIKeyDetail> {
636
+ const api = client || getAPIInstance()
637
+ const response = await api.cfg_payments.apiKeysStatsRetrieve()
638
+ return APIKeyDetailSchema.parse(response)
639
+ }
640
+
641
+
642
+ /**
643
+ * Validate API Key (Standalone)
644
+ *
645
+ * @method POST
646
+ * @path /cfg/payments/api-keys/validate/
647
+ */
648
+ export async function createPaymentsApiKeysValidateCreate( data: APIKeyValidationRequest, client?: API
649
+ ): Promise<APIKeyValidationResponse> {
650
+ const api = client || getAPIInstance()
651
+ const response = await api.cfg_payments.apiKeysValidateCreate(data)
652
+ return APIKeyValidationResponseSchema.parse(response)
653
+ }
654
+
655
+
656
+ /**
657
+ * Validate API Key
658
+ *
659
+ * @method POST
660
+ * @path /cfg/payments/api-keys/validate_key/
661
+ */
662
+ export async function createPaymentsApiKeysValidateKeyCreate( data: APIKeyValidationRequest, client?: API
663
+ ): Promise<APIKeyValidationResponse> {
664
+ const api = client || getAPIInstance()
665
+ const response = await api.cfg_payments.apiKeysValidateKeyCreate(data)
666
+ return APIKeyValidationResponseSchema.parse(response)
667
+ }
668
+
669
+
670
+ /**
671
+ * API operation
672
+ *
673
+ * @method GET
674
+ * @path /cfg/payments/balances/
675
+ */
676
+ export async function getPaymentsBalancesList( params?: { ordering?: string; page?: number; page_size?: number; search?: string; user?: number }, client?: API
677
+ ): Promise<PaginatedUserBalanceList> {
678
+ const api = client || getAPIInstance()
679
+ const response = await api.cfg_payments.balancesList(params?.ordering, params?.page, params?.page_size, params?.search, params?.user)
680
+ return PaginatedUserBalanceListSchema.parse(response)
681
+ }
682
+
683
+
684
+ /**
685
+ * API operation
686
+ *
687
+ * @method GET
688
+ * @path /cfg/payments/balances/{id}/
689
+ */
690
+ export async function getPaymentsBalancesRetrieve( id: number, client?: API
691
+ ): Promise<UserBalance> {
692
+ const api = client || getAPIInstance()
693
+ const response = await api.cfg_payments.balancesRetrieve(id)
694
+ return UserBalanceSchema.parse(response)
695
+ }
696
+
697
+
698
+ /**
699
+ * API operation
700
+ *
701
+ * @method GET
702
+ * @path /cfg/payments/balances/analytics/
703
+ */
704
+ export async function getPaymentsBalancesAnalyticsRetrieve( client?: API
705
+ ): Promise<UserBalance> {
706
+ const api = client || getAPIInstance()
707
+ const response = await api.cfg_payments.balancesAnalyticsRetrieve()
708
+ return UserBalanceSchema.parse(response)
709
+ }
710
+
711
+
712
+ /**
713
+ * API operation
714
+ *
715
+ * @method GET
716
+ * @path /cfg/payments/balances/health/
717
+ */
718
+ export async function getPaymentsBalancesHealthRetrieve( client?: API
719
+ ): Promise<UserBalance> {
720
+ const api = client || getAPIInstance()
721
+ const response = await api.cfg_payments.balancesHealthRetrieve()
722
+ return UserBalanceSchema.parse(response)
723
+ }
724
+
725
+
726
+ /**
727
+ * API operation
728
+ *
729
+ * @method GET
730
+ * @path /cfg/payments/balances/stats/
731
+ */
732
+ export async function getPaymentsBalancesStatsRetrieve( client?: API
733
+ ): Promise<UserBalance> {
734
+ const api = client || getAPIInstance()
735
+ const response = await api.cfg_payments.balancesStatsRetrieve()
736
+ return UserBalanceSchema.parse(response)
737
+ }
738
+
739
+
740
+ /**
741
+ * API operation
742
+ *
743
+ * @method GET
744
+ * @path /cfg/payments/balances/summary/
745
+ */
746
+ export async function getPaymentsBalancesSummaryRetrieve( client?: API
747
+ ): Promise<UserBalance> {
748
+ const api = client || getAPIInstance()
749
+ const response = await api.cfg_payments.balancesSummaryRetrieve()
750
+ return UserBalanceSchema.parse(response)
751
+ }
752
+
753
+
754
+ /**
755
+ * API operation
756
+ *
757
+ * @method GET
758
+ * @path /cfg/payments/currencies/
759
+ */
760
+ export async function getPaymentsCurrenciesList( params?: { currency_type?: string; is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
761
+ ): Promise<PaginatedCurrencyListList> {
762
+ const api = client || getAPIInstance()
763
+ const response = await api.cfg_payments.currenciesList(params?.currency_type, params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search)
764
+ return PaginatedCurrencyListListSchema.parse(response)
765
+ }
766
+
767
+
768
+ /**
769
+ * API operation
770
+ *
771
+ * @method POST
772
+ * @path /cfg/payments/currencies/
773
+ */
774
+ export async function createPaymentsCurrenciesCreate( client?: API
775
+ ): Promise<Currency> {
776
+ const api = client || getAPIInstance()
777
+ const response = await api.cfg_payments.currenciesCreate()
778
+ return CurrencySchema.parse(response)
779
+ }
780
+
781
+
782
+ /**
783
+ * API operation
784
+ *
785
+ * @method GET
786
+ * @path /cfg/payments/currencies/{id}/
787
+ */
788
+ export async function getPaymentsCurrenciesRetrieve( id: number, client?: API
789
+ ): Promise<Currency> {
790
+ const api = client || getAPIInstance()
791
+ const response = await api.cfg_payments.currenciesRetrieve(id)
792
+ return CurrencySchema.parse(response)
793
+ }
794
+
795
+
796
+ /**
797
+ * API operation
798
+ *
799
+ * @method GET
800
+ * @path /cfg/payments/currencies/{id}/networks/
801
+ */
802
+ export async function getPaymentsCurrenciesNetworksRetrieve( id: number, client?: API
803
+ ): Promise<Currency> {
804
+ const api = client || getAPIInstance()
805
+ const response = await api.cfg_payments.currenciesNetworksRetrieve(id)
806
+ return CurrencySchema.parse(response)
807
+ }
808
+
809
+
810
+ /**
811
+ * API operation
812
+ *
813
+ * @method GET
814
+ * @path /cfg/payments/currencies/{id}/providers/
815
+ */
816
+ export async function getPaymentsCurrenciesProvidersRetrieve( id: number, client?: API
817
+ ): Promise<Currency> {
818
+ const api = client || getAPIInstance()
819
+ const response = await api.cfg_payments.currenciesProvidersRetrieve(id)
820
+ return CurrencySchema.parse(response)
821
+ }
822
+
823
+
824
+ /**
825
+ * API operation
826
+ *
827
+ * @method POST
828
+ * @path /cfg/payments/currencies/convert/
829
+ */
830
+ export async function createPaymentsCurrenciesConvertCreate( client?: API
831
+ ): Promise<Currency> {
832
+ const api = client || getAPIInstance()
833
+ const response = await api.cfg_payments.currenciesConvertCreate()
834
+ return CurrencySchema.parse(response)
835
+ }
836
+
837
+
838
+ /**
839
+ * API operation
840
+ *
841
+ * @method GET
842
+ * @path /cfg/payments/currencies/crypto/
843
+ */
844
+ export async function getPaymentsCurrenciesCryptoRetrieve( client?: API
845
+ ): Promise<Currency> {
846
+ const api = client || getAPIInstance()
847
+ const response = await api.cfg_payments.currenciesCryptoRetrieve()
848
+ return CurrencySchema.parse(response)
849
+ }
850
+
851
+
852
+ /**
853
+ * API operation
854
+ *
855
+ * @method GET
856
+ * @path /cfg/payments/currencies/fiat/
857
+ */
858
+ export async function getPaymentsCurrenciesFiatRetrieve( client?: API
859
+ ): Promise<Currency> {
860
+ const api = client || getAPIInstance()
861
+ const response = await api.cfg_payments.currenciesFiatRetrieve()
862
+ return CurrencySchema.parse(response)
863
+ }
864
+
865
+
866
+ /**
867
+ * API operation
868
+ *
869
+ * @method GET
870
+ * @path /cfg/payments/currencies/health/
871
+ */
872
+ export async function getPaymentsCurrenciesHealthRetrieve( client?: API
873
+ ): Promise<Currency> {
874
+ const api = client || getAPIInstance()
875
+ const response = await api.cfg_payments.currenciesHealthRetrieve()
876
+ return CurrencySchema.parse(response)
877
+ }
878
+
879
+
880
+ /**
881
+ * Get exchange rates
882
+ *
883
+ * @method GET
884
+ * @path /cfg/payments/currencies/rates/
885
+ */
886
+ export async function getPaymentsCurrenciesRatesRetrieve( params: { base_currency: string; currencies: string }, client?: API
887
+ ): Promise<Currency> {
888
+ const api = client || getAPIInstance()
889
+ const response = await api.cfg_payments.currenciesRatesRetrieve(params.base_currency, params.currencies)
890
+ return CurrencySchema.parse(response)
891
+ }
892
+
893
+
894
+ /**
895
+ * API operation
896
+ *
897
+ * @method GET
898
+ * @path /cfg/payments/currencies/stable/
899
+ */
900
+ export async function getPaymentsCurrenciesStableRetrieve( client?: API
901
+ ): Promise<Currency> {
902
+ const api = client || getAPIInstance()
903
+ const response = await api.cfg_payments.currenciesStableRetrieve()
904
+ return CurrencySchema.parse(response)
905
+ }
906
+
907
+
908
+ /**
909
+ * API operation
910
+ *
911
+ * @method GET
912
+ * @path /cfg/payments/currencies/stats/
913
+ */
914
+ export async function getPaymentsCurrenciesStatsRetrieve( client?: API
915
+ ): Promise<Currency> {
916
+ const api = client || getAPIInstance()
917
+ const response = await api.cfg_payments.currenciesStatsRetrieve()
918
+ return CurrencySchema.parse(response)
919
+ }
920
+
921
+
922
+ /**
923
+ * Get supported currencies
924
+ *
925
+ * @method GET
926
+ * @path /cfg/payments/currencies/supported/
927
+ */
928
+ export async function getPaymentsCurrenciesSupportedRetrieve( params?: { currency_type?: string; provider?: string }, client?: API
929
+ ): Promise<Currency> {
930
+ const api = client || getAPIInstance()
931
+ const response = await api.cfg_payments.currenciesSupportedRetrieve(params?.currency_type, params?.provider)
932
+ return CurrencySchema.parse(response)
933
+ }
934
+
935
+
936
+ /**
937
+ * API operation
938
+ *
939
+ * @method GET
940
+ * @path /cfg/payments/endpoint-groups/
941
+ */
942
+ export async function getPaymentsEndpointGroupsList( params?: { is_enabled?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
943
+ ): Promise<PaginatedEndpointGroupList> {
944
+ const api = client || getAPIInstance()
945
+ const response = await api.cfg_payments.endpointGroupsList(params?.is_enabled, params?.ordering, params?.page, params?.page_size, params?.search)
946
+ return PaginatedEndpointGroupListSchema.parse(response)
947
+ }
948
+
949
+
950
+ /**
951
+ * API operation
952
+ *
953
+ * @method GET
954
+ * @path /cfg/payments/endpoint-groups/{id}/
955
+ */
956
+ export async function getPaymentsEndpointGroupsRetrieve( id: number, client?: API
957
+ ): Promise<EndpointGroup> {
958
+ const api = client || getAPIInstance()
959
+ const response = await api.cfg_payments.endpointGroupsRetrieve(id)
960
+ return EndpointGroupSchema.parse(response)
961
+ }
962
+
963
+
964
+ /**
965
+ * API operation
966
+ *
967
+ * @method GET
968
+ * @path /cfg/payments/endpoint-groups/available/
969
+ */
970
+ export async function getPaymentsEndpointGroupsAvailableRetrieve( client?: API
971
+ ): Promise<EndpointGroup> {
972
+ const api = client || getAPIInstance()
973
+ const response = await api.cfg_payments.endpointGroupsAvailableRetrieve()
974
+ return EndpointGroupSchema.parse(response)
975
+ }
976
+
977
+
978
+ /**
979
+ * API operation
980
+ *
981
+ * @method GET
982
+ * @path /cfg/payments/endpoint-groups/health/
983
+ */
984
+ export async function getPaymentsEndpointGroupsHealthRetrieve( client?: API
985
+ ): Promise<EndpointGroup> {
986
+ const api = client || getAPIInstance()
987
+ const response = await api.cfg_payments.endpointGroupsHealthRetrieve()
988
+ return EndpointGroupSchema.parse(response)
989
+ }
990
+
991
+
992
+ /**
993
+ * API operation
994
+ *
995
+ * @method GET
996
+ * @path /cfg/payments/endpoint-groups/stats/
997
+ */
998
+ export async function getPaymentsEndpointGroupsStatsRetrieve( client?: API
999
+ ): Promise<EndpointGroup> {
1000
+ const api = client || getAPIInstance()
1001
+ const response = await api.cfg_payments.endpointGroupsStatsRetrieve()
1002
+ return EndpointGroupSchema.parse(response)
1003
+ }
1004
+
1005
+
1006
+ /**
1007
+ * API operation
1008
+ *
1009
+ * @method GET
1010
+ * @path /cfg/payments/health/
1011
+ */
1012
+ export async function getPaymentsHealthRetrieve( client?: API
1013
+ ): Promise<Payment> {
1014
+ const api = client || getAPIInstance()
1015
+ const response = await api.cfg_payments.healthRetrieve()
1016
+ return PaymentSchema.parse(response)
1017
+ }
1018
+
1019
+
1020
+ /**
1021
+ * API operation
1022
+ *
1023
+ * @method GET
1024
+ * @path /cfg/payments/networks/
1025
+ */
1026
+ export async function getPaymentsNetworksList( params?: { is_active?: boolean; native_currency__code?: string; ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
1027
+ ): Promise<PaginatedNetworkList> {
1028
+ const api = client || getAPIInstance()
1029
+ const response = await api.cfg_payments.networksList(params?.is_active, params?.native_currency__code, params?.ordering, params?.page, params?.page_size, params?.search)
1030
+ return PaginatedNetworkListSchema.parse(response)
1031
+ }
1032
+
1033
+
1034
+ /**
1035
+ * API operation
1036
+ *
1037
+ * @method GET
1038
+ * @path /cfg/payments/networks/{id}/
1039
+ */
1040
+ export async function getPaymentsNetworksRetrieve( id: number, client?: API
1041
+ ): Promise<Network> {
1042
+ const api = client || getAPIInstance()
1043
+ const response = await api.cfg_payments.networksRetrieve(id)
1044
+ return NetworkSchema.parse(response)
1045
+ }
1046
+
1047
+
1048
+ /**
1049
+ * API operation
1050
+ *
1051
+ * @method GET
1052
+ * @path /cfg/payments/networks/by_currency/
1053
+ */
1054
+ export async function getPaymentsNetworksByCurrencyRetrieve( client?: API
1055
+ ): Promise<Network> {
1056
+ const api = client || getAPIInstance()
1057
+ const response = await api.cfg_payments.networksByCurrencyRetrieve()
1058
+ return NetworkSchema.parse(response)
1059
+ }
1060
+
1061
+
1062
+ /**
1063
+ * API operation
1064
+ *
1065
+ * @method GET
1066
+ * @path /cfg/payments/networks/health/
1067
+ */
1068
+ export async function getPaymentsNetworksHealthRetrieve( client?: API
1069
+ ): Promise<Network> {
1070
+ const api = client || getAPIInstance()
1071
+ const response = await api.cfg_payments.networksHealthRetrieve()
1072
+ return NetworkSchema.parse(response)
1073
+ }
1074
+
1075
+
1076
+ /**
1077
+ * API operation
1078
+ *
1079
+ * @method GET
1080
+ * @path /cfg/payments/networks/stats/
1081
+ */
1082
+ export async function getPaymentsNetworksStatsRetrieve( client?: API
1083
+ ): Promise<Network> {
1084
+ const api = client || getAPIInstance()
1085
+ const response = await api.cfg_payments.networksStatsRetrieve()
1086
+ return NetworkSchema.parse(response)
1087
+ }
1088
+
1089
+
1090
+ /**
1091
+ * API Keys Overview
1092
+ *
1093
+ * @method GET
1094
+ * @path /cfg/payments/overview/dashboard/api_keys_overview/
1095
+ */
1096
+ export async function getPaymentsOverviewDashboardApiKeysOverviewRetrieve( client?: API
1097
+ ): Promise<APIKeysOverview> {
1098
+ const api = client || getAPIInstance()
1099
+ const response = await api.cfg_payments.overviewDashboardApiKeysOverviewRetrieve()
1100
+ return APIKeysOverviewSchema.parse(response)
1101
+ }
1102
+
1103
+
1104
+ /**
1105
+ * Balance Overview
1106
+ *
1107
+ * @method GET
1108
+ * @path /cfg/payments/overview/dashboard/balance_overview/
1109
+ */
1110
+ export async function getPaymentsOverviewDashboardBalanceOverviewRetrieve( client?: API
1111
+ ): Promise<BalanceOverview> {
1112
+ const api = client || getAPIInstance()
1113
+ const response = await api.cfg_payments.overviewDashboardBalanceOverviewRetrieve()
1114
+ return BalanceOverviewSchema.parse(response)
1115
+ }
1116
+
1117
+
1118
+ /**
1119
+ * Payments Chart Data
1120
+ *
1121
+ * @method GET
1122
+ * @path /cfg/payments/overview/dashboard/chart_data/
1123
+ */
1124
+ export async function getPaymentsOverviewDashboardChartDataRetrieve( params?: { period?: string }, client?: API
1125
+ ): Promise<PaymentsChartResponse> {
1126
+ const api = client || getAPIInstance()
1127
+ const response = await api.cfg_payments.overviewDashboardChartDataRetrieve(params?.period)
1128
+ return PaymentsChartResponseSchema.parse(response)
1129
+ }
1130
+
1131
+
1132
+ /**
1133
+ * Payments Dashboard Metrics
1134
+ *
1135
+ * @method GET
1136
+ * @path /cfg/payments/overview/dashboard/metrics/
1137
+ */
1138
+ export async function getPaymentsOverviewDashboardMetricsRetrieve( client?: API
1139
+ ): Promise<PaymentsMetrics> {
1140
+ const api = client || getAPIInstance()
1141
+ const response = await api.cfg_payments.overviewDashboardMetricsRetrieve()
1142
+ return PaymentsMetricsSchema.parse(response)
1143
+ }
1144
+
1145
+
1146
+ /**
1147
+ * Payments Dashboard Overview
1148
+ *
1149
+ * @method GET
1150
+ * @path /cfg/payments/overview/dashboard/overview/
1151
+ */
1152
+ export async function getPaymentsOverviewDashboardOverviewRetrieve( client?: API
1153
+ ): Promise<PaymentsDashboardOverview> {
1154
+ const api = client || getAPIInstance()
1155
+ const response = await api.cfg_payments.overviewDashboardOverviewRetrieve()
1156
+ return PaymentsDashboardOverviewSchema.parse(response)
1157
+ }
1158
+
1159
+
1160
+ /**
1161
+ * Payment Analytics
1162
+ *
1163
+ * @method GET
1164
+ * @path /cfg/payments/overview/dashboard/payment_analytics/
1165
+ */
1166
+ export async function getPaymentsOverviewDashboardPaymentAnalyticsRetrieve( params?: { limit?: number }, client?: API
1167
+ ): Promise<PaymentAnalyticsResponse> {
1168
+ const api = client || getAPIInstance()
1169
+ const response = await api.cfg_payments.overviewDashboardPaymentAnalyticsRetrieve(params?.limit)
1170
+ return PaymentAnalyticsResponseSchema.parse(response)
1171
+ }
1172
+
1173
+
1174
+ /**
1175
+ * Recent Payments
1176
+ *
1177
+ * @method GET
1178
+ * @path /cfg/payments/overview/dashboard/recent_payments/
1179
+ */
1180
+ export async function getPaymentsOverviewDashboardRecentPaymentsList( params?: { limit?: number; page?: number; page_size?: number }, client?: API
1181
+ ): Promise<PaginatedRecentPaymentList> {
1182
+ const api = client || getAPIInstance()
1183
+ const response = await api.cfg_payments.overviewDashboardRecentPaymentsList(params?.limit, params?.page, params?.page_size)
1184
+ return PaginatedRecentPaymentListSchema.parse(response)
1185
+ }
1186
+
1187
+
1188
+ /**
1189
+ * Recent Transactions
1190
+ *
1191
+ * @method GET
1192
+ * @path /cfg/payments/overview/dashboard/recent_transactions/
1193
+ */
1194
+ export async function getPaymentsOverviewDashboardRecentTransactionsList( params?: { limit?: number; page?: number; page_size?: number }, client?: API
1195
+ ): Promise<PaginatedRecentTransactionList> {
1196
+ const api = client || getAPIInstance()
1197
+ const response = await api.cfg_payments.overviewDashboardRecentTransactionsList(params?.limit, params?.page, params?.page_size)
1198
+ return PaginatedRecentTransactionListSchema.parse(response)
1199
+ }
1200
+
1201
+
1202
+ /**
1203
+ * Subscription Overview
1204
+ *
1205
+ * @method GET
1206
+ * @path /cfg/payments/overview/dashboard/subscription_overview/
1207
+ */
1208
+ export async function getPaymentsOverviewDashboardSubscriptionOverviewRetrieve( client?: API
1209
+ ): Promise<SubscriptionOverview> {
1210
+ const api = client || getAPIInstance()
1211
+ const response = await api.cfg_payments.overviewDashboardSubscriptionOverviewRetrieve()
1212
+ return SubscriptionOverviewSchema.parse(response)
1213
+ }
1214
+
1215
+
1216
+ /**
1217
+ * API operation
1218
+ *
1219
+ * @method GET
1220
+ * @path /cfg/payments/payment/
1221
+ */
1222
+ export async function getPaymentsPaymentList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }, client?: API
1223
+ ): Promise<PaginatedPaymentListList> {
1224
+ const api = client || getAPIInstance()
1225
+ const response = await api.cfg_payments.paymentList(params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status, params?.user)
1226
+ return PaginatedPaymentListListSchema.parse(response)
1227
+ }
1228
+
1229
+
1230
+ /**
1231
+ * API operation
1232
+ *
1233
+ * @method POST
1234
+ * @path /cfg/payments/payment/
1235
+ */
1236
+ export async function createPaymentsPaymentCreate( data: PaymentCreateRequest, client?: API
1237
+ ): Promise<PaymentCreate> {
1238
+ const api = client || getAPIInstance()
1239
+ const response = await api.cfg_payments.paymentCreate(data)
1240
+ return PaymentCreateSchema.parse(response)
1241
+ }
1242
+
1243
+
1244
+ /**
1245
+ * API operation
1246
+ *
1247
+ * @method GET
1248
+ * @path /cfg/payments/payment/{id}/
1249
+ */
1250
+ export async function getPaymentsPaymentRetrieve( id: string, client?: API
1251
+ ): Promise<Payment> {
1252
+ const api = client || getAPIInstance()
1253
+ const response = await api.cfg_payments.paymentRetrieve(id)
1254
+ return PaymentSchema.parse(response)
1255
+ }
1256
+
1257
+
1258
+ /**
1259
+ * API operation
1260
+ *
1261
+ * @method PUT
1262
+ * @path /cfg/payments/payment/{id}/
1263
+ */
1264
+ export async function updatePaymentsPaymentUpdate( id: string, data: PaymentRequest, client?: API
1265
+ ): Promise<Payment> {
1266
+ const api = client || getAPIInstance()
1267
+ const response = await api.cfg_payments.paymentUpdate(id, data)
1268
+ return PaymentSchema.parse(response)
1269
+ }
1270
+
1271
+
1272
+ /**
1273
+ * API operation
1274
+ *
1275
+ * @method PATCH
1276
+ * @path /cfg/payments/payment/{id}/
1277
+ */
1278
+ export async function partialUpdatePaymentsPaymentPartialUpdate( id: string, data?: PatchedPaymentRequest, client?: API
1279
+ ): Promise<Payment> {
1280
+ const api = client || getAPIInstance()
1281
+ const response = await api.cfg_payments.paymentPartialUpdate(id, data)
1282
+ return PaymentSchema.parse(response)
1283
+ }
1284
+
1285
+
1286
+ /**
1287
+ * API operation
1288
+ *
1289
+ * @method DELETE
1290
+ * @path /cfg/payments/payment/{id}/
1291
+ */
1292
+ export async function deletePaymentsPaymentDestroy( id: string, client?: API
1293
+ ): Promise<void> {
1294
+ const api = client || getAPIInstance()
1295
+ const response = await api.cfg_payments.paymentDestroy(id)
1296
+ return response
1297
+ }
1298
+
1299
+
1300
+ /**
1301
+ * API operation
1302
+ *
1303
+ * @method POST
1304
+ * @path /cfg/payments/payment/{id}/cancel/
1305
+ */
1306
+ export async function createPaymentsPaymentCancelCreate( id: string, data: PaymentRequest, client?: API
1307
+ ): Promise<Payment> {
1308
+ const api = client || getAPIInstance()
1309
+ const response = await api.cfg_payments.paymentCancelCreate(id, data)
1310
+ return PaymentSchema.parse(response)
1311
+ }
1312
+
1313
+
1314
+ /**
1315
+ * API operation
1316
+ *
1317
+ * @method POST
1318
+ * @path /cfg/payments/payment/{id}/check_status/
1319
+ */
1320
+ export async function createPaymentsPaymentCheckStatusCreate( id: string, data: PaymentRequest, client?: API
1321
+ ): Promise<Payment> {
1322
+ const api = client || getAPIInstance()
1323
+ const response = await api.cfg_payments.paymentCheckStatusCreate(id, data)
1324
+ return PaymentSchema.parse(response)
1325
+ }
1326
+
1327
+
1328
+ /**
1329
+ * API operation
1330
+ *
1331
+ * @method GET
1332
+ * @path /cfg/payments/payment/analytics/
1333
+ */
1334
+ export async function getPaymentsPaymentAnalyticsRetrieve( client?: API
1335
+ ): Promise<Payment> {
1336
+ const api = client || getAPIInstance()
1337
+ const response = await api.cfg_payments.paymentAnalyticsRetrieve()
1338
+ return PaymentSchema.parse(response)
1339
+ }
1340
+
1341
+
1342
+ /**
1343
+ * API operation
1344
+ *
1345
+ * @method GET
1346
+ * @path /cfg/payments/payment/by_provider/
1347
+ */
1348
+ export async function getPaymentsPaymentByProviderRetrieve( client?: API
1349
+ ): Promise<Payment> {
1350
+ const api = client || getAPIInstance()
1351
+ const response = await api.cfg_payments.paymentByProviderRetrieve()
1352
+ return PaymentSchema.parse(response)
1353
+ }
1354
+
1355
+
1356
+ /**
1357
+ * API operation
1358
+ *
1359
+ * @method POST
1360
+ * @path /cfg/payments/payment/create/
1361
+ */
1362
+ export async function createPaymentsPaymentCreateCreate( data: PaymentCreateRequest, client?: API
1363
+ ): Promise<PaymentCreate> {
1364
+ const api = client || getAPIInstance()
1365
+ const response = await api.cfg_payments.paymentCreateCreate(data)
1366
+ return PaymentCreateSchema.parse(response)
1367
+ }
1368
+
1369
+
1370
+ /**
1371
+ * API operation
1372
+ *
1373
+ * @method GET
1374
+ * @path /cfg/payments/payment/health/
1375
+ */
1376
+ export async function getPaymentsPaymentHealthRetrieve( client?: API
1377
+ ): Promise<Payment> {
1378
+ const api = client || getAPIInstance()
1379
+ const response = await api.cfg_payments.paymentHealthRetrieve()
1380
+ return PaymentSchema.parse(response)
1381
+ }
1382
+
1383
+
1384
+ /**
1385
+ * API operation
1386
+ *
1387
+ * @method GET
1388
+ * @path /cfg/payments/payment/stats/
1389
+ */
1390
+ export async function getPaymentsPaymentStatsRetrieve( client?: API
1391
+ ): Promise<Payment> {
1392
+ const api = client || getAPIInstance()
1393
+ const response = await api.cfg_payments.paymentStatsRetrieve()
1394
+ return PaymentSchema.parse(response)
1395
+ }
1396
+
1397
+
1398
+ /**
1399
+ * API operation
1400
+ *
1401
+ * @method GET
1402
+ * @path /cfg/payments/payment/status/{id}/
1403
+ */
1404
+ export async function getPaymentsPaymentStatusRetrieve( id: string, client?: API
1405
+ ): Promise<Payment> {
1406
+ const api = client || getAPIInstance()
1407
+ const response = await api.cfg_payments.paymentStatusRetrieve(id)
1408
+ return PaymentSchema.parse(response)
1409
+ }
1410
+
1411
+
1412
+ /**
1413
+ * API operation
1414
+ *
1415
+ * @method GET
1416
+ * @path /cfg/payments/provider-currencies/
1417
+ */
1418
+ export async function getPaymentsProviderCurrenciesList( params?: { currency__code?: string; is_enabled?: boolean; network__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string }, client?: API
1419
+ ): Promise<PaginatedProviderCurrencyList> {
1420
+ const api = client || getAPIInstance()
1421
+ const response = await api.cfg_payments.providerCurrenciesList(params?.currency__code, params?.is_enabled, params?.network__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search)
1422
+ return PaginatedProviderCurrencyListSchema.parse(response)
1423
+ }
1424
+
1425
+
1426
+ /**
1427
+ * API operation
1428
+ *
1429
+ * @method GET
1430
+ * @path /cfg/payments/provider-currencies/{id}/
1431
+ */
1432
+ export async function getPaymentsProviderCurrenciesRetrieve( id: number, client?: API
1433
+ ): Promise<ProviderCurrency> {
1434
+ const api = client || getAPIInstance()
1435
+ const response = await api.cfg_payments.providerCurrenciesRetrieve(id)
1436
+ return ProviderCurrencySchema.parse(response)
1437
+ }
1438
+
1439
+
1440
+ /**
1441
+ * Get provider currencies grouped by provider
1442
+ *
1443
+ * @method GET
1444
+ * @path /cfg/payments/provider-currencies/by_provider/
1445
+ */
1446
+ export async function getPaymentsProviderCurrenciesByProviderRetrieve( params?: { provider?: string }, client?: API
1447
+ ): Promise<ProviderCurrency> {
1448
+ const api = client || getAPIInstance()
1449
+ const response = await api.cfg_payments.providerCurrenciesByProviderRetrieve(params?.provider)
1450
+ return ProviderCurrencySchema.parse(response)
1451
+ }
1452
+
1453
+
1454
+ /**
1455
+ * API operation
1456
+ *
1457
+ * @method GET
1458
+ * @path /cfg/payments/provider-currencies/health/
1459
+ */
1460
+ export async function getPaymentsProviderCurrenciesHealthRetrieve( client?: API
1461
+ ): Promise<ProviderCurrency> {
1462
+ const api = client || getAPIInstance()
1463
+ const response = await api.cfg_payments.providerCurrenciesHealthRetrieve()
1464
+ return ProviderCurrencySchema.parse(response)
1465
+ }
1466
+
1467
+
1468
+ /**
1469
+ * API operation
1470
+ *
1471
+ * @method GET
1472
+ * @path /cfg/payments/provider-currencies/limits/
1473
+ */
1474
+ export async function getPaymentsProviderCurrenciesLimitsRetrieve( client?: API
1475
+ ): Promise<ProviderCurrency> {
1476
+ const api = client || getAPIInstance()
1477
+ const response = await api.cfg_payments.providerCurrenciesLimitsRetrieve()
1478
+ return ProviderCurrencySchema.parse(response)
1479
+ }
1480
+
1481
+
1482
+ /**
1483
+ * API operation
1484
+ *
1485
+ * @method GET
1486
+ * @path /cfg/payments/provider-currencies/stats/
1487
+ */
1488
+ export async function getPaymentsProviderCurrenciesStatsRetrieve( client?: API
1489
+ ): Promise<ProviderCurrency> {
1490
+ const api = client || getAPIInstance()
1491
+ const response = await api.cfg_payments.providerCurrenciesStatsRetrieve()
1492
+ return ProviderCurrencySchema.parse(response)
1493
+ }
1494
+
1495
+
1496
+ /**
1497
+ * API operation
1498
+ *
1499
+ * @method GET
1500
+ * @path /cfg/payments/subscriptions/
1501
+ */
1502
+ export async function getPaymentsSubscriptionsList( params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string; user?: number }, client?: API
1503
+ ): Promise<PaginatedSubscriptionListList> {
1504
+ const api = client || getAPIInstance()
1505
+ const response = await api.cfg_payments.subscriptionsList(params?.ordering, params?.page, params?.page_size, params?.search, params?.status, params?.tier, params?.user)
1506
+ return PaginatedSubscriptionListListSchema.parse(response)
1507
+ }
1508
+
1509
+
1510
+ /**
1511
+ * API operation
1512
+ *
1513
+ * @method POST
1514
+ * @path /cfg/payments/subscriptions/
1515
+ */
1516
+ export async function createPaymentsSubscriptionsCreate( data: SubscriptionCreateRequest, client?: API
1517
+ ): Promise<SubscriptionCreate> {
1518
+ const api = client || getAPIInstance()
1519
+ const response = await api.cfg_payments.subscriptionsCreate(data)
1520
+ return SubscriptionCreateSchema.parse(response)
1521
+ }
1522
+
1523
+
1524
+ /**
1525
+ * API operation
1526
+ *
1527
+ * @method GET
1528
+ * @path /cfg/payments/subscriptions/{id}/
1529
+ */
1530
+ export async function getPaymentsSubscriptionsRetrieve( id: string, client?: API
1531
+ ): Promise<Subscription> {
1532
+ const api = client || getAPIInstance()
1533
+ const response = await api.cfg_payments.subscriptionsRetrieve(id)
1534
+ return SubscriptionSchema.parse(response)
1535
+ }
1536
+
1537
+
1538
+ /**
1539
+ * API operation
1540
+ *
1541
+ * @method PUT
1542
+ * @path /cfg/payments/subscriptions/{id}/
1543
+ */
1544
+ export async function updatePaymentsSubscriptionsUpdate( id: string, data: SubscriptionRequest, client?: API
1545
+ ): Promise<Subscription> {
1546
+ const api = client || getAPIInstance()
1547
+ const response = await api.cfg_payments.subscriptionsUpdate(id, data)
1548
+ return SubscriptionSchema.parse(response)
1549
+ }
1550
+
1551
+
1552
+ /**
1553
+ * API operation
1554
+ *
1555
+ * @method PATCH
1556
+ * @path /cfg/payments/subscriptions/{id}/
1557
+ */
1558
+ export async function partialUpdatePaymentsSubscriptionsPartialUpdate( id: string, data?: PatchedSubscriptionRequest, client?: API
1559
+ ): Promise<Subscription> {
1560
+ const api = client || getAPIInstance()
1561
+ const response = await api.cfg_payments.subscriptionsPartialUpdate(id, data)
1562
+ return SubscriptionSchema.parse(response)
1563
+ }
1564
+
1565
+
1566
+ /**
1567
+ * API operation
1568
+ *
1569
+ * @method DELETE
1570
+ * @path /cfg/payments/subscriptions/{id}/
1571
+ */
1572
+ export async function deletePaymentsSubscriptionsDestroy( id: string, client?: API
1573
+ ): Promise<void> {
1574
+ const api = client || getAPIInstance()
1575
+ const response = await api.cfg_payments.subscriptionsDestroy(id)
1576
+ return response
1577
+ }
1578
+
1579
+
1580
+ /**
1581
+ * API operation
1582
+ *
1583
+ * @method POST
1584
+ * @path /cfg/payments/subscriptions/{id}/increment_usage/
1585
+ */
1586
+ export async function createPaymentsSubscriptionsIncrementUsageCreate( id: string, data: SubscriptionRequest, client?: API
1587
+ ): Promise<Subscription> {
1588
+ const api = client || getAPIInstance()
1589
+ const response = await api.cfg_payments.subscriptionsIncrementUsageCreate(id, data)
1590
+ return SubscriptionSchema.parse(response)
1591
+ }
1592
+
1593
+
1594
+ /**
1595
+ * API operation
1596
+ *
1597
+ * @method POST
1598
+ * @path /cfg/payments/subscriptions/{id}/update_status/
1599
+ */
1600
+ export async function createPaymentsSubscriptionsUpdateStatusCreate( id: string, data: SubscriptionRequest, client?: API
1601
+ ): Promise<Subscription> {
1602
+ const api = client || getAPIInstance()
1603
+ const response = await api.cfg_payments.subscriptionsUpdateStatusCreate(id, data)
1604
+ return SubscriptionSchema.parse(response)
1605
+ }
1606
+
1607
+
1608
+ /**
1609
+ * API operation
1610
+ *
1611
+ * @method GET
1612
+ * @path /cfg/payments/subscriptions/analytics/
1613
+ */
1614
+ export async function getPaymentsSubscriptionsAnalyticsRetrieve( client?: API
1615
+ ): Promise<Subscription> {
1616
+ const api = client || getAPIInstance()
1617
+ const response = await api.cfg_payments.subscriptionsAnalyticsRetrieve()
1618
+ return SubscriptionSchema.parse(response)
1619
+ }
1620
+
1621
+
1622
+ /**
1623
+ * API operation
1624
+ *
1625
+ * @method GET
1626
+ * @path /cfg/payments/subscriptions/by_status/
1627
+ */
1628
+ export async function getPaymentsSubscriptionsByStatusRetrieve( client?: API
1629
+ ): Promise<Subscription> {
1630
+ const api = client || getAPIInstance()
1631
+ const response = await api.cfg_payments.subscriptionsByStatusRetrieve()
1632
+ return SubscriptionSchema.parse(response)
1633
+ }
1634
+
1635
+
1636
+ /**
1637
+ * API operation
1638
+ *
1639
+ * @method GET
1640
+ * @path /cfg/payments/subscriptions/by_tier/
1641
+ */
1642
+ export async function getPaymentsSubscriptionsByTierRetrieve( client?: API
1643
+ ): Promise<Subscription> {
1644
+ const api = client || getAPIInstance()
1645
+ const response = await api.cfg_payments.subscriptionsByTierRetrieve()
1646
+ return SubscriptionSchema.parse(response)
1647
+ }
1648
+
1649
+
1650
+ /**
1651
+ * API operation
1652
+ *
1653
+ * @method GET
1654
+ * @path /cfg/payments/subscriptions/health/
1655
+ */
1656
+ export async function getPaymentsSubscriptionsHealthRetrieve( client?: API
1657
+ ): Promise<Subscription> {
1658
+ const api = client || getAPIInstance()
1659
+ const response = await api.cfg_payments.subscriptionsHealthRetrieve()
1660
+ return SubscriptionSchema.parse(response)
1661
+ }
1662
+
1663
+
1664
+ /**
1665
+ * API operation
1666
+ *
1667
+ * @method GET
1668
+ * @path /cfg/payments/subscriptions/stats/
1669
+ */
1670
+ export async function getPaymentsSubscriptionsStatsRetrieve( client?: API
1671
+ ): Promise<Subscription> {
1672
+ const api = client || getAPIInstance()
1673
+ const response = await api.cfg_payments.subscriptionsStatsRetrieve()
1674
+ return SubscriptionSchema.parse(response)
1675
+ }
1676
+
1677
+
1678
+ /**
1679
+ * API operation
1680
+ *
1681
+ * @method GET
1682
+ * @path /cfg/payments/tariffs/
1683
+ */
1684
+ export async function getPaymentsTariffsList( params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
1685
+ ): Promise<PaginatedTariffList> {
1686
+ const api = client || getAPIInstance()
1687
+ const response = await api.cfg_payments.tariffsList(params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search)
1688
+ return PaginatedTariffListSchema.parse(response)
1689
+ }
1690
+
1691
+
1692
+ /**
1693
+ * API operation
1694
+ *
1695
+ * @method GET
1696
+ * @path /cfg/payments/tariffs/{id}/
1697
+ */
1698
+ export async function getPaymentsTariffsRetrieve( id: number, client?: API
1699
+ ): Promise<Tariff> {
1700
+ const api = client || getAPIInstance()
1701
+ const response = await api.cfg_payments.tariffsRetrieve(id)
1702
+ return TariffSchema.parse(response)
1703
+ }
1704
+
1705
+
1706
+ /**
1707
+ * API operation
1708
+ *
1709
+ * @method GET
1710
+ * @path /cfg/payments/tariffs/{id}/endpoint_groups/
1711
+ */
1712
+ export async function getPaymentsTariffsEndpointGroupsRetrieve( id: number, client?: API
1713
+ ): Promise<Tariff> {
1714
+ const api = client || getAPIInstance()
1715
+ const response = await api.cfg_payments.tariffsEndpointGroupsRetrieve(id)
1716
+ return TariffSchema.parse(response)
1717
+ }
1718
+
1719
+
1720
+ /**
1721
+ * API operation
1722
+ *
1723
+ * @method GET
1724
+ * @path /cfg/payments/tariffs/free/
1725
+ */
1726
+ export async function getPaymentsTariffsFreeRetrieve( client?: API
1727
+ ): Promise<Tariff> {
1728
+ const api = client || getAPIInstance()
1729
+ const response = await api.cfg_payments.tariffsFreeRetrieve()
1730
+ return TariffSchema.parse(response)
1731
+ }
1732
+
1733
+
1734
+ /**
1735
+ * API operation
1736
+ *
1737
+ * @method GET
1738
+ * @path /cfg/payments/tariffs/health/
1739
+ */
1740
+ export async function getPaymentsTariffsHealthRetrieve( client?: API
1741
+ ): Promise<Tariff> {
1742
+ const api = client || getAPIInstance()
1743
+ const response = await api.cfg_payments.tariffsHealthRetrieve()
1744
+ return TariffSchema.parse(response)
1745
+ }
1746
+
1747
+
1748
+ /**
1749
+ * API operation
1750
+ *
1751
+ * @method GET
1752
+ * @path /cfg/payments/tariffs/paid/
1753
+ */
1754
+ export async function getPaymentsTariffsPaidRetrieve( client?: API
1755
+ ): Promise<Tariff> {
1756
+ const api = client || getAPIInstance()
1757
+ const response = await api.cfg_payments.tariffsPaidRetrieve()
1758
+ return TariffSchema.parse(response)
1759
+ }
1760
+
1761
+
1762
+ /**
1763
+ * API operation
1764
+ *
1765
+ * @method GET
1766
+ * @path /cfg/payments/tariffs/stats/
1767
+ */
1768
+ export async function getPaymentsTariffsStatsRetrieve( client?: API
1769
+ ): Promise<Tariff> {
1770
+ const api = client || getAPIInstance()
1771
+ const response = await api.cfg_payments.tariffsStatsRetrieve()
1772
+ return TariffSchema.parse(response)
1773
+ }
1774
+
1775
+
1776
+ /**
1777
+ * API operation
1778
+ *
1779
+ * @method GET
1780
+ * @path /cfg/payments/transactions/
1781
+ */
1782
+ export async function getPaymentsTransactionsList( params?: { ordering?: string; page?: number; page_size?: number; payment_id?: string; search?: string; transaction_type?: string; user?: number }, client?: API
1783
+ ): Promise<PaginatedTransactionList> {
1784
+ const api = client || getAPIInstance()
1785
+ const response = await api.cfg_payments.transactionsList(params?.ordering, params?.page, params?.page_size, params?.payment_id, params?.search, params?.transaction_type, params?.user)
1786
+ return PaginatedTransactionListSchema.parse(response)
1787
+ }
1788
+
1789
+
1790
+ /**
1791
+ * API operation
1792
+ *
1793
+ * @method GET
1794
+ * @path /cfg/payments/transactions/{id}/
1795
+ */
1796
+ export async function getPaymentsTransactionsRetrieve( id: string, client?: API
1797
+ ): Promise<Transaction> {
1798
+ const api = client || getAPIInstance()
1799
+ const response = await api.cfg_payments.transactionsRetrieve(id)
1800
+ return TransactionSchema.parse(response)
1801
+ }
1802
+
1803
+
1804
+ /**
1805
+ * API operation
1806
+ *
1807
+ * @method GET
1808
+ * @path /cfg/payments/transactions/by_type/
1809
+ */
1810
+ export async function getPaymentsTransactionsByTypeRetrieve( client?: API
1811
+ ): Promise<Transaction> {
1812
+ const api = client || getAPIInstance()
1813
+ const response = await api.cfg_payments.transactionsByTypeRetrieve()
1814
+ return TransactionSchema.parse(response)
1815
+ }
1816
+
1817
+
1818
+ /**
1819
+ * API operation
1820
+ *
1821
+ * @method GET
1822
+ * @path /cfg/payments/transactions/health/
1823
+ */
1824
+ export async function getPaymentsTransactionsHealthRetrieve( client?: API
1825
+ ): Promise<Transaction> {
1826
+ const api = client || getAPIInstance()
1827
+ const response = await api.cfg_payments.transactionsHealthRetrieve()
1828
+ return TransactionSchema.parse(response)
1829
+ }
1830
+
1831
+
1832
+ /**
1833
+ * API operation
1834
+ *
1835
+ * @method GET
1836
+ * @path /cfg/payments/transactions/recent/
1837
+ */
1838
+ export async function getPaymentsTransactionsRecentRetrieve( client?: API
1839
+ ): Promise<Transaction> {
1840
+ const api = client || getAPIInstance()
1841
+ const response = await api.cfg_payments.transactionsRecentRetrieve()
1842
+ return TransactionSchema.parse(response)
1843
+ }
1844
+
1845
+
1846
+ /**
1847
+ * API operation
1848
+ *
1849
+ * @method GET
1850
+ * @path /cfg/payments/transactions/stats/
1851
+ */
1852
+ export async function getPaymentsTransactionsStatsRetrieve( client?: API
1853
+ ): Promise<Transaction> {
1854
+ const api = client || getAPIInstance()
1855
+ const response = await api.cfg_payments.transactionsStatsRetrieve()
1856
+ return TransactionSchema.parse(response)
1857
+ }
1858
+
1859
+
1860
+ /**
1861
+ * API operation
1862
+ *
1863
+ * @method GET
1864
+ * @path /cfg/payments/users/
1865
+ */
1866
+ export async function getPaymentsUsersList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }, client?: API
1867
+ ): Promise<PaginatedPaymentListList> {
1868
+ const api = client || getAPIInstance()
1869
+ const response = await api.cfg_payments.usersList(params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status)
1870
+ return PaginatedPaymentListListSchema.parse(response)
1871
+ }
1872
+
1873
+
1874
+ /**
1875
+ * API operation
1876
+ *
1877
+ * @method POST
1878
+ * @path /cfg/payments/users/
1879
+ */
1880
+ export async function createPaymentsUsersCreate( data: PaymentCreateRequest, client?: API
1881
+ ): Promise<PaymentCreate> {
1882
+ const api = client || getAPIInstance()
1883
+ const response = await api.cfg_payments.usersCreate(data)
1884
+ return PaymentCreateSchema.parse(response)
1885
+ }
1886
+
1887
+
1888
+ /**
1889
+ * API operation
1890
+ *
1891
+ * @method GET
1892
+ * @path /cfg/payments/users/{id}/
1893
+ */
1894
+ export async function getPaymentsUsersRetrieve( id: string, client?: API
1895
+ ): Promise<Payment> {
1896
+ const api = client || getAPIInstance()
1897
+ const response = await api.cfg_payments.usersRetrieve(id)
1898
+ return PaymentSchema.parse(response)
1899
+ }
1900
+
1901
+
1902
+ /**
1903
+ * API operation
1904
+ *
1905
+ * @method PUT
1906
+ * @path /cfg/payments/users/{id}/
1907
+ */
1908
+ export async function updatePaymentsUsersUpdate( id: string, data: PaymentRequest, client?: API
1909
+ ): Promise<Payment> {
1910
+ const api = client || getAPIInstance()
1911
+ const response = await api.cfg_payments.usersUpdate(id, data)
1912
+ return PaymentSchema.parse(response)
1913
+ }
1914
+
1915
+
1916
+ /**
1917
+ * API operation
1918
+ *
1919
+ * @method PATCH
1920
+ * @path /cfg/payments/users/{id}/
1921
+ */
1922
+ export async function partialUpdatePaymentsUsersPartialUpdate( id: string, data?: PatchedPaymentRequest, client?: API
1923
+ ): Promise<Payment> {
1924
+ const api = client || getAPIInstance()
1925
+ const response = await api.cfg_payments.usersPartialUpdate(id, data)
1926
+ return PaymentSchema.parse(response)
1927
+ }
1928
+
1929
+
1930
+ /**
1931
+ * API operation
1932
+ *
1933
+ * @method DELETE
1934
+ * @path /cfg/payments/users/{id}/
1935
+ */
1936
+ export async function deletePaymentsUsersDestroy( id: string, client?: API
1937
+ ): Promise<void> {
1938
+ const api = client || getAPIInstance()
1939
+ const response = await api.cfg_payments.usersDestroy(id)
1940
+ return response
1941
+ }
1942
+
1943
+
1944
+ /**
1945
+ * API operation
1946
+ *
1947
+ * @method POST
1948
+ * @path /cfg/payments/users/{id}/cancel/
1949
+ */
1950
+ export async function createPaymentsUsersCancelCreate( id: string, data: PaymentRequest, client?: API
1951
+ ): Promise<Payment> {
1952
+ const api = client || getAPIInstance()
1953
+ const response = await api.cfg_payments.usersCancelCreate(id, data)
1954
+ return PaymentSchema.parse(response)
1955
+ }
1956
+
1957
+
1958
+ /**
1959
+ * API operation
1960
+ *
1961
+ * @method POST
1962
+ * @path /cfg/payments/users/{id}/check_status/
1963
+ */
1964
+ export async function createPaymentsUsersCheckStatusCreate( id: string, data: PaymentRequest, client?: API
1965
+ ): Promise<Payment> {
1966
+ const api = client || getAPIInstance()
1967
+ const response = await api.cfg_payments.usersCheckStatusCreate(id, data)
1968
+ return PaymentSchema.parse(response)
1969
+ }
1970
+
1971
+
1972
+ /**
1973
+ * API operation
1974
+ *
1975
+ * @method GET
1976
+ * @path /cfg/payments/users/{user_pk}/api-keys/
1977
+ */
1978
+ export async function getPaymentsUsersApiKeysList( user_pk: number, params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?: API
1979
+ ): Promise<PaginatedAPIKeyListList> {
1980
+ const api = client || getAPIInstance()
1981
+ const response = await api.cfg_payments.usersApiKeysList(user_pk, params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search)
1982
+ return PaginatedAPIKeyListListSchema.parse(response)
1983
+ }
1984
+
1985
+
1986
+ /**
1987
+ * API operation
1988
+ *
1989
+ * @method POST
1990
+ * @path /cfg/payments/users/{user_pk}/api-keys/
1991
+ */
1992
+ export async function createPaymentsUsersApiKeysCreate( user_pk: number, data: APIKeyCreateRequest, client?: API
1993
+ ): Promise<APIKeyCreate> {
1994
+ const api = client || getAPIInstance()
1995
+ const response = await api.cfg_payments.usersApiKeysCreate(user_pk, data)
1996
+ return APIKeyCreateSchema.parse(response)
1997
+ }
1998
+
1999
+
2000
+ /**
2001
+ * API operation
2002
+ *
2003
+ * @method GET
2004
+ * @path /cfg/payments/users/{user_pk}/api-keys/{id}/
2005
+ */
2006
+ export async function getPaymentsUsersApiKeysRetrieve( id: string, user_pk: number, client?: API
2007
+ ): Promise<APIKeyDetail> {
2008
+ const api = client || getAPIInstance()
2009
+ const response = await api.cfg_payments.usersApiKeysRetrieve(id, user_pk)
2010
+ return APIKeyDetailSchema.parse(response)
2011
+ }
2012
+
2013
+
2014
+ /**
2015
+ * API operation
2016
+ *
2017
+ * @method PUT
2018
+ * @path /cfg/payments/users/{user_pk}/api-keys/{id}/
2019
+ */
2020
+ export async function updatePaymentsUsersApiKeysUpdate( id: string, user_pk: number, data: APIKeyUpdateRequest, client?: API
2021
+ ): Promise<APIKeyUpdate> {
2022
+ const api = client || getAPIInstance()
2023
+ const response = await api.cfg_payments.usersApiKeysUpdate(id, user_pk, data)
2024
+ return APIKeyUpdateSchema.parse(response)
2025
+ }
2026
+
2027
+
2028
+ /**
2029
+ * API operation
2030
+ *
2031
+ * @method PATCH
2032
+ * @path /cfg/payments/users/{user_pk}/api-keys/{id}/
2033
+ */
2034
+ export async function partialUpdatePaymentsUsersApiKeysPartialUpdate( id: string, user_pk: number, data?: PatchedAPIKeyUpdateRequest, client?: API
2035
+ ): Promise<APIKeyUpdate> {
2036
+ const api = client || getAPIInstance()
2037
+ const response = await api.cfg_payments.usersApiKeysPartialUpdate(id, user_pk, data)
2038
+ return APIKeyUpdateSchema.parse(response)
2039
+ }
2040
+
2041
+
2042
+ /**
2043
+ * API operation
2044
+ *
2045
+ * @method DELETE
2046
+ * @path /cfg/payments/users/{user_pk}/api-keys/{id}/
2047
+ */
2048
+ export async function deletePaymentsUsersApiKeysDestroy( id: string, user_pk: number, client?: API
2049
+ ): Promise<void> {
2050
+ const api = client || getAPIInstance()
2051
+ const response = await api.cfg_payments.usersApiKeysDestroy(id, user_pk)
2052
+ return response
2053
+ }
2054
+
2055
+
2056
+ /**
2057
+ * API operation
2058
+ *
2059
+ * @method POST
2060
+ * @path /cfg/payments/users/{user_pk}/api-keys/{id}/perform_action/
2061
+ */
2062
+ export async function createPaymentsUsersApiKeysPerformActionCreate( id: string, user_pk: number, client?: API
2063
+ ): Promise<APIKeyDetail> {
2064
+ const api = client || getAPIInstance()
2065
+ const response = await api.cfg_payments.usersApiKeysPerformActionCreate(id, user_pk)
2066
+ return APIKeyDetailSchema.parse(response)
2067
+ }
2068
+
2069
+
2070
+ /**
2071
+ * API operation
2072
+ *
2073
+ * @method GET
2074
+ * @path /cfg/payments/users/{user_pk}/api-keys/active/
2075
+ */
2076
+ export async function getPaymentsUsersApiKeysActiveRetrieve( user_pk: number, client?: API
2077
+ ): Promise<APIKeyDetail> {
2078
+ const api = client || getAPIInstance()
2079
+ const response = await api.cfg_payments.usersApiKeysActiveRetrieve(user_pk)
2080
+ return APIKeyDetailSchema.parse(response)
2081
+ }
2082
+
2083
+
2084
+ /**
2085
+ * API operation
2086
+ *
2087
+ * @method GET
2088
+ * @path /cfg/payments/users/{user_pk}/api-keys/health/
2089
+ */
2090
+ export async function getPaymentsUsersApiKeysHealthRetrieve( user_pk: number, client?: API
2091
+ ): Promise<APIKeyDetail> {
2092
+ const api = client || getAPIInstance()
2093
+ const response = await api.cfg_payments.usersApiKeysHealthRetrieve(user_pk)
2094
+ return APIKeyDetailSchema.parse(response)
2095
+ }
2096
+
2097
+
2098
+ /**
2099
+ * API operation
2100
+ *
2101
+ * @method GET
2102
+ * @path /cfg/payments/users/{user_pk}/api-keys/stats/
2103
+ */
2104
+ export async function getPaymentsUsersApiKeysStatsRetrieve( user_pk: number, client?: API
2105
+ ): Promise<APIKeyDetail> {
2106
+ const api = client || getAPIInstance()
2107
+ const response = await api.cfg_payments.usersApiKeysStatsRetrieve(user_pk)
2108
+ return APIKeyDetailSchema.parse(response)
2109
+ }
2110
+
2111
+
2112
+ /**
2113
+ * API operation
2114
+ *
2115
+ * @method GET
2116
+ * @path /cfg/payments/users/{user_pk}/api-keys/summary/
2117
+ */
2118
+ export async function getPaymentsUsersApiKeysSummaryRetrieve( user_pk: number, client?: API
2119
+ ): Promise<APIKeyDetail> {
2120
+ const api = client || getAPIInstance()
2121
+ const response = await api.cfg_payments.usersApiKeysSummaryRetrieve(user_pk)
2122
+ return APIKeyDetailSchema.parse(response)
2123
+ }
2124
+
2125
+
2126
+ /**
2127
+ * API operation
2128
+ *
2129
+ * @method GET
2130
+ * @path /cfg/payments/users/{user_pk}/payment/
2131
+ */
2132
+ export async function getPaymentsUsersPaymentList( user_pk: number, params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }, client?: API
2133
+ ): Promise<PaginatedPaymentListList> {
2134
+ const api = client || getAPIInstance()
2135
+ const response = await api.cfg_payments.usersPaymentList(user_pk, params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status)
2136
+ return PaginatedPaymentListListSchema.parse(response)
2137
+ }
2138
+
2139
+
2140
+ /**
2141
+ * API operation
2142
+ *
2143
+ * @method POST
2144
+ * @path /cfg/payments/users/{user_pk}/payment/
2145
+ */
2146
+ export async function createPaymentsUsersPaymentCreate( user_pk: number, data: PaymentCreateRequest, client?: API
2147
+ ): Promise<PaymentCreate> {
2148
+ const api = client || getAPIInstance()
2149
+ const response = await api.cfg_payments.usersPaymentCreate(user_pk, data)
2150
+ return PaymentCreateSchema.parse(response)
2151
+ }
2152
+
2153
+
2154
+ /**
2155
+ * API operation
2156
+ *
2157
+ * @method GET
2158
+ * @path /cfg/payments/users/{user_pk}/payment/{id}/
2159
+ */
2160
+ export async function getPaymentsUsersPaymentRetrieve( id: string, user_pk: number, client?: API
2161
+ ): Promise<Payment> {
2162
+ const api = client || getAPIInstance()
2163
+ const response = await api.cfg_payments.usersPaymentRetrieve(id, user_pk)
2164
+ return PaymentSchema.parse(response)
2165
+ }
2166
+
2167
+
2168
+ /**
2169
+ * API operation
2170
+ *
2171
+ * @method PUT
2172
+ * @path /cfg/payments/users/{user_pk}/payment/{id}/
2173
+ */
2174
+ export async function updatePaymentsUsersPaymentUpdate( id: string, user_pk: number, data: PaymentRequest, client?: API
2175
+ ): Promise<Payment> {
2176
+ const api = client || getAPIInstance()
2177
+ const response = await api.cfg_payments.usersPaymentUpdate(id, user_pk, data)
2178
+ return PaymentSchema.parse(response)
2179
+ }
2180
+
2181
+
2182
+ /**
2183
+ * API operation
2184
+ *
2185
+ * @method PATCH
2186
+ * @path /cfg/payments/users/{user_pk}/payment/{id}/
2187
+ */
2188
+ export async function partialUpdatePaymentsUsersPaymentPartialUpdate( id: string, user_pk: number, data?: PatchedPaymentRequest, client?: API
2189
+ ): Promise<Payment> {
2190
+ const api = client || getAPIInstance()
2191
+ const response = await api.cfg_payments.usersPaymentPartialUpdate(id, user_pk, data)
2192
+ return PaymentSchema.parse(response)
2193
+ }
2194
+
2195
+
2196
+ /**
2197
+ * API operation
2198
+ *
2199
+ * @method DELETE
2200
+ * @path /cfg/payments/users/{user_pk}/payment/{id}/
2201
+ */
2202
+ export async function deletePaymentsUsersPaymentDestroy( id: string, user_pk: number, client?: API
2203
+ ): Promise<void> {
2204
+ const api = client || getAPIInstance()
2205
+ const response = await api.cfg_payments.usersPaymentDestroy(id, user_pk)
2206
+ return response
2207
+ }
2208
+
2209
+
2210
+ /**
2211
+ * API operation
2212
+ *
2213
+ * @method POST
2214
+ * @path /cfg/payments/users/{user_pk}/payment/{id}/cancel/
2215
+ */
2216
+ export async function createPaymentsUsersPaymentCancelCreate( id: string, user_pk: number, data: PaymentRequest, client?: API
2217
+ ): Promise<Payment> {
2218
+ const api = client || getAPIInstance()
2219
+ const response = await api.cfg_payments.usersPaymentCancelCreate(id, user_pk, data)
2220
+ return PaymentSchema.parse(response)
2221
+ }
2222
+
2223
+
2224
+ /**
2225
+ * API operation
2226
+ *
2227
+ * @method POST
2228
+ * @path /cfg/payments/users/{user_pk}/payment/{id}/check_status/
2229
+ */
2230
+ export async function createPaymentsUsersPaymentCheckStatusCreate( id: string, user_pk: number, data: PaymentRequest, client?: API
2231
+ ): Promise<Payment> {
2232
+ const api = client || getAPIInstance()
2233
+ const response = await api.cfg_payments.usersPaymentCheckStatusCreate(id, user_pk, data)
2234
+ return PaymentSchema.parse(response)
2235
+ }
2236
+
2237
+
2238
+ /**
2239
+ * API operation
2240
+ *
2241
+ * @method GET
2242
+ * @path /cfg/payments/users/{user_pk}/payment/health/
2243
+ */
2244
+ export async function getPaymentsUsersPaymentHealthRetrieve( user_pk: number, client?: API
2245
+ ): Promise<Payment> {
2246
+ const api = client || getAPIInstance()
2247
+ const response = await api.cfg_payments.usersPaymentHealthRetrieve(user_pk)
2248
+ return PaymentSchema.parse(response)
2249
+ }
2250
+
2251
+
2252
+ /**
2253
+ * API operation
2254
+ *
2255
+ * @method GET
2256
+ * @path /cfg/payments/users/{user_pk}/payment/stats/
2257
+ */
2258
+ export async function getPaymentsUsersPaymentStatsRetrieve( user_pk: number, client?: API
2259
+ ): Promise<Payment> {
2260
+ const api = client || getAPIInstance()
2261
+ const response = await api.cfg_payments.usersPaymentStatsRetrieve(user_pk)
2262
+ return PaymentSchema.parse(response)
2263
+ }
2264
+
2265
+
2266
+ /**
2267
+ * API operation
2268
+ *
2269
+ * @method GET
2270
+ * @path /cfg/payments/users/{user_pk}/payment/summary/
2271
+ */
2272
+ export async function getPaymentsUsersPaymentSummaryRetrieve( user_pk: number, client?: API
2273
+ ): Promise<Payment> {
2274
+ const api = client || getAPIInstance()
2275
+ const response = await api.cfg_payments.usersPaymentSummaryRetrieve(user_pk)
2276
+ return PaymentSchema.parse(response)
2277
+ }
2278
+
2279
+
2280
+ /**
2281
+ * API operation
2282
+ *
2283
+ * @method GET
2284
+ * @path /cfg/payments/users/{user_pk}/subscriptions/
2285
+ */
2286
+ export async function getPaymentsUsersSubscriptionsList( user_pk: number, params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string }, client?: API
2287
+ ): Promise<PaginatedSubscriptionListList> {
2288
+ const api = client || getAPIInstance()
2289
+ const response = await api.cfg_payments.usersSubscriptionsList(user_pk, params?.ordering, params?.page, params?.page_size, params?.search, params?.status, params?.tier)
2290
+ return PaginatedSubscriptionListListSchema.parse(response)
2291
+ }
2292
+
2293
+
2294
+ /**
2295
+ * API operation
2296
+ *
2297
+ * @method POST
2298
+ * @path /cfg/payments/users/{user_pk}/subscriptions/
2299
+ */
2300
+ export async function createPaymentsUsersSubscriptionsCreate( user_pk: number, data: SubscriptionCreateRequest, client?: API
2301
+ ): Promise<SubscriptionCreate> {
2302
+ const api = client || getAPIInstance()
2303
+ const response = await api.cfg_payments.usersSubscriptionsCreate(user_pk, data)
2304
+ return SubscriptionCreateSchema.parse(response)
2305
+ }
2306
+
2307
+
2308
+ /**
2309
+ * API operation
2310
+ *
2311
+ * @method GET
2312
+ * @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
2313
+ */
2314
+ export async function getPaymentsUsersSubscriptionsRetrieve( id: string, user_pk: number, client?: API
2315
+ ): Promise<Subscription> {
2316
+ const api = client || getAPIInstance()
2317
+ const response = await api.cfg_payments.usersSubscriptionsRetrieve(id, user_pk)
2318
+ return SubscriptionSchema.parse(response)
2319
+ }
2320
+
2321
+
2322
+ /**
2323
+ * API operation
2324
+ *
2325
+ * @method PUT
2326
+ * @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
2327
+ */
2328
+ export async function updatePaymentsUsersSubscriptionsUpdate( id: string, user_pk: number, data: SubscriptionRequest, client?: API
2329
+ ): Promise<Subscription> {
2330
+ const api = client || getAPIInstance()
2331
+ const response = await api.cfg_payments.usersSubscriptionsUpdate(id, user_pk, data)
2332
+ return SubscriptionSchema.parse(response)
2333
+ }
2334
+
2335
+
2336
+ /**
2337
+ * API operation
2338
+ *
2339
+ * @method PATCH
2340
+ * @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
2341
+ */
2342
+ export async function partialUpdatePaymentsUsersSubscriptionsPartialUpdate( id: string, user_pk: number, data?: PatchedSubscriptionRequest, client?: API
2343
+ ): Promise<Subscription> {
2344
+ const api = client || getAPIInstance()
2345
+ const response = await api.cfg_payments.usersSubscriptionsPartialUpdate(id, user_pk, data)
2346
+ return SubscriptionSchema.parse(response)
2347
+ }
2348
+
2349
+
2350
+ /**
2351
+ * API operation
2352
+ *
2353
+ * @method DELETE
2354
+ * @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
2355
+ */
2356
+ export async function deletePaymentsUsersSubscriptionsDestroy( id: string, user_pk: number, client?: API
2357
+ ): Promise<void> {
2358
+ const api = client || getAPIInstance()
2359
+ const response = await api.cfg_payments.usersSubscriptionsDestroy(id, user_pk)
2360
+ return response
2361
+ }
2362
+
2363
+
2364
+ /**
2365
+ * API operation
2366
+ *
2367
+ * @method POST
2368
+ * @path /cfg/payments/users/{user_pk}/subscriptions/{id}/increment_usage/
2369
+ */
2370
+ export async function createPaymentsUsersSubscriptionsIncrementUsageCreate( id: string, user_pk: number, data: SubscriptionRequest, client?: API
2371
+ ): Promise<Subscription> {
2372
+ const api = client || getAPIInstance()
2373
+ const response = await api.cfg_payments.usersSubscriptionsIncrementUsageCreate(id, user_pk, data)
2374
+ return SubscriptionSchema.parse(response)
2375
+ }
2376
+
2377
+
2378
+ /**
2379
+ * API operation
2380
+ *
2381
+ * @method POST
2382
+ * @path /cfg/payments/users/{user_pk}/subscriptions/{id}/update_status/
2383
+ */
2384
+ export async function createPaymentsUsersSubscriptionsUpdateStatusCreate( id: string, user_pk: number, data: SubscriptionRequest, client?: API
2385
+ ): Promise<Subscription> {
2386
+ const api = client || getAPIInstance()
2387
+ const response = await api.cfg_payments.usersSubscriptionsUpdateStatusCreate(id, user_pk, data)
2388
+ return SubscriptionSchema.parse(response)
2389
+ }
2390
+
2391
+
2392
+ /**
2393
+ * API operation
2394
+ *
2395
+ * @method GET
2396
+ * @path /cfg/payments/users/{user_pk}/subscriptions/active/
2397
+ */
2398
+ export async function getPaymentsUsersSubscriptionsActiveRetrieve( user_pk: number, client?: API
2399
+ ): Promise<Subscription> {
2400
+ const api = client || getAPIInstance()
2401
+ const response = await api.cfg_payments.usersSubscriptionsActiveRetrieve(user_pk)
2402
+ return SubscriptionSchema.parse(response)
2403
+ }
2404
+
2405
+
2406
+ /**
2407
+ * API operation
2408
+ *
2409
+ * @method GET
2410
+ * @path /cfg/payments/users/{user_pk}/subscriptions/health/
2411
+ */
2412
+ export async function getPaymentsUsersSubscriptionsHealthRetrieve( user_pk: number, client?: API
2413
+ ): Promise<Subscription> {
2414
+ const api = client || getAPIInstance()
2415
+ const response = await api.cfg_payments.usersSubscriptionsHealthRetrieve(user_pk)
2416
+ return SubscriptionSchema.parse(response)
2417
+ }
2418
+
2419
+
2420
+ /**
2421
+ * API operation
2422
+ *
2423
+ * @method GET
2424
+ * @path /cfg/payments/users/{user_pk}/subscriptions/stats/
2425
+ */
2426
+ export async function getPaymentsUsersSubscriptionsStatsRetrieve( user_pk: number, client?: API
2427
+ ): Promise<Subscription> {
2428
+ const api = client || getAPIInstance()
2429
+ const response = await api.cfg_payments.usersSubscriptionsStatsRetrieve(user_pk)
2430
+ return SubscriptionSchema.parse(response)
2431
+ }
2432
+
2433
+
2434
+ /**
2435
+ * API operation
2436
+ *
2437
+ * @method GET
2438
+ * @path /cfg/payments/users/{user_pk}/subscriptions/summary/
2439
+ */
2440
+ export async function getPaymentsUsersSubscriptionsSummaryRetrieve( user_pk: number, client?: API
2441
+ ): Promise<Subscription> {
2442
+ const api = client || getAPIInstance()
2443
+ const response = await api.cfg_payments.usersSubscriptionsSummaryRetrieve(user_pk)
2444
+ return SubscriptionSchema.parse(response)
2445
+ }
2446
+
2447
+
2448
+ /**
2449
+ * API operation
2450
+ *
2451
+ * @method GET
2452
+ * @path /cfg/payments/users/health/
2453
+ */
2454
+ export async function getPaymentsUsersHealthRetrieve( client?: API
2455
+ ): Promise<Payment> {
2456
+ const api = client || getAPIInstance()
2457
+ const response = await api.cfg_payments.usersHealthRetrieve()
2458
+ return PaymentSchema.parse(response)
2459
+ }
2460
+
2461
+
2462
+ /**
2463
+ * API operation
2464
+ *
2465
+ * @method GET
2466
+ * @path /cfg/payments/users/stats/
2467
+ */
2468
+ export async function getPaymentsUsersStatsRetrieve( client?: API
2469
+ ): Promise<Payment> {
2470
+ const api = client || getAPIInstance()
2471
+ const response = await api.cfg_payments.usersStatsRetrieve()
2472
+ return PaymentSchema.parse(response)
2473
+ }
2474
+
2475
+
2476
+ /**
2477
+ * API operation
2478
+ *
2479
+ * @method GET
2480
+ * @path /cfg/payments/users/summary/
2481
+ */
2482
+ export async function getPaymentsUsersSummaryRetrieve( client?: API
2483
+ ): Promise<Payment> {
2484
+ const api = client || getAPIInstance()
2485
+ const response = await api.cfg_payments.usersSummaryRetrieve()
2486
+ return PaymentSchema.parse(response)
2487
+ }
2488
+
2489
+