@djangocfg/api 1.0.1 → 1.0.3
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 +17641 -8457
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14654 -5066
- package/dist/index.d.ts +14654 -5066
- package/dist/index.mjs +17885 -8728
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
- package/src/cfg/contexts/payments/ApiKeysContext.tsx +2 -2
- package/src/cfg/contexts/payments/CurrenciesContext.tsx +0 -26
- package/src/cfg/contexts/payments/OverviewContext.tsx +79 -0
- package/src/cfg/contexts/payments/RootPaymentsContext.tsx +137 -0
- package/src/cfg/contexts/payments/index.ts +13 -0
- package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +876 -0
- package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +181 -179
- package/src/cfg/generated/_utils/fetchers/cfg__payments__webhooks.ts +5 -5
- package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -12
- package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -10
- package/src/cfg/generated/_utils/fetchers/index.ts +1 -0
- package/src/cfg/generated/_utils/hooks/cfg__knowbase.ts +997 -0
- package/src/cfg/generated/_utils/hooks/cfg__payments.ts +12 -10
- package/src/cfg/generated/_utils/hooks/index.ts +1 -0
- package/src/cfg/generated/_utils/schemas/APIKeyValidationResponse.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/AdminPaymentDetail.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/AdminPaymentList.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/ArchiveItem.schema.ts +33 -0
- package/src/cfg/generated/_utils/schemas/ArchiveItemChunk.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/ArchiveItemChunkDetail.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/ArchiveItemChunkRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ArchiveItemDetail.schema.ts +35 -0
- package/src/cfg/generated/_utils/schemas/ArchiveItemRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ArchiveProcessingResult.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/ArchiveSearchRequestRequest.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ArchiveSearchResult.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ArchiveStatistics.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/ChatHistory.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ChatMessage.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/ChatQueryRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ChatResponse.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/ChatResponseRequest.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/ChatSession.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/ChatSessionCreateRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ChatSessionRequest.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ChatSource.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ChatSourceRequest.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CurrencyList.schema.ts +2 -0
- package/src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/Document.schema.ts +32 -0
- package/src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts +44 -0
- package/src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts +48 -0
- package/src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts +35 -0
- package/src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/DocumentStats.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/Network.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/Payment.schema.ts +1 -0
- package/src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts +0 -1
- package/src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts +0 -1
- package/src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/PublicCategory.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/PublicDocument.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/index.ts +54 -0
- package/src/cfg/generated/cfg__accounts/client.ts +1 -1
- package/src/cfg/generated/cfg__accounts__auth/client.ts +1 -1
- package/src/cfg/generated/cfg__accounts__user_profile/client.ts +1 -1
- package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
- package/src/cfg/generated/cfg__health/client.ts +1 -1
- package/src/cfg/generated/cfg__knowbase/client.ts +666 -0
- package/src/cfg/generated/cfg__knowbase/index.ts +2 -0
- package/src/cfg/generated/cfg__knowbase/models.ts +1120 -0
- package/src/cfg/generated/cfg__leads/client.ts +1 -1
- package/src/cfg/generated/cfg__leads__lead_submission/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__bulk_email/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__campaigns/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__logs/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__newsletters/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__subscriptions/client.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__testing/client.ts +1 -1
- package/src/cfg/generated/cfg__payments/client.ts +25 -45
- package/src/cfg/generated/cfg__payments/models.ts +46 -12
- package/src/cfg/generated/cfg__payments__webhooks/client.ts +1 -1
- package/src/cfg/generated/cfg__support/client.ts +1 -1
- package/src/cfg/generated/cfg__tasks/client.ts +1 -1
- package/src/cfg/generated/client.ts +57 -54
- package/src/cfg/generated/enums.ts +269 -16
- package/src/cfg/generated/index.ts +82 -29
- package/src/cfg/generated/schema.ts +10238 -4386
- package/src/index.ts +23 -1
|
@@ -46,6 +46,7 @@ import { AdminPaymentUpdateRequestSchema, type AdminPaymentUpdateRequest } from
|
|
|
46
46
|
import { AdminUserSchema, type AdminUser } from '../schemas/AdminUser.schema'
|
|
47
47
|
import { BalanceOverviewSchema, type BalanceOverview } from '../schemas/BalanceOverview.schema'
|
|
48
48
|
import { CurrencySchema, type Currency } from '../schemas/Currency.schema'
|
|
49
|
+
import { CurrencyRatesSchema, type CurrencyRates } from '../schemas/CurrencyRates.schema'
|
|
49
50
|
import { EndpointGroupSchema, type EndpointGroup } from '../schemas/EndpointGroup.schema'
|
|
50
51
|
import { NetworkSchema, type Network } from '../schemas/Network.schema'
|
|
51
52
|
import { PaginatedAPIKeyListListSchema, type PaginatedAPIKeyListList } from '../schemas/PaginatedAPIKeyListList.schema'
|
|
@@ -83,6 +84,7 @@ import { SubscriptionCreateSchema, type SubscriptionCreate } from '../schemas/Su
|
|
|
83
84
|
import { SubscriptionCreateRequestSchema, type SubscriptionCreateRequest } from '../schemas/SubscriptionCreateRequest.schema'
|
|
84
85
|
import { SubscriptionOverviewSchema, type SubscriptionOverview } from '../schemas/SubscriptionOverview.schema'
|
|
85
86
|
import { SubscriptionRequestSchema, type SubscriptionRequest } from '../schemas/SubscriptionRequest.schema'
|
|
87
|
+
import { SupportedCurrenciesSchema, type SupportedCurrencies } from '../schemas/SupportedCurrencies.schema'
|
|
86
88
|
import { TariffSchema, type Tariff } from '../schemas/Tariff.schema'
|
|
87
89
|
import { TransactionSchema, type Transaction } from '../schemas/Transaction.schema'
|
|
88
90
|
import { UserBalanceSchema, type UserBalance } from '../schemas/UserBalance.schema'
|
|
@@ -99,7 +101,7 @@ import type { API } from '../../index'
|
|
|
99
101
|
* @method GET
|
|
100
102
|
* @path /cfg/payments/admin/api/payments/
|
|
101
103
|
*/
|
|
102
|
-
export async function getPaymentsAdminApiPaymentsList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }, client
|
|
104
|
+
export async function getPaymentsAdminApiPaymentsList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }, client?
|
|
103
105
|
): Promise<PaginatedAdminPaymentListList> {
|
|
104
106
|
const api = client || getAPIInstance()
|
|
105
107
|
const response = await api.cfg_payments.adminApiPaymentsList(params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status, params?.user)
|
|
@@ -113,7 +115,7 @@ export async function getPaymentsAdminApiPaymentsList( params?: { currency__cod
|
|
|
113
115
|
* @method POST
|
|
114
116
|
* @path /cfg/payments/admin/api/payments/
|
|
115
117
|
*/
|
|
116
|
-
export async function createPaymentsAdminApiPaymentsCreate( data: AdminPaymentCreateRequest, client
|
|
118
|
+
export async function createPaymentsAdminApiPaymentsCreate( data: AdminPaymentCreateRequest, client?
|
|
117
119
|
): Promise<AdminPaymentCreate> {
|
|
118
120
|
const api = client || getAPIInstance()
|
|
119
121
|
const response = await api.cfg_payments.adminApiPaymentsCreate(data)
|
|
@@ -127,7 +129,7 @@ export async function createPaymentsAdminApiPaymentsCreate( data: AdminPaymentC
|
|
|
127
129
|
* @method GET
|
|
128
130
|
* @path /cfg/payments/admin/api/payments/{id}/
|
|
129
131
|
*/
|
|
130
|
-
export async function getPaymentsAdminApiPaymentsRetrieve( id: string, client
|
|
132
|
+
export async function getPaymentsAdminApiPaymentsRetrieve( id: string, client?
|
|
131
133
|
): Promise<AdminPaymentDetail> {
|
|
132
134
|
const api = client || getAPIInstance()
|
|
133
135
|
const response = await api.cfg_payments.adminApiPaymentsRetrieve(id)
|
|
@@ -141,7 +143,7 @@ export async function getPaymentsAdminApiPaymentsRetrieve( id: string, client?
|
|
|
141
143
|
* @method PUT
|
|
142
144
|
* @path /cfg/payments/admin/api/payments/{id}/
|
|
143
145
|
*/
|
|
144
|
-
export async function updatePaymentsAdminApiPaymentsUpdate( id: string, data: AdminPaymentUpdateRequest, client
|
|
146
|
+
export async function updatePaymentsAdminApiPaymentsUpdate( id: string, data: AdminPaymentUpdateRequest, client?
|
|
145
147
|
): Promise<AdminPaymentUpdate> {
|
|
146
148
|
const api = client || getAPIInstance()
|
|
147
149
|
const response = await api.cfg_payments.adminApiPaymentsUpdate(id, data)
|
|
@@ -155,7 +157,7 @@ export async function updatePaymentsAdminApiPaymentsUpdate( id: string, data: A
|
|
|
155
157
|
* @method PATCH
|
|
156
158
|
* @path /cfg/payments/admin/api/payments/{id}/
|
|
157
159
|
*/
|
|
158
|
-
export async function partialUpdatePaymentsAdminApiPaymentsPartialUpdate( id: string, data?: PatchedAdminPaymentUpdateRequest, client
|
|
160
|
+
export async function partialUpdatePaymentsAdminApiPaymentsPartialUpdate( id: string, data?: PatchedAdminPaymentUpdateRequest, client?
|
|
159
161
|
): Promise<AdminPaymentUpdate> {
|
|
160
162
|
const api = client || getAPIInstance()
|
|
161
163
|
const response = await api.cfg_payments.adminApiPaymentsPartialUpdate(id, data)
|
|
@@ -169,7 +171,7 @@ export async function partialUpdatePaymentsAdminApiPaymentsPartialUpdate( id: s
|
|
|
169
171
|
* @method DELETE
|
|
170
172
|
* @path /cfg/payments/admin/api/payments/{id}/
|
|
171
173
|
*/
|
|
172
|
-
export async function deletePaymentsAdminApiPaymentsDestroy( id: string, client
|
|
174
|
+
export async function deletePaymentsAdminApiPaymentsDestroy( id: string, client?
|
|
173
175
|
): Promise<void> {
|
|
174
176
|
const api = client || getAPIInstance()
|
|
175
177
|
const response = await api.cfg_payments.adminApiPaymentsDestroy(id)
|
|
@@ -183,7 +185,7 @@ export async function deletePaymentsAdminApiPaymentsDestroy( id: string, clien
|
|
|
183
185
|
* @method POST
|
|
184
186
|
* @path /cfg/payments/admin/api/payments/{id}/cancel/
|
|
185
187
|
*/
|
|
186
|
-
export async function createPaymentsAdminApiPaymentsCancelCreate( id: string, client
|
|
188
|
+
export async function createPaymentsAdminApiPaymentsCancelCreate( id: string, client?
|
|
187
189
|
): Promise<AdminPaymentDetail> {
|
|
188
190
|
const api = client || getAPIInstance()
|
|
189
191
|
const response = await api.cfg_payments.adminApiPaymentsCancelCreate(id)
|
|
@@ -197,7 +199,7 @@ export async function createPaymentsAdminApiPaymentsCancelCreate( id: string,
|
|
|
197
199
|
* @method POST
|
|
198
200
|
* @path /cfg/payments/admin/api/payments/{id}/refresh_status/
|
|
199
201
|
*/
|
|
200
|
-
export async function createPaymentsAdminApiPaymentsRefreshStatusCreate( id: string, client
|
|
202
|
+
export async function createPaymentsAdminApiPaymentsRefreshStatusCreate( id: string, client?
|
|
201
203
|
): Promise<AdminPaymentDetail> {
|
|
202
204
|
const api = client || getAPIInstance()
|
|
203
205
|
const response = await api.cfg_payments.adminApiPaymentsRefreshStatusCreate(id)
|
|
@@ -211,7 +213,7 @@ export async function createPaymentsAdminApiPaymentsRefreshStatusCreate( id: st
|
|
|
211
213
|
* @method POST
|
|
212
214
|
* @path /cfg/payments/admin/api/payments/{id}/refund/
|
|
213
215
|
*/
|
|
214
|
-
export async function createPaymentsAdminApiPaymentsRefundCreate( id: string, client
|
|
216
|
+
export async function createPaymentsAdminApiPaymentsRefundCreate( id: string, client?
|
|
215
217
|
): Promise<AdminPaymentDetail> {
|
|
216
218
|
const api = client || getAPIInstance()
|
|
217
219
|
const response = await api.cfg_payments.adminApiPaymentsRefundCreate(id)
|
|
@@ -225,7 +227,7 @@ export async function createPaymentsAdminApiPaymentsRefundCreate( id: string,
|
|
|
225
227
|
* @method GET
|
|
226
228
|
* @path /cfg/payments/admin/api/payments/stats/
|
|
227
229
|
*/
|
|
228
|
-
export async function getPaymentsAdminApiPaymentsStatsRetrieve( client
|
|
230
|
+
export async function getPaymentsAdminApiPaymentsStatsRetrieve( client?
|
|
229
231
|
): Promise<AdminPaymentStats> {
|
|
230
232
|
const api = client || getAPIInstance()
|
|
231
233
|
const response = await api.cfg_payments.adminApiPaymentsStatsRetrieve()
|
|
@@ -239,7 +241,7 @@ export async function getPaymentsAdminApiPaymentsStatsRetrieve( client?: API
|
|
|
239
241
|
* @method GET
|
|
240
242
|
* @path /cfg/payments/admin/api/stats/
|
|
241
243
|
*/
|
|
242
|
-
export async function getPaymentsAdminApiStatsList( params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
244
|
+
export async function getPaymentsAdminApiStatsList( params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
243
245
|
): Promise<PaginatedAdminPaymentStatsList> {
|
|
244
246
|
const api = client || getAPIInstance()
|
|
245
247
|
const response = await api.cfg_payments.adminApiStatsList(params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -253,7 +255,7 @@ export async function getPaymentsAdminApiStatsList( params?: { ordering?: strin
|
|
|
253
255
|
* @method GET
|
|
254
256
|
* @path /cfg/payments/admin/api/stats/{id}/
|
|
255
257
|
*/
|
|
256
|
-
export async function getPaymentsAdminApiStatsRetrieve( id: string, client
|
|
258
|
+
export async function getPaymentsAdminApiStatsRetrieve( id: string, client?
|
|
257
259
|
): Promise<AdminPaymentStats> {
|
|
258
260
|
const api = client || getAPIInstance()
|
|
259
261
|
const response = await api.cfg_payments.adminApiStatsRetrieve(id)
|
|
@@ -267,7 +269,7 @@ export async function getPaymentsAdminApiStatsRetrieve( id: string, client?: A
|
|
|
267
269
|
* @method GET
|
|
268
270
|
* @path /cfg/payments/admin/api/stats/payments/
|
|
269
271
|
*/
|
|
270
|
-
export async function getPaymentsAdminApiStatsPaymentsRetrieve( client
|
|
272
|
+
export async function getPaymentsAdminApiStatsPaymentsRetrieve( client?
|
|
271
273
|
): Promise<AdminPaymentStats> {
|
|
272
274
|
const api = client || getAPIInstance()
|
|
273
275
|
const response = await api.cfg_payments.adminApiStatsPaymentsRetrieve()
|
|
@@ -281,7 +283,7 @@ export async function getPaymentsAdminApiStatsPaymentsRetrieve( client?: API
|
|
|
281
283
|
* @method GET
|
|
282
284
|
* @path /cfg/payments/admin/api/stats/system/
|
|
283
285
|
*/
|
|
284
|
-
export async function getPaymentsAdminApiStatsSystemRetrieve( client
|
|
286
|
+
export async function getPaymentsAdminApiStatsSystemRetrieve( client?
|
|
285
287
|
): Promise<AdminPaymentStats> {
|
|
286
288
|
const api = client || getAPIInstance()
|
|
287
289
|
const response = await api.cfg_payments.adminApiStatsSystemRetrieve()
|
|
@@ -295,7 +297,7 @@ export async function getPaymentsAdminApiStatsSystemRetrieve( client?: API
|
|
|
295
297
|
* @method GET
|
|
296
298
|
* @path /cfg/payments/admin/api/stats/webhooks/
|
|
297
299
|
*/
|
|
298
|
-
export async function getPaymentsAdminApiStatsWebhooksRetrieve( client
|
|
300
|
+
export async function getPaymentsAdminApiStatsWebhooksRetrieve( client?
|
|
299
301
|
): Promise<AdminPaymentStats> {
|
|
300
302
|
const api = client || getAPIInstance()
|
|
301
303
|
const response = await api.cfg_payments.adminApiStatsWebhooksRetrieve()
|
|
@@ -309,7 +311,7 @@ export async function getPaymentsAdminApiStatsWebhooksRetrieve( client?: API
|
|
|
309
311
|
* @method GET
|
|
310
312
|
* @path /cfg/payments/admin/api/users/
|
|
311
313
|
*/
|
|
312
|
-
export async function getPaymentsAdminApiUsersList( params?: { is_active?: boolean; is_staff?: boolean; is_superuser?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
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?
|
|
313
315
|
): Promise<PaginatedAdminUserList> {
|
|
314
316
|
const api = client || getAPIInstance()
|
|
315
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)
|
|
@@ -323,7 +325,7 @@ export async function getPaymentsAdminApiUsersList( params?: { is_active?: bool
|
|
|
323
325
|
* @method GET
|
|
324
326
|
* @path /cfg/payments/admin/api/users/{id}/
|
|
325
327
|
*/
|
|
326
|
-
export async function getPaymentsAdminApiUsersRetrieve( id: number, client
|
|
328
|
+
export async function getPaymentsAdminApiUsersRetrieve( id: number, client?
|
|
327
329
|
): Promise<AdminUser> {
|
|
328
330
|
const api = client || getAPIInstance()
|
|
329
331
|
const response = await api.cfg_payments.adminApiUsersRetrieve(id)
|
|
@@ -337,7 +339,7 @@ export async function getPaymentsAdminApiUsersRetrieve( id: number, client?: A
|
|
|
337
339
|
* @method POST
|
|
338
340
|
* @path /cfg/payments/admin/api/webhook-test/test/
|
|
339
341
|
*/
|
|
340
|
-
export async function createPaymentsAdminApiWebhookTestTestCreate( data: WebhookStatsRequest, client
|
|
342
|
+
export async function createPaymentsAdminApiWebhookTestTestCreate( data: WebhookStatsRequest, client?
|
|
341
343
|
): Promise<WebhookStats> {
|
|
342
344
|
const api = client || getAPIInstance()
|
|
343
345
|
const response = await api.cfg_payments.adminApiWebhookTestTestCreate(data)
|
|
@@ -351,7 +353,7 @@ export async function createPaymentsAdminApiWebhookTestTestCreate( data: Webhoo
|
|
|
351
353
|
* @method GET
|
|
352
354
|
* @path /cfg/payments/admin/api/webhooks/
|
|
353
355
|
*/
|
|
354
|
-
export async function getPaymentsAdminApiWebhooksList( params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
356
|
+
export async function getPaymentsAdminApiWebhooksList( params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
355
357
|
): Promise<PaginatedWebhookStatsList> {
|
|
356
358
|
const api = client || getAPIInstance()
|
|
357
359
|
const response = await api.cfg_payments.adminApiWebhooksList(params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -365,7 +367,7 @@ export async function getPaymentsAdminApiWebhooksList( params?: { ordering?: st
|
|
|
365
367
|
* @method GET
|
|
366
368
|
* @path /cfg/payments/admin/api/webhooks/{id}/
|
|
367
369
|
*/
|
|
368
|
-
export async function getPaymentsAdminApiWebhooksRetrieve( id: string, client
|
|
370
|
+
export async function getPaymentsAdminApiWebhooksRetrieve( id: string, client?
|
|
369
371
|
): Promise<WebhookStats> {
|
|
370
372
|
const api = client || getAPIInstance()
|
|
371
373
|
const response = await api.cfg_payments.adminApiWebhooksRetrieve(id)
|
|
@@ -379,7 +381,7 @@ export async function getPaymentsAdminApiWebhooksRetrieve( id: string, client?
|
|
|
379
381
|
* @method GET
|
|
380
382
|
* @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/
|
|
381
383
|
*/
|
|
382
|
-
export async function getPaymentsAdminApiWebhooksEventsList( webhook_pk: string, params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
384
|
+
export async function getPaymentsAdminApiWebhooksEventsList( webhook_pk: string, params?: { ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
383
385
|
): Promise<PaginatedWebhookEventListList> {
|
|
384
386
|
const api = client || getAPIInstance()
|
|
385
387
|
const response = await api.cfg_payments.adminApiWebhooksEventsList(webhook_pk, params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -393,7 +395,7 @@ export async function getPaymentsAdminApiWebhooksEventsList( webhook_pk: string
|
|
|
393
395
|
* @method GET
|
|
394
396
|
* @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/{id}/
|
|
395
397
|
*/
|
|
396
|
-
export async function getPaymentsAdminApiWebhooksEventsRetrieve( id: string, webhook_pk: string, client
|
|
398
|
+
export async function getPaymentsAdminApiWebhooksEventsRetrieve( id: string, webhook_pk: string, client?
|
|
397
399
|
): Promise<WebhookEventList> {
|
|
398
400
|
const api = client || getAPIInstance()
|
|
399
401
|
const response = await api.cfg_payments.adminApiWebhooksEventsRetrieve(id, webhook_pk)
|
|
@@ -407,7 +409,7 @@ export async function getPaymentsAdminApiWebhooksEventsRetrieve( id: string, we
|
|
|
407
409
|
* @method POST
|
|
408
410
|
* @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/{id}/retry/
|
|
409
411
|
*/
|
|
410
|
-
export async function createPaymentsAdminApiWebhooksEventsRetryCreate( id: string, webhook_pk: string, data: WebhookEventListRequest, client
|
|
412
|
+
export async function createPaymentsAdminApiWebhooksEventsRetryCreate( id: string, webhook_pk: string, data: WebhookEventListRequest, client?
|
|
411
413
|
): Promise<WebhookEventList> {
|
|
412
414
|
const api = client || getAPIInstance()
|
|
413
415
|
const response = await api.cfg_payments.adminApiWebhooksEventsRetryCreate(id, webhook_pk, data)
|
|
@@ -421,7 +423,7 @@ export async function createPaymentsAdminApiWebhooksEventsRetryCreate( id: stri
|
|
|
421
423
|
* @method POST
|
|
422
424
|
* @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/clear_all/
|
|
423
425
|
*/
|
|
424
|
-
export async function createPaymentsAdminApiWebhooksEventsClearAllCreate( webhook_pk: string, data: WebhookEventListRequest, client
|
|
426
|
+
export async function createPaymentsAdminApiWebhooksEventsClearAllCreate( webhook_pk: string, data: WebhookEventListRequest, client?
|
|
425
427
|
): Promise<WebhookEventList> {
|
|
426
428
|
const api = client || getAPIInstance()
|
|
427
429
|
const response = await api.cfg_payments.adminApiWebhooksEventsClearAllCreate(webhook_pk, data)
|
|
@@ -435,7 +437,7 @@ export async function createPaymentsAdminApiWebhooksEventsClearAllCreate( webho
|
|
|
435
437
|
* @method POST
|
|
436
438
|
* @path /cfg/payments/admin/api/webhooks/{webhook_pk}/events/retry_failed/
|
|
437
439
|
*/
|
|
438
|
-
export async function createPaymentsAdminApiWebhooksEventsRetryFailedCreate( webhook_pk: string, data: WebhookEventListRequest, client
|
|
440
|
+
export async function createPaymentsAdminApiWebhooksEventsRetryFailedCreate( webhook_pk: string, data: WebhookEventListRequest, client?
|
|
439
441
|
): Promise<WebhookEventList> {
|
|
440
442
|
const api = client || getAPIInstance()
|
|
441
443
|
const response = await api.cfg_payments.adminApiWebhooksEventsRetryFailedCreate(webhook_pk, data)
|
|
@@ -449,7 +451,7 @@ export async function createPaymentsAdminApiWebhooksEventsRetryFailedCreate( we
|
|
|
449
451
|
* @method GET
|
|
450
452
|
* @path /cfg/payments/admin/api/webhooks/stats/
|
|
451
453
|
*/
|
|
452
|
-
export async function getPaymentsAdminApiWebhooksStatsRetrieve( client
|
|
454
|
+
export async function getPaymentsAdminApiWebhooksStatsRetrieve( client?
|
|
453
455
|
): Promise<WebhookStats> {
|
|
454
456
|
const api = client || getAPIInstance()
|
|
455
457
|
const response = await api.cfg_payments.adminApiWebhooksStatsRetrieve()
|
|
@@ -463,7 +465,7 @@ export async function getPaymentsAdminApiWebhooksStatsRetrieve( client?: API
|
|
|
463
465
|
* @method GET
|
|
464
466
|
* @path /cfg/payments/api-keys/
|
|
465
467
|
*/
|
|
466
|
-
export async function getPaymentsApiKeysList( params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string; user?: number }, client
|
|
468
|
+
export async function getPaymentsApiKeysList( params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string; user?: number }, client?
|
|
467
469
|
): Promise<PaginatedAPIKeyListList> {
|
|
468
470
|
const api = client || getAPIInstance()
|
|
469
471
|
const response = await api.cfg_payments.apiKeysList(params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search, params?.user)
|
|
@@ -477,7 +479,7 @@ export async function getPaymentsApiKeysList( params?: { is_active?: boolean; o
|
|
|
477
479
|
* @method POST
|
|
478
480
|
* @path /cfg/payments/api-keys/
|
|
479
481
|
*/
|
|
480
|
-
export async function createPaymentsApiKeysCreate( data: APIKeyCreateRequest, client
|
|
482
|
+
export async function createPaymentsApiKeysCreate( data: APIKeyCreateRequest, client?
|
|
481
483
|
): Promise<APIKeyCreate> {
|
|
482
484
|
const api = client || getAPIInstance()
|
|
483
485
|
const response = await api.cfg_payments.apiKeysCreate(data)
|
|
@@ -491,7 +493,7 @@ export async function createPaymentsApiKeysCreate( data: APIKeyCreateRequest,
|
|
|
491
493
|
* @method GET
|
|
492
494
|
* @path /cfg/payments/api-keys/{id}/
|
|
493
495
|
*/
|
|
494
|
-
export async function getPaymentsApiKeysRetrieve( id: string, client
|
|
496
|
+
export async function getPaymentsApiKeysRetrieve( id: string, client?
|
|
495
497
|
): Promise<APIKeyDetail> {
|
|
496
498
|
const api = client || getAPIInstance()
|
|
497
499
|
const response = await api.cfg_payments.apiKeysRetrieve(id)
|
|
@@ -505,7 +507,7 @@ export async function getPaymentsApiKeysRetrieve( id: string, client?: API
|
|
|
505
507
|
* @method PUT
|
|
506
508
|
* @path /cfg/payments/api-keys/{id}/
|
|
507
509
|
*/
|
|
508
|
-
export async function updatePaymentsApiKeysUpdate( id: string, data: APIKeyUpdateRequest, client
|
|
510
|
+
export async function updatePaymentsApiKeysUpdate( id: string, data: APIKeyUpdateRequest, client?
|
|
509
511
|
): Promise<APIKeyUpdate> {
|
|
510
512
|
const api = client || getAPIInstance()
|
|
511
513
|
const response = await api.cfg_payments.apiKeysUpdate(id, data)
|
|
@@ -519,7 +521,7 @@ export async function updatePaymentsApiKeysUpdate( id: string, data: APIKeyUpda
|
|
|
519
521
|
* @method PATCH
|
|
520
522
|
* @path /cfg/payments/api-keys/{id}/
|
|
521
523
|
*/
|
|
522
|
-
export async function partialUpdatePaymentsApiKeysPartialUpdate( id: string, data?: PatchedAPIKeyUpdateRequest, client
|
|
524
|
+
export async function partialUpdatePaymentsApiKeysPartialUpdate( id: string, data?: PatchedAPIKeyUpdateRequest, client?
|
|
523
525
|
): Promise<APIKeyUpdate> {
|
|
524
526
|
const api = client || getAPIInstance()
|
|
525
527
|
const response = await api.cfg_payments.apiKeysPartialUpdate(id, data)
|
|
@@ -533,7 +535,7 @@ export async function partialUpdatePaymentsApiKeysPartialUpdate( id: string, da
|
|
|
533
535
|
* @method DELETE
|
|
534
536
|
* @path /cfg/payments/api-keys/{id}/
|
|
535
537
|
*/
|
|
536
|
-
export async function deletePaymentsApiKeysDestroy( id: string, client
|
|
538
|
+
export async function deletePaymentsApiKeysDestroy( id: string, client?
|
|
537
539
|
): Promise<void> {
|
|
538
540
|
const api = client || getAPIInstance()
|
|
539
541
|
const response = await api.cfg_payments.apiKeysDestroy(id)
|
|
@@ -547,7 +549,7 @@ export async function deletePaymentsApiKeysDestroy( id: string, client?: API
|
|
|
547
549
|
* @method POST
|
|
548
550
|
* @path /cfg/payments/api-keys/{id}/perform_action/
|
|
549
551
|
*/
|
|
550
|
-
export async function createPaymentsApiKeysPerformActionCreate( id: string, client
|
|
552
|
+
export async function createPaymentsApiKeysPerformActionCreate( id: string, client?
|
|
551
553
|
): Promise<APIKeyDetail> {
|
|
552
554
|
const api = client || getAPIInstance()
|
|
553
555
|
const response = await api.cfg_payments.apiKeysPerformActionCreate(id)
|
|
@@ -561,7 +563,7 @@ export async function createPaymentsApiKeysPerformActionCreate( id: string, cl
|
|
|
561
563
|
* @method GET
|
|
562
564
|
* @path /cfg/payments/api-keys/analytics/
|
|
563
565
|
*/
|
|
564
|
-
export async function getPaymentsApiKeysAnalyticsRetrieve( client
|
|
566
|
+
export async function getPaymentsApiKeysAnalyticsRetrieve( client?
|
|
565
567
|
): Promise<APIKeyDetail> {
|
|
566
568
|
const api = client || getAPIInstance()
|
|
567
569
|
const response = await api.cfg_payments.apiKeysAnalyticsRetrieve()
|
|
@@ -575,7 +577,7 @@ export async function getPaymentsApiKeysAnalyticsRetrieve( client?: API
|
|
|
575
577
|
* @method GET
|
|
576
578
|
* @path /cfg/payments/api-keys/by_user/
|
|
577
579
|
*/
|
|
578
|
-
export async function getPaymentsApiKeysByUserRetrieve( client
|
|
580
|
+
export async function getPaymentsApiKeysByUserRetrieve( client?
|
|
579
581
|
): Promise<APIKeyDetail> {
|
|
580
582
|
const api = client || getAPIInstance()
|
|
581
583
|
const response = await api.cfg_payments.apiKeysByUserRetrieve()
|
|
@@ -589,7 +591,7 @@ export async function getPaymentsApiKeysByUserRetrieve( client?: API
|
|
|
589
591
|
* @method POST
|
|
590
592
|
* @path /cfg/payments/api-keys/create/
|
|
591
593
|
*/
|
|
592
|
-
export async function createPaymentsApiKeysCreateCreate( data: APIKeyCreateRequest, client
|
|
594
|
+
export async function createPaymentsApiKeysCreateCreate( data: APIKeyCreateRequest, client?
|
|
593
595
|
): Promise<APIKeyCreate> {
|
|
594
596
|
const api = client || getAPIInstance()
|
|
595
597
|
const response = await api.cfg_payments.apiKeysCreateCreate(data)
|
|
@@ -603,7 +605,7 @@ export async function createPaymentsApiKeysCreateCreate( data: APIKeyCreateRequ
|
|
|
603
605
|
* @method GET
|
|
604
606
|
* @path /cfg/payments/api-keys/expiring_soon/
|
|
605
607
|
*/
|
|
606
|
-
export async function getPaymentsApiKeysExpiringSoonRetrieve( client
|
|
608
|
+
export async function getPaymentsApiKeysExpiringSoonRetrieve( client?
|
|
607
609
|
): Promise<APIKeyDetail> {
|
|
608
610
|
const api = client || getAPIInstance()
|
|
609
611
|
const response = await api.cfg_payments.apiKeysExpiringSoonRetrieve()
|
|
@@ -617,7 +619,7 @@ export async function getPaymentsApiKeysExpiringSoonRetrieve( client?: API
|
|
|
617
619
|
* @method GET
|
|
618
620
|
* @path /cfg/payments/api-keys/health/
|
|
619
621
|
*/
|
|
620
|
-
export async function getPaymentsApiKeysHealthRetrieve( client
|
|
622
|
+
export async function getPaymentsApiKeysHealthRetrieve( client?
|
|
621
623
|
): Promise<APIKeyDetail> {
|
|
622
624
|
const api = client || getAPIInstance()
|
|
623
625
|
const response = await api.cfg_payments.apiKeysHealthRetrieve()
|
|
@@ -631,7 +633,7 @@ export async function getPaymentsApiKeysHealthRetrieve( client?: API
|
|
|
631
633
|
* @method GET
|
|
632
634
|
* @path /cfg/payments/api-keys/stats/
|
|
633
635
|
*/
|
|
634
|
-
export async function getPaymentsApiKeysStatsRetrieve( client
|
|
636
|
+
export async function getPaymentsApiKeysStatsRetrieve( client?
|
|
635
637
|
): Promise<APIKeyDetail> {
|
|
636
638
|
const api = client || getAPIInstance()
|
|
637
639
|
const response = await api.cfg_payments.apiKeysStatsRetrieve()
|
|
@@ -645,7 +647,7 @@ export async function getPaymentsApiKeysStatsRetrieve( client?: API
|
|
|
645
647
|
* @method POST
|
|
646
648
|
* @path /cfg/payments/api-keys/validate/
|
|
647
649
|
*/
|
|
648
|
-
export async function createPaymentsApiKeysValidateCreate( data: APIKeyValidationRequest, client
|
|
650
|
+
export async function createPaymentsApiKeysValidateCreate( data: APIKeyValidationRequest, client?
|
|
649
651
|
): Promise<APIKeyValidationResponse> {
|
|
650
652
|
const api = client || getAPIInstance()
|
|
651
653
|
const response = await api.cfg_payments.apiKeysValidateCreate(data)
|
|
@@ -659,7 +661,7 @@ export async function createPaymentsApiKeysValidateCreate( data: APIKeyValidati
|
|
|
659
661
|
* @method POST
|
|
660
662
|
* @path /cfg/payments/api-keys/validate_key/
|
|
661
663
|
*/
|
|
662
|
-
export async function createPaymentsApiKeysValidateKeyCreate( data: APIKeyValidationRequest, client
|
|
664
|
+
export async function createPaymentsApiKeysValidateKeyCreate( data: APIKeyValidationRequest, client?
|
|
663
665
|
): Promise<APIKeyValidationResponse> {
|
|
664
666
|
const api = client || getAPIInstance()
|
|
665
667
|
const response = await api.cfg_payments.apiKeysValidateKeyCreate(data)
|
|
@@ -673,7 +675,7 @@ export async function createPaymentsApiKeysValidateKeyCreate( data: APIKeyValid
|
|
|
673
675
|
* @method GET
|
|
674
676
|
* @path /cfg/payments/balances/
|
|
675
677
|
*/
|
|
676
|
-
export async function getPaymentsBalancesList( params?: { ordering?: string; page?: number; page_size?: number; search?: string; user?: number }, client
|
|
678
|
+
export async function getPaymentsBalancesList( params?: { ordering?: string; page?: number; page_size?: number; search?: string; user?: number }, client?
|
|
677
679
|
): Promise<PaginatedUserBalanceList> {
|
|
678
680
|
const api = client || getAPIInstance()
|
|
679
681
|
const response = await api.cfg_payments.balancesList(params?.ordering, params?.page, params?.page_size, params?.search, params?.user)
|
|
@@ -687,7 +689,7 @@ export async function getPaymentsBalancesList( params?: { ordering?: string; pa
|
|
|
687
689
|
* @method GET
|
|
688
690
|
* @path /cfg/payments/balances/{id}/
|
|
689
691
|
*/
|
|
690
|
-
export async function getPaymentsBalancesRetrieve( id: number, client
|
|
692
|
+
export async function getPaymentsBalancesRetrieve( id: number, client?
|
|
691
693
|
): Promise<UserBalance> {
|
|
692
694
|
const api = client || getAPIInstance()
|
|
693
695
|
const response = await api.cfg_payments.balancesRetrieve(id)
|
|
@@ -701,7 +703,7 @@ export async function getPaymentsBalancesRetrieve( id: number, client?: API
|
|
|
701
703
|
* @method GET
|
|
702
704
|
* @path /cfg/payments/balances/analytics/
|
|
703
705
|
*/
|
|
704
|
-
export async function getPaymentsBalancesAnalyticsRetrieve( client
|
|
706
|
+
export async function getPaymentsBalancesAnalyticsRetrieve( client?
|
|
705
707
|
): Promise<UserBalance> {
|
|
706
708
|
const api = client || getAPIInstance()
|
|
707
709
|
const response = await api.cfg_payments.balancesAnalyticsRetrieve()
|
|
@@ -715,7 +717,7 @@ export async function getPaymentsBalancesAnalyticsRetrieve( client?: API
|
|
|
715
717
|
* @method GET
|
|
716
718
|
* @path /cfg/payments/balances/health/
|
|
717
719
|
*/
|
|
718
|
-
export async function getPaymentsBalancesHealthRetrieve( client
|
|
720
|
+
export async function getPaymentsBalancesHealthRetrieve( client?
|
|
719
721
|
): Promise<UserBalance> {
|
|
720
722
|
const api = client || getAPIInstance()
|
|
721
723
|
const response = await api.cfg_payments.balancesHealthRetrieve()
|
|
@@ -729,7 +731,7 @@ export async function getPaymentsBalancesHealthRetrieve( client?: API
|
|
|
729
731
|
* @method GET
|
|
730
732
|
* @path /cfg/payments/balances/stats/
|
|
731
733
|
*/
|
|
732
|
-
export async function getPaymentsBalancesStatsRetrieve( client
|
|
734
|
+
export async function getPaymentsBalancesStatsRetrieve( client?
|
|
733
735
|
): Promise<UserBalance> {
|
|
734
736
|
const api = client || getAPIInstance()
|
|
735
737
|
const response = await api.cfg_payments.balancesStatsRetrieve()
|
|
@@ -743,7 +745,7 @@ export async function getPaymentsBalancesStatsRetrieve( client?: API
|
|
|
743
745
|
* @method GET
|
|
744
746
|
* @path /cfg/payments/balances/summary/
|
|
745
747
|
*/
|
|
746
|
-
export async function getPaymentsBalancesSummaryRetrieve( client
|
|
748
|
+
export async function getPaymentsBalancesSummaryRetrieve( client?
|
|
747
749
|
): Promise<UserBalance> {
|
|
748
750
|
const api = client || getAPIInstance()
|
|
749
751
|
const response = await api.cfg_payments.balancesSummaryRetrieve()
|
|
@@ -757,7 +759,7 @@ export async function getPaymentsBalancesSummaryRetrieve( client?: API
|
|
|
757
759
|
* @method GET
|
|
758
760
|
* @path /cfg/payments/currencies/
|
|
759
761
|
*/
|
|
760
|
-
export async function getPaymentsCurrenciesList( params?: { currency_type?: string; is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
762
|
+
export async function getPaymentsCurrenciesList( params?: { currency_type?: string; is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
761
763
|
): Promise<PaginatedCurrencyListList> {
|
|
762
764
|
const api = client || getAPIInstance()
|
|
763
765
|
const response = await api.cfg_payments.currenciesList(params?.currency_type, params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -771,7 +773,7 @@ export async function getPaymentsCurrenciesList( params?: { currency_type?: str
|
|
|
771
773
|
* @method POST
|
|
772
774
|
* @path /cfg/payments/currencies/
|
|
773
775
|
*/
|
|
774
|
-
export async function createPaymentsCurrenciesCreate( client
|
|
776
|
+
export async function createPaymentsCurrenciesCreate( client?
|
|
775
777
|
): Promise<Currency> {
|
|
776
778
|
const api = client || getAPIInstance()
|
|
777
779
|
const response = await api.cfg_payments.currenciesCreate()
|
|
@@ -785,7 +787,7 @@ export async function createPaymentsCurrenciesCreate( client?: API
|
|
|
785
787
|
* @method GET
|
|
786
788
|
* @path /cfg/payments/currencies/{id}/
|
|
787
789
|
*/
|
|
788
|
-
export async function getPaymentsCurrenciesRetrieve( id: number, client
|
|
790
|
+
export async function getPaymentsCurrenciesRetrieve( id: number, client?
|
|
789
791
|
): Promise<Currency> {
|
|
790
792
|
const api = client || getAPIInstance()
|
|
791
793
|
const response = await api.cfg_payments.currenciesRetrieve(id)
|
|
@@ -799,7 +801,7 @@ export async function getPaymentsCurrenciesRetrieve( id: number, client?: API
|
|
|
799
801
|
* @method GET
|
|
800
802
|
* @path /cfg/payments/currencies/{id}/networks/
|
|
801
803
|
*/
|
|
802
|
-
export async function getPaymentsCurrenciesNetworksRetrieve( id: number, client
|
|
804
|
+
export async function getPaymentsCurrenciesNetworksRetrieve( id: number, client?
|
|
803
805
|
): Promise<Currency> {
|
|
804
806
|
const api = client || getAPIInstance()
|
|
805
807
|
const response = await api.cfg_payments.currenciesNetworksRetrieve(id)
|
|
@@ -813,7 +815,7 @@ export async function getPaymentsCurrenciesNetworksRetrieve( id: number, clien
|
|
|
813
815
|
* @method GET
|
|
814
816
|
* @path /cfg/payments/currencies/{id}/providers/
|
|
815
817
|
*/
|
|
816
|
-
export async function getPaymentsCurrenciesProvidersRetrieve( id: number, client
|
|
818
|
+
export async function getPaymentsCurrenciesProvidersRetrieve( id: number, client?
|
|
817
819
|
): Promise<Currency> {
|
|
818
820
|
const api = client || getAPIInstance()
|
|
819
821
|
const response = await api.cfg_payments.currenciesProvidersRetrieve(id)
|
|
@@ -827,7 +829,7 @@ export async function getPaymentsCurrenciesProvidersRetrieve( id: number, clie
|
|
|
827
829
|
* @method POST
|
|
828
830
|
* @path /cfg/payments/currencies/convert/
|
|
829
831
|
*/
|
|
830
|
-
export async function createPaymentsCurrenciesConvertCreate( client
|
|
832
|
+
export async function createPaymentsCurrenciesConvertCreate( client?
|
|
831
833
|
): Promise<Currency> {
|
|
832
834
|
const api = client || getAPIInstance()
|
|
833
835
|
const response = await api.cfg_payments.currenciesConvertCreate()
|
|
@@ -841,7 +843,7 @@ export async function createPaymentsCurrenciesConvertCreate( client?: API
|
|
|
841
843
|
* @method GET
|
|
842
844
|
* @path /cfg/payments/currencies/crypto/
|
|
843
845
|
*/
|
|
844
|
-
export async function getPaymentsCurrenciesCryptoRetrieve( client
|
|
846
|
+
export async function getPaymentsCurrenciesCryptoRetrieve( client?
|
|
845
847
|
): Promise<Currency> {
|
|
846
848
|
const api = client || getAPIInstance()
|
|
847
849
|
const response = await api.cfg_payments.currenciesCryptoRetrieve()
|
|
@@ -855,7 +857,7 @@ export async function getPaymentsCurrenciesCryptoRetrieve( client?: API
|
|
|
855
857
|
* @method GET
|
|
856
858
|
* @path /cfg/payments/currencies/fiat/
|
|
857
859
|
*/
|
|
858
|
-
export async function getPaymentsCurrenciesFiatRetrieve( client
|
|
860
|
+
export async function getPaymentsCurrenciesFiatRetrieve( client?
|
|
859
861
|
): Promise<Currency> {
|
|
860
862
|
const api = client || getAPIInstance()
|
|
861
863
|
const response = await api.cfg_payments.currenciesFiatRetrieve()
|
|
@@ -869,7 +871,7 @@ export async function getPaymentsCurrenciesFiatRetrieve( client?: API
|
|
|
869
871
|
* @method GET
|
|
870
872
|
* @path /cfg/payments/currencies/health/
|
|
871
873
|
*/
|
|
872
|
-
export async function getPaymentsCurrenciesHealthRetrieve( client
|
|
874
|
+
export async function getPaymentsCurrenciesHealthRetrieve( client?
|
|
873
875
|
): Promise<Currency> {
|
|
874
876
|
const api = client || getAPIInstance()
|
|
875
877
|
const response = await api.cfg_payments.currenciesHealthRetrieve()
|
|
@@ -878,16 +880,16 @@ export async function getPaymentsCurrenciesHealthRetrieve( client?: API
|
|
|
878
880
|
|
|
879
881
|
|
|
880
882
|
/**
|
|
881
|
-
*
|
|
883
|
+
* API operation
|
|
882
884
|
*
|
|
883
885
|
* @method GET
|
|
884
886
|
* @path /cfg/payments/currencies/rates/
|
|
885
887
|
*/
|
|
886
|
-
export async function getPaymentsCurrenciesRatesRetrieve(
|
|
887
|
-
): Promise<
|
|
888
|
+
export async function getPaymentsCurrenciesRatesRetrieve( client?
|
|
889
|
+
): Promise<CurrencyRates> {
|
|
888
890
|
const api = client || getAPIInstance()
|
|
889
|
-
const response = await api.cfg_payments.currenciesRatesRetrieve(
|
|
890
|
-
return
|
|
891
|
+
const response = await api.cfg_payments.currenciesRatesRetrieve()
|
|
892
|
+
return CurrencyRatesSchema.parse(response)
|
|
891
893
|
}
|
|
892
894
|
|
|
893
895
|
|
|
@@ -897,7 +899,7 @@ export async function getPaymentsCurrenciesRatesRetrieve( params: { base_curren
|
|
|
897
899
|
* @method GET
|
|
898
900
|
* @path /cfg/payments/currencies/stable/
|
|
899
901
|
*/
|
|
900
|
-
export async function getPaymentsCurrenciesStableRetrieve( client
|
|
902
|
+
export async function getPaymentsCurrenciesStableRetrieve( client?
|
|
901
903
|
): Promise<Currency> {
|
|
902
904
|
const api = client || getAPIInstance()
|
|
903
905
|
const response = await api.cfg_payments.currenciesStableRetrieve()
|
|
@@ -911,7 +913,7 @@ export async function getPaymentsCurrenciesStableRetrieve( client?: API
|
|
|
911
913
|
* @method GET
|
|
912
914
|
* @path /cfg/payments/currencies/stats/
|
|
913
915
|
*/
|
|
914
|
-
export async function getPaymentsCurrenciesStatsRetrieve( client
|
|
916
|
+
export async function getPaymentsCurrenciesStatsRetrieve( client?
|
|
915
917
|
): Promise<Currency> {
|
|
916
918
|
const api = client || getAPIInstance()
|
|
917
919
|
const response = await api.cfg_payments.currenciesStatsRetrieve()
|
|
@@ -920,16 +922,16 @@ export async function getPaymentsCurrenciesStatsRetrieve( client?: API
|
|
|
920
922
|
|
|
921
923
|
|
|
922
924
|
/**
|
|
923
|
-
*
|
|
925
|
+
* API operation
|
|
924
926
|
*
|
|
925
927
|
* @method GET
|
|
926
928
|
* @path /cfg/payments/currencies/supported/
|
|
927
929
|
*/
|
|
928
|
-
export async function getPaymentsCurrenciesSupportedRetrieve(
|
|
929
|
-
): Promise<
|
|
930
|
+
export async function getPaymentsCurrenciesSupportedRetrieve( client?
|
|
931
|
+
): Promise<SupportedCurrencies> {
|
|
930
932
|
const api = client || getAPIInstance()
|
|
931
|
-
const response = await api.cfg_payments.currenciesSupportedRetrieve(
|
|
932
|
-
return
|
|
933
|
+
const response = await api.cfg_payments.currenciesSupportedRetrieve()
|
|
934
|
+
return SupportedCurrenciesSchema.parse(response)
|
|
933
935
|
}
|
|
934
936
|
|
|
935
937
|
|
|
@@ -939,7 +941,7 @@ export async function getPaymentsCurrenciesSupportedRetrieve( params?: { curren
|
|
|
939
941
|
* @method GET
|
|
940
942
|
* @path /cfg/payments/endpoint-groups/
|
|
941
943
|
*/
|
|
942
|
-
export async function getPaymentsEndpointGroupsList( params?: { is_enabled?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
944
|
+
export async function getPaymentsEndpointGroupsList( params?: { is_enabled?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
943
945
|
): Promise<PaginatedEndpointGroupList> {
|
|
944
946
|
const api = client || getAPIInstance()
|
|
945
947
|
const response = await api.cfg_payments.endpointGroupsList(params?.is_enabled, params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -953,7 +955,7 @@ export async function getPaymentsEndpointGroupsList( params?: { is_enabled?: bo
|
|
|
953
955
|
* @method GET
|
|
954
956
|
* @path /cfg/payments/endpoint-groups/{id}/
|
|
955
957
|
*/
|
|
956
|
-
export async function getPaymentsEndpointGroupsRetrieve( id: number, client
|
|
958
|
+
export async function getPaymentsEndpointGroupsRetrieve( id: number, client?
|
|
957
959
|
): Promise<EndpointGroup> {
|
|
958
960
|
const api = client || getAPIInstance()
|
|
959
961
|
const response = await api.cfg_payments.endpointGroupsRetrieve(id)
|
|
@@ -967,7 +969,7 @@ export async function getPaymentsEndpointGroupsRetrieve( id: number, client?:
|
|
|
967
969
|
* @method GET
|
|
968
970
|
* @path /cfg/payments/endpoint-groups/available/
|
|
969
971
|
*/
|
|
970
|
-
export async function getPaymentsEndpointGroupsAvailableRetrieve( client
|
|
972
|
+
export async function getPaymentsEndpointGroupsAvailableRetrieve( client?
|
|
971
973
|
): Promise<EndpointGroup> {
|
|
972
974
|
const api = client || getAPIInstance()
|
|
973
975
|
const response = await api.cfg_payments.endpointGroupsAvailableRetrieve()
|
|
@@ -981,7 +983,7 @@ export async function getPaymentsEndpointGroupsAvailableRetrieve( client?: API
|
|
|
981
983
|
* @method GET
|
|
982
984
|
* @path /cfg/payments/endpoint-groups/health/
|
|
983
985
|
*/
|
|
984
|
-
export async function getPaymentsEndpointGroupsHealthRetrieve( client
|
|
986
|
+
export async function getPaymentsEndpointGroupsHealthRetrieve( client?
|
|
985
987
|
): Promise<EndpointGroup> {
|
|
986
988
|
const api = client || getAPIInstance()
|
|
987
989
|
const response = await api.cfg_payments.endpointGroupsHealthRetrieve()
|
|
@@ -995,7 +997,7 @@ export async function getPaymentsEndpointGroupsHealthRetrieve( client?: API
|
|
|
995
997
|
* @method GET
|
|
996
998
|
* @path /cfg/payments/endpoint-groups/stats/
|
|
997
999
|
*/
|
|
998
|
-
export async function getPaymentsEndpointGroupsStatsRetrieve( client
|
|
1000
|
+
export async function getPaymentsEndpointGroupsStatsRetrieve( client?
|
|
999
1001
|
): Promise<EndpointGroup> {
|
|
1000
1002
|
const api = client || getAPIInstance()
|
|
1001
1003
|
const response = await api.cfg_payments.endpointGroupsStatsRetrieve()
|
|
@@ -1009,7 +1011,7 @@ export async function getPaymentsEndpointGroupsStatsRetrieve( client?: API
|
|
|
1009
1011
|
* @method GET
|
|
1010
1012
|
* @path /cfg/payments/health/
|
|
1011
1013
|
*/
|
|
1012
|
-
export async function getPaymentsHealthRetrieve( client
|
|
1014
|
+
export async function getPaymentsHealthRetrieve( client?
|
|
1013
1015
|
): Promise<Payment> {
|
|
1014
1016
|
const api = client || getAPIInstance()
|
|
1015
1017
|
const response = await api.cfg_payments.healthRetrieve()
|
|
@@ -1023,7 +1025,7 @@ export async function getPaymentsHealthRetrieve( client?: API
|
|
|
1023
1025
|
* @method GET
|
|
1024
1026
|
* @path /cfg/payments/networks/
|
|
1025
1027
|
*/
|
|
1026
|
-
export async function getPaymentsNetworksList( params?: { is_active?: boolean; native_currency__code?: string; ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
1028
|
+
export async function getPaymentsNetworksList( params?: { is_active?: boolean; native_currency__code?: string; ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
1027
1029
|
): Promise<PaginatedNetworkList> {
|
|
1028
1030
|
const api = client || getAPIInstance()
|
|
1029
1031
|
const response = await api.cfg_payments.networksList(params?.is_active, params?.native_currency__code, params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -1037,7 +1039,7 @@ export async function getPaymentsNetworksList( params?: { is_active?: boolean;
|
|
|
1037
1039
|
* @method GET
|
|
1038
1040
|
* @path /cfg/payments/networks/{id}/
|
|
1039
1041
|
*/
|
|
1040
|
-
export async function getPaymentsNetworksRetrieve( id: number, client
|
|
1042
|
+
export async function getPaymentsNetworksRetrieve( id: number, client?
|
|
1041
1043
|
): Promise<Network> {
|
|
1042
1044
|
const api = client || getAPIInstance()
|
|
1043
1045
|
const response = await api.cfg_payments.networksRetrieve(id)
|
|
@@ -1051,7 +1053,7 @@ export async function getPaymentsNetworksRetrieve( id: number, client?: API
|
|
|
1051
1053
|
* @method GET
|
|
1052
1054
|
* @path /cfg/payments/networks/by_currency/
|
|
1053
1055
|
*/
|
|
1054
|
-
export async function getPaymentsNetworksByCurrencyRetrieve( client
|
|
1056
|
+
export async function getPaymentsNetworksByCurrencyRetrieve( client?
|
|
1055
1057
|
): Promise<Network> {
|
|
1056
1058
|
const api = client || getAPIInstance()
|
|
1057
1059
|
const response = await api.cfg_payments.networksByCurrencyRetrieve()
|
|
@@ -1065,7 +1067,7 @@ export async function getPaymentsNetworksByCurrencyRetrieve( client?: API
|
|
|
1065
1067
|
* @method GET
|
|
1066
1068
|
* @path /cfg/payments/networks/health/
|
|
1067
1069
|
*/
|
|
1068
|
-
export async function getPaymentsNetworksHealthRetrieve( client
|
|
1070
|
+
export async function getPaymentsNetworksHealthRetrieve( client?
|
|
1069
1071
|
): Promise<Network> {
|
|
1070
1072
|
const api = client || getAPIInstance()
|
|
1071
1073
|
const response = await api.cfg_payments.networksHealthRetrieve()
|
|
@@ -1079,7 +1081,7 @@ export async function getPaymentsNetworksHealthRetrieve( client?: API
|
|
|
1079
1081
|
* @method GET
|
|
1080
1082
|
* @path /cfg/payments/networks/stats/
|
|
1081
1083
|
*/
|
|
1082
|
-
export async function getPaymentsNetworksStatsRetrieve( client
|
|
1084
|
+
export async function getPaymentsNetworksStatsRetrieve( client?
|
|
1083
1085
|
): Promise<Network> {
|
|
1084
1086
|
const api = client || getAPIInstance()
|
|
1085
1087
|
const response = await api.cfg_payments.networksStatsRetrieve()
|
|
@@ -1093,7 +1095,7 @@ export async function getPaymentsNetworksStatsRetrieve( client?: API
|
|
|
1093
1095
|
* @method GET
|
|
1094
1096
|
* @path /cfg/payments/overview/dashboard/api_keys_overview/
|
|
1095
1097
|
*/
|
|
1096
|
-
export async function getPaymentsOverviewDashboardApiKeysOverviewRetrieve( client
|
|
1098
|
+
export async function getPaymentsOverviewDashboardApiKeysOverviewRetrieve( client?
|
|
1097
1099
|
): Promise<APIKeysOverview> {
|
|
1098
1100
|
const api = client || getAPIInstance()
|
|
1099
1101
|
const response = await api.cfg_payments.overviewDashboardApiKeysOverviewRetrieve()
|
|
@@ -1107,7 +1109,7 @@ export async function getPaymentsOverviewDashboardApiKeysOverviewRetrieve( clie
|
|
|
1107
1109
|
* @method GET
|
|
1108
1110
|
* @path /cfg/payments/overview/dashboard/balance_overview/
|
|
1109
1111
|
*/
|
|
1110
|
-
export async function getPaymentsOverviewDashboardBalanceOverviewRetrieve( client
|
|
1112
|
+
export async function getPaymentsOverviewDashboardBalanceOverviewRetrieve( client?
|
|
1111
1113
|
): Promise<BalanceOverview> {
|
|
1112
1114
|
const api = client || getAPIInstance()
|
|
1113
1115
|
const response = await api.cfg_payments.overviewDashboardBalanceOverviewRetrieve()
|
|
@@ -1121,7 +1123,7 @@ export async function getPaymentsOverviewDashboardBalanceOverviewRetrieve( clie
|
|
|
1121
1123
|
* @method GET
|
|
1122
1124
|
* @path /cfg/payments/overview/dashboard/chart_data/
|
|
1123
1125
|
*/
|
|
1124
|
-
export async function getPaymentsOverviewDashboardChartDataRetrieve( params?: { period?: string }, client
|
|
1126
|
+
export async function getPaymentsOverviewDashboardChartDataRetrieve( params?: { period?: string }, client?
|
|
1125
1127
|
): Promise<PaymentsChartResponse> {
|
|
1126
1128
|
const api = client || getAPIInstance()
|
|
1127
1129
|
const response = await api.cfg_payments.overviewDashboardChartDataRetrieve(params?.period)
|
|
@@ -1135,7 +1137,7 @@ export async function getPaymentsOverviewDashboardChartDataRetrieve( params?: {
|
|
|
1135
1137
|
* @method GET
|
|
1136
1138
|
* @path /cfg/payments/overview/dashboard/metrics/
|
|
1137
1139
|
*/
|
|
1138
|
-
export async function getPaymentsOverviewDashboardMetricsRetrieve( client
|
|
1140
|
+
export async function getPaymentsOverviewDashboardMetricsRetrieve( client?
|
|
1139
1141
|
): Promise<PaymentsMetrics> {
|
|
1140
1142
|
const api = client || getAPIInstance()
|
|
1141
1143
|
const response = await api.cfg_payments.overviewDashboardMetricsRetrieve()
|
|
@@ -1149,7 +1151,7 @@ export async function getPaymentsOverviewDashboardMetricsRetrieve( client?: API
|
|
|
1149
1151
|
* @method GET
|
|
1150
1152
|
* @path /cfg/payments/overview/dashboard/overview/
|
|
1151
1153
|
*/
|
|
1152
|
-
export async function getPaymentsOverviewDashboardOverviewRetrieve( client
|
|
1154
|
+
export async function getPaymentsOverviewDashboardOverviewRetrieve( client?
|
|
1153
1155
|
): Promise<PaymentsDashboardOverview> {
|
|
1154
1156
|
const api = client || getAPIInstance()
|
|
1155
1157
|
const response = await api.cfg_payments.overviewDashboardOverviewRetrieve()
|
|
@@ -1163,7 +1165,7 @@ export async function getPaymentsOverviewDashboardOverviewRetrieve( client?: AP
|
|
|
1163
1165
|
* @method GET
|
|
1164
1166
|
* @path /cfg/payments/overview/dashboard/payment_analytics/
|
|
1165
1167
|
*/
|
|
1166
|
-
export async function getPaymentsOverviewDashboardPaymentAnalyticsRetrieve( params?: { limit?: number }, client
|
|
1168
|
+
export async function getPaymentsOverviewDashboardPaymentAnalyticsRetrieve( params?: { limit?: number }, client?
|
|
1167
1169
|
): Promise<PaymentAnalyticsResponse> {
|
|
1168
1170
|
const api = client || getAPIInstance()
|
|
1169
1171
|
const response = await api.cfg_payments.overviewDashboardPaymentAnalyticsRetrieve(params?.limit)
|
|
@@ -1177,7 +1179,7 @@ export async function getPaymentsOverviewDashboardPaymentAnalyticsRetrieve( par
|
|
|
1177
1179
|
* @method GET
|
|
1178
1180
|
* @path /cfg/payments/overview/dashboard/recent_payments/
|
|
1179
1181
|
*/
|
|
1180
|
-
export async function getPaymentsOverviewDashboardRecentPaymentsList( params?: { limit?: number; page?: number; page_size?: number }, client
|
|
1182
|
+
export async function getPaymentsOverviewDashboardRecentPaymentsList( params?: { limit?: number; page?: number; page_size?: number }, client?
|
|
1181
1183
|
): Promise<PaginatedRecentPaymentList> {
|
|
1182
1184
|
const api = client || getAPIInstance()
|
|
1183
1185
|
const response = await api.cfg_payments.overviewDashboardRecentPaymentsList(params?.limit, params?.page, params?.page_size)
|
|
@@ -1191,7 +1193,7 @@ export async function getPaymentsOverviewDashboardRecentPaymentsList( params?:
|
|
|
1191
1193
|
* @method GET
|
|
1192
1194
|
* @path /cfg/payments/overview/dashboard/recent_transactions/
|
|
1193
1195
|
*/
|
|
1194
|
-
export async function getPaymentsOverviewDashboardRecentTransactionsList( params?: { limit?: number; page?: number; page_size?: number }, client
|
|
1196
|
+
export async function getPaymentsOverviewDashboardRecentTransactionsList( params?: { limit?: number; page?: number; page_size?: number }, client?
|
|
1195
1197
|
): Promise<PaginatedRecentTransactionList> {
|
|
1196
1198
|
const api = client || getAPIInstance()
|
|
1197
1199
|
const response = await api.cfg_payments.overviewDashboardRecentTransactionsList(params?.limit, params?.page, params?.page_size)
|
|
@@ -1205,7 +1207,7 @@ export async function getPaymentsOverviewDashboardRecentTransactionsList( param
|
|
|
1205
1207
|
* @method GET
|
|
1206
1208
|
* @path /cfg/payments/overview/dashboard/subscription_overview/
|
|
1207
1209
|
*/
|
|
1208
|
-
export async function getPaymentsOverviewDashboardSubscriptionOverviewRetrieve( client
|
|
1210
|
+
export async function getPaymentsOverviewDashboardSubscriptionOverviewRetrieve( client?
|
|
1209
1211
|
): Promise<SubscriptionOverview> {
|
|
1210
1212
|
const api = client || getAPIInstance()
|
|
1211
1213
|
const response = await api.cfg_payments.overviewDashboardSubscriptionOverviewRetrieve()
|
|
@@ -1219,7 +1221,7 @@ export async function getPaymentsOverviewDashboardSubscriptionOverviewRetrieve(
|
|
|
1219
1221
|
* @method GET
|
|
1220
1222
|
* @path /cfg/payments/payment/
|
|
1221
1223
|
*/
|
|
1222
|
-
export async function getPaymentsPaymentList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string; user?: number }, client
|
|
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?
|
|
1223
1225
|
): Promise<PaginatedPaymentListList> {
|
|
1224
1226
|
const api = client || getAPIInstance()
|
|
1225
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)
|
|
@@ -1233,7 +1235,7 @@ export async function getPaymentsPaymentList( params?: { currency__code?: strin
|
|
|
1233
1235
|
* @method POST
|
|
1234
1236
|
* @path /cfg/payments/payment/
|
|
1235
1237
|
*/
|
|
1236
|
-
export async function createPaymentsPaymentCreate( data: PaymentCreateRequest, client
|
|
1238
|
+
export async function createPaymentsPaymentCreate( data: PaymentCreateRequest, client?
|
|
1237
1239
|
): Promise<PaymentCreate> {
|
|
1238
1240
|
const api = client || getAPIInstance()
|
|
1239
1241
|
const response = await api.cfg_payments.paymentCreate(data)
|
|
@@ -1247,7 +1249,7 @@ export async function createPaymentsPaymentCreate( data: PaymentCreateRequest,
|
|
|
1247
1249
|
* @method GET
|
|
1248
1250
|
* @path /cfg/payments/payment/{id}/
|
|
1249
1251
|
*/
|
|
1250
|
-
export async function getPaymentsPaymentRetrieve( id: string, client
|
|
1252
|
+
export async function getPaymentsPaymentRetrieve( id: string, client?
|
|
1251
1253
|
): Promise<Payment> {
|
|
1252
1254
|
const api = client || getAPIInstance()
|
|
1253
1255
|
const response = await api.cfg_payments.paymentRetrieve(id)
|
|
@@ -1261,7 +1263,7 @@ export async function getPaymentsPaymentRetrieve( id: string, client?: API
|
|
|
1261
1263
|
* @method PUT
|
|
1262
1264
|
* @path /cfg/payments/payment/{id}/
|
|
1263
1265
|
*/
|
|
1264
|
-
export async function updatePaymentsPaymentUpdate( id: string, data: PaymentRequest, client
|
|
1266
|
+
export async function updatePaymentsPaymentUpdate( id: string, data: PaymentRequest, client?
|
|
1265
1267
|
): Promise<Payment> {
|
|
1266
1268
|
const api = client || getAPIInstance()
|
|
1267
1269
|
const response = await api.cfg_payments.paymentUpdate(id, data)
|
|
@@ -1275,7 +1277,7 @@ export async function updatePaymentsPaymentUpdate( id: string, data: PaymentReq
|
|
|
1275
1277
|
* @method PATCH
|
|
1276
1278
|
* @path /cfg/payments/payment/{id}/
|
|
1277
1279
|
*/
|
|
1278
|
-
export async function partialUpdatePaymentsPaymentPartialUpdate( id: string, data?: PatchedPaymentRequest, client
|
|
1280
|
+
export async function partialUpdatePaymentsPaymentPartialUpdate( id: string, data?: PatchedPaymentRequest, client?
|
|
1279
1281
|
): Promise<Payment> {
|
|
1280
1282
|
const api = client || getAPIInstance()
|
|
1281
1283
|
const response = await api.cfg_payments.paymentPartialUpdate(id, data)
|
|
@@ -1289,7 +1291,7 @@ export async function partialUpdatePaymentsPaymentPartialUpdate( id: string, da
|
|
|
1289
1291
|
* @method DELETE
|
|
1290
1292
|
* @path /cfg/payments/payment/{id}/
|
|
1291
1293
|
*/
|
|
1292
|
-
export async function deletePaymentsPaymentDestroy( id: string, client
|
|
1294
|
+
export async function deletePaymentsPaymentDestroy( id: string, client?
|
|
1293
1295
|
): Promise<void> {
|
|
1294
1296
|
const api = client || getAPIInstance()
|
|
1295
1297
|
const response = await api.cfg_payments.paymentDestroy(id)
|
|
@@ -1303,7 +1305,7 @@ export async function deletePaymentsPaymentDestroy( id: string, client?: API
|
|
|
1303
1305
|
* @method POST
|
|
1304
1306
|
* @path /cfg/payments/payment/{id}/cancel/
|
|
1305
1307
|
*/
|
|
1306
|
-
export async function createPaymentsPaymentCancelCreate( id: string, data: PaymentRequest, client
|
|
1308
|
+
export async function createPaymentsPaymentCancelCreate( id: string, data: PaymentRequest, client?
|
|
1307
1309
|
): Promise<Payment> {
|
|
1308
1310
|
const api = client || getAPIInstance()
|
|
1309
1311
|
const response = await api.cfg_payments.paymentCancelCreate(id, data)
|
|
@@ -1317,7 +1319,7 @@ export async function createPaymentsPaymentCancelCreate( id: string, data: Paym
|
|
|
1317
1319
|
* @method POST
|
|
1318
1320
|
* @path /cfg/payments/payment/{id}/check_status/
|
|
1319
1321
|
*/
|
|
1320
|
-
export async function createPaymentsPaymentCheckStatusCreate( id: string, data: PaymentRequest, client
|
|
1322
|
+
export async function createPaymentsPaymentCheckStatusCreate( id: string, data: PaymentRequest, client?
|
|
1321
1323
|
): Promise<Payment> {
|
|
1322
1324
|
const api = client || getAPIInstance()
|
|
1323
1325
|
const response = await api.cfg_payments.paymentCheckStatusCreate(id, data)
|
|
@@ -1331,7 +1333,7 @@ export async function createPaymentsPaymentCheckStatusCreate( id: string, data:
|
|
|
1331
1333
|
* @method GET
|
|
1332
1334
|
* @path /cfg/payments/payment/analytics/
|
|
1333
1335
|
*/
|
|
1334
|
-
export async function getPaymentsPaymentAnalyticsRetrieve( client
|
|
1336
|
+
export async function getPaymentsPaymentAnalyticsRetrieve( client?
|
|
1335
1337
|
): Promise<Payment> {
|
|
1336
1338
|
const api = client || getAPIInstance()
|
|
1337
1339
|
const response = await api.cfg_payments.paymentAnalyticsRetrieve()
|
|
@@ -1345,7 +1347,7 @@ export async function getPaymentsPaymentAnalyticsRetrieve( client?: API
|
|
|
1345
1347
|
* @method GET
|
|
1346
1348
|
* @path /cfg/payments/payment/by_provider/
|
|
1347
1349
|
*/
|
|
1348
|
-
export async function getPaymentsPaymentByProviderRetrieve( client
|
|
1350
|
+
export async function getPaymentsPaymentByProviderRetrieve( client?
|
|
1349
1351
|
): Promise<Payment> {
|
|
1350
1352
|
const api = client || getAPIInstance()
|
|
1351
1353
|
const response = await api.cfg_payments.paymentByProviderRetrieve()
|
|
@@ -1359,7 +1361,7 @@ export async function getPaymentsPaymentByProviderRetrieve( client?: API
|
|
|
1359
1361
|
* @method POST
|
|
1360
1362
|
* @path /cfg/payments/payment/create/
|
|
1361
1363
|
*/
|
|
1362
|
-
export async function createPaymentsPaymentCreateCreate( data: PaymentCreateRequest, client
|
|
1364
|
+
export async function createPaymentsPaymentCreateCreate( data: PaymentCreateRequest, client?
|
|
1363
1365
|
): Promise<PaymentCreate> {
|
|
1364
1366
|
const api = client || getAPIInstance()
|
|
1365
1367
|
const response = await api.cfg_payments.paymentCreateCreate(data)
|
|
@@ -1373,7 +1375,7 @@ export async function createPaymentsPaymentCreateCreate( data: PaymentCreateReq
|
|
|
1373
1375
|
* @method GET
|
|
1374
1376
|
* @path /cfg/payments/payment/health/
|
|
1375
1377
|
*/
|
|
1376
|
-
export async function getPaymentsPaymentHealthRetrieve( client
|
|
1378
|
+
export async function getPaymentsPaymentHealthRetrieve( client?
|
|
1377
1379
|
): Promise<Payment> {
|
|
1378
1380
|
const api = client || getAPIInstance()
|
|
1379
1381
|
const response = await api.cfg_payments.paymentHealthRetrieve()
|
|
@@ -1387,7 +1389,7 @@ export async function getPaymentsPaymentHealthRetrieve( client?: API
|
|
|
1387
1389
|
* @method GET
|
|
1388
1390
|
* @path /cfg/payments/payment/stats/
|
|
1389
1391
|
*/
|
|
1390
|
-
export async function getPaymentsPaymentStatsRetrieve( client
|
|
1392
|
+
export async function getPaymentsPaymentStatsRetrieve( client?
|
|
1391
1393
|
): Promise<Payment> {
|
|
1392
1394
|
const api = client || getAPIInstance()
|
|
1393
1395
|
const response = await api.cfg_payments.paymentStatsRetrieve()
|
|
@@ -1401,7 +1403,7 @@ export async function getPaymentsPaymentStatsRetrieve( client?: API
|
|
|
1401
1403
|
* @method GET
|
|
1402
1404
|
* @path /cfg/payments/payment/status/{id}/
|
|
1403
1405
|
*/
|
|
1404
|
-
export async function getPaymentsPaymentStatusRetrieve( id: string, client
|
|
1406
|
+
export async function getPaymentsPaymentStatusRetrieve( id: string, client?
|
|
1405
1407
|
): Promise<Payment> {
|
|
1406
1408
|
const api = client || getAPIInstance()
|
|
1407
1409
|
const response = await api.cfg_payments.paymentStatusRetrieve(id)
|
|
@@ -1415,7 +1417,7 @@ export async function getPaymentsPaymentStatusRetrieve( id: string, client?: A
|
|
|
1415
1417
|
* @method GET
|
|
1416
1418
|
* @path /cfg/payments/provider-currencies/
|
|
1417
1419
|
*/
|
|
1418
|
-
export async function getPaymentsProviderCurrenciesList( params?: { currency__code?: string; is_enabled?: boolean; network__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string }, client
|
|
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?
|
|
1419
1421
|
): Promise<PaginatedProviderCurrencyList> {
|
|
1420
1422
|
const api = client || getAPIInstance()
|
|
1421
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)
|
|
@@ -1429,7 +1431,7 @@ export async function getPaymentsProviderCurrenciesList( params?: { currency__c
|
|
|
1429
1431
|
* @method GET
|
|
1430
1432
|
* @path /cfg/payments/provider-currencies/{id}/
|
|
1431
1433
|
*/
|
|
1432
|
-
export async function getPaymentsProviderCurrenciesRetrieve( id: number, client
|
|
1434
|
+
export async function getPaymentsProviderCurrenciesRetrieve( id: number, client?
|
|
1433
1435
|
): Promise<ProviderCurrency> {
|
|
1434
1436
|
const api = client || getAPIInstance()
|
|
1435
1437
|
const response = await api.cfg_payments.providerCurrenciesRetrieve(id)
|
|
@@ -1443,7 +1445,7 @@ export async function getPaymentsProviderCurrenciesRetrieve( id: number, clien
|
|
|
1443
1445
|
* @method GET
|
|
1444
1446
|
* @path /cfg/payments/provider-currencies/by_provider/
|
|
1445
1447
|
*/
|
|
1446
|
-
export async function getPaymentsProviderCurrenciesByProviderRetrieve( params?: { provider?: string }, client
|
|
1448
|
+
export async function getPaymentsProviderCurrenciesByProviderRetrieve( params?: { provider?: string }, client?
|
|
1447
1449
|
): Promise<ProviderCurrency> {
|
|
1448
1450
|
const api = client || getAPIInstance()
|
|
1449
1451
|
const response = await api.cfg_payments.providerCurrenciesByProviderRetrieve(params?.provider)
|
|
@@ -1457,7 +1459,7 @@ export async function getPaymentsProviderCurrenciesByProviderRetrieve( params?:
|
|
|
1457
1459
|
* @method GET
|
|
1458
1460
|
* @path /cfg/payments/provider-currencies/health/
|
|
1459
1461
|
*/
|
|
1460
|
-
export async function getPaymentsProviderCurrenciesHealthRetrieve( client
|
|
1462
|
+
export async function getPaymentsProviderCurrenciesHealthRetrieve( client?
|
|
1461
1463
|
): Promise<ProviderCurrency> {
|
|
1462
1464
|
const api = client || getAPIInstance()
|
|
1463
1465
|
const response = await api.cfg_payments.providerCurrenciesHealthRetrieve()
|
|
@@ -1471,7 +1473,7 @@ export async function getPaymentsProviderCurrenciesHealthRetrieve( client?: API
|
|
|
1471
1473
|
* @method GET
|
|
1472
1474
|
* @path /cfg/payments/provider-currencies/limits/
|
|
1473
1475
|
*/
|
|
1474
|
-
export async function getPaymentsProviderCurrenciesLimitsRetrieve( client
|
|
1476
|
+
export async function getPaymentsProviderCurrenciesLimitsRetrieve( client?
|
|
1475
1477
|
): Promise<ProviderCurrency> {
|
|
1476
1478
|
const api = client || getAPIInstance()
|
|
1477
1479
|
const response = await api.cfg_payments.providerCurrenciesLimitsRetrieve()
|
|
@@ -1485,7 +1487,7 @@ export async function getPaymentsProviderCurrenciesLimitsRetrieve( client?: API
|
|
|
1485
1487
|
* @method GET
|
|
1486
1488
|
* @path /cfg/payments/provider-currencies/stats/
|
|
1487
1489
|
*/
|
|
1488
|
-
export async function getPaymentsProviderCurrenciesStatsRetrieve( client
|
|
1490
|
+
export async function getPaymentsProviderCurrenciesStatsRetrieve( client?
|
|
1489
1491
|
): Promise<ProviderCurrency> {
|
|
1490
1492
|
const api = client || getAPIInstance()
|
|
1491
1493
|
const response = await api.cfg_payments.providerCurrenciesStatsRetrieve()
|
|
@@ -1499,7 +1501,7 @@ export async function getPaymentsProviderCurrenciesStatsRetrieve( client?: API
|
|
|
1499
1501
|
* @method GET
|
|
1500
1502
|
* @path /cfg/payments/subscriptions/
|
|
1501
1503
|
*/
|
|
1502
|
-
export async function getPaymentsSubscriptionsList( params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string; user?: number }, client
|
|
1504
|
+
export async function getPaymentsSubscriptionsList( params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string; user?: number }, client?
|
|
1503
1505
|
): Promise<PaginatedSubscriptionListList> {
|
|
1504
1506
|
const api = client || getAPIInstance()
|
|
1505
1507
|
const response = await api.cfg_payments.subscriptionsList(params?.ordering, params?.page, params?.page_size, params?.search, params?.status, params?.tier, params?.user)
|
|
@@ -1513,7 +1515,7 @@ export async function getPaymentsSubscriptionsList( params?: { ordering?: strin
|
|
|
1513
1515
|
* @method POST
|
|
1514
1516
|
* @path /cfg/payments/subscriptions/
|
|
1515
1517
|
*/
|
|
1516
|
-
export async function createPaymentsSubscriptionsCreate( data: SubscriptionCreateRequest, client
|
|
1518
|
+
export async function createPaymentsSubscriptionsCreate( data: SubscriptionCreateRequest, client?
|
|
1517
1519
|
): Promise<SubscriptionCreate> {
|
|
1518
1520
|
const api = client || getAPIInstance()
|
|
1519
1521
|
const response = await api.cfg_payments.subscriptionsCreate(data)
|
|
@@ -1527,7 +1529,7 @@ export async function createPaymentsSubscriptionsCreate( data: SubscriptionCrea
|
|
|
1527
1529
|
* @method GET
|
|
1528
1530
|
* @path /cfg/payments/subscriptions/{id}/
|
|
1529
1531
|
*/
|
|
1530
|
-
export async function getPaymentsSubscriptionsRetrieve( id: string, client
|
|
1532
|
+
export async function getPaymentsSubscriptionsRetrieve( id: string, client?
|
|
1531
1533
|
): Promise<Subscription> {
|
|
1532
1534
|
const api = client || getAPIInstance()
|
|
1533
1535
|
const response = await api.cfg_payments.subscriptionsRetrieve(id)
|
|
@@ -1541,7 +1543,7 @@ export async function getPaymentsSubscriptionsRetrieve( id: string, client?: A
|
|
|
1541
1543
|
* @method PUT
|
|
1542
1544
|
* @path /cfg/payments/subscriptions/{id}/
|
|
1543
1545
|
*/
|
|
1544
|
-
export async function updatePaymentsSubscriptionsUpdate( id: string, data: SubscriptionRequest, client
|
|
1546
|
+
export async function updatePaymentsSubscriptionsUpdate( id: string, data: SubscriptionRequest, client?
|
|
1545
1547
|
): Promise<Subscription> {
|
|
1546
1548
|
const api = client || getAPIInstance()
|
|
1547
1549
|
const response = await api.cfg_payments.subscriptionsUpdate(id, data)
|
|
@@ -1555,7 +1557,7 @@ export async function updatePaymentsSubscriptionsUpdate( id: string, data: Subs
|
|
|
1555
1557
|
* @method PATCH
|
|
1556
1558
|
* @path /cfg/payments/subscriptions/{id}/
|
|
1557
1559
|
*/
|
|
1558
|
-
export async function partialUpdatePaymentsSubscriptionsPartialUpdate( id: string, data?: PatchedSubscriptionRequest, client
|
|
1560
|
+
export async function partialUpdatePaymentsSubscriptionsPartialUpdate( id: string, data?: PatchedSubscriptionRequest, client?
|
|
1559
1561
|
): Promise<Subscription> {
|
|
1560
1562
|
const api = client || getAPIInstance()
|
|
1561
1563
|
const response = await api.cfg_payments.subscriptionsPartialUpdate(id, data)
|
|
@@ -1569,7 +1571,7 @@ export async function partialUpdatePaymentsSubscriptionsPartialUpdate( id: stri
|
|
|
1569
1571
|
* @method DELETE
|
|
1570
1572
|
* @path /cfg/payments/subscriptions/{id}/
|
|
1571
1573
|
*/
|
|
1572
|
-
export async function deletePaymentsSubscriptionsDestroy( id: string, client
|
|
1574
|
+
export async function deletePaymentsSubscriptionsDestroy( id: string, client?
|
|
1573
1575
|
): Promise<void> {
|
|
1574
1576
|
const api = client || getAPIInstance()
|
|
1575
1577
|
const response = await api.cfg_payments.subscriptionsDestroy(id)
|
|
@@ -1583,7 +1585,7 @@ export async function deletePaymentsSubscriptionsDestroy( id: string, client?:
|
|
|
1583
1585
|
* @method POST
|
|
1584
1586
|
* @path /cfg/payments/subscriptions/{id}/increment_usage/
|
|
1585
1587
|
*/
|
|
1586
|
-
export async function createPaymentsSubscriptionsIncrementUsageCreate( id: string, data: SubscriptionRequest, client
|
|
1588
|
+
export async function createPaymentsSubscriptionsIncrementUsageCreate( id: string, data: SubscriptionRequest, client?
|
|
1587
1589
|
): Promise<Subscription> {
|
|
1588
1590
|
const api = client || getAPIInstance()
|
|
1589
1591
|
const response = await api.cfg_payments.subscriptionsIncrementUsageCreate(id, data)
|
|
@@ -1597,7 +1599,7 @@ export async function createPaymentsSubscriptionsIncrementUsageCreate( id: stri
|
|
|
1597
1599
|
* @method POST
|
|
1598
1600
|
* @path /cfg/payments/subscriptions/{id}/update_status/
|
|
1599
1601
|
*/
|
|
1600
|
-
export async function createPaymentsSubscriptionsUpdateStatusCreate( id: string, data: SubscriptionRequest, client
|
|
1602
|
+
export async function createPaymentsSubscriptionsUpdateStatusCreate( id: string, data: SubscriptionRequest, client?
|
|
1601
1603
|
): Promise<Subscription> {
|
|
1602
1604
|
const api = client || getAPIInstance()
|
|
1603
1605
|
const response = await api.cfg_payments.subscriptionsUpdateStatusCreate(id, data)
|
|
@@ -1611,7 +1613,7 @@ export async function createPaymentsSubscriptionsUpdateStatusCreate( id: string
|
|
|
1611
1613
|
* @method GET
|
|
1612
1614
|
* @path /cfg/payments/subscriptions/analytics/
|
|
1613
1615
|
*/
|
|
1614
|
-
export async function getPaymentsSubscriptionsAnalyticsRetrieve( client
|
|
1616
|
+
export async function getPaymentsSubscriptionsAnalyticsRetrieve( client?
|
|
1615
1617
|
): Promise<Subscription> {
|
|
1616
1618
|
const api = client || getAPIInstance()
|
|
1617
1619
|
const response = await api.cfg_payments.subscriptionsAnalyticsRetrieve()
|
|
@@ -1625,7 +1627,7 @@ export async function getPaymentsSubscriptionsAnalyticsRetrieve( client?: API
|
|
|
1625
1627
|
* @method GET
|
|
1626
1628
|
* @path /cfg/payments/subscriptions/by_status/
|
|
1627
1629
|
*/
|
|
1628
|
-
export async function getPaymentsSubscriptionsByStatusRetrieve( client
|
|
1630
|
+
export async function getPaymentsSubscriptionsByStatusRetrieve( client?
|
|
1629
1631
|
): Promise<Subscription> {
|
|
1630
1632
|
const api = client || getAPIInstance()
|
|
1631
1633
|
const response = await api.cfg_payments.subscriptionsByStatusRetrieve()
|
|
@@ -1639,7 +1641,7 @@ export async function getPaymentsSubscriptionsByStatusRetrieve( client?: API
|
|
|
1639
1641
|
* @method GET
|
|
1640
1642
|
* @path /cfg/payments/subscriptions/by_tier/
|
|
1641
1643
|
*/
|
|
1642
|
-
export async function getPaymentsSubscriptionsByTierRetrieve( client
|
|
1644
|
+
export async function getPaymentsSubscriptionsByTierRetrieve( client?
|
|
1643
1645
|
): Promise<Subscription> {
|
|
1644
1646
|
const api = client || getAPIInstance()
|
|
1645
1647
|
const response = await api.cfg_payments.subscriptionsByTierRetrieve()
|
|
@@ -1653,7 +1655,7 @@ export async function getPaymentsSubscriptionsByTierRetrieve( client?: API
|
|
|
1653
1655
|
* @method GET
|
|
1654
1656
|
* @path /cfg/payments/subscriptions/health/
|
|
1655
1657
|
*/
|
|
1656
|
-
export async function getPaymentsSubscriptionsHealthRetrieve( client
|
|
1658
|
+
export async function getPaymentsSubscriptionsHealthRetrieve( client?
|
|
1657
1659
|
): Promise<Subscription> {
|
|
1658
1660
|
const api = client || getAPIInstance()
|
|
1659
1661
|
const response = await api.cfg_payments.subscriptionsHealthRetrieve()
|
|
@@ -1667,7 +1669,7 @@ export async function getPaymentsSubscriptionsHealthRetrieve( client?: API
|
|
|
1667
1669
|
* @method GET
|
|
1668
1670
|
* @path /cfg/payments/subscriptions/stats/
|
|
1669
1671
|
*/
|
|
1670
|
-
export async function getPaymentsSubscriptionsStatsRetrieve( client
|
|
1672
|
+
export async function getPaymentsSubscriptionsStatsRetrieve( client?
|
|
1671
1673
|
): Promise<Subscription> {
|
|
1672
1674
|
const api = client || getAPIInstance()
|
|
1673
1675
|
const response = await api.cfg_payments.subscriptionsStatsRetrieve()
|
|
@@ -1681,7 +1683,7 @@ export async function getPaymentsSubscriptionsStatsRetrieve( client?: API
|
|
|
1681
1683
|
* @method GET
|
|
1682
1684
|
* @path /cfg/payments/tariffs/
|
|
1683
1685
|
*/
|
|
1684
|
-
export async function getPaymentsTariffsList( params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
1686
|
+
export async function getPaymentsTariffsList( params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
1685
1687
|
): Promise<PaginatedTariffList> {
|
|
1686
1688
|
const api = client || getAPIInstance()
|
|
1687
1689
|
const response = await api.cfg_payments.tariffsList(params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -1695,7 +1697,7 @@ export async function getPaymentsTariffsList( params?: { is_active?: boolean; o
|
|
|
1695
1697
|
* @method GET
|
|
1696
1698
|
* @path /cfg/payments/tariffs/{id}/
|
|
1697
1699
|
*/
|
|
1698
|
-
export async function getPaymentsTariffsRetrieve( id: number, client
|
|
1700
|
+
export async function getPaymentsTariffsRetrieve( id: number, client?
|
|
1699
1701
|
): Promise<Tariff> {
|
|
1700
1702
|
const api = client || getAPIInstance()
|
|
1701
1703
|
const response = await api.cfg_payments.tariffsRetrieve(id)
|
|
@@ -1709,7 +1711,7 @@ export async function getPaymentsTariffsRetrieve( id: number, client?: API
|
|
|
1709
1711
|
* @method GET
|
|
1710
1712
|
* @path /cfg/payments/tariffs/{id}/endpoint_groups/
|
|
1711
1713
|
*/
|
|
1712
|
-
export async function getPaymentsTariffsEndpointGroupsRetrieve( id: number, client
|
|
1714
|
+
export async function getPaymentsTariffsEndpointGroupsRetrieve( id: number, client?
|
|
1713
1715
|
): Promise<Tariff> {
|
|
1714
1716
|
const api = client || getAPIInstance()
|
|
1715
1717
|
const response = await api.cfg_payments.tariffsEndpointGroupsRetrieve(id)
|
|
@@ -1723,7 +1725,7 @@ export async function getPaymentsTariffsEndpointGroupsRetrieve( id: number, cl
|
|
|
1723
1725
|
* @method GET
|
|
1724
1726
|
* @path /cfg/payments/tariffs/free/
|
|
1725
1727
|
*/
|
|
1726
|
-
export async function getPaymentsTariffsFreeRetrieve( client
|
|
1728
|
+
export async function getPaymentsTariffsFreeRetrieve( client?
|
|
1727
1729
|
): Promise<Tariff> {
|
|
1728
1730
|
const api = client || getAPIInstance()
|
|
1729
1731
|
const response = await api.cfg_payments.tariffsFreeRetrieve()
|
|
@@ -1737,7 +1739,7 @@ export async function getPaymentsTariffsFreeRetrieve( client?: API
|
|
|
1737
1739
|
* @method GET
|
|
1738
1740
|
* @path /cfg/payments/tariffs/health/
|
|
1739
1741
|
*/
|
|
1740
|
-
export async function getPaymentsTariffsHealthRetrieve( client
|
|
1742
|
+
export async function getPaymentsTariffsHealthRetrieve( client?
|
|
1741
1743
|
): Promise<Tariff> {
|
|
1742
1744
|
const api = client || getAPIInstance()
|
|
1743
1745
|
const response = await api.cfg_payments.tariffsHealthRetrieve()
|
|
@@ -1751,7 +1753,7 @@ export async function getPaymentsTariffsHealthRetrieve( client?: API
|
|
|
1751
1753
|
* @method GET
|
|
1752
1754
|
* @path /cfg/payments/tariffs/paid/
|
|
1753
1755
|
*/
|
|
1754
|
-
export async function getPaymentsTariffsPaidRetrieve( client
|
|
1756
|
+
export async function getPaymentsTariffsPaidRetrieve( client?
|
|
1755
1757
|
): Promise<Tariff> {
|
|
1756
1758
|
const api = client || getAPIInstance()
|
|
1757
1759
|
const response = await api.cfg_payments.tariffsPaidRetrieve()
|
|
@@ -1765,7 +1767,7 @@ export async function getPaymentsTariffsPaidRetrieve( client?: API
|
|
|
1765
1767
|
* @method GET
|
|
1766
1768
|
* @path /cfg/payments/tariffs/stats/
|
|
1767
1769
|
*/
|
|
1768
|
-
export async function getPaymentsTariffsStatsRetrieve( client
|
|
1770
|
+
export async function getPaymentsTariffsStatsRetrieve( client?
|
|
1769
1771
|
): Promise<Tariff> {
|
|
1770
1772
|
const api = client || getAPIInstance()
|
|
1771
1773
|
const response = await api.cfg_payments.tariffsStatsRetrieve()
|
|
@@ -1779,7 +1781,7 @@ export async function getPaymentsTariffsStatsRetrieve( client?: API
|
|
|
1779
1781
|
* @method GET
|
|
1780
1782
|
* @path /cfg/payments/transactions/
|
|
1781
1783
|
*/
|
|
1782
|
-
export async function getPaymentsTransactionsList( params?: { ordering?: string; page?: number; page_size?: number; payment_id?: string; search?: string; transaction_type?: string; user?: number }, client
|
|
1784
|
+
export async function getPaymentsTransactionsList( params?: { ordering?: string; page?: number; page_size?: number; payment_id?: string; search?: string; transaction_type?: string; user?: number }, client?
|
|
1783
1785
|
): Promise<PaginatedTransactionList> {
|
|
1784
1786
|
const api = client || getAPIInstance()
|
|
1785
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)
|
|
@@ -1793,7 +1795,7 @@ export async function getPaymentsTransactionsList( params?: { ordering?: string
|
|
|
1793
1795
|
* @method GET
|
|
1794
1796
|
* @path /cfg/payments/transactions/{id}/
|
|
1795
1797
|
*/
|
|
1796
|
-
export async function getPaymentsTransactionsRetrieve( id: string, client
|
|
1798
|
+
export async function getPaymentsTransactionsRetrieve( id: string, client?
|
|
1797
1799
|
): Promise<Transaction> {
|
|
1798
1800
|
const api = client || getAPIInstance()
|
|
1799
1801
|
const response = await api.cfg_payments.transactionsRetrieve(id)
|
|
@@ -1807,7 +1809,7 @@ export async function getPaymentsTransactionsRetrieve( id: string, client?: AP
|
|
|
1807
1809
|
* @method GET
|
|
1808
1810
|
* @path /cfg/payments/transactions/by_type/
|
|
1809
1811
|
*/
|
|
1810
|
-
export async function getPaymentsTransactionsByTypeRetrieve( client
|
|
1812
|
+
export async function getPaymentsTransactionsByTypeRetrieve( client?
|
|
1811
1813
|
): Promise<Transaction> {
|
|
1812
1814
|
const api = client || getAPIInstance()
|
|
1813
1815
|
const response = await api.cfg_payments.transactionsByTypeRetrieve()
|
|
@@ -1821,7 +1823,7 @@ export async function getPaymentsTransactionsByTypeRetrieve( client?: API
|
|
|
1821
1823
|
* @method GET
|
|
1822
1824
|
* @path /cfg/payments/transactions/health/
|
|
1823
1825
|
*/
|
|
1824
|
-
export async function getPaymentsTransactionsHealthRetrieve( client
|
|
1826
|
+
export async function getPaymentsTransactionsHealthRetrieve( client?
|
|
1825
1827
|
): Promise<Transaction> {
|
|
1826
1828
|
const api = client || getAPIInstance()
|
|
1827
1829
|
const response = await api.cfg_payments.transactionsHealthRetrieve()
|
|
@@ -1835,7 +1837,7 @@ export async function getPaymentsTransactionsHealthRetrieve( client?: API
|
|
|
1835
1837
|
* @method GET
|
|
1836
1838
|
* @path /cfg/payments/transactions/recent/
|
|
1837
1839
|
*/
|
|
1838
|
-
export async function getPaymentsTransactionsRecentRetrieve( client
|
|
1840
|
+
export async function getPaymentsTransactionsRecentRetrieve( client?
|
|
1839
1841
|
): Promise<Transaction> {
|
|
1840
1842
|
const api = client || getAPIInstance()
|
|
1841
1843
|
const response = await api.cfg_payments.transactionsRecentRetrieve()
|
|
@@ -1849,7 +1851,7 @@ export async function getPaymentsTransactionsRecentRetrieve( client?: API
|
|
|
1849
1851
|
* @method GET
|
|
1850
1852
|
* @path /cfg/payments/transactions/stats/
|
|
1851
1853
|
*/
|
|
1852
|
-
export async function getPaymentsTransactionsStatsRetrieve( client
|
|
1854
|
+
export async function getPaymentsTransactionsStatsRetrieve( client?
|
|
1853
1855
|
): Promise<Transaction> {
|
|
1854
1856
|
const api = client || getAPIInstance()
|
|
1855
1857
|
const response = await api.cfg_payments.transactionsStatsRetrieve()
|
|
@@ -1863,7 +1865,7 @@ export async function getPaymentsTransactionsStatsRetrieve( client?: API
|
|
|
1863
1865
|
* @method GET
|
|
1864
1866
|
* @path /cfg/payments/users/
|
|
1865
1867
|
*/
|
|
1866
|
-
export async function getPaymentsUsersList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }, client
|
|
1868
|
+
export async function getPaymentsUsersList( params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }, client?
|
|
1867
1869
|
): Promise<PaginatedPaymentListList> {
|
|
1868
1870
|
const api = client || getAPIInstance()
|
|
1869
1871
|
const response = await api.cfg_payments.usersList(params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status)
|
|
@@ -1877,7 +1879,7 @@ export async function getPaymentsUsersList( params?: { currency__code?: string;
|
|
|
1877
1879
|
* @method POST
|
|
1878
1880
|
* @path /cfg/payments/users/
|
|
1879
1881
|
*/
|
|
1880
|
-
export async function createPaymentsUsersCreate( data: PaymentCreateRequest, client
|
|
1882
|
+
export async function createPaymentsUsersCreate( data: PaymentCreateRequest, client?
|
|
1881
1883
|
): Promise<PaymentCreate> {
|
|
1882
1884
|
const api = client || getAPIInstance()
|
|
1883
1885
|
const response = await api.cfg_payments.usersCreate(data)
|
|
@@ -1891,7 +1893,7 @@ export async function createPaymentsUsersCreate( data: PaymentCreateRequest, c
|
|
|
1891
1893
|
* @method GET
|
|
1892
1894
|
* @path /cfg/payments/users/{id}/
|
|
1893
1895
|
*/
|
|
1894
|
-
export async function getPaymentsUsersRetrieve( id: string, client
|
|
1896
|
+
export async function getPaymentsUsersRetrieve( id: string, client?
|
|
1895
1897
|
): Promise<Payment> {
|
|
1896
1898
|
const api = client || getAPIInstance()
|
|
1897
1899
|
const response = await api.cfg_payments.usersRetrieve(id)
|
|
@@ -1905,7 +1907,7 @@ export async function getPaymentsUsersRetrieve( id: string, client?: API
|
|
|
1905
1907
|
* @method PUT
|
|
1906
1908
|
* @path /cfg/payments/users/{id}/
|
|
1907
1909
|
*/
|
|
1908
|
-
export async function updatePaymentsUsersUpdate( id: string, data: PaymentRequest, client
|
|
1910
|
+
export async function updatePaymentsUsersUpdate( id: string, data: PaymentRequest, client?
|
|
1909
1911
|
): Promise<Payment> {
|
|
1910
1912
|
const api = client || getAPIInstance()
|
|
1911
1913
|
const response = await api.cfg_payments.usersUpdate(id, data)
|
|
@@ -1919,7 +1921,7 @@ export async function updatePaymentsUsersUpdate( id: string, data: PaymentReque
|
|
|
1919
1921
|
* @method PATCH
|
|
1920
1922
|
* @path /cfg/payments/users/{id}/
|
|
1921
1923
|
*/
|
|
1922
|
-
export async function partialUpdatePaymentsUsersPartialUpdate( id: string, data?: PatchedPaymentRequest, client
|
|
1924
|
+
export async function partialUpdatePaymentsUsersPartialUpdate( id: string, data?: PatchedPaymentRequest, client?
|
|
1923
1925
|
): Promise<Payment> {
|
|
1924
1926
|
const api = client || getAPIInstance()
|
|
1925
1927
|
const response = await api.cfg_payments.usersPartialUpdate(id, data)
|
|
@@ -1933,7 +1935,7 @@ export async function partialUpdatePaymentsUsersPartialUpdate( id: string, data
|
|
|
1933
1935
|
* @method DELETE
|
|
1934
1936
|
* @path /cfg/payments/users/{id}/
|
|
1935
1937
|
*/
|
|
1936
|
-
export async function deletePaymentsUsersDestroy( id: string, client
|
|
1938
|
+
export async function deletePaymentsUsersDestroy( id: string, client?
|
|
1937
1939
|
): Promise<void> {
|
|
1938
1940
|
const api = client || getAPIInstance()
|
|
1939
1941
|
const response = await api.cfg_payments.usersDestroy(id)
|
|
@@ -1947,7 +1949,7 @@ export async function deletePaymentsUsersDestroy( id: string, client?: API
|
|
|
1947
1949
|
* @method POST
|
|
1948
1950
|
* @path /cfg/payments/users/{id}/cancel/
|
|
1949
1951
|
*/
|
|
1950
|
-
export async function createPaymentsUsersCancelCreate( id: string, data: PaymentRequest, client
|
|
1952
|
+
export async function createPaymentsUsersCancelCreate( id: string, data: PaymentRequest, client?
|
|
1951
1953
|
): Promise<Payment> {
|
|
1952
1954
|
const api = client || getAPIInstance()
|
|
1953
1955
|
const response = await api.cfg_payments.usersCancelCreate(id, data)
|
|
@@ -1961,7 +1963,7 @@ export async function createPaymentsUsersCancelCreate( id: string, data: Paymen
|
|
|
1961
1963
|
* @method POST
|
|
1962
1964
|
* @path /cfg/payments/users/{id}/check_status/
|
|
1963
1965
|
*/
|
|
1964
|
-
export async function createPaymentsUsersCheckStatusCreate( id: string, data: PaymentRequest, client
|
|
1966
|
+
export async function createPaymentsUsersCheckStatusCreate( id: string, data: PaymentRequest, client?
|
|
1965
1967
|
): Promise<Payment> {
|
|
1966
1968
|
const api = client || getAPIInstance()
|
|
1967
1969
|
const response = await api.cfg_payments.usersCheckStatusCreate(id, data)
|
|
@@ -1975,7 +1977,7 @@ export async function createPaymentsUsersCheckStatusCreate( id: string, data: P
|
|
|
1975
1977
|
* @method GET
|
|
1976
1978
|
* @path /cfg/payments/users/{user_pk}/api-keys/
|
|
1977
1979
|
*/
|
|
1978
|
-
export async function getPaymentsUsersApiKeysList( user_pk: number, params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client
|
|
1980
|
+
export async function getPaymentsUsersApiKeysList( user_pk: number, params?: { is_active?: boolean; ordering?: string; page?: number; page_size?: number; search?: string }, client?
|
|
1979
1981
|
): Promise<PaginatedAPIKeyListList> {
|
|
1980
1982
|
const api = client || getAPIInstance()
|
|
1981
1983
|
const response = await api.cfg_payments.usersApiKeysList(user_pk, params?.is_active, params?.ordering, params?.page, params?.page_size, params?.search)
|
|
@@ -1989,7 +1991,7 @@ export async function getPaymentsUsersApiKeysList( user_pk: number, params?: {
|
|
|
1989
1991
|
* @method POST
|
|
1990
1992
|
* @path /cfg/payments/users/{user_pk}/api-keys/
|
|
1991
1993
|
*/
|
|
1992
|
-
export async function createPaymentsUsersApiKeysCreate( user_pk: number, data: APIKeyCreateRequest, client
|
|
1994
|
+
export async function createPaymentsUsersApiKeysCreate( user_pk: number, data: APIKeyCreateRequest, client?
|
|
1993
1995
|
): Promise<APIKeyCreate> {
|
|
1994
1996
|
const api = client || getAPIInstance()
|
|
1995
1997
|
const response = await api.cfg_payments.usersApiKeysCreate(user_pk, data)
|
|
@@ -2003,7 +2005,7 @@ export async function createPaymentsUsersApiKeysCreate( user_pk: number, data:
|
|
|
2003
2005
|
* @method GET
|
|
2004
2006
|
* @path /cfg/payments/users/{user_pk}/api-keys/{id}/
|
|
2005
2007
|
*/
|
|
2006
|
-
export async function getPaymentsUsersApiKeysRetrieve( id: string, user_pk: number, client
|
|
2008
|
+
export async function getPaymentsUsersApiKeysRetrieve( id: string, user_pk: number, client?
|
|
2007
2009
|
): Promise<APIKeyDetail> {
|
|
2008
2010
|
const api = client || getAPIInstance()
|
|
2009
2011
|
const response = await api.cfg_payments.usersApiKeysRetrieve(id, user_pk)
|
|
@@ -2017,7 +2019,7 @@ export async function getPaymentsUsersApiKeysRetrieve( id: string, user_pk: num
|
|
|
2017
2019
|
* @method PUT
|
|
2018
2020
|
* @path /cfg/payments/users/{user_pk}/api-keys/{id}/
|
|
2019
2021
|
*/
|
|
2020
|
-
export async function updatePaymentsUsersApiKeysUpdate( id: string, user_pk: number, data: APIKeyUpdateRequest, client
|
|
2022
|
+
export async function updatePaymentsUsersApiKeysUpdate( id: string, user_pk: number, data: APIKeyUpdateRequest, client?
|
|
2021
2023
|
): Promise<APIKeyUpdate> {
|
|
2022
2024
|
const api = client || getAPIInstance()
|
|
2023
2025
|
const response = await api.cfg_payments.usersApiKeysUpdate(id, user_pk, data)
|
|
@@ -2031,7 +2033,7 @@ export async function updatePaymentsUsersApiKeysUpdate( id: string, user_pk: nu
|
|
|
2031
2033
|
* @method PATCH
|
|
2032
2034
|
* @path /cfg/payments/users/{user_pk}/api-keys/{id}/
|
|
2033
2035
|
*/
|
|
2034
|
-
export async function partialUpdatePaymentsUsersApiKeysPartialUpdate( id: string, user_pk: number, data?: PatchedAPIKeyUpdateRequest, client
|
|
2036
|
+
export async function partialUpdatePaymentsUsersApiKeysPartialUpdate( id: string, user_pk: number, data?: PatchedAPIKeyUpdateRequest, client?
|
|
2035
2037
|
): Promise<APIKeyUpdate> {
|
|
2036
2038
|
const api = client || getAPIInstance()
|
|
2037
2039
|
const response = await api.cfg_payments.usersApiKeysPartialUpdate(id, user_pk, data)
|
|
@@ -2045,7 +2047,7 @@ export async function partialUpdatePaymentsUsersApiKeysPartialUpdate( id: strin
|
|
|
2045
2047
|
* @method DELETE
|
|
2046
2048
|
* @path /cfg/payments/users/{user_pk}/api-keys/{id}/
|
|
2047
2049
|
*/
|
|
2048
|
-
export async function deletePaymentsUsersApiKeysDestroy( id: string, user_pk: number, client
|
|
2050
|
+
export async function deletePaymentsUsersApiKeysDestroy( id: string, user_pk: number, client?
|
|
2049
2051
|
): Promise<void> {
|
|
2050
2052
|
const api = client || getAPIInstance()
|
|
2051
2053
|
const response = await api.cfg_payments.usersApiKeysDestroy(id, user_pk)
|
|
@@ -2059,7 +2061,7 @@ export async function deletePaymentsUsersApiKeysDestroy( id: string, user_pk: n
|
|
|
2059
2061
|
* @method POST
|
|
2060
2062
|
* @path /cfg/payments/users/{user_pk}/api-keys/{id}/perform_action/
|
|
2061
2063
|
*/
|
|
2062
|
-
export async function createPaymentsUsersApiKeysPerformActionCreate( id: string, user_pk: number, client
|
|
2064
|
+
export async function createPaymentsUsersApiKeysPerformActionCreate( id: string, user_pk: number, client?
|
|
2063
2065
|
): Promise<APIKeyDetail> {
|
|
2064
2066
|
const api = client || getAPIInstance()
|
|
2065
2067
|
const response = await api.cfg_payments.usersApiKeysPerformActionCreate(id, user_pk)
|
|
@@ -2073,7 +2075,7 @@ export async function createPaymentsUsersApiKeysPerformActionCreate( id: string
|
|
|
2073
2075
|
* @method GET
|
|
2074
2076
|
* @path /cfg/payments/users/{user_pk}/api-keys/active/
|
|
2075
2077
|
*/
|
|
2076
|
-
export async function getPaymentsUsersApiKeysActiveRetrieve( user_pk: number, client
|
|
2078
|
+
export async function getPaymentsUsersApiKeysActiveRetrieve( user_pk: number, client?
|
|
2077
2079
|
): Promise<APIKeyDetail> {
|
|
2078
2080
|
const api = client || getAPIInstance()
|
|
2079
2081
|
const response = await api.cfg_payments.usersApiKeysActiveRetrieve(user_pk)
|
|
@@ -2087,7 +2089,7 @@ export async function getPaymentsUsersApiKeysActiveRetrieve( user_pk: number,
|
|
|
2087
2089
|
* @method GET
|
|
2088
2090
|
* @path /cfg/payments/users/{user_pk}/api-keys/health/
|
|
2089
2091
|
*/
|
|
2090
|
-
export async function getPaymentsUsersApiKeysHealthRetrieve( user_pk: number, client
|
|
2092
|
+
export async function getPaymentsUsersApiKeysHealthRetrieve( user_pk: number, client?
|
|
2091
2093
|
): Promise<APIKeyDetail> {
|
|
2092
2094
|
const api = client || getAPIInstance()
|
|
2093
2095
|
const response = await api.cfg_payments.usersApiKeysHealthRetrieve(user_pk)
|
|
@@ -2101,7 +2103,7 @@ export async function getPaymentsUsersApiKeysHealthRetrieve( user_pk: number,
|
|
|
2101
2103
|
* @method GET
|
|
2102
2104
|
* @path /cfg/payments/users/{user_pk}/api-keys/stats/
|
|
2103
2105
|
*/
|
|
2104
|
-
export async function getPaymentsUsersApiKeysStatsRetrieve( user_pk: number, client
|
|
2106
|
+
export async function getPaymentsUsersApiKeysStatsRetrieve( user_pk: number, client?
|
|
2105
2107
|
): Promise<APIKeyDetail> {
|
|
2106
2108
|
const api = client || getAPIInstance()
|
|
2107
2109
|
const response = await api.cfg_payments.usersApiKeysStatsRetrieve(user_pk)
|
|
@@ -2115,7 +2117,7 @@ export async function getPaymentsUsersApiKeysStatsRetrieve( user_pk: number, c
|
|
|
2115
2117
|
* @method GET
|
|
2116
2118
|
* @path /cfg/payments/users/{user_pk}/api-keys/summary/
|
|
2117
2119
|
*/
|
|
2118
|
-
export async function getPaymentsUsersApiKeysSummaryRetrieve( user_pk: number, client
|
|
2120
|
+
export async function getPaymentsUsersApiKeysSummaryRetrieve( user_pk: number, client?
|
|
2119
2121
|
): Promise<APIKeyDetail> {
|
|
2120
2122
|
const api = client || getAPIInstance()
|
|
2121
2123
|
const response = await api.cfg_payments.usersApiKeysSummaryRetrieve(user_pk)
|
|
@@ -2129,7 +2131,7 @@ export async function getPaymentsUsersApiKeysSummaryRetrieve( user_pk: number,
|
|
|
2129
2131
|
* @method GET
|
|
2130
2132
|
* @path /cfg/payments/users/{user_pk}/payment/
|
|
2131
2133
|
*/
|
|
2132
|
-
export async function getPaymentsUsersPaymentList( user_pk: number, params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }, client
|
|
2134
|
+
export async function getPaymentsUsersPaymentList( user_pk: number, params?: { currency__code?: string; ordering?: string; page?: number; page_size?: number; provider?: string; search?: string; status?: string }, client?
|
|
2133
2135
|
): Promise<PaginatedPaymentListList> {
|
|
2134
2136
|
const api = client || getAPIInstance()
|
|
2135
2137
|
const response = await api.cfg_payments.usersPaymentList(user_pk, params?.currency__code, params?.ordering, params?.page, params?.page_size, params?.provider, params?.search, params?.status)
|
|
@@ -2143,7 +2145,7 @@ export async function getPaymentsUsersPaymentList( user_pk: number, params?: {
|
|
|
2143
2145
|
* @method POST
|
|
2144
2146
|
* @path /cfg/payments/users/{user_pk}/payment/
|
|
2145
2147
|
*/
|
|
2146
|
-
export async function createPaymentsUsersPaymentCreate( user_pk: number, data: PaymentCreateRequest, client
|
|
2148
|
+
export async function createPaymentsUsersPaymentCreate( user_pk: number, data: PaymentCreateRequest, client?
|
|
2147
2149
|
): Promise<PaymentCreate> {
|
|
2148
2150
|
const api = client || getAPIInstance()
|
|
2149
2151
|
const response = await api.cfg_payments.usersPaymentCreate(user_pk, data)
|
|
@@ -2157,7 +2159,7 @@ export async function createPaymentsUsersPaymentCreate( user_pk: number, data:
|
|
|
2157
2159
|
* @method GET
|
|
2158
2160
|
* @path /cfg/payments/users/{user_pk}/payment/{id}/
|
|
2159
2161
|
*/
|
|
2160
|
-
export async function getPaymentsUsersPaymentRetrieve( id: string, user_pk: number, client
|
|
2162
|
+
export async function getPaymentsUsersPaymentRetrieve( id: string, user_pk: number, client?
|
|
2161
2163
|
): Promise<Payment> {
|
|
2162
2164
|
const api = client || getAPIInstance()
|
|
2163
2165
|
const response = await api.cfg_payments.usersPaymentRetrieve(id, user_pk)
|
|
@@ -2171,7 +2173,7 @@ export async function getPaymentsUsersPaymentRetrieve( id: string, user_pk: num
|
|
|
2171
2173
|
* @method PUT
|
|
2172
2174
|
* @path /cfg/payments/users/{user_pk}/payment/{id}/
|
|
2173
2175
|
*/
|
|
2174
|
-
export async function updatePaymentsUsersPaymentUpdate( id: string, user_pk: number, data: PaymentRequest, client
|
|
2176
|
+
export async function updatePaymentsUsersPaymentUpdate( id: string, user_pk: number, data: PaymentRequest, client?
|
|
2175
2177
|
): Promise<Payment> {
|
|
2176
2178
|
const api = client || getAPIInstance()
|
|
2177
2179
|
const response = await api.cfg_payments.usersPaymentUpdate(id, user_pk, data)
|
|
@@ -2185,7 +2187,7 @@ export async function updatePaymentsUsersPaymentUpdate( id: string, user_pk: nu
|
|
|
2185
2187
|
* @method PATCH
|
|
2186
2188
|
* @path /cfg/payments/users/{user_pk}/payment/{id}/
|
|
2187
2189
|
*/
|
|
2188
|
-
export async function partialUpdatePaymentsUsersPaymentPartialUpdate( id: string, user_pk: number, data?: PatchedPaymentRequest, client
|
|
2190
|
+
export async function partialUpdatePaymentsUsersPaymentPartialUpdate( id: string, user_pk: number, data?: PatchedPaymentRequest, client?
|
|
2189
2191
|
): Promise<Payment> {
|
|
2190
2192
|
const api = client || getAPIInstance()
|
|
2191
2193
|
const response = await api.cfg_payments.usersPaymentPartialUpdate(id, user_pk, data)
|
|
@@ -2199,7 +2201,7 @@ export async function partialUpdatePaymentsUsersPaymentPartialUpdate( id: strin
|
|
|
2199
2201
|
* @method DELETE
|
|
2200
2202
|
* @path /cfg/payments/users/{user_pk}/payment/{id}/
|
|
2201
2203
|
*/
|
|
2202
|
-
export async function deletePaymentsUsersPaymentDestroy( id: string, user_pk: number, client
|
|
2204
|
+
export async function deletePaymentsUsersPaymentDestroy( id: string, user_pk: number, client?
|
|
2203
2205
|
): Promise<void> {
|
|
2204
2206
|
const api = client || getAPIInstance()
|
|
2205
2207
|
const response = await api.cfg_payments.usersPaymentDestroy(id, user_pk)
|
|
@@ -2213,7 +2215,7 @@ export async function deletePaymentsUsersPaymentDestroy( id: string, user_pk: n
|
|
|
2213
2215
|
* @method POST
|
|
2214
2216
|
* @path /cfg/payments/users/{user_pk}/payment/{id}/cancel/
|
|
2215
2217
|
*/
|
|
2216
|
-
export async function createPaymentsUsersPaymentCancelCreate( id: string, user_pk: number, data: PaymentRequest, client
|
|
2218
|
+
export async function createPaymentsUsersPaymentCancelCreate( id: string, user_pk: number, data: PaymentRequest, client?
|
|
2217
2219
|
): Promise<Payment> {
|
|
2218
2220
|
const api = client || getAPIInstance()
|
|
2219
2221
|
const response = await api.cfg_payments.usersPaymentCancelCreate(id, user_pk, data)
|
|
@@ -2227,7 +2229,7 @@ export async function createPaymentsUsersPaymentCancelCreate( id: string, user_
|
|
|
2227
2229
|
* @method POST
|
|
2228
2230
|
* @path /cfg/payments/users/{user_pk}/payment/{id}/check_status/
|
|
2229
2231
|
*/
|
|
2230
|
-
export async function createPaymentsUsersPaymentCheckStatusCreate( id: string, user_pk: number, data: PaymentRequest, client
|
|
2232
|
+
export async function createPaymentsUsersPaymentCheckStatusCreate( id: string, user_pk: number, data: PaymentRequest, client?
|
|
2231
2233
|
): Promise<Payment> {
|
|
2232
2234
|
const api = client || getAPIInstance()
|
|
2233
2235
|
const response = await api.cfg_payments.usersPaymentCheckStatusCreate(id, user_pk, data)
|
|
@@ -2241,7 +2243,7 @@ export async function createPaymentsUsersPaymentCheckStatusCreate( id: string,
|
|
|
2241
2243
|
* @method GET
|
|
2242
2244
|
* @path /cfg/payments/users/{user_pk}/payment/health/
|
|
2243
2245
|
*/
|
|
2244
|
-
export async function getPaymentsUsersPaymentHealthRetrieve( user_pk: number, client
|
|
2246
|
+
export async function getPaymentsUsersPaymentHealthRetrieve( user_pk: number, client?
|
|
2245
2247
|
): Promise<Payment> {
|
|
2246
2248
|
const api = client || getAPIInstance()
|
|
2247
2249
|
const response = await api.cfg_payments.usersPaymentHealthRetrieve(user_pk)
|
|
@@ -2255,7 +2257,7 @@ export async function getPaymentsUsersPaymentHealthRetrieve( user_pk: number,
|
|
|
2255
2257
|
* @method GET
|
|
2256
2258
|
* @path /cfg/payments/users/{user_pk}/payment/stats/
|
|
2257
2259
|
*/
|
|
2258
|
-
export async function getPaymentsUsersPaymentStatsRetrieve( user_pk: number, client
|
|
2260
|
+
export async function getPaymentsUsersPaymentStatsRetrieve( user_pk: number, client?
|
|
2259
2261
|
): Promise<Payment> {
|
|
2260
2262
|
const api = client || getAPIInstance()
|
|
2261
2263
|
const response = await api.cfg_payments.usersPaymentStatsRetrieve(user_pk)
|
|
@@ -2269,7 +2271,7 @@ export async function getPaymentsUsersPaymentStatsRetrieve( user_pk: number, c
|
|
|
2269
2271
|
* @method GET
|
|
2270
2272
|
* @path /cfg/payments/users/{user_pk}/payment/summary/
|
|
2271
2273
|
*/
|
|
2272
|
-
export async function getPaymentsUsersPaymentSummaryRetrieve( user_pk: number, client
|
|
2274
|
+
export async function getPaymentsUsersPaymentSummaryRetrieve( user_pk: number, client?
|
|
2273
2275
|
): Promise<Payment> {
|
|
2274
2276
|
const api = client || getAPIInstance()
|
|
2275
2277
|
const response = await api.cfg_payments.usersPaymentSummaryRetrieve(user_pk)
|
|
@@ -2283,7 +2285,7 @@ export async function getPaymentsUsersPaymentSummaryRetrieve( user_pk: number,
|
|
|
2283
2285
|
* @method GET
|
|
2284
2286
|
* @path /cfg/payments/users/{user_pk}/subscriptions/
|
|
2285
2287
|
*/
|
|
2286
|
-
export async function getPaymentsUsersSubscriptionsList( user_pk: number, params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string }, client
|
|
2288
|
+
export async function getPaymentsUsersSubscriptionsList( user_pk: number, params?: { ordering?: string; page?: number; page_size?: number; search?: string; status?: string; tier?: string }, client?
|
|
2287
2289
|
): Promise<PaginatedSubscriptionListList> {
|
|
2288
2290
|
const api = client || getAPIInstance()
|
|
2289
2291
|
const response = await api.cfg_payments.usersSubscriptionsList(user_pk, params?.ordering, params?.page, params?.page_size, params?.search, params?.status, params?.tier)
|
|
@@ -2297,7 +2299,7 @@ export async function getPaymentsUsersSubscriptionsList( user_pk: number, param
|
|
|
2297
2299
|
* @method POST
|
|
2298
2300
|
* @path /cfg/payments/users/{user_pk}/subscriptions/
|
|
2299
2301
|
*/
|
|
2300
|
-
export async function createPaymentsUsersSubscriptionsCreate( user_pk: number, data: SubscriptionCreateRequest, client
|
|
2302
|
+
export async function createPaymentsUsersSubscriptionsCreate( user_pk: number, data: SubscriptionCreateRequest, client?
|
|
2301
2303
|
): Promise<SubscriptionCreate> {
|
|
2302
2304
|
const api = client || getAPIInstance()
|
|
2303
2305
|
const response = await api.cfg_payments.usersSubscriptionsCreate(user_pk, data)
|
|
@@ -2311,7 +2313,7 @@ export async function createPaymentsUsersSubscriptionsCreate( user_pk: number,
|
|
|
2311
2313
|
* @method GET
|
|
2312
2314
|
* @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
|
|
2313
2315
|
*/
|
|
2314
|
-
export async function getPaymentsUsersSubscriptionsRetrieve( id: string, user_pk: number, client
|
|
2316
|
+
export async function getPaymentsUsersSubscriptionsRetrieve( id: string, user_pk: number, client?
|
|
2315
2317
|
): Promise<Subscription> {
|
|
2316
2318
|
const api = client || getAPIInstance()
|
|
2317
2319
|
const response = await api.cfg_payments.usersSubscriptionsRetrieve(id, user_pk)
|
|
@@ -2325,7 +2327,7 @@ export async function getPaymentsUsersSubscriptionsRetrieve( id: string, user_p
|
|
|
2325
2327
|
* @method PUT
|
|
2326
2328
|
* @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
|
|
2327
2329
|
*/
|
|
2328
|
-
export async function updatePaymentsUsersSubscriptionsUpdate( id: string, user_pk: number, data: SubscriptionRequest, client
|
|
2330
|
+
export async function updatePaymentsUsersSubscriptionsUpdate( id: string, user_pk: number, data: SubscriptionRequest, client?
|
|
2329
2331
|
): Promise<Subscription> {
|
|
2330
2332
|
const api = client || getAPIInstance()
|
|
2331
2333
|
const response = await api.cfg_payments.usersSubscriptionsUpdate(id, user_pk, data)
|
|
@@ -2339,7 +2341,7 @@ export async function updatePaymentsUsersSubscriptionsUpdate( id: string, user_
|
|
|
2339
2341
|
* @method PATCH
|
|
2340
2342
|
* @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
|
|
2341
2343
|
*/
|
|
2342
|
-
export async function partialUpdatePaymentsUsersSubscriptionsPartialUpdate( id: string, user_pk: number, data?: PatchedSubscriptionRequest, client
|
|
2344
|
+
export async function partialUpdatePaymentsUsersSubscriptionsPartialUpdate( id: string, user_pk: number, data?: PatchedSubscriptionRequest, client?
|
|
2343
2345
|
): Promise<Subscription> {
|
|
2344
2346
|
const api = client || getAPIInstance()
|
|
2345
2347
|
const response = await api.cfg_payments.usersSubscriptionsPartialUpdate(id, user_pk, data)
|
|
@@ -2353,7 +2355,7 @@ export async function partialUpdatePaymentsUsersSubscriptionsPartialUpdate( id:
|
|
|
2353
2355
|
* @method DELETE
|
|
2354
2356
|
* @path /cfg/payments/users/{user_pk}/subscriptions/{id}/
|
|
2355
2357
|
*/
|
|
2356
|
-
export async function deletePaymentsUsersSubscriptionsDestroy( id: string, user_pk: number, client
|
|
2358
|
+
export async function deletePaymentsUsersSubscriptionsDestroy( id: string, user_pk: number, client?
|
|
2357
2359
|
): Promise<void> {
|
|
2358
2360
|
const api = client || getAPIInstance()
|
|
2359
2361
|
const response = await api.cfg_payments.usersSubscriptionsDestroy(id, user_pk)
|
|
@@ -2367,7 +2369,7 @@ export async function deletePaymentsUsersSubscriptionsDestroy( id: string, user
|
|
|
2367
2369
|
* @method POST
|
|
2368
2370
|
* @path /cfg/payments/users/{user_pk}/subscriptions/{id}/increment_usage/
|
|
2369
2371
|
*/
|
|
2370
|
-
export async function createPaymentsUsersSubscriptionsIncrementUsageCreate( id: string, user_pk: number, data: SubscriptionRequest, client
|
|
2372
|
+
export async function createPaymentsUsersSubscriptionsIncrementUsageCreate( id: string, user_pk: number, data: SubscriptionRequest, client?
|
|
2371
2373
|
): Promise<Subscription> {
|
|
2372
2374
|
const api = client || getAPIInstance()
|
|
2373
2375
|
const response = await api.cfg_payments.usersSubscriptionsIncrementUsageCreate(id, user_pk, data)
|
|
@@ -2381,7 +2383,7 @@ export async function createPaymentsUsersSubscriptionsIncrementUsageCreate( id:
|
|
|
2381
2383
|
* @method POST
|
|
2382
2384
|
* @path /cfg/payments/users/{user_pk}/subscriptions/{id}/update_status/
|
|
2383
2385
|
*/
|
|
2384
|
-
export async function createPaymentsUsersSubscriptionsUpdateStatusCreate( id: string, user_pk: number, data: SubscriptionRequest, client
|
|
2386
|
+
export async function createPaymentsUsersSubscriptionsUpdateStatusCreate( id: string, user_pk: number, data: SubscriptionRequest, client?
|
|
2385
2387
|
): Promise<Subscription> {
|
|
2386
2388
|
const api = client || getAPIInstance()
|
|
2387
2389
|
const response = await api.cfg_payments.usersSubscriptionsUpdateStatusCreate(id, user_pk, data)
|
|
@@ -2395,7 +2397,7 @@ export async function createPaymentsUsersSubscriptionsUpdateStatusCreate( id: s
|
|
|
2395
2397
|
* @method GET
|
|
2396
2398
|
* @path /cfg/payments/users/{user_pk}/subscriptions/active/
|
|
2397
2399
|
*/
|
|
2398
|
-
export async function getPaymentsUsersSubscriptionsActiveRetrieve( user_pk: number, client
|
|
2400
|
+
export async function getPaymentsUsersSubscriptionsActiveRetrieve( user_pk: number, client?
|
|
2399
2401
|
): Promise<Subscription> {
|
|
2400
2402
|
const api = client || getAPIInstance()
|
|
2401
2403
|
const response = await api.cfg_payments.usersSubscriptionsActiveRetrieve(user_pk)
|
|
@@ -2409,7 +2411,7 @@ export async function getPaymentsUsersSubscriptionsActiveRetrieve( user_pk: num
|
|
|
2409
2411
|
* @method GET
|
|
2410
2412
|
* @path /cfg/payments/users/{user_pk}/subscriptions/health/
|
|
2411
2413
|
*/
|
|
2412
|
-
export async function getPaymentsUsersSubscriptionsHealthRetrieve( user_pk: number, client
|
|
2414
|
+
export async function getPaymentsUsersSubscriptionsHealthRetrieve( user_pk: number, client?
|
|
2413
2415
|
): Promise<Subscription> {
|
|
2414
2416
|
const api = client || getAPIInstance()
|
|
2415
2417
|
const response = await api.cfg_payments.usersSubscriptionsHealthRetrieve(user_pk)
|
|
@@ -2423,7 +2425,7 @@ export async function getPaymentsUsersSubscriptionsHealthRetrieve( user_pk: num
|
|
|
2423
2425
|
* @method GET
|
|
2424
2426
|
* @path /cfg/payments/users/{user_pk}/subscriptions/stats/
|
|
2425
2427
|
*/
|
|
2426
|
-
export async function getPaymentsUsersSubscriptionsStatsRetrieve( user_pk: number, client
|
|
2428
|
+
export async function getPaymentsUsersSubscriptionsStatsRetrieve( user_pk: number, client?
|
|
2427
2429
|
): Promise<Subscription> {
|
|
2428
2430
|
const api = client || getAPIInstance()
|
|
2429
2431
|
const response = await api.cfg_payments.usersSubscriptionsStatsRetrieve(user_pk)
|
|
@@ -2437,7 +2439,7 @@ export async function getPaymentsUsersSubscriptionsStatsRetrieve( user_pk: numb
|
|
|
2437
2439
|
* @method GET
|
|
2438
2440
|
* @path /cfg/payments/users/{user_pk}/subscriptions/summary/
|
|
2439
2441
|
*/
|
|
2440
|
-
export async function getPaymentsUsersSubscriptionsSummaryRetrieve( user_pk: number, client
|
|
2442
|
+
export async function getPaymentsUsersSubscriptionsSummaryRetrieve( user_pk: number, client?
|
|
2441
2443
|
): Promise<Subscription> {
|
|
2442
2444
|
const api = client || getAPIInstance()
|
|
2443
2445
|
const response = await api.cfg_payments.usersSubscriptionsSummaryRetrieve(user_pk)
|
|
@@ -2451,7 +2453,7 @@ export async function getPaymentsUsersSubscriptionsSummaryRetrieve( user_pk: nu
|
|
|
2451
2453
|
* @method GET
|
|
2452
2454
|
* @path /cfg/payments/users/health/
|
|
2453
2455
|
*/
|
|
2454
|
-
export async function getPaymentsUsersHealthRetrieve( client
|
|
2456
|
+
export async function getPaymentsUsersHealthRetrieve( client?
|
|
2455
2457
|
): Promise<Payment> {
|
|
2456
2458
|
const api = client || getAPIInstance()
|
|
2457
2459
|
const response = await api.cfg_payments.usersHealthRetrieve()
|
|
@@ -2465,7 +2467,7 @@ export async function getPaymentsUsersHealthRetrieve( client?: API
|
|
|
2465
2467
|
* @method GET
|
|
2466
2468
|
* @path /cfg/payments/users/stats/
|
|
2467
2469
|
*/
|
|
2468
|
-
export async function getPaymentsUsersStatsRetrieve( client
|
|
2470
|
+
export async function getPaymentsUsersStatsRetrieve( client?
|
|
2469
2471
|
): Promise<Payment> {
|
|
2470
2472
|
const api = client || getAPIInstance()
|
|
2471
2473
|
const response = await api.cfg_payments.usersStatsRetrieve()
|
|
@@ -2479,7 +2481,7 @@ export async function getPaymentsUsersStatsRetrieve( client?: API
|
|
|
2479
2481
|
* @method GET
|
|
2480
2482
|
* @path /cfg/payments/users/summary/
|
|
2481
2483
|
*/
|
|
2482
|
-
export async function getPaymentsUsersSummaryRetrieve( client
|
|
2484
|
+
export async function getPaymentsUsersSummaryRetrieve( client?
|
|
2483
2485
|
): Promise<Payment> {
|
|
2484
2486
|
const api = client || getAPIInstance()
|
|
2485
2487
|
const response = await api.cfg_payments.usersSummaryRetrieve()
|