@seekora-ai/admin-api 1.0.98 → 1.0.99
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/README.md +13 -2
- package/api.ts +525 -0
- package/dist/api.d.ts +409 -0
- package/dist/api.js +210 -0
- package/dist/esm/api.d.ts +409 -0
- package/dist/esm/api.js +210 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.99.tgz +0 -0
- package/seekora-ai-admin-api-1.0.98.tgz +0 -0
package/api.ts
CHANGED
|
@@ -7771,6 +7771,49 @@ export const DataTypesBillingAlertRequestAlertTypeEnum = {
|
|
|
7771
7771
|
|
|
7772
7772
|
export type DataTypesBillingAlertRequestAlertTypeEnum = typeof DataTypesBillingAlertRequestAlertTypeEnum[keyof typeof DataTypesBillingAlertRequestAlertTypeEnum];
|
|
7773
7773
|
|
|
7774
|
+
/**
|
|
7775
|
+
*
|
|
7776
|
+
* @export
|
|
7777
|
+
* @interface DataTypesBillingOrderDetailsResponse
|
|
7778
|
+
*/
|
|
7779
|
+
export interface DataTypesBillingOrderDetailsResponse {
|
|
7780
|
+
/**
|
|
7781
|
+
* Whether user can pay pending invoices
|
|
7782
|
+
* @type {boolean}
|
|
7783
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7784
|
+
*/
|
|
7785
|
+
'can_pay'?: boolean;
|
|
7786
|
+
/**
|
|
7787
|
+
* Array of invoices for subscriptions
|
|
7788
|
+
* @type {Array<DataTypesInvoice>}
|
|
7789
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7790
|
+
*/
|
|
7791
|
+
'invoices'?: Array<DataTypesInvoice>;
|
|
7792
|
+
/**
|
|
7793
|
+
*
|
|
7794
|
+
* @type {DataTypesOrder}
|
|
7795
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7796
|
+
*/
|
|
7797
|
+
'order'?: DataTypesOrder;
|
|
7798
|
+
/**
|
|
7799
|
+
* Total pending invoice amount
|
|
7800
|
+
* @type {number}
|
|
7801
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7802
|
+
*/
|
|
7803
|
+
'pending_amount'?: number;
|
|
7804
|
+
/**
|
|
7805
|
+
* Plan info for subscription orders
|
|
7806
|
+
* @type {DataTypesCreditPlanDetails}
|
|
7807
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7808
|
+
*/
|
|
7809
|
+
'plan_details'?: DataTypesCreditPlanDetails;
|
|
7810
|
+
/**
|
|
7811
|
+
*
|
|
7812
|
+
* @type {Array<DataTypesOrderTransactionDisplay>}
|
|
7813
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7814
|
+
*/
|
|
7815
|
+
'transactions'?: Array<DataTypesOrderTransactionDisplay>;
|
|
7816
|
+
}
|
|
7774
7817
|
/**
|
|
7775
7818
|
*
|
|
7776
7819
|
* @export
|
|
@@ -9310,6 +9353,67 @@ export interface DataTypesCreditPlan {
|
|
|
9310
9353
|
*/
|
|
9311
9354
|
'validity_days'?: number;
|
|
9312
9355
|
}
|
|
9356
|
+
/**
|
|
9357
|
+
*
|
|
9358
|
+
* @export
|
|
9359
|
+
* @interface DataTypesCreditPlanDetails
|
|
9360
|
+
*/
|
|
9361
|
+
export interface DataTypesCreditPlanDetails {
|
|
9362
|
+
/**
|
|
9363
|
+
*
|
|
9364
|
+
* @type {string}
|
|
9365
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9366
|
+
*/
|
|
9367
|
+
'billing_cycle'?: string;
|
|
9368
|
+
/**
|
|
9369
|
+
*
|
|
9370
|
+
* @type {number}
|
|
9371
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9372
|
+
*/
|
|
9373
|
+
'credit_amount'?: number;
|
|
9374
|
+
/**
|
|
9375
|
+
*
|
|
9376
|
+
* @type {string}
|
|
9377
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9378
|
+
*/
|
|
9379
|
+
'currency'?: string;
|
|
9380
|
+
/**
|
|
9381
|
+
*
|
|
9382
|
+
* @type {string}
|
|
9383
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9384
|
+
*/
|
|
9385
|
+
'description'?: string;
|
|
9386
|
+
/**
|
|
9387
|
+
*
|
|
9388
|
+
* @type {boolean}
|
|
9389
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9390
|
+
*/
|
|
9391
|
+
'is_active'?: boolean;
|
|
9392
|
+
/**
|
|
9393
|
+
*
|
|
9394
|
+
* @type {number}
|
|
9395
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9396
|
+
*/
|
|
9397
|
+
'plan_id'?: number;
|
|
9398
|
+
/**
|
|
9399
|
+
*
|
|
9400
|
+
* @type {string}
|
|
9401
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9402
|
+
*/
|
|
9403
|
+
'plan_name'?: string;
|
|
9404
|
+
/**
|
|
9405
|
+
*
|
|
9406
|
+
* @type {number}
|
|
9407
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9408
|
+
*/
|
|
9409
|
+
'price'?: number;
|
|
9410
|
+
/**
|
|
9411
|
+
*
|
|
9412
|
+
* @type {number}
|
|
9413
|
+
* @memberof DataTypesCreditPlanDetails
|
|
9414
|
+
*/
|
|
9415
|
+
'validity_days'?: number;
|
|
9416
|
+
}
|
|
9313
9417
|
/**
|
|
9314
9418
|
*
|
|
9315
9419
|
* @export
|
|
@@ -9489,6 +9593,37 @@ export interface DataTypesCustomWordWithStatus {
|
|
|
9489
9593
|
*/
|
|
9490
9594
|
'word'?: string;
|
|
9491
9595
|
}
|
|
9596
|
+
/**
|
|
9597
|
+
*
|
|
9598
|
+
* @export
|
|
9599
|
+
* @interface DataTypesCustomerInfo
|
|
9600
|
+
*/
|
|
9601
|
+
export interface DataTypesCustomerInfo {
|
|
9602
|
+
/**
|
|
9603
|
+
*
|
|
9604
|
+
* @type {string}
|
|
9605
|
+
* @memberof DataTypesCustomerInfo
|
|
9606
|
+
*/
|
|
9607
|
+
'address'?: string;
|
|
9608
|
+
/**
|
|
9609
|
+
*
|
|
9610
|
+
* @type {string}
|
|
9611
|
+
* @memberof DataTypesCustomerInfo
|
|
9612
|
+
*/
|
|
9613
|
+
'email'?: string;
|
|
9614
|
+
/**
|
|
9615
|
+
*
|
|
9616
|
+
* @type {string}
|
|
9617
|
+
* @memberof DataTypesCustomerInfo
|
|
9618
|
+
*/
|
|
9619
|
+
'name'?: string;
|
|
9620
|
+
/**
|
|
9621
|
+
*
|
|
9622
|
+
* @type {string}
|
|
9623
|
+
* @memberof DataTypesCustomerInfo
|
|
9624
|
+
*/
|
|
9625
|
+
'phone'?: string;
|
|
9626
|
+
}
|
|
9492
9627
|
/**
|
|
9493
9628
|
*
|
|
9494
9629
|
* @export
|
|
@@ -10583,6 +10718,81 @@ export interface DataTypesGatewayListResponse {
|
|
|
10583
10718
|
*/
|
|
10584
10719
|
'gateways'?: Array<DataTypesGatewayInfo>;
|
|
10585
10720
|
}
|
|
10721
|
+
/**
|
|
10722
|
+
*
|
|
10723
|
+
* @export
|
|
10724
|
+
* @interface DataTypesGenericResponseArrayDataTypesInvoice
|
|
10725
|
+
*/
|
|
10726
|
+
export interface DataTypesGenericResponseArrayDataTypesInvoice {
|
|
10727
|
+
/**
|
|
10728
|
+
*
|
|
10729
|
+
* @type {Array<DataTypesInvoice>}
|
|
10730
|
+
* @memberof DataTypesGenericResponseArrayDataTypesInvoice
|
|
10731
|
+
*/
|
|
10732
|
+
'data'?: Array<DataTypesInvoice>;
|
|
10733
|
+
/**
|
|
10734
|
+
*
|
|
10735
|
+
* @type {string}
|
|
10736
|
+
* @memberof DataTypesGenericResponseArrayDataTypesInvoice
|
|
10737
|
+
*/
|
|
10738
|
+
'message'?: string;
|
|
10739
|
+
/**
|
|
10740
|
+
*
|
|
10741
|
+
* @type {number}
|
|
10742
|
+
* @memberof DataTypesGenericResponseArrayDataTypesInvoice
|
|
10743
|
+
*/
|
|
10744
|
+
'status'?: number;
|
|
10745
|
+
}
|
|
10746
|
+
/**
|
|
10747
|
+
*
|
|
10748
|
+
* @export
|
|
10749
|
+
* @interface DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
|
|
10750
|
+
*/
|
|
10751
|
+
export interface DataTypesGenericResponseDataTypesBillingOrderDetailsResponse {
|
|
10752
|
+
/**
|
|
10753
|
+
*
|
|
10754
|
+
* @type {DataTypesBillingOrderDetailsResponse}
|
|
10755
|
+
* @memberof DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
|
|
10756
|
+
*/
|
|
10757
|
+
'data'?: DataTypesBillingOrderDetailsResponse;
|
|
10758
|
+
/**
|
|
10759
|
+
*
|
|
10760
|
+
* @type {string}
|
|
10761
|
+
* @memberof DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
|
|
10762
|
+
*/
|
|
10763
|
+
'message'?: string;
|
|
10764
|
+
/**
|
|
10765
|
+
*
|
|
10766
|
+
* @type {number}
|
|
10767
|
+
* @memberof DataTypesGenericResponseDataTypesBillingOrderDetailsResponse
|
|
10768
|
+
*/
|
|
10769
|
+
'status'?: number;
|
|
10770
|
+
}
|
|
10771
|
+
/**
|
|
10772
|
+
*
|
|
10773
|
+
* @export
|
|
10774
|
+
* @interface DataTypesGenericResponseDataTypesPayInvoiceResponse
|
|
10775
|
+
*/
|
|
10776
|
+
export interface DataTypesGenericResponseDataTypesPayInvoiceResponse {
|
|
10777
|
+
/**
|
|
10778
|
+
*
|
|
10779
|
+
* @type {DataTypesPayInvoiceResponse}
|
|
10780
|
+
* @memberof DataTypesGenericResponseDataTypesPayInvoiceResponse
|
|
10781
|
+
*/
|
|
10782
|
+
'data'?: DataTypesPayInvoiceResponse;
|
|
10783
|
+
/**
|
|
10784
|
+
*
|
|
10785
|
+
* @type {string}
|
|
10786
|
+
* @memberof DataTypesGenericResponseDataTypesPayInvoiceResponse
|
|
10787
|
+
*/
|
|
10788
|
+
'message'?: string;
|
|
10789
|
+
/**
|
|
10790
|
+
*
|
|
10791
|
+
* @type {number}
|
|
10792
|
+
* @memberof DataTypesGenericResponseDataTypesPayInvoiceResponse
|
|
10793
|
+
*/
|
|
10794
|
+
'status'?: number;
|
|
10795
|
+
}
|
|
10586
10796
|
/**
|
|
10587
10797
|
*
|
|
10588
10798
|
* @export
|
|
@@ -11212,6 +11422,12 @@ export interface DataTypesInvoice {
|
|
|
11212
11422
|
* @memberof DataTypesInvoice
|
|
11213
11423
|
*/
|
|
11214
11424
|
'notes'?: string;
|
|
11425
|
+
/**
|
|
11426
|
+
* Direct FK to orders table (added in migration 20251031)
|
|
11427
|
+
* @type {number}
|
|
11428
|
+
* @memberof DataTypesInvoice
|
|
11429
|
+
*/
|
|
11430
|
+
'order_id'?: number;
|
|
11215
11431
|
/**
|
|
11216
11432
|
*
|
|
11217
11433
|
* @type {number}
|
|
@@ -13286,6 +13502,92 @@ export interface DataTypesParentMenusListResponse {
|
|
|
13286
13502
|
*/
|
|
13287
13503
|
'status'?: number;
|
|
13288
13504
|
}
|
|
13505
|
+
/**
|
|
13506
|
+
*
|
|
13507
|
+
* @export
|
|
13508
|
+
* @interface DataTypesPayInvoiceRequest
|
|
13509
|
+
*/
|
|
13510
|
+
export interface DataTypesPayInvoiceRequest {
|
|
13511
|
+
/**
|
|
13512
|
+
*
|
|
13513
|
+
* @type {DataTypesCustomerInfo}
|
|
13514
|
+
* @memberof DataTypesPayInvoiceRequest
|
|
13515
|
+
*/
|
|
13516
|
+
'customer_info'?: DataTypesCustomerInfo;
|
|
13517
|
+
/**
|
|
13518
|
+
*
|
|
13519
|
+
* @type {string}
|
|
13520
|
+
* @memberof DataTypesPayInvoiceRequest
|
|
13521
|
+
*/
|
|
13522
|
+
'invoice_id'?: string;
|
|
13523
|
+
/**
|
|
13524
|
+
*
|
|
13525
|
+
* @type {{ [key: string]: any; }}
|
|
13526
|
+
* @memberof DataTypesPayInvoiceRequest
|
|
13527
|
+
*/
|
|
13528
|
+
'metadata'?: { [key: string]: any; };
|
|
13529
|
+
/**
|
|
13530
|
+
* card, upi, wallet, netbanking
|
|
13531
|
+
* @type {string}
|
|
13532
|
+
* @memberof DataTypesPayInvoiceRequest
|
|
13533
|
+
*/
|
|
13534
|
+
'payment_method'?: string;
|
|
13535
|
+
}
|
|
13536
|
+
/**
|
|
13537
|
+
*
|
|
13538
|
+
* @export
|
|
13539
|
+
* @interface DataTypesPayInvoiceResponse
|
|
13540
|
+
*/
|
|
13541
|
+
export interface DataTypesPayInvoiceResponse {
|
|
13542
|
+
/**
|
|
13543
|
+
*
|
|
13544
|
+
* @type {number}
|
|
13545
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13546
|
+
*/
|
|
13547
|
+
'amount'?: number;
|
|
13548
|
+
/**
|
|
13549
|
+
*
|
|
13550
|
+
* @type {string}
|
|
13551
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13552
|
+
*/
|
|
13553
|
+
'currency'?: string;
|
|
13554
|
+
/**
|
|
13555
|
+
*
|
|
13556
|
+
* @type {string}
|
|
13557
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13558
|
+
*/
|
|
13559
|
+
'gateway'?: string;
|
|
13560
|
+
/**
|
|
13561
|
+
*
|
|
13562
|
+
* @type {string}
|
|
13563
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13564
|
+
*/
|
|
13565
|
+
'gateway_order_id'?: string;
|
|
13566
|
+
/**
|
|
13567
|
+
*
|
|
13568
|
+
* @type {{ [key: string]: any; }}
|
|
13569
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13570
|
+
*/
|
|
13571
|
+
'gateway_response'?: { [key: string]: any; };
|
|
13572
|
+
/**
|
|
13573
|
+
*
|
|
13574
|
+
* @type {string}
|
|
13575
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13576
|
+
*/
|
|
13577
|
+
'payment_order_id'?: string;
|
|
13578
|
+
/**
|
|
13579
|
+
*
|
|
13580
|
+
* @type {string}
|
|
13581
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13582
|
+
*/
|
|
13583
|
+
'payment_url'?: string;
|
|
13584
|
+
/**
|
|
13585
|
+
*
|
|
13586
|
+
* @type {string}
|
|
13587
|
+
* @memberof DataTypesPayInvoiceResponse
|
|
13588
|
+
*/
|
|
13589
|
+
'status'?: string;
|
|
13590
|
+
}
|
|
13289
13591
|
/**
|
|
13290
13592
|
*
|
|
13291
13593
|
* @export
|
|
@@ -25915,6 +26217,43 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
25915
26217
|
|
|
25916
26218
|
|
|
25917
26219
|
|
|
26220
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26222
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26223
|
+
|
|
26224
|
+
return {
|
|
26225
|
+
url: toPathString(localVarUrlObj),
|
|
26226
|
+
options: localVarRequestOptions,
|
|
26227
|
+
};
|
|
26228
|
+
},
|
|
26229
|
+
/**
|
|
26230
|
+
* Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
|
|
26231
|
+
* @summary Generate invoices for an order
|
|
26232
|
+
* @param {number} orderId Order ID
|
|
26233
|
+
* @param {*} [options] Override http request option.
|
|
26234
|
+
* @throws {RequiredError}
|
|
26235
|
+
*/
|
|
26236
|
+
adminBillingInvoicesGenerateForOrderOrderIdPost: async (orderId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26237
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
26238
|
+
assertParamExists('adminBillingInvoicesGenerateForOrderOrderIdPost', 'orderId', orderId)
|
|
26239
|
+
const localVarPath = `/admin/billing/invoices/generate-for-order/{orderId}`
|
|
26240
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
26241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26243
|
+
let baseOptions;
|
|
26244
|
+
if (configuration) {
|
|
26245
|
+
baseOptions = configuration.baseOptions;
|
|
26246
|
+
}
|
|
26247
|
+
|
|
26248
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26249
|
+
const localVarHeaderParameter = {} as any;
|
|
26250
|
+
const localVarQueryParameter = {} as any;
|
|
26251
|
+
|
|
26252
|
+
// authentication BearerAuth required
|
|
26253
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26254
|
+
|
|
26255
|
+
|
|
26256
|
+
|
|
25918
26257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25919
26258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25920
26259
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -26178,6 +26517,47 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
26178
26517
|
options: localVarRequestOptions,
|
|
26179
26518
|
};
|
|
26180
26519
|
},
|
|
26520
|
+
/**
|
|
26521
|
+
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
26522
|
+
* @summary Pay a pending invoice
|
|
26523
|
+
* @param {string} invoiceId Invoice ID
|
|
26524
|
+
* @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
|
|
26525
|
+
* @param {*} [options] Override http request option.
|
|
26526
|
+
* @throws {RequiredError}
|
|
26527
|
+
*/
|
|
26528
|
+
adminBillingInvoicesInvoiceIdPayPost: async (invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26529
|
+
// verify required parameter 'invoiceId' is not null or undefined
|
|
26530
|
+
assertParamExists('adminBillingInvoicesInvoiceIdPayPost', 'invoiceId', invoiceId)
|
|
26531
|
+
const localVarPath = `/admin/billing/invoices/{invoice_id}/pay`
|
|
26532
|
+
.replace(`{${"invoice_id"}}`, encodeURIComponent(String(invoiceId)));
|
|
26533
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26534
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26535
|
+
let baseOptions;
|
|
26536
|
+
if (configuration) {
|
|
26537
|
+
baseOptions = configuration.baseOptions;
|
|
26538
|
+
}
|
|
26539
|
+
|
|
26540
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26541
|
+
const localVarHeaderParameter = {} as any;
|
|
26542
|
+
const localVarQueryParameter = {} as any;
|
|
26543
|
+
|
|
26544
|
+
// authentication BearerAuth required
|
|
26545
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26546
|
+
|
|
26547
|
+
|
|
26548
|
+
|
|
26549
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26550
|
+
|
|
26551
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26553
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26554
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesPayInvoiceRequest, localVarRequestOptions, configuration)
|
|
26555
|
+
|
|
26556
|
+
return {
|
|
26557
|
+
url: toPathString(localVarUrlObj),
|
|
26558
|
+
options: localVarRequestOptions,
|
|
26559
|
+
};
|
|
26560
|
+
},
|
|
26181
26561
|
/**
|
|
26182
26562
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26183
26563
|
* @summary Get orders
|
|
@@ -26227,6 +26607,43 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
26227
26607
|
|
|
26228
26608
|
|
|
26229
26609
|
|
|
26610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26612
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26613
|
+
|
|
26614
|
+
return {
|
|
26615
|
+
url: toPathString(localVarUrlObj),
|
|
26616
|
+
options: localVarRequestOptions,
|
|
26617
|
+
};
|
|
26618
|
+
},
|
|
26619
|
+
/**
|
|
26620
|
+
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
26621
|
+
* @summary Get single order with transactions and invoices
|
|
26622
|
+
* @param {number} id Order ID
|
|
26623
|
+
* @param {*} [options] Override http request option.
|
|
26624
|
+
* @throws {RequiredError}
|
|
26625
|
+
*/
|
|
26626
|
+
adminBillingOrdersIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26627
|
+
// verify required parameter 'id' is not null or undefined
|
|
26628
|
+
assertParamExists('adminBillingOrdersIdGet', 'id', id)
|
|
26629
|
+
const localVarPath = `/admin/billing/orders/{id}`
|
|
26630
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
26631
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26632
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26633
|
+
let baseOptions;
|
|
26634
|
+
if (configuration) {
|
|
26635
|
+
baseOptions = configuration.baseOptions;
|
|
26636
|
+
}
|
|
26637
|
+
|
|
26638
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26639
|
+
const localVarHeaderParameter = {} as any;
|
|
26640
|
+
const localVarQueryParameter = {} as any;
|
|
26641
|
+
|
|
26642
|
+
// authentication BearerAuth required
|
|
26643
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26644
|
+
|
|
26645
|
+
|
|
26646
|
+
|
|
26230
26647
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26231
26648
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26232
26649
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -26726,6 +27143,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
26726
27143
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesAutoGeneratePost']?.[localVarOperationServerIndex]?.url;
|
|
26727
27144
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26728
27145
|
},
|
|
27146
|
+
/**
|
|
27147
|
+
* Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
|
|
27148
|
+
* @summary Generate invoices for an order
|
|
27149
|
+
* @param {number} orderId Order ID
|
|
27150
|
+
* @param {*} [options] Override http request option.
|
|
27151
|
+
* @throws {RequiredError}
|
|
27152
|
+
*/
|
|
27153
|
+
async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>> {
|
|
27154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options);
|
|
27155
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27156
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGenerateForOrderOrderIdPost']?.[localVarOperationServerIndex]?.url;
|
|
27157
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27158
|
+
},
|
|
26729
27159
|
/**
|
|
26730
27160
|
* Generates an invoice automatically from a completed payment
|
|
26731
27161
|
* @summary Generate invoice from payment
|
|
@@ -26810,6 +27240,20 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
26810
27240
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']?.[localVarOperationServerIndex]?.url;
|
|
26811
27241
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26812
27242
|
},
|
|
27243
|
+
/**
|
|
27244
|
+
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
27245
|
+
* @summary Pay a pending invoice
|
|
27246
|
+
* @param {string} invoiceId Invoice ID
|
|
27247
|
+
* @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
|
|
27248
|
+
* @param {*} [options] Override http request option.
|
|
27249
|
+
* @throws {RequiredError}
|
|
27250
|
+
*/
|
|
27251
|
+
async adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse>> {
|
|
27252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options);
|
|
27253
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27254
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesInvoiceIdPayPost']?.[localVarOperationServerIndex]?.url;
|
|
27255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27256
|
+
},
|
|
26813
27257
|
/**
|
|
26814
27258
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
26815
27259
|
* @summary Get orders
|
|
@@ -26827,6 +27271,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
26827
27271
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersGet']?.[localVarOperationServerIndex]?.url;
|
|
26828
27272
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26829
27273
|
},
|
|
27274
|
+
/**
|
|
27275
|
+
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
27276
|
+
* @summary Get single order with transactions and invoices
|
|
27277
|
+
* @param {number} id Order ID
|
|
27278
|
+
* @param {*} [options] Override http request option.
|
|
27279
|
+
* @throws {RequiredError}
|
|
27280
|
+
*/
|
|
27281
|
+
async adminBillingOrdersIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesBillingOrderDetailsResponse>> {
|
|
27282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingOrdersIdGet(id, options);
|
|
27283
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27284
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingOrdersIdGet']?.[localVarOperationServerIndex]?.url;
|
|
27285
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27286
|
+
},
|
|
26830
27287
|
/**
|
|
26831
27288
|
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
26832
27289
|
* @summary Get org admin billing overview
|
|
@@ -27051,6 +27508,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
27051
27508
|
adminBillingInvoicesAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
27052
27509
|
return localVarFp.adminBillingInvoicesAutoGeneratePost(options).then((request) => request(axios, basePath));
|
|
27053
27510
|
},
|
|
27511
|
+
/**
|
|
27512
|
+
* Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
|
|
27513
|
+
* @summary Generate invoices for an order
|
|
27514
|
+
* @param {number} orderId Order ID
|
|
27515
|
+
* @param {*} [options] Override http request option.
|
|
27516
|
+
* @throws {RequiredError}
|
|
27517
|
+
*/
|
|
27518
|
+
adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice> {
|
|
27519
|
+
return localVarFp.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(axios, basePath));
|
|
27520
|
+
},
|
|
27054
27521
|
/**
|
|
27055
27522
|
* Generates an invoice automatically from a completed payment
|
|
27056
27523
|
* @summary Generate invoice from payment
|
|
@@ -27117,6 +27584,17 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
27117
27584
|
adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
27118
27585
|
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
27119
27586
|
},
|
|
27587
|
+
/**
|
|
27588
|
+
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
27589
|
+
* @summary Pay a pending invoice
|
|
27590
|
+
* @param {string} invoiceId Invoice ID
|
|
27591
|
+
* @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
|
|
27592
|
+
* @param {*} [options] Override http request option.
|
|
27593
|
+
* @throws {RequiredError}
|
|
27594
|
+
*/
|
|
27595
|
+
adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPayInvoiceResponse> {
|
|
27596
|
+
return localVarFp.adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
27597
|
+
},
|
|
27120
27598
|
/**
|
|
27121
27599
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
27122
27600
|
* @summary Get orders
|
|
@@ -27131,6 +27609,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
27131
27609
|
adminBillingOrdersGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
27132
27610
|
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(axios, basePath));
|
|
27133
27611
|
},
|
|
27612
|
+
/**
|
|
27613
|
+
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
27614
|
+
* @summary Get single order with transactions and invoices
|
|
27615
|
+
* @param {number} id Order ID
|
|
27616
|
+
* @param {*} [options] Override http request option.
|
|
27617
|
+
* @throws {RequiredError}
|
|
27618
|
+
*/
|
|
27619
|
+
adminBillingOrdersIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesBillingOrderDetailsResponse> {
|
|
27620
|
+
return localVarFp.adminBillingOrdersIdGet(id, options).then((request) => request(axios, basePath));
|
|
27621
|
+
},
|
|
27134
27622
|
/**
|
|
27135
27623
|
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
27136
27624
|
* @summary Get org admin billing overview
|
|
@@ -27352,6 +27840,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
27352
27840
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
|
|
27353
27841
|
}
|
|
27354
27842
|
|
|
27843
|
+
/**
|
|
27844
|
+
* Generates invoices for all uninvoiced payments in an order (handles multiple payments for subscriptions)
|
|
27845
|
+
* @summary Generate invoices for an order
|
|
27846
|
+
* @param {number} orderId Order ID
|
|
27847
|
+
* @param {*} [options] Override http request option.
|
|
27848
|
+
* @throws {RequiredError}
|
|
27849
|
+
* @memberof BillingDashboardApi
|
|
27850
|
+
*/
|
|
27851
|
+
public adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig) {
|
|
27852
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
27853
|
+
}
|
|
27854
|
+
|
|
27355
27855
|
/**
|
|
27356
27856
|
* Generates an invoice automatically from a completed payment
|
|
27357
27857
|
* @summary Generate invoice from payment
|
|
@@ -27430,6 +27930,19 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
27430
27930
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27431
27931
|
}
|
|
27432
27932
|
|
|
27933
|
+
/**
|
|
27934
|
+
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
27935
|
+
* @summary Pay a pending invoice
|
|
27936
|
+
* @param {string} invoiceId Invoice ID
|
|
27937
|
+
* @param {DataTypesPayInvoiceRequest} [dataTypesPayInvoiceRequest] Payment details
|
|
27938
|
+
* @param {*} [options] Override http request option.
|
|
27939
|
+
* @throws {RequiredError}
|
|
27940
|
+
* @memberof BillingDashboardApi
|
|
27941
|
+
*/
|
|
27942
|
+
public adminBillingInvoicesInvoiceIdPayPost(invoiceId: string, dataTypesPayInvoiceRequest?: DataTypesPayInvoiceRequest, options?: RawAxiosRequestConfig) {
|
|
27943
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesInvoiceIdPayPost(invoiceId, dataTypesPayInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27944
|
+
}
|
|
27945
|
+
|
|
27433
27946
|
/**
|
|
27434
27947
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
27435
27948
|
* @summary Get orders
|
|
@@ -27446,6 +27959,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
27446
27959
|
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
27447
27960
|
}
|
|
27448
27961
|
|
|
27962
|
+
/**
|
|
27963
|
+
* Retrieves comprehensive order details including all transactions and invoices (supports multiple invoices for subscriptions)
|
|
27964
|
+
* @summary Get single order with transactions and invoices
|
|
27965
|
+
* @param {number} id Order ID
|
|
27966
|
+
* @param {*} [options] Override http request option.
|
|
27967
|
+
* @throws {RequiredError}
|
|
27968
|
+
* @memberof BillingDashboardApi
|
|
27969
|
+
*/
|
|
27970
|
+
public adminBillingOrdersIdGet(id: number, options?: RawAxiosRequestConfig) {
|
|
27971
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
27972
|
+
}
|
|
27973
|
+
|
|
27449
27974
|
/**
|
|
27450
27975
|
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
27451
27976
|
* @summary Get org admin billing overview
|