@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,1814 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Payments.
6
+ */
7
+ export class CfgPaymentsAPI {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ async adminApiPaymentsList(currency__code?: string, ordering?: string, page?: number, page_size?: number, provider?: string, search?: string, status?: string, user?: number): Promise<Models.PaginatedAdminPaymentListList>;
15
+ async adminApiPaymentsList(params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }): Promise<Models.PaginatedAdminPaymentListList>;
16
+
17
+ /**
18
+ * Admin ViewSet for payment management. Provides full CRUD operations for
19
+ * payments with admin-specific features.
20
+ */
21
+ async adminApiPaymentsList(...args: any[]): Promise<Models.PaginatedAdminPaymentListList> {
22
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
23
+
24
+ let params;
25
+ if (isParamsObject) {
26
+ params = args[0];
27
+ } else {
28
+ params = { currency__code: args[0], ordering: args[1], page: args[2], page_size: args[3], provider: args[4], search: args[5], status: args[6], user: args[7] };
29
+ }
30
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/payments/", { params });
31
+ return response;
32
+ }
33
+
34
+ /**
35
+ * Create payment with enhanced error handling.
36
+ */
37
+ async adminApiPaymentsCreate(data: Models.AdminPaymentCreateRequest): Promise<Models.AdminPaymentCreate> {
38
+ const response = await this.client.request('POST', "/cfg/payments/admin/api/payments/", { body: data });
39
+ return response;
40
+ }
41
+
42
+ /**
43
+ * Admin ViewSet for payment management. Provides full CRUD operations for
44
+ * payments with admin-specific features.
45
+ */
46
+ async adminApiPaymentsRetrieve(id: string): Promise<Models.AdminPaymentDetail> {
47
+ const response = await this.client.request('GET', `/cfg/payments/admin/api/payments/${id}/`);
48
+ return response;
49
+ }
50
+
51
+ /**
52
+ * Admin ViewSet for payment management. Provides full CRUD operations for
53
+ * payments with admin-specific features.
54
+ */
55
+ async adminApiPaymentsUpdate(id: string, data: Models.AdminPaymentUpdateRequest): Promise<Models.AdminPaymentUpdate> {
56
+ const response = await this.client.request('PUT', `/cfg/payments/admin/api/payments/${id}/`, { body: data });
57
+ return response;
58
+ }
59
+
60
+ /**
61
+ * Admin ViewSet for payment management. Provides full CRUD operations for
62
+ * payments with admin-specific features.
63
+ */
64
+ async adminApiPaymentsPartialUpdate(id: string, data?: Models.PatchedAdminPaymentUpdateRequest): Promise<Models.AdminPaymentUpdate> {
65
+ const response = await this.client.request('PATCH', `/cfg/payments/admin/api/payments/${id}/`, { body: data });
66
+ return response;
67
+ }
68
+
69
+ /**
70
+ * Admin ViewSet for payment management. Provides full CRUD operations for
71
+ * payments with admin-specific features.
72
+ */
73
+ async adminApiPaymentsDestroy(id: string): Promise<void> {
74
+ const response = await this.client.request('DELETE', `/cfg/payments/admin/api/payments/${id}/`);
75
+ return;
76
+ }
77
+
78
+ /**
79
+ * Cancel a payment.
80
+ */
81
+ async adminApiPaymentsCancelCreate(id: string): Promise<Models.AdminPaymentDetail> {
82
+ const response = await this.client.request('POST', `/cfg/payments/admin/api/payments/${id}/cancel/`);
83
+ return response;
84
+ }
85
+
86
+ /**
87
+ * Refresh payment status from provider via AJAX.
88
+ */
89
+ async adminApiPaymentsRefreshStatusCreate(id: string): Promise<Models.AdminPaymentDetail> {
90
+ const response = await this.client.request('POST', `/cfg/payments/admin/api/payments/${id}/refresh_status/`);
91
+ return response;
92
+ }
93
+
94
+ /**
95
+ * Refund a payment.
96
+ */
97
+ async adminApiPaymentsRefundCreate(id: string): Promise<Models.AdminPaymentDetail> {
98
+ const response = await this.client.request('POST', `/cfg/payments/admin/api/payments/${id}/refund/`);
99
+ return response;
100
+ }
101
+
102
+ /**
103
+ * Get comprehensive payment statistics.
104
+ */
105
+ async adminApiPaymentsStatsRetrieve(): Promise<Models.AdminPaymentStats> {
106
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/payments/stats/");
107
+ return response;
108
+ }
109
+
110
+ async adminApiStatsList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedAdminPaymentStatsList>;
111
+ async adminApiStatsList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedAdminPaymentStatsList>;
112
+
113
+ /**
114
+ * Get overview statistics.
115
+ */
116
+ async adminApiStatsList(...args: any[]): Promise<Models.PaginatedAdminPaymentStatsList> {
117
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
118
+
119
+ let params;
120
+ if (isParamsObject) {
121
+ params = args[0];
122
+ } else {
123
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
124
+ }
125
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/stats/", { params });
126
+ return response;
127
+ }
128
+
129
+ /**
130
+ * Admin ViewSet for comprehensive system statistics. Provides aggregated
131
+ * statistics across all system components.
132
+ */
133
+ async adminApiStatsRetrieve(id: string): Promise<Models.AdminPaymentStats> {
134
+ const response = await this.client.request('GET', `/cfg/payments/admin/api/stats/${id}/`);
135
+ return response;
136
+ }
137
+
138
+ /**
139
+ * Get detailed payment statistics.
140
+ */
141
+ async adminApiStatsPaymentsRetrieve(): Promise<Models.AdminPaymentStats> {
142
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/stats/payments/");
143
+ return response;
144
+ }
145
+
146
+ /**
147
+ * Get system health and performance statistics.
148
+ */
149
+ async adminApiStatsSystemRetrieve(): Promise<Models.AdminPaymentStats> {
150
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/stats/system/");
151
+ return response;
152
+ }
153
+
154
+ /**
155
+ * Get detailed webhook statistics.
156
+ */
157
+ async adminApiStatsWebhooksRetrieve(): Promise<Models.AdminPaymentStats> {
158
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/stats/webhooks/");
159
+ return response;
160
+ }
161
+
162
+ async adminApiUsersList(is_active?: boolean, is_staff?: boolean, is_superuser?: boolean, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedAdminUserList>;
163
+ async adminApiUsersList(params?: { is_active?: boolean; is_staff?: boolean; is_superuser?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedAdminUserList>;
164
+
165
+ /**
166
+ * Override list to limit results for dropdown.
167
+ */
168
+ async adminApiUsersList(...args: any[]): Promise<Models.PaginatedAdminUserList> {
169
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
170
+
171
+ let params;
172
+ if (isParamsObject) {
173
+ params = args[0];
174
+ } else {
175
+ params = { is_active: args[0], is_staff: args[1], is_superuser: args[2], ordering: args[3], page: args[4], page_size: args[5], search: args[6] };
176
+ }
177
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/users/", { params });
178
+ return response;
179
+ }
180
+
181
+ /**
182
+ * Admin ViewSet for user management. Provides read-only access to users
183
+ * for admin interface.
184
+ */
185
+ async adminApiUsersRetrieve(id: number): Promise<Models.AdminUser> {
186
+ const response = await this.client.request('GET', `/cfg/payments/admin/api/users/${id}/`);
187
+ return response;
188
+ }
189
+
190
+ /**
191
+ * Test webhook endpoint. Sends a test webhook to the specified URL with
192
+ * the given event type. Useful for developers to test their webhook
193
+ * implementations.
194
+ */
195
+ async adminApiWebhookTestTestCreate(data: Models.WebhookStatsRequest): Promise<Models.WebhookStats> {
196
+ const response = await this.client.request('POST', "/cfg/payments/admin/api/webhook-test/test/", { body: data });
197
+ return response;
198
+ }
199
+
200
+ async adminApiWebhooksList(ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedWebhookStatsList>;
201
+ async adminApiWebhooksList(params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedWebhookStatsList>;
202
+
203
+ /**
204
+ * List webhook providers and configurations with real ngrok URLs.
205
+ */
206
+ async adminApiWebhooksList(...args: any[]): Promise<Models.PaginatedWebhookStatsList> {
207
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
208
+
209
+ let params;
210
+ if (isParamsObject) {
211
+ params = args[0];
212
+ } else {
213
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
214
+ }
215
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/webhooks/", { params });
216
+ return response;
217
+ }
218
+
219
+ /**
220
+ * Admin ViewSet for webhook configuration management. Read-only view for
221
+ * webhook configurations and provider info. Requires admin permissions.
222
+ */
223
+ async adminApiWebhooksRetrieve(id: string): Promise<Models.WebhookStats> {
224
+ const response = await this.client.request('GET', `/cfg/payments/admin/api/webhooks/${id}/`);
225
+ return response;
226
+ }
227
+
228
+ async adminApiWebhooksEventsList(webhook_pk: string, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedWebhookEventListList>;
229
+ async adminApiWebhooksEventsList(webhook_pk: string, params?: { ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedWebhookEventListList>;
230
+
231
+ /**
232
+ * List webhook events with filtering and pagination.
233
+ */
234
+ async adminApiWebhooksEventsList(...args: any[]): Promise<Models.PaginatedWebhookEventListList> {
235
+ const webhook_pk = args[0];
236
+ const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
237
+
238
+ let params;
239
+ if (isParamsObject) {
240
+ params = args[1];
241
+ } else {
242
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
243
+ }
244
+ const response = await this.client.request('GET', `/cfg/payments/admin/api/webhooks/${webhook_pk}/events/`, { params });
245
+ return response;
246
+ }
247
+
248
+ /**
249
+ * Admin ViewSet for webhook events management. Provides listing,
250
+ * filtering, and actions for webhook events. Requires admin permissions.
251
+ */
252
+ async adminApiWebhooksEventsRetrieve(id: string, webhook_pk: string): Promise<Models.WebhookEventList[]> {
253
+ const response = await this.client.request('GET', `/cfg/payments/admin/api/webhooks/${webhook_pk}/events/${id}/`);
254
+ return (response as any).results || [];
255
+ }
256
+
257
+ /**
258
+ * Retry a failed webhook event.
259
+ */
260
+ async adminApiWebhooksEventsRetryCreate(id: string, webhook_pk: string, data: Models.WebhookEventListRequest): Promise<Models.WebhookEventList> {
261
+ const response = await this.client.request('POST', `/cfg/payments/admin/api/webhooks/${webhook_pk}/events/${id}/retry/`, { body: data });
262
+ return response;
263
+ }
264
+
265
+ /**
266
+ * Clear all webhook events.
267
+ */
268
+ async adminApiWebhooksEventsClearAllCreate(webhook_pk: string, data: Models.WebhookEventListRequest): Promise<Models.WebhookEventList> {
269
+ const response = await this.client.request('POST', `/cfg/payments/admin/api/webhooks/${webhook_pk}/events/clear_all/`, { body: data });
270
+ return response;
271
+ }
272
+
273
+ /**
274
+ * Retry all failed webhook events.
275
+ */
276
+ async adminApiWebhooksEventsRetryFailedCreate(webhook_pk: string, data: Models.WebhookEventListRequest): Promise<Models.WebhookEventList> {
277
+ const response = await this.client.request('POST', `/cfg/payments/admin/api/webhooks/${webhook_pk}/events/retry_failed/`, { body: data });
278
+ return response;
279
+ }
280
+
281
+ /**
282
+ * Get webhook statistics.
283
+ */
284
+ async adminApiWebhooksStatsRetrieve(): Promise<Models.WebhookStats> {
285
+ const response = await this.client.request('GET', "/cfg/payments/admin/api/webhooks/stats/");
286
+ return response;
287
+ }
288
+
289
+ async apiKeysList(is_active?: boolean, ordering?: string, page?: number, page_size?: number, search?: string, user?: number): Promise<Models.PaginatedAPIKeyListList>;
290
+ async apiKeysList(params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string; user?: number }): Promise<Models.PaginatedAPIKeyListList>;
291
+
292
+ /**
293
+ * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
294
+ * all API keys with filtering and stats.
295
+ */
296
+ async apiKeysList(...args: any[]): Promise<Models.PaginatedAPIKeyListList> {
297
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
298
+
299
+ let params;
300
+ if (isParamsObject) {
301
+ params = args[0];
302
+ } else {
303
+ params = { is_active: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4], user: args[5] };
304
+ }
305
+ const response = await this.client.request('GET', "/cfg/payments/api-keys/", { params });
306
+ return response;
307
+ }
308
+
309
+ /**
310
+ * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
311
+ * all API keys with filtering and stats.
312
+ */
313
+ async apiKeysCreate(data: Models.APIKeyCreateRequest): Promise<Models.APIKeyCreate> {
314
+ const response = await this.client.request('POST', "/cfg/payments/api-keys/", { body: data });
315
+ return response;
316
+ }
317
+
318
+ /**
319
+ * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
320
+ * all API keys with filtering and stats.
321
+ */
322
+ async apiKeysRetrieve(id: string): Promise<Models.APIKeyDetail> {
323
+ const response = await this.client.request('GET', `/cfg/payments/api-keys/${id}/`);
324
+ return response;
325
+ }
326
+
327
+ /**
328
+ * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
329
+ * all API keys with filtering and stats.
330
+ */
331
+ async apiKeysUpdate(id: string, data: Models.APIKeyUpdateRequest): Promise<Models.APIKeyUpdate> {
332
+ const response = await this.client.request('PUT', `/cfg/payments/api-keys/${id}/`, { body: data });
333
+ return response;
334
+ }
335
+
336
+ /**
337
+ * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
338
+ * all API keys with filtering and stats.
339
+ */
340
+ async apiKeysPartialUpdate(id: string, data?: Models.PatchedAPIKeyUpdateRequest): Promise<Models.APIKeyUpdate> {
341
+ const response = await this.client.request('PATCH', `/cfg/payments/api-keys/${id}/`, { body: data });
342
+ return response;
343
+ }
344
+
345
+ /**
346
+ * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
347
+ * all API keys with filtering and stats.
348
+ */
349
+ async apiKeysDestroy(id: string): Promise<void> {
350
+ const response = await this.client.request('DELETE', `/cfg/payments/api-keys/${id}/`);
351
+ return;
352
+ }
353
+
354
+ /**
355
+ * Perform action on API key. POST /api/api-keys/{id}/perform_action/
356
+ */
357
+ async apiKeysPerformActionCreate(id: string): Promise<Models.APIKeyDetail> {
358
+ const response = await this.client.request('POST', `/cfg/payments/api-keys/${id}/perform_action/`);
359
+ return response;
360
+ }
361
+
362
+ /**
363
+ * Get API key analytics. GET /api/api-keys/analytics/?days=30
364
+ */
365
+ async apiKeysAnalyticsRetrieve(): Promise<Models.APIKeyDetail> {
366
+ const response = await this.client.request('GET', "/cfg/payments/api-keys/analytics/");
367
+ return response;
368
+ }
369
+
370
+ /**
371
+ * Get API keys grouped by user. GET /api/api-keys/by_user/
372
+ */
373
+ async apiKeysByUserRetrieve(): Promise<Models.APIKeyDetail> {
374
+ const response = await this.client.request('GET', "/cfg/payments/api-keys/by_user/");
375
+ return response;
376
+ }
377
+
378
+ /**
379
+ * Standalone API key creation endpoint: /api/api-keys/create/ Simplified
380
+ * endpoint for API key creation.
381
+ */
382
+ async apiKeysCreateCreate(data: Models.APIKeyCreateRequest): Promise<Models.APIKeyCreate> {
383
+ const response = await this.client.request('POST', "/cfg/payments/api-keys/create/", { body: data });
384
+ return response;
385
+ }
386
+
387
+ /**
388
+ * Get API keys expiring soon. GET /api/api-keys/expiring_soon/?days=7
389
+ */
390
+ async apiKeysExpiringSoonRetrieve(): Promise<Models.APIKeyDetail> {
391
+ const response = await this.client.request('GET', "/cfg/payments/api-keys/expiring_soon/");
392
+ return response;
393
+ }
394
+
395
+ /**
396
+ * Health check for the ViewSet and related services. Returns service
397
+ * status and basic metrics.
398
+ */
399
+ async apiKeysHealthRetrieve(): Promise<Models.APIKeyDetail> {
400
+ const response = await this.client.request('GET', "/cfg/payments/api-keys/health/");
401
+ return response;
402
+ }
403
+
404
+ /**
405
+ * Get statistics for the current queryset. Returns counts, aggregates, and
406
+ * breakdowns.
407
+ */
408
+ async apiKeysStatsRetrieve(): Promise<Models.APIKeyDetail> {
409
+ const response = await this.client.request('GET', "/cfg/payments/api-keys/stats/");
410
+ return response;
411
+ }
412
+
413
+ /**
414
+ * Validate API Key (Standalone)
415
+ *
416
+ * Standalone endpoint to validate an API key and return key information
417
+ */
418
+ async apiKeysValidateCreate(data: Models.APIKeyValidationRequest): Promise<Models.APIKeyValidationResponse> {
419
+ const response = await this.client.request('POST', "/cfg/payments/api-keys/validate/", { body: data });
420
+ return response;
421
+ }
422
+
423
+ /**
424
+ * Validate API Key
425
+ *
426
+ * Validate an API key and return key information
427
+ */
428
+ async apiKeysValidateKeyCreate(data: Models.APIKeyValidationRequest): Promise<Models.APIKeyValidationResponse> {
429
+ const response = await this.client.request('POST', "/cfg/payments/api-keys/validate_key/", { body: data });
430
+ return response;
431
+ }
432
+
433
+ async balancesList(ordering?: string, page?: number, page_size?: number, search?: string, user?: number): Promise<Models.PaginatedUserBalanceList>;
434
+ async balancesList(params?: { ordering?: string; page?: number; page_size?: number; search?: string; user?: number }): Promise<Models.PaginatedUserBalanceList>;
435
+
436
+ /**
437
+ * User balance ViewSet: /api/balances/ Read-only access to user balances
438
+ * with statistics.
439
+ */
440
+ async balancesList(...args: any[]): Promise<Models.PaginatedUserBalanceList> {
441
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
442
+
443
+ let params;
444
+ if (isParamsObject) {
445
+ params = args[0];
446
+ } else {
447
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3], user: args[4] };
448
+ }
449
+ const response = await this.client.request('GET', "/cfg/payments/balances/", { params });
450
+ return response;
451
+ }
452
+
453
+ /**
454
+ * User balance ViewSet: /api/balances/ Read-only access to user balances
455
+ * with statistics.
456
+ */
457
+ async balancesRetrieve(id: number): Promise<Models.UserBalance> {
458
+ const response = await this.client.request('GET', `/cfg/payments/balances/${id}/`);
459
+ return response;
460
+ }
461
+
462
+ /**
463
+ * Get balance analytics. GET /api/balances/analytics/?days=30
464
+ */
465
+ async balancesAnalyticsRetrieve(): Promise<Models.UserBalance> {
466
+ const response = await this.client.request('GET', "/cfg/payments/balances/analytics/");
467
+ return response;
468
+ }
469
+
470
+ /**
471
+ * Health check for the ViewSet and related services. Returns service
472
+ * status and basic metrics.
473
+ */
474
+ async balancesHealthRetrieve(): Promise<Models.UserBalance> {
475
+ const response = await this.client.request('GET', "/cfg/payments/balances/health/");
476
+ return response;
477
+ }
478
+
479
+ /**
480
+ * Get statistics for the current queryset. Returns counts, aggregates, and
481
+ * breakdowns.
482
+ */
483
+ async balancesStatsRetrieve(): Promise<Models.UserBalance> {
484
+ const response = await this.client.request('GET', "/cfg/payments/balances/stats/");
485
+ return response;
486
+ }
487
+
488
+ /**
489
+ * Get balance summary for all users. GET /api/balances/summary/
490
+ */
491
+ async balancesSummaryRetrieve(): Promise<Models.UserBalance> {
492
+ const response = await this.client.request('GET', "/cfg/payments/balances/summary/");
493
+ return response;
494
+ }
495
+
496
+ async currenciesList(currency_type?: string, is_active?: boolean, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedCurrencyListList>;
497
+ async currenciesList(params?: { currency_type?: string; is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedCurrencyListList>;
498
+
499
+ /**
500
+ * Currency ViewSet: /api/currencies/ Read-only access to currency
501
+ * information with conversion capabilities.
502
+ */
503
+ async currenciesList(...args: any[]): Promise<Models.PaginatedCurrencyListList> {
504
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
505
+
506
+ let params;
507
+ if (isParamsObject) {
508
+ params = args[0];
509
+ } else {
510
+ params = { currency_type: args[0], is_active: args[1], ordering: args[2], page: args[3], page_size: args[4], search: args[5] };
511
+ }
512
+ const response = await this.client.request('GET', "/cfg/payments/currencies/", { params });
513
+ return response;
514
+ }
515
+
516
+ /**
517
+ * Disable create action.
518
+ */
519
+ async currenciesCreate(): Promise<Models.Currency> {
520
+ const response = await this.client.request('POST', "/cfg/payments/currencies/");
521
+ return response;
522
+ }
523
+
524
+ /**
525
+ * Currency ViewSet: /api/currencies/ Read-only access to currency
526
+ * information with conversion capabilities.
527
+ */
528
+ async currenciesRetrieve(id: number): Promise<Models.Currency> {
529
+ const response = await this.client.request('GET', `/cfg/payments/currencies/${id}/`);
530
+ return response;
531
+ }
532
+
533
+ /**
534
+ * Get networks for specific currency. GET /api/currencies/{id}/networks/
535
+ */
536
+ async currenciesNetworksRetrieve(id: number): Promise<Models.Currency> {
537
+ const response = await this.client.request('GET', `/cfg/payments/currencies/${id}/networks/`);
538
+ return response;
539
+ }
540
+
541
+ /**
542
+ * Get providers supporting specific currency. GET
543
+ * /api/currencies/{id}/providers/
544
+ */
545
+ async currenciesProvidersRetrieve(id: number): Promise<Models.Currency> {
546
+ const response = await this.client.request('GET', `/cfg/payments/currencies/${id}/providers/`);
547
+ return response;
548
+ }
549
+
550
+ /**
551
+ * Convert between currencies. POST /api/currencies/convert/
552
+ */
553
+ async currenciesConvertCreate(): Promise<Models.Currency> {
554
+ const response = await this.client.request('POST', "/cfg/payments/currencies/convert/");
555
+ return response;
556
+ }
557
+
558
+ /**
559
+ * Get only cryptocurrencies. GET /api/currencies/crypto/
560
+ */
561
+ async currenciesCryptoRetrieve(): Promise<Models.Currency> {
562
+ const response = await this.client.request('GET', "/cfg/payments/currencies/crypto/");
563
+ return response;
564
+ }
565
+
566
+ /**
567
+ * Get only fiat currencies. GET /api/currencies/fiat/
568
+ */
569
+ async currenciesFiatRetrieve(): Promise<Models.Currency> {
570
+ const response = await this.client.request('GET', "/cfg/payments/currencies/fiat/");
571
+ return response;
572
+ }
573
+
574
+ /**
575
+ * Health check for the ViewSet and related services. Returns service
576
+ * status and basic metrics.
577
+ */
578
+ async currenciesHealthRetrieve(): Promise<Models.Currency> {
579
+ const response = await this.client.request('GET', "/cfg/payments/currencies/health/");
580
+ return response;
581
+ }
582
+
583
+ async currenciesRatesRetrieve(base_currency: string, currencies: string): Promise<Models.Currency>;
584
+ async currenciesRatesRetrieve(params: { base_currency: string; currencies: string }): Promise<Models.Currency>;
585
+
586
+ /**
587
+ * Get exchange rates
588
+ *
589
+ * Get current exchange rates for specified currencies
590
+ */
591
+ async currenciesRatesRetrieve(...args: any[]): Promise<Models.Currency> {
592
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
593
+
594
+ let params;
595
+ if (isParamsObject) {
596
+ params = args[0];
597
+ } else {
598
+ params = { base_currency: args[0], currencies: args[1] };
599
+ }
600
+ const response = await this.client.request('GET', "/cfg/payments/currencies/rates/", { params });
601
+ return response;
602
+ }
603
+
604
+ /**
605
+ * Get only stablecoins. GET /api/currencies/stable/
606
+ */
607
+ async currenciesStableRetrieve(): Promise<Models.Currency> {
608
+ const response = await this.client.request('GET', "/cfg/payments/currencies/stable/");
609
+ return response;
610
+ }
611
+
612
+ /**
613
+ * Get statistics for the current queryset. Returns counts, aggregates, and
614
+ * breakdowns.
615
+ */
616
+ async currenciesStatsRetrieve(): Promise<Models.Currency> {
617
+ const response = await this.client.request('GET', "/cfg/payments/currencies/stats/");
618
+ return response;
619
+ }
620
+
621
+ async currenciesSupportedRetrieve(currency_type?: string, provider?: string): Promise<Models.Currency>;
622
+ async currenciesSupportedRetrieve(params?: { currency_type?: string; provider?: string }): Promise<Models.Currency>;
623
+
624
+ /**
625
+ * Get supported currencies
626
+ *
627
+ * Get list of supported currencies from payment providers
628
+ */
629
+ async currenciesSupportedRetrieve(...args: any[]): Promise<Models.Currency> {
630
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
631
+
632
+ let params;
633
+ if (isParamsObject) {
634
+ params = args[0];
635
+ } else {
636
+ params = { currency_type: args[0], provider: args[1] };
637
+ }
638
+ const response = await this.client.request('GET', "/cfg/payments/currencies/supported/", { params });
639
+ return response;
640
+ }
641
+
642
+ async endpointGroupsList(is_enabled?: boolean, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedEndpointGroupList>;
643
+ async endpointGroupsList(params?: { is_enabled?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedEndpointGroupList>;
644
+
645
+ /**
646
+ * Endpoint Group ViewSet: /api/endpoint-groups/ Read-only access to
647
+ * endpoint group information.
648
+ */
649
+ async endpointGroupsList(...args: any[]): Promise<Models.PaginatedEndpointGroupList> {
650
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
651
+
652
+ let params;
653
+ if (isParamsObject) {
654
+ params = args[0];
655
+ } else {
656
+ params = { is_enabled: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
657
+ }
658
+ const response = await this.client.request('GET', "/cfg/payments/endpoint-groups/", { params });
659
+ return response;
660
+ }
661
+
662
+ /**
663
+ * Endpoint Group ViewSet: /api/endpoint-groups/ Read-only access to
664
+ * endpoint group information.
665
+ */
666
+ async endpointGroupsRetrieve(id: number): Promise<Models.EndpointGroup> {
667
+ const response = await this.client.request('GET', `/cfg/payments/endpoint-groups/${id}/`);
668
+ return response;
669
+ }
670
+
671
+ /**
672
+ * Get available endpoint groups for subscription. GET
673
+ * /api/endpoint-groups/available/
674
+ */
675
+ async endpointGroupsAvailableRetrieve(): Promise<Models.EndpointGroup> {
676
+ const response = await this.client.request('GET', "/cfg/payments/endpoint-groups/available/");
677
+ return response;
678
+ }
679
+
680
+ /**
681
+ * Health check for the ViewSet and related services. Returns service
682
+ * status and basic metrics.
683
+ */
684
+ async endpointGroupsHealthRetrieve(): Promise<Models.EndpointGroup> {
685
+ const response = await this.client.request('GET', "/cfg/payments/endpoint-groups/health/");
686
+ return response;
687
+ }
688
+
689
+ /**
690
+ * Get statistics for the current queryset. Returns counts, aggregates, and
691
+ * breakdowns.
692
+ */
693
+ async endpointGroupsStatsRetrieve(): Promise<Models.EndpointGroup> {
694
+ const response = await this.client.request('GET', "/cfg/payments/endpoint-groups/stats/");
695
+ return response;
696
+ }
697
+
698
+ /**
699
+ * Health check for the ViewSet and related services. Returns service
700
+ * status and basic metrics.
701
+ */
702
+ async healthRetrieve(): Promise<Models.Payment> {
703
+ const response = await this.client.request('GET', "/cfg/payments/health/");
704
+ return response;
705
+ }
706
+
707
+ async networksList(is_active?: boolean, native_currency__code?: string, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedNetworkList>;
708
+ async networksList(params?: { is_active?: boolean; native_currency__code?: string; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedNetworkList>;
709
+
710
+ /**
711
+ * Network ViewSet: /api/networks/ Read-only access to blockchain network
712
+ * information.
713
+ */
714
+ async networksList(...args: any[]): Promise<Models.PaginatedNetworkList> {
715
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
716
+
717
+ let params;
718
+ if (isParamsObject) {
719
+ params = args[0];
720
+ } else {
721
+ params = { is_active: args[0], native_currency__code: args[1], ordering: args[2], page: args[3], page_size: args[4], search: args[5] };
722
+ }
723
+ const response = await this.client.request('GET', "/cfg/payments/networks/", { params });
724
+ return response;
725
+ }
726
+
727
+ /**
728
+ * Network ViewSet: /api/networks/ Read-only access to blockchain network
729
+ * information.
730
+ */
731
+ async networksRetrieve(id: number): Promise<Models.Network> {
732
+ const response = await this.client.request('GET', `/cfg/payments/networks/${id}/`);
733
+ return response;
734
+ }
735
+
736
+ /**
737
+ * Get networks grouped by currency. GET /api/networks/by_currency/
738
+ */
739
+ async networksByCurrencyRetrieve(): Promise<Models.Network> {
740
+ const response = await this.client.request('GET', "/cfg/payments/networks/by_currency/");
741
+ return response;
742
+ }
743
+
744
+ /**
745
+ * Health check for the ViewSet and related services. Returns service
746
+ * status and basic metrics.
747
+ */
748
+ async networksHealthRetrieve(): Promise<Models.Network> {
749
+ const response = await this.client.request('GET', "/cfg/payments/networks/health/");
750
+ return response;
751
+ }
752
+
753
+ /**
754
+ * Get statistics for the current queryset. Returns counts, aggregates, and
755
+ * breakdowns.
756
+ */
757
+ async networksStatsRetrieve(): Promise<Models.Network> {
758
+ const response = await this.client.request('GET', "/cfg/payments/networks/stats/");
759
+ return response;
760
+ }
761
+
762
+ /**
763
+ * API Keys Overview
764
+ *
765
+ * Get API keys overview
766
+ */
767
+ async overviewDashboardApiKeysOverviewRetrieve(): Promise<Models.APIKeysOverview> {
768
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/api_keys_overview/");
769
+ return response;
770
+ }
771
+
772
+ /**
773
+ * Balance Overview
774
+ *
775
+ * Get user balance overview
776
+ */
777
+ async overviewDashboardBalanceOverviewRetrieve(): Promise<Models.BalanceOverview> {
778
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/balance_overview/");
779
+ return response;
780
+ }
781
+
782
+ async overviewDashboardChartDataRetrieve(period?: string): Promise<Models.PaymentsChartResponse>;
783
+ async overviewDashboardChartDataRetrieve(params?: { period?: string }): Promise<Models.PaymentsChartResponse>;
784
+
785
+ /**
786
+ * Payments Chart Data
787
+ *
788
+ * Get chart data for payments visualization
789
+ */
790
+ async overviewDashboardChartDataRetrieve(...args: any[]): Promise<Models.PaymentsChartResponse> {
791
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
792
+
793
+ let params;
794
+ if (isParamsObject) {
795
+ params = args[0];
796
+ } else {
797
+ params = { period: args[0] };
798
+ }
799
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/chart_data/", { params });
800
+ return response;
801
+ }
802
+
803
+ /**
804
+ * Payments Dashboard Metrics
805
+ *
806
+ * Get payments dashboard metrics including balance, subscriptions, API
807
+ * keys, and payments
808
+ */
809
+ async overviewDashboardMetricsRetrieve(): Promise<Models.PaymentsMetrics> {
810
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/metrics/");
811
+ return response;
812
+ }
813
+
814
+ /**
815
+ * Payments Dashboard Overview
816
+ *
817
+ * Get complete payments dashboard overview with metrics, recent payments,
818
+ * and analytics
819
+ */
820
+ async overviewDashboardOverviewRetrieve(): Promise<Models.PaymentsDashboardOverview> {
821
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/overview/");
822
+ return response;
823
+ }
824
+
825
+ async overviewDashboardPaymentAnalyticsRetrieve(limit?: number): Promise<Models.PaymentAnalyticsResponse>;
826
+ async overviewDashboardPaymentAnalyticsRetrieve(params?: { limit?: number }): Promise<Models.PaymentAnalyticsResponse>;
827
+
828
+ /**
829
+ * Payment Analytics
830
+ *
831
+ * Get analytics for payments by currency and provider
832
+ */
833
+ async overviewDashboardPaymentAnalyticsRetrieve(...args: any[]): Promise<Models.PaymentAnalyticsResponse> {
834
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
835
+
836
+ let params;
837
+ if (isParamsObject) {
838
+ params = args[0];
839
+ } else {
840
+ params = { limit: args[0] };
841
+ }
842
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/payment_analytics/", { params });
843
+ return response;
844
+ }
845
+
846
+ async overviewDashboardRecentPaymentsList(limit?: number, page?: number, page_size?: number): Promise<Models.PaginatedRecentPaymentList>;
847
+ async overviewDashboardRecentPaymentsList(params?: { limit?: number; page?: number; page_size?: number }): Promise<Models.PaginatedRecentPaymentList>;
848
+
849
+ /**
850
+ * Recent Payments
851
+ *
852
+ * Get recent payments for the user
853
+ */
854
+ async overviewDashboardRecentPaymentsList(...args: any[]): Promise<Models.PaginatedRecentPaymentList> {
855
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
856
+
857
+ let params;
858
+ if (isParamsObject) {
859
+ params = args[0];
860
+ } else {
861
+ params = { limit: args[0], page: args[1], page_size: args[2] };
862
+ }
863
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/recent_payments/", { params });
864
+ return response;
865
+ }
866
+
867
+ async overviewDashboardRecentTransactionsList(limit?: number, page?: number, page_size?: number): Promise<Models.PaginatedRecentTransactionList>;
868
+ async overviewDashboardRecentTransactionsList(params?: { limit?: number; page?: number; page_size?: number }): Promise<Models.PaginatedRecentTransactionList>;
869
+
870
+ /**
871
+ * Recent Transactions
872
+ *
873
+ * Get recent balance transactions for the user
874
+ */
875
+ async overviewDashboardRecentTransactionsList(...args: any[]): Promise<Models.PaginatedRecentTransactionList> {
876
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
877
+
878
+ let params;
879
+ if (isParamsObject) {
880
+ params = args[0];
881
+ } else {
882
+ params = { limit: args[0], page: args[1], page_size: args[2] };
883
+ }
884
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/recent_transactions/", { params });
885
+ return response;
886
+ }
887
+
888
+ /**
889
+ * Subscription Overview
890
+ *
891
+ * Get current subscription overview
892
+ */
893
+ async overviewDashboardSubscriptionOverviewRetrieve(): Promise<Models.SubscriptionOverview> {
894
+ const response = await this.client.request('GET', "/cfg/payments/overview/dashboard/subscription_overview/");
895
+ return response;
896
+ }
897
+
898
+ async paymentList(currency__code?: string, ordering?: string, page?: number, page_size?: number, provider?: string, search?: string, status?: string, user?: number): Promise<Models.PaginatedPaymentListList>;
899
+ async paymentList(params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }): Promise<Models.PaginatedPaymentListList>;
900
+
901
+ /**
902
+ * Global payment ViewSet: /api/v1/payments/ Provides admin-level access to
903
+ * all payments with filtering and stats.
904
+ */
905
+ async paymentList(...args: any[]): Promise<Models.PaginatedPaymentListList> {
906
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
907
+
908
+ let params;
909
+ if (isParamsObject) {
910
+ params = args[0];
911
+ } else {
912
+ params = { currency__code: args[0], ordering: args[1], page: args[2], page_size: args[3], provider: args[4], search: args[5], status: args[6], user: args[7] };
913
+ }
914
+ const response = await this.client.request('GET', "/cfg/payments/payment/", { params });
915
+ return response;
916
+ }
917
+
918
+ /**
919
+ * Global payment ViewSet: /api/v1/payments/ Provides admin-level access to
920
+ * all payments with filtering and stats.
921
+ */
922
+ async paymentCreate(data: Models.PaymentCreateRequest): Promise<Models.PaymentCreate> {
923
+ const response = await this.client.request('POST', "/cfg/payments/payment/", { body: data });
924
+ return response;
925
+ }
926
+
927
+ /**
928
+ * Global payment ViewSet: /api/v1/payments/ Provides admin-level access to
929
+ * all payments with filtering and stats.
930
+ */
931
+ async paymentRetrieve(id: string): Promise<Models.Payment> {
932
+ const response = await this.client.request('GET', `/cfg/payments/payment/${id}/`);
933
+ return response;
934
+ }
935
+
936
+ /**
937
+ * Global payment ViewSet: /api/v1/payments/ Provides admin-level access to
938
+ * all payments with filtering and stats.
939
+ */
940
+ async paymentUpdate(id: string, data: Models.PaymentRequest): Promise<Models.Payment> {
941
+ const response = await this.client.request('PUT', `/cfg/payments/payment/${id}/`, { body: data });
942
+ return response;
943
+ }
944
+
945
+ /**
946
+ * Global payment ViewSet: /api/v1/payments/ Provides admin-level access to
947
+ * all payments with filtering and stats.
948
+ */
949
+ async paymentPartialUpdate(id: string, data?: Models.PatchedPaymentRequest): Promise<Models.Payment> {
950
+ const response = await this.client.request('PATCH', `/cfg/payments/payment/${id}/`, { body: data });
951
+ return response;
952
+ }
953
+
954
+ /**
955
+ * Global payment ViewSet: /api/v1/payments/ Provides admin-level access to
956
+ * all payments with filtering and stats.
957
+ */
958
+ async paymentDestroy(id: string): Promise<void> {
959
+ const response = await this.client.request('DELETE', `/cfg/payments/payment/${id}/`);
960
+ return;
961
+ }
962
+
963
+ /**
964
+ * Cancel payment. POST /api/v1/payments/{id}/cancel/
965
+ */
966
+ async paymentCancelCreate(id: string, data: Models.PaymentRequest): Promise<Models.Payment> {
967
+ const response = await this.client.request('POST', `/cfg/payments/payment/${id}/cancel/`, { body: data });
968
+ return response;
969
+ }
970
+
971
+ /**
972
+ * Check payment status with provider. POST
973
+ * /api/v1/payments/{id}/check_status/
974
+ */
975
+ async paymentCheckStatusCreate(id: string, data: Models.PaymentRequest): Promise<Models.Payment> {
976
+ const response = await this.client.request('POST', `/cfg/payments/payment/${id}/check_status/`, { body: data });
977
+ return response;
978
+ }
979
+
980
+ /**
981
+ * Get payment analytics. GET /api/v1/payments/analytics/?days=30
982
+ */
983
+ async paymentAnalyticsRetrieve(): Promise<Models.Payment> {
984
+ const response = await this.client.request('GET', "/cfg/payments/payment/analytics/");
985
+ return response;
986
+ }
987
+
988
+ /**
989
+ * Get payments grouped by provider. GET /api/v1/payments/by_provider/
990
+ */
991
+ async paymentByProviderRetrieve(): Promise<Models.Payment> {
992
+ const response = await this.client.request('GET', "/cfg/payments/payment/by_provider/");
993
+ return response;
994
+ }
995
+
996
+ /**
997
+ * Standalone payment creation endpoint: /api/v1/payments/create/
998
+ * Simplified endpoint for payment creation without full ViewSet overhead.
999
+ */
1000
+ async paymentCreateCreate(data: Models.PaymentCreateRequest): Promise<Models.PaymentCreate> {
1001
+ const response = await this.client.request('POST', "/cfg/payments/payment/create/", { body: data });
1002
+ return response;
1003
+ }
1004
+
1005
+ /**
1006
+ * Health check for the ViewSet and related services. Returns service
1007
+ * status and basic metrics.
1008
+ */
1009
+ async paymentHealthRetrieve(): Promise<Models.Payment> {
1010
+ const response = await this.client.request('GET', "/cfg/payments/payment/health/");
1011
+ return response;
1012
+ }
1013
+
1014
+ /**
1015
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1016
+ * breakdowns.
1017
+ */
1018
+ async paymentStatsRetrieve(): Promise<Models.Payment> {
1019
+ const response = await this.client.request('GET', "/cfg/payments/payment/stats/");
1020
+ return response;
1021
+ }
1022
+
1023
+ /**
1024
+ * Standalone payment status endpoint: /api/v1/payments/{id}/status/ Quick
1025
+ * status check without full ViewSet overhead.
1026
+ */
1027
+ async paymentStatusRetrieve(id: string): Promise<Models.Payment> {
1028
+ const response = await this.client.request('GET', `/cfg/payments/payment/status/${id}/`);
1029
+ return response;
1030
+ }
1031
+
1032
+ async providerCurrenciesList(currency__code?: string, is_enabled?: boolean, network__code?: string, ordering?: string, page?: number, page_size?: number, provider?: string, search?: string): Promise<Models.PaginatedProviderCurrencyList>;
1033
+ async providerCurrenciesList(params?: { currency__code?: string; is_enabled?: boolean; network__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string }): Promise<Models.PaginatedProviderCurrencyList>;
1034
+
1035
+ /**
1036
+ * Provider Currency ViewSet: /api/provider-currencies/ Read-only access to
1037
+ * provider-specific currency information.
1038
+ */
1039
+ async providerCurrenciesList(...args: any[]): Promise<Models.PaginatedProviderCurrencyList> {
1040
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
1041
+
1042
+ let params;
1043
+ if (isParamsObject) {
1044
+ params = args[0];
1045
+ } else {
1046
+ params = { currency__code: args[0], is_enabled: args[1], network__code: args[2], ordering: args[3], page: args[4], page_size: args[5], provider: args[6], search: args[7] };
1047
+ }
1048
+ const response = await this.client.request('GET', "/cfg/payments/provider-currencies/", { params });
1049
+ return response;
1050
+ }
1051
+
1052
+ /**
1053
+ * Provider Currency ViewSet: /api/provider-currencies/ Read-only access to
1054
+ * provider-specific currency information.
1055
+ */
1056
+ async providerCurrenciesRetrieve(id: number): Promise<Models.ProviderCurrency> {
1057
+ const response = await this.client.request('GET', `/cfg/payments/provider-currencies/${id}/`);
1058
+ return response;
1059
+ }
1060
+
1061
+ async providerCurrenciesByProviderRetrieve(provider?: string): Promise<Models.ProviderCurrency>;
1062
+ async providerCurrenciesByProviderRetrieve(params?: { provider?: string }): Promise<Models.ProviderCurrency>;
1063
+
1064
+ /**
1065
+ * Get provider currencies grouped by provider
1066
+ *
1067
+ * Get provider currencies grouped by provider
1068
+ */
1069
+ async providerCurrenciesByProviderRetrieve(...args: any[]): Promise<Models.ProviderCurrency> {
1070
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
1071
+
1072
+ let params;
1073
+ if (isParamsObject) {
1074
+ params = args[0];
1075
+ } else {
1076
+ params = { provider: args[0] };
1077
+ }
1078
+ const response = await this.client.request('GET', "/cfg/payments/provider-currencies/by_provider/", { params });
1079
+ return response;
1080
+ }
1081
+
1082
+ /**
1083
+ * Health check for the ViewSet and related services. Returns service
1084
+ * status and basic metrics.
1085
+ */
1086
+ async providerCurrenciesHealthRetrieve(): Promise<Models.ProviderCurrency> {
1087
+ const response = await this.client.request('GET', "/cfg/payments/provider-currencies/health/");
1088
+ return response;
1089
+ }
1090
+
1091
+ /**
1092
+ * Get currency limits by provider. GET
1093
+ * /api/provider-currencies/limits/?provider=nowpayments
1094
+ */
1095
+ async providerCurrenciesLimitsRetrieve(): Promise<Models.ProviderCurrency> {
1096
+ const response = await this.client.request('GET', "/cfg/payments/provider-currencies/limits/");
1097
+ return response;
1098
+ }
1099
+
1100
+ /**
1101
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1102
+ * breakdowns.
1103
+ */
1104
+ async providerCurrenciesStatsRetrieve(): Promise<Models.ProviderCurrency> {
1105
+ const response = await this.client.request('GET', "/cfg/payments/provider-currencies/stats/");
1106
+ return response;
1107
+ }
1108
+
1109
+ async subscriptionsList(ordering?: string, page?: number, page_size?: number, search?: string, status?: string, tier?: string, user?: number): Promise<Models.PaginatedSubscriptionListList>;
1110
+ async subscriptionsList(params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string; user?: number }): Promise<Models.PaginatedSubscriptionListList>;
1111
+
1112
+ /**
1113
+ * Global subscription ViewSet: /api/subscriptions/ Provides admin-level
1114
+ * access to all subscriptions with filtering and stats.
1115
+ */
1116
+ async subscriptionsList(...args: any[]): Promise<Models.PaginatedSubscriptionListList> {
1117
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
1118
+
1119
+ let params;
1120
+ if (isParamsObject) {
1121
+ params = args[0];
1122
+ } else {
1123
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3], status: args[4], tier: args[5], user: args[6] };
1124
+ }
1125
+ const response = await this.client.request('GET', "/cfg/payments/subscriptions/", { params });
1126
+ return response;
1127
+ }
1128
+
1129
+ /**
1130
+ * Global subscription ViewSet: /api/subscriptions/ Provides admin-level
1131
+ * access to all subscriptions with filtering and stats.
1132
+ */
1133
+ async subscriptionsCreate(data: Models.SubscriptionCreateRequest): Promise<Models.SubscriptionCreate> {
1134
+ const response = await this.client.request('POST', "/cfg/payments/subscriptions/", { body: data });
1135
+ return response;
1136
+ }
1137
+
1138
+ /**
1139
+ * Global subscription ViewSet: /api/subscriptions/ Provides admin-level
1140
+ * access to all subscriptions with filtering and stats.
1141
+ */
1142
+ async subscriptionsRetrieve(id: string): Promise<Models.Subscription> {
1143
+ const response = await this.client.request('GET', `/cfg/payments/subscriptions/${id}/`);
1144
+ return response;
1145
+ }
1146
+
1147
+ /**
1148
+ * Global subscription ViewSet: /api/subscriptions/ Provides admin-level
1149
+ * access to all subscriptions with filtering and stats.
1150
+ */
1151
+ async subscriptionsUpdate(id: string, data: Models.SubscriptionRequest): Promise<Models.Subscription> {
1152
+ const response = await this.client.request('PUT', `/cfg/payments/subscriptions/${id}/`, { body: data });
1153
+ return response;
1154
+ }
1155
+
1156
+ /**
1157
+ * Global subscription ViewSet: /api/subscriptions/ Provides admin-level
1158
+ * access to all subscriptions with filtering and stats.
1159
+ */
1160
+ async subscriptionsPartialUpdate(id: string, data?: Models.PatchedSubscriptionRequest): Promise<Models.Subscription> {
1161
+ const response = await this.client.request('PATCH', `/cfg/payments/subscriptions/${id}/`, { body: data });
1162
+ return response;
1163
+ }
1164
+
1165
+ /**
1166
+ * Global subscription ViewSet: /api/subscriptions/ Provides admin-level
1167
+ * access to all subscriptions with filtering and stats.
1168
+ */
1169
+ async subscriptionsDestroy(id: string): Promise<void> {
1170
+ const response = await this.client.request('DELETE', `/cfg/payments/subscriptions/${id}/`);
1171
+ return;
1172
+ }
1173
+
1174
+ /**
1175
+ * Increment subscription usage. POST
1176
+ * /api/subscriptions/{id}/increment_usage/
1177
+ */
1178
+ async subscriptionsIncrementUsageCreate(id: string, data: Models.SubscriptionRequest): Promise<Models.Subscription> {
1179
+ const response = await this.client.request('POST', `/cfg/payments/subscriptions/${id}/increment_usage/`, { body: data });
1180
+ return response;
1181
+ }
1182
+
1183
+ /**
1184
+ * Update subscription status. POST /api/subscriptions/{id}/update_status/
1185
+ */
1186
+ async subscriptionsUpdateStatusCreate(id: string, data: Models.SubscriptionRequest): Promise<Models.Subscription> {
1187
+ const response = await this.client.request('POST', `/cfg/payments/subscriptions/${id}/update_status/`, { body: data });
1188
+ return response;
1189
+ }
1190
+
1191
+ /**
1192
+ * Get subscription analytics. GET /api/subscriptions/analytics/?days=30
1193
+ */
1194
+ async subscriptionsAnalyticsRetrieve(): Promise<Models.Subscription> {
1195
+ const response = await this.client.request('GET', "/cfg/payments/subscriptions/analytics/");
1196
+ return response;
1197
+ }
1198
+
1199
+ /**
1200
+ * Get subscriptions grouped by status. GET /api/subscriptions/by_status/
1201
+ */
1202
+ async subscriptionsByStatusRetrieve(): Promise<Models.Subscription> {
1203
+ const response = await this.client.request('GET', "/cfg/payments/subscriptions/by_status/");
1204
+ return response;
1205
+ }
1206
+
1207
+ /**
1208
+ * Get subscriptions grouped by tier. GET /api/subscriptions/by_tier/
1209
+ */
1210
+ async subscriptionsByTierRetrieve(): Promise<Models.Subscription> {
1211
+ const response = await this.client.request('GET', "/cfg/payments/subscriptions/by_tier/");
1212
+ return response;
1213
+ }
1214
+
1215
+ /**
1216
+ * Health check for the ViewSet and related services. Returns service
1217
+ * status and basic metrics.
1218
+ */
1219
+ async subscriptionsHealthRetrieve(): Promise<Models.Subscription> {
1220
+ const response = await this.client.request('GET', "/cfg/payments/subscriptions/health/");
1221
+ return response;
1222
+ }
1223
+
1224
+ /**
1225
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1226
+ * breakdowns.
1227
+ */
1228
+ async subscriptionsStatsRetrieve(): Promise<Models.Subscription> {
1229
+ const response = await this.client.request('GET', "/cfg/payments/subscriptions/stats/");
1230
+ return response;
1231
+ }
1232
+
1233
+ async tariffsList(is_active?: boolean, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedTariffList>;
1234
+ async tariffsList(params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedTariffList>;
1235
+
1236
+ /**
1237
+ * Tariff ViewSet: /api/tariffs/ Read-only access to tariff information for
1238
+ * subscription selection.
1239
+ */
1240
+ async tariffsList(...args: any[]): Promise<Models.PaginatedTariffList> {
1241
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
1242
+
1243
+ let params;
1244
+ if (isParamsObject) {
1245
+ params = args[0];
1246
+ } else {
1247
+ params = { is_active: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
1248
+ }
1249
+ const response = await this.client.request('GET', "/cfg/payments/tariffs/", { params });
1250
+ return response;
1251
+ }
1252
+
1253
+ /**
1254
+ * Tariff ViewSet: /api/tariffs/ Read-only access to tariff information for
1255
+ * subscription selection.
1256
+ */
1257
+ async tariffsRetrieve(id: number): Promise<Models.Tariff> {
1258
+ const response = await this.client.request('GET', `/cfg/payments/tariffs/${id}/`);
1259
+ return response;
1260
+ }
1261
+
1262
+ /**
1263
+ * Get endpoint groups for specific tariff. GET
1264
+ * /api/tariffs/{id}/endpoint_groups/
1265
+ */
1266
+ async tariffsEndpointGroupsRetrieve(id: number): Promise<Models.Tariff> {
1267
+ const response = await this.client.request('GET', `/cfg/payments/tariffs/${id}/endpoint_groups/`);
1268
+ return response;
1269
+ }
1270
+
1271
+ /**
1272
+ * Get free tariffs. GET /api/tariffs/free/
1273
+ */
1274
+ async tariffsFreeRetrieve(): Promise<Models.Tariff> {
1275
+ const response = await this.client.request('GET', "/cfg/payments/tariffs/free/");
1276
+ return response;
1277
+ }
1278
+
1279
+ /**
1280
+ * Health check for the ViewSet and related services. Returns service
1281
+ * status and basic metrics.
1282
+ */
1283
+ async tariffsHealthRetrieve(): Promise<Models.Tariff> {
1284
+ const response = await this.client.request('GET', "/cfg/payments/tariffs/health/");
1285
+ return response;
1286
+ }
1287
+
1288
+ /**
1289
+ * Get paid tariffs. GET /api/tariffs/paid/
1290
+ */
1291
+ async tariffsPaidRetrieve(): Promise<Models.Tariff> {
1292
+ const response = await this.client.request('GET', "/cfg/payments/tariffs/paid/");
1293
+ return response;
1294
+ }
1295
+
1296
+ /**
1297
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1298
+ * breakdowns.
1299
+ */
1300
+ async tariffsStatsRetrieve(): Promise<Models.Tariff> {
1301
+ const response = await this.client.request('GET', "/cfg/payments/tariffs/stats/");
1302
+ return response;
1303
+ }
1304
+
1305
+ async transactionsList(ordering?: string, page?: number, page_size?: number, payment_id?: string, search?: string, transaction_type?: string, user?: number): Promise<Models.PaginatedTransactionList>;
1306
+ async transactionsList(params?: { ordering?: string; page?: number; page_size?: number; payment_id?: string; search?: string; transaction_type?: string; user?: number }): Promise<Models.PaginatedTransactionList>;
1307
+
1308
+ /**
1309
+ * Transaction ViewSet: /api/transactions/ Read-only access to transaction
1310
+ * history with filtering.
1311
+ */
1312
+ async transactionsList(...args: any[]): Promise<Models.PaginatedTransactionList> {
1313
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
1314
+
1315
+ let params;
1316
+ if (isParamsObject) {
1317
+ params = args[0];
1318
+ } else {
1319
+ params = { ordering: args[0], page: args[1], page_size: args[2], payment_id: args[3], search: args[4], transaction_type: args[5], user: args[6] };
1320
+ }
1321
+ const response = await this.client.request('GET', "/cfg/payments/transactions/", { params });
1322
+ return response;
1323
+ }
1324
+
1325
+ /**
1326
+ * Transaction ViewSet: /api/transactions/ Read-only access to transaction
1327
+ * history with filtering.
1328
+ */
1329
+ async transactionsRetrieve(id: string): Promise<Models.Transaction> {
1330
+ const response = await this.client.request('GET', `/cfg/payments/transactions/${id}/`);
1331
+ return response;
1332
+ }
1333
+
1334
+ /**
1335
+ * Get transactions grouped by type. GET /api/transactions/by_type/
1336
+ */
1337
+ async transactionsByTypeRetrieve(): Promise<Models.Transaction> {
1338
+ const response = await this.client.request('GET', "/cfg/payments/transactions/by_type/");
1339
+ return response;
1340
+ }
1341
+
1342
+ /**
1343
+ * Health check for the ViewSet and related services. Returns service
1344
+ * status and basic metrics.
1345
+ */
1346
+ async transactionsHealthRetrieve(): Promise<Models.Transaction> {
1347
+ const response = await this.client.request('GET', "/cfg/payments/transactions/health/");
1348
+ return response;
1349
+ }
1350
+
1351
+ /**
1352
+ * Get recent transactions. GET /api/transactions/recent/?limit=10
1353
+ */
1354
+ async transactionsRecentRetrieve(): Promise<Models.Transaction> {
1355
+ const response = await this.client.request('GET', "/cfg/payments/transactions/recent/");
1356
+ return response;
1357
+ }
1358
+
1359
+ /**
1360
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1361
+ * breakdowns.
1362
+ */
1363
+ async transactionsStatsRetrieve(): Promise<Models.Transaction> {
1364
+ const response = await this.client.request('GET', "/cfg/payments/transactions/stats/");
1365
+ return response;
1366
+ }
1367
+
1368
+ async usersList(currency__code?: string, ordering?: string, page?: number, page_size?: number, provider?: string, search?: string, status?: string): Promise<Models.PaginatedPaymentListList>;
1369
+ async usersList(params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }): Promise<Models.PaginatedPaymentListList>;
1370
+
1371
+ /**
1372
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1373
+ * Provides user-scoped access to payments with full CRUD operations.
1374
+ */
1375
+ async usersList(...args: any[]): Promise<Models.PaginatedPaymentListList> {
1376
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
1377
+
1378
+ let params;
1379
+ if (isParamsObject) {
1380
+ params = args[0];
1381
+ } else {
1382
+ params = { currency__code: args[0], ordering: args[1], page: args[2], page_size: args[3], provider: args[4], search: args[5], status: args[6] };
1383
+ }
1384
+ const response = await this.client.request('GET', "/cfg/payments/users/", { params });
1385
+ return response;
1386
+ }
1387
+
1388
+ /**
1389
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1390
+ * Provides user-scoped access to payments with full CRUD operations.
1391
+ */
1392
+ async usersCreate(data: Models.PaymentCreateRequest): Promise<Models.PaymentCreate> {
1393
+ const response = await this.client.request('POST', "/cfg/payments/users/", { body: data });
1394
+ return response;
1395
+ }
1396
+
1397
+ /**
1398
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1399
+ * Provides user-scoped access to payments with full CRUD operations.
1400
+ */
1401
+ async usersRetrieve(id: string): Promise<Models.Payment> {
1402
+ const response = await this.client.request('GET', `/cfg/payments/users/${id}/`);
1403
+ return response;
1404
+ }
1405
+
1406
+ /**
1407
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1408
+ * Provides user-scoped access to payments with full CRUD operations.
1409
+ */
1410
+ async usersUpdate(id: string, data: Models.PaymentRequest): Promise<Models.Payment> {
1411
+ const response = await this.client.request('PUT', `/cfg/payments/users/${id}/`, { body: data });
1412
+ return response;
1413
+ }
1414
+
1415
+ /**
1416
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1417
+ * Provides user-scoped access to payments with full CRUD operations.
1418
+ */
1419
+ async usersPartialUpdate(id: string, data?: Models.PatchedPaymentRequest): Promise<Models.Payment> {
1420
+ const response = await this.client.request('PATCH', `/cfg/payments/users/${id}/`, { body: data });
1421
+ return response;
1422
+ }
1423
+
1424
+ /**
1425
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1426
+ * Provides user-scoped access to payments with full CRUD operations.
1427
+ */
1428
+ async usersDestroy(id: string): Promise<void> {
1429
+ const response = await this.client.request('DELETE', `/cfg/payments/users/${id}/`);
1430
+ return;
1431
+ }
1432
+
1433
+ /**
1434
+ * Cancel payment. POST /api/v1/users/{user_id}/payments/{id}/cancel/
1435
+ */
1436
+ async usersCancelCreate(id: string, data: Models.PaymentRequest): Promise<Models.Payment> {
1437
+ const response = await this.client.request('POST', `/cfg/payments/users/${id}/cancel/`, { body: data });
1438
+ return response;
1439
+ }
1440
+
1441
+ /**
1442
+ * Check payment status with provider. POST
1443
+ * /api/v1/users/{user_id}/payments/{id}/check_status/
1444
+ */
1445
+ async usersCheckStatusCreate(id: string, data: Models.PaymentRequest): Promise<Models.Payment> {
1446
+ const response = await this.client.request('POST', `/cfg/payments/users/${id}/check_status/`, { body: data });
1447
+ return response;
1448
+ }
1449
+
1450
+ async usersApiKeysList(user_pk: number, is_active?: boolean, ordering?: string, page?: number, page_size?: number, search?: string): Promise<Models.PaginatedAPIKeyListList>;
1451
+ async usersApiKeysList(user_pk: number, params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }): Promise<Models.PaginatedAPIKeyListList>;
1452
+
1453
+ /**
1454
+ * User-specific API Key ViewSet: /api/users/{user_id}/api-keys/ Provides
1455
+ * user-scoped access to API keys with full CRUD operations.
1456
+ */
1457
+ async usersApiKeysList(...args: any[]): Promise<Models.PaginatedAPIKeyListList> {
1458
+ const user_pk = args[0];
1459
+ const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
1460
+
1461
+ let params;
1462
+ if (isParamsObject) {
1463
+ params = args[1];
1464
+ } else {
1465
+ params = { is_active: args[1], ordering: args[2], page: args[3], page_size: args[4], search: args[5] };
1466
+ }
1467
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/api-keys/`, { params });
1468
+ return response;
1469
+ }
1470
+
1471
+ /**
1472
+ * User-specific API Key ViewSet: /api/users/{user_id}/api-keys/ Provides
1473
+ * user-scoped access to API keys with full CRUD operations.
1474
+ */
1475
+ async usersApiKeysCreate(user_pk: number, data: Models.APIKeyCreateRequest): Promise<Models.APIKeyCreate> {
1476
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/api-keys/`, { body: data });
1477
+ return response;
1478
+ }
1479
+
1480
+ /**
1481
+ * User-specific API Key ViewSet: /api/users/{user_id}/api-keys/ Provides
1482
+ * user-scoped access to API keys with full CRUD operations.
1483
+ */
1484
+ async usersApiKeysRetrieve(id: string, user_pk: number): Promise<Models.APIKeyDetail> {
1485
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/api-keys/${id}/`);
1486
+ return response;
1487
+ }
1488
+
1489
+ /**
1490
+ * User-specific API Key ViewSet: /api/users/{user_id}/api-keys/ Provides
1491
+ * user-scoped access to API keys with full CRUD operations.
1492
+ */
1493
+ async usersApiKeysUpdate(id: string, user_pk: number, data: Models.APIKeyUpdateRequest): Promise<Models.APIKeyUpdate> {
1494
+ const response = await this.client.request('PUT', `/cfg/payments/users/${user_pk}/api-keys/${id}/`, { body: data });
1495
+ return response;
1496
+ }
1497
+
1498
+ /**
1499
+ * User-specific API Key ViewSet: /api/users/{user_id}/api-keys/ Provides
1500
+ * user-scoped access to API keys with full CRUD operations.
1501
+ */
1502
+ async usersApiKeysPartialUpdate(id: string, user_pk: number, data?: Models.PatchedAPIKeyUpdateRequest): Promise<Models.APIKeyUpdate> {
1503
+ const response = await this.client.request('PATCH', `/cfg/payments/users/${user_pk}/api-keys/${id}/`, { body: data });
1504
+ return response;
1505
+ }
1506
+
1507
+ /**
1508
+ * User-specific API Key ViewSet: /api/users/{user_id}/api-keys/ Provides
1509
+ * user-scoped access to API keys with full CRUD operations.
1510
+ */
1511
+ async usersApiKeysDestroy(id: string, user_pk: number): Promise<void> {
1512
+ const response = await this.client.request('DELETE', `/cfg/payments/users/${user_pk}/api-keys/${id}/`);
1513
+ return;
1514
+ }
1515
+
1516
+ /**
1517
+ * Perform action on API key. POST
1518
+ * /api/users/{user_id}/api-keys/{id}/perform_action/
1519
+ */
1520
+ async usersApiKeysPerformActionCreate(id: string, user_pk: number): Promise<Models.APIKeyDetail> {
1521
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/api-keys/${id}/perform_action/`);
1522
+ return response;
1523
+ }
1524
+
1525
+ /**
1526
+ * Get user's active API keys. GET /api/users/{user_id}/api-keys/active/
1527
+ */
1528
+ async usersApiKeysActiveRetrieve(user_pk: number): Promise<Models.APIKeyDetail> {
1529
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/api-keys/active/`);
1530
+ return response;
1531
+ }
1532
+
1533
+ /**
1534
+ * Health check for the ViewSet and related services. Returns service
1535
+ * status and basic metrics.
1536
+ */
1537
+ async usersApiKeysHealthRetrieve(user_pk: number): Promise<Models.APIKeyDetail> {
1538
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/api-keys/health/`);
1539
+ return response;
1540
+ }
1541
+
1542
+ /**
1543
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1544
+ * breakdowns.
1545
+ */
1546
+ async usersApiKeysStatsRetrieve(user_pk: number): Promise<Models.APIKeyDetail> {
1547
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/api-keys/stats/`);
1548
+ return response;
1549
+ }
1550
+
1551
+ /**
1552
+ * Get user API key summary. GET /api/users/{user_id}/api-keys/summary/
1553
+ */
1554
+ async usersApiKeysSummaryRetrieve(user_pk: number): Promise<Models.APIKeyDetail> {
1555
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/api-keys/summary/`);
1556
+ return response;
1557
+ }
1558
+
1559
+ async usersPaymentList(user_pk: number, currency__code?: string, ordering?: string, page?: number, page_size?: number, provider?: string, search?: string, status?: string): Promise<Models.PaginatedPaymentListList>;
1560
+ async usersPaymentList(user_pk: number, params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }): Promise<Models.PaginatedPaymentListList>;
1561
+
1562
+ /**
1563
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1564
+ * Provides user-scoped access to payments with full CRUD operations.
1565
+ */
1566
+ async usersPaymentList(...args: any[]): Promise<Models.PaginatedPaymentListList> {
1567
+ const user_pk = args[0];
1568
+ const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
1569
+
1570
+ let params;
1571
+ if (isParamsObject) {
1572
+ params = args[1];
1573
+ } else {
1574
+ params = { currency__code: args[1], ordering: args[2], page: args[3], page_size: args[4], provider: args[5], search: args[6], status: args[7] };
1575
+ }
1576
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/payment/`, { params });
1577
+ return response;
1578
+ }
1579
+
1580
+ /**
1581
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1582
+ * Provides user-scoped access to payments with full CRUD operations.
1583
+ */
1584
+ async usersPaymentCreate(user_pk: number, data: Models.PaymentCreateRequest): Promise<Models.PaymentCreate> {
1585
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/payment/`, { body: data });
1586
+ return response;
1587
+ }
1588
+
1589
+ /**
1590
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1591
+ * Provides user-scoped access to payments with full CRUD operations.
1592
+ */
1593
+ async usersPaymentRetrieve(id: string, user_pk: number): Promise<Models.Payment> {
1594
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/payment/${id}/`);
1595
+ return response;
1596
+ }
1597
+
1598
+ /**
1599
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1600
+ * Provides user-scoped access to payments with full CRUD operations.
1601
+ */
1602
+ async usersPaymentUpdate(id: string, user_pk: number, data: Models.PaymentRequest): Promise<Models.Payment> {
1603
+ const response = await this.client.request('PUT', `/cfg/payments/users/${user_pk}/payment/${id}/`, { body: data });
1604
+ return response;
1605
+ }
1606
+
1607
+ /**
1608
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1609
+ * Provides user-scoped access to payments with full CRUD operations.
1610
+ */
1611
+ async usersPaymentPartialUpdate(id: string, user_pk: number, data?: Models.PatchedPaymentRequest): Promise<Models.Payment> {
1612
+ const response = await this.client.request('PATCH', `/cfg/payments/users/${user_pk}/payment/${id}/`, { body: data });
1613
+ return response;
1614
+ }
1615
+
1616
+ /**
1617
+ * User-specific payment ViewSet: /api/v1/users/{user_id}/payments/
1618
+ * Provides user-scoped access to payments with full CRUD operations.
1619
+ */
1620
+ async usersPaymentDestroy(id: string, user_pk: number): Promise<void> {
1621
+ const response = await this.client.request('DELETE', `/cfg/payments/users/${user_pk}/payment/${id}/`);
1622
+ return;
1623
+ }
1624
+
1625
+ /**
1626
+ * Cancel payment. POST /api/v1/users/{user_id}/payments/{id}/cancel/
1627
+ */
1628
+ async usersPaymentCancelCreate(id: string, user_pk: number, data: Models.PaymentRequest): Promise<Models.Payment> {
1629
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/payment/${id}/cancel/`, { body: data });
1630
+ return response;
1631
+ }
1632
+
1633
+ /**
1634
+ * Check payment status with provider. POST
1635
+ * /api/v1/users/{user_id}/payments/{id}/check_status/
1636
+ */
1637
+ async usersPaymentCheckStatusCreate(id: string, user_pk: number, data: Models.PaymentRequest): Promise<Models.Payment> {
1638
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/payment/${id}/check_status/`, { body: data });
1639
+ return response;
1640
+ }
1641
+
1642
+ /**
1643
+ * Health check for the ViewSet and related services. Returns service
1644
+ * status and basic metrics.
1645
+ */
1646
+ async usersPaymentHealthRetrieve(user_pk: number): Promise<Models.Payment> {
1647
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/payment/health/`);
1648
+ return response;
1649
+ }
1650
+
1651
+ /**
1652
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1653
+ * breakdowns.
1654
+ */
1655
+ async usersPaymentStatsRetrieve(user_pk: number): Promise<Models.Payment> {
1656
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/payment/stats/`);
1657
+ return response;
1658
+ }
1659
+
1660
+ /**
1661
+ * Get user payment summary. GET /api/v1/users/{user_id}/payments/summary/
1662
+ */
1663
+ async usersPaymentSummaryRetrieve(user_pk: number): Promise<Models.Payment> {
1664
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/payment/summary/`);
1665
+ return response;
1666
+ }
1667
+
1668
+ async usersSubscriptionsList(user_pk: number, ordering?: string, page?: number, page_size?: number, search?: string, status?: string, tier?: string): Promise<Models.PaginatedSubscriptionListList>;
1669
+ async usersSubscriptionsList(user_pk: number, params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string }): Promise<Models.PaginatedSubscriptionListList>;
1670
+
1671
+ /**
1672
+ * User-specific subscription ViewSet: /api/users/{user_id}/subscriptions/
1673
+ * Provides user-scoped access to subscriptions with full CRUD operations.
1674
+ */
1675
+ async usersSubscriptionsList(...args: any[]): Promise<Models.PaginatedSubscriptionListList> {
1676
+ const user_pk = args[0];
1677
+ const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
1678
+
1679
+ let params;
1680
+ if (isParamsObject) {
1681
+ params = args[1];
1682
+ } else {
1683
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4], status: args[5], tier: args[6] };
1684
+ }
1685
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/subscriptions/`, { params });
1686
+ return response;
1687
+ }
1688
+
1689
+ /**
1690
+ * User-specific subscription ViewSet: /api/users/{user_id}/subscriptions/
1691
+ * Provides user-scoped access to subscriptions with full CRUD operations.
1692
+ */
1693
+ async usersSubscriptionsCreate(user_pk: number, data: Models.SubscriptionCreateRequest): Promise<Models.SubscriptionCreate> {
1694
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/subscriptions/`, { body: data });
1695
+ return response;
1696
+ }
1697
+
1698
+ /**
1699
+ * User-specific subscription ViewSet: /api/users/{user_id}/subscriptions/
1700
+ * Provides user-scoped access to subscriptions with full CRUD operations.
1701
+ */
1702
+ async usersSubscriptionsRetrieve(id: string, user_pk: number): Promise<Models.Subscription> {
1703
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/subscriptions/${id}/`);
1704
+ return response;
1705
+ }
1706
+
1707
+ /**
1708
+ * User-specific subscription ViewSet: /api/users/{user_id}/subscriptions/
1709
+ * Provides user-scoped access to subscriptions with full CRUD operations.
1710
+ */
1711
+ async usersSubscriptionsUpdate(id: string, user_pk: number, data: Models.SubscriptionRequest): Promise<Models.Subscription> {
1712
+ const response = await this.client.request('PUT', `/cfg/payments/users/${user_pk}/subscriptions/${id}/`, { body: data });
1713
+ return response;
1714
+ }
1715
+
1716
+ /**
1717
+ * User-specific subscription ViewSet: /api/users/{user_id}/subscriptions/
1718
+ * Provides user-scoped access to subscriptions with full CRUD operations.
1719
+ */
1720
+ async usersSubscriptionsPartialUpdate(id: string, user_pk: number, data?: Models.PatchedSubscriptionRequest): Promise<Models.Subscription> {
1721
+ const response = await this.client.request('PATCH', `/cfg/payments/users/${user_pk}/subscriptions/${id}/`, { body: data });
1722
+ return response;
1723
+ }
1724
+
1725
+ /**
1726
+ * User-specific subscription ViewSet: /api/users/{user_id}/subscriptions/
1727
+ * Provides user-scoped access to subscriptions with full CRUD operations.
1728
+ */
1729
+ async usersSubscriptionsDestroy(id: string, user_pk: number): Promise<void> {
1730
+ const response = await this.client.request('DELETE', `/cfg/payments/users/${user_pk}/subscriptions/${id}/`);
1731
+ return;
1732
+ }
1733
+
1734
+ /**
1735
+ * Increment subscription usage. POST
1736
+ * /api/users/{user_id}/subscriptions/{id}/increment_usage/
1737
+ */
1738
+ async usersSubscriptionsIncrementUsageCreate(id: string, user_pk: number, data: Models.SubscriptionRequest): Promise<Models.Subscription> {
1739
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/subscriptions/${id}/increment_usage/`, { body: data });
1740
+ return response;
1741
+ }
1742
+
1743
+ /**
1744
+ * Update subscription status. POST
1745
+ * /api/users/{user_id}/subscriptions/{id}/update_status/
1746
+ */
1747
+ async usersSubscriptionsUpdateStatusCreate(id: string, user_pk: number, data: Models.SubscriptionRequest): Promise<Models.Subscription> {
1748
+ const response = await this.client.request('POST', `/cfg/payments/users/${user_pk}/subscriptions/${id}/update_status/`, { body: data });
1749
+ return response;
1750
+ }
1751
+
1752
+ /**
1753
+ * Get user's active subscription. GET
1754
+ * /api/users/{user_id}/subscriptions/active/
1755
+ */
1756
+ async usersSubscriptionsActiveRetrieve(user_pk: number): Promise<Models.Subscription> {
1757
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/subscriptions/active/`);
1758
+ return response;
1759
+ }
1760
+
1761
+ /**
1762
+ * Health check for the ViewSet and related services. Returns service
1763
+ * status and basic metrics.
1764
+ */
1765
+ async usersSubscriptionsHealthRetrieve(user_pk: number): Promise<Models.Subscription> {
1766
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/subscriptions/health/`);
1767
+ return response;
1768
+ }
1769
+
1770
+ /**
1771
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1772
+ * breakdowns.
1773
+ */
1774
+ async usersSubscriptionsStatsRetrieve(user_pk: number): Promise<Models.Subscription> {
1775
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/subscriptions/stats/`);
1776
+ return response;
1777
+ }
1778
+
1779
+ /**
1780
+ * Get user subscription summary. GET
1781
+ * /api/users/{user_id}/subscriptions/summary/
1782
+ */
1783
+ async usersSubscriptionsSummaryRetrieve(user_pk: number): Promise<Models.Subscription> {
1784
+ const response = await this.client.request('GET', `/cfg/payments/users/${user_pk}/subscriptions/summary/`);
1785
+ return response;
1786
+ }
1787
+
1788
+ /**
1789
+ * Health check for the ViewSet and related services. Returns service
1790
+ * status and basic metrics.
1791
+ */
1792
+ async usersHealthRetrieve(): Promise<Models.Payment> {
1793
+ const response = await this.client.request('GET', "/cfg/payments/users/health/");
1794
+ return response;
1795
+ }
1796
+
1797
+ /**
1798
+ * Get statistics for the current queryset. Returns counts, aggregates, and
1799
+ * breakdowns.
1800
+ */
1801
+ async usersStatsRetrieve(): Promise<Models.Payment> {
1802
+ const response = await this.client.request('GET', "/cfg/payments/users/stats/");
1803
+ return response;
1804
+ }
1805
+
1806
+ /**
1807
+ * Get user payment summary. GET /api/v1/users/{user_id}/payments/summary/
1808
+ */
1809
+ async usersSummaryRetrieve(): Promise<Models.Payment> {
1810
+ const response = await this.client.request('GET', "/cfg/payments/users/summary/");
1811
+ return response;
1812
+ }
1813
+
1814
+ }