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