@seekora-ai/admin-api 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/api.ts +725 -8
- package/dist/api.d.ts +433 -4
- package/dist/api.js +508 -14
- package/dist/esm/api.d.ts +433 -4
- package/dist/esm/api.js +502 -8
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.5.tgz +0 -0
- package/seekora-ai-admin-api-1.2.4.tgz +0 -0
package/api.ts
CHANGED
|
@@ -14947,7 +14947,8 @@ export interface DataTypesCreatePaymentOrderRequest {
|
|
|
14947
14947
|
export const DataTypesCreatePaymentOrderRequestPaymentTypeEnum = {
|
|
14948
14948
|
Generic: 'generic',
|
|
14949
14949
|
Subscription: 'subscription',
|
|
14950
|
-
CreditTopup: 'credit_topup'
|
|
14950
|
+
CreditTopup: 'credit_topup',
|
|
14951
|
+
PlanChange: 'plan_change'
|
|
14951
14952
|
} as const;
|
|
14952
14953
|
|
|
14953
14954
|
export type DataTypesCreatePaymentOrderRequestPaymentTypeEnum = typeof DataTypesCreatePaymentOrderRequestPaymentTypeEnum[keyof typeof DataTypesCreatePaymentOrderRequestPaymentTypeEnum];
|
|
@@ -16079,6 +16080,12 @@ export interface DataTypesCurrentPlanInfo {
|
|
|
16079
16080
|
* @memberof DataTypesCurrentPlanInfo
|
|
16080
16081
|
*/
|
|
16081
16082
|
'billing_cycle'?: string;
|
|
16083
|
+
/**
|
|
16084
|
+
* Currency of the subscription (INR, USD)
|
|
16085
|
+
* @type {string}
|
|
16086
|
+
* @memberof DataTypesCurrentPlanInfo
|
|
16087
|
+
*/
|
|
16088
|
+
'currency_code'?: string;
|
|
16082
16089
|
/**
|
|
16083
16090
|
*
|
|
16084
16091
|
* @type {string}
|
|
@@ -22346,6 +22353,18 @@ export interface DataTypesInvoice {
|
|
|
22346
22353
|
* @memberof DataTypesInvoice
|
|
22347
22354
|
*/
|
|
22348
22355
|
'created_at'?: string;
|
|
22356
|
+
/**
|
|
22357
|
+
*
|
|
22358
|
+
* @type {string}
|
|
22359
|
+
* @memberof DataTypesInvoice
|
|
22360
|
+
*/
|
|
22361
|
+
'credit_note_reason'?: string;
|
|
22362
|
+
/**
|
|
22363
|
+
*
|
|
22364
|
+
* @type {string}
|
|
22365
|
+
* @memberof DataTypesInvoice
|
|
22366
|
+
*/
|
|
22367
|
+
'credit_note_status'?: string;
|
|
22349
22368
|
/**
|
|
22350
22369
|
*
|
|
22351
22370
|
* @type {string}
|
|
@@ -22382,6 +22401,12 @@ export interface DataTypesInvoice {
|
|
|
22382
22401
|
* @memberof DataTypesInvoice
|
|
22383
22402
|
*/
|
|
22384
22403
|
'invoice_pdf_url'?: string;
|
|
22404
|
+
/**
|
|
22405
|
+
* Credit note fields (only populated when invoice_type = \'credit_note\')
|
|
22406
|
+
* @type {string}
|
|
22407
|
+
* @memberof DataTypesInvoice
|
|
22408
|
+
*/
|
|
22409
|
+
'invoice_type'?: string;
|
|
22385
22410
|
/**
|
|
22386
22411
|
*
|
|
22387
22412
|
* @type {string}
|
|
@@ -22418,6 +22443,18 @@ export interface DataTypesInvoice {
|
|
|
22418
22443
|
* @memberof DataTypesInvoice
|
|
22419
22444
|
*/
|
|
22420
22445
|
'org_name'?: string;
|
|
22446
|
+
/**
|
|
22447
|
+
*
|
|
22448
|
+
* @type {string}
|
|
22449
|
+
* @memberof DataTypesInvoice
|
|
22450
|
+
*/
|
|
22451
|
+
'original_invoice_id'?: string;
|
|
22452
|
+
/**
|
|
22453
|
+
*
|
|
22454
|
+
* @type {string}
|
|
22455
|
+
* @memberof DataTypesInvoice
|
|
22456
|
+
*/
|
|
22457
|
+
'original_invoice_number'?: string;
|
|
22421
22458
|
/**
|
|
22422
22459
|
*
|
|
22423
22460
|
* @type {string}
|
|
@@ -22460,6 +22497,12 @@ export interface DataTypesInvoice {
|
|
|
22460
22497
|
* @memberof DataTypesInvoice
|
|
22461
22498
|
*/
|
|
22462
22499
|
'receipt_pdf_url'?: string;
|
|
22500
|
+
/**
|
|
22501
|
+
*
|
|
22502
|
+
* @type {number}
|
|
22503
|
+
* @memberof DataTypesInvoice
|
|
22504
|
+
*/
|
|
22505
|
+
'refund_request_id'?: number;
|
|
22463
22506
|
/**
|
|
22464
22507
|
* \"draft\", \"sent\", \"paid\", \"overdue\", \"cancelled\"
|
|
22465
22508
|
* @type {string}
|
|
@@ -22496,6 +22539,12 @@ export interface DataTypesInvoice {
|
|
|
22496
22539
|
* @memberof DataTypesInvoice
|
|
22497
22540
|
*/
|
|
22498
22541
|
'updated_at'?: string;
|
|
22542
|
+
/**
|
|
22543
|
+
*
|
|
22544
|
+
* @type {string}
|
|
22545
|
+
* @memberof DataTypesInvoice
|
|
22546
|
+
*/
|
|
22547
|
+
'voided_at'?: string;
|
|
22499
22548
|
}
|
|
22500
22549
|
/**
|
|
22501
22550
|
*
|
|
@@ -29985,6 +30034,95 @@ export interface DataTypesSendNotificationResponse {
|
|
|
29985
30034
|
*/
|
|
29986
30035
|
'status'?: number;
|
|
29987
30036
|
}
|
|
30037
|
+
/**
|
|
30038
|
+
*
|
|
30039
|
+
* @export
|
|
30040
|
+
* @interface DataTypesSendOrgNotificationData
|
|
30041
|
+
*/
|
|
30042
|
+
export interface DataTypesSendOrgNotificationData {
|
|
30043
|
+
/**
|
|
30044
|
+
*
|
|
30045
|
+
* @type {string}
|
|
30046
|
+
* @memberof DataTypesSendOrgNotificationData
|
|
30047
|
+
*/
|
|
30048
|
+
'scope'?: string;
|
|
30049
|
+
/**
|
|
30050
|
+
*
|
|
30051
|
+
* @type {number}
|
|
30052
|
+
* @memberof DataTypesSendOrgNotificationData
|
|
30053
|
+
*/
|
|
30054
|
+
'sent_count'?: number;
|
|
30055
|
+
}
|
|
30056
|
+
/**
|
|
30057
|
+
*
|
|
30058
|
+
* @export
|
|
30059
|
+
* @interface DataTypesSendOrgNotificationRequest
|
|
30060
|
+
*/
|
|
30061
|
+
export interface DataTypesSendOrgNotificationRequest {
|
|
30062
|
+
/**
|
|
30063
|
+
*
|
|
30064
|
+
* @type {Array<DataTypesNotificationChannel>}
|
|
30065
|
+
* @memberof DataTypesSendOrgNotificationRequest
|
|
30066
|
+
*/
|
|
30067
|
+
'channels'?: Array<DataTypesNotificationChannel>;
|
|
30068
|
+
/**
|
|
30069
|
+
*
|
|
30070
|
+
* @type {string}
|
|
30071
|
+
* @memberof DataTypesSendOrgNotificationRequest
|
|
30072
|
+
*/
|
|
30073
|
+
'message'?: string;
|
|
30074
|
+
/**
|
|
30075
|
+
*
|
|
30076
|
+
* @type {DataTypesNotificationPriority}
|
|
30077
|
+
* @memberof DataTypesSendOrgNotificationRequest
|
|
30078
|
+
*/
|
|
30079
|
+
'priority'?: DataTypesNotificationPriority;
|
|
30080
|
+
/**
|
|
30081
|
+
* \"all\" | \"owners_admins\"
|
|
30082
|
+
* @type {string}
|
|
30083
|
+
* @memberof DataTypesSendOrgNotificationRequest
|
|
30084
|
+
*/
|
|
30085
|
+
'scope'?: string;
|
|
30086
|
+
/**
|
|
30087
|
+
*
|
|
30088
|
+
* @type {string}
|
|
30089
|
+
* @memberof DataTypesSendOrgNotificationRequest
|
|
30090
|
+
*/
|
|
30091
|
+
'title'?: string;
|
|
30092
|
+
/**
|
|
30093
|
+
*
|
|
30094
|
+
* @type {DataTypesNotificationType}
|
|
30095
|
+
* @memberof DataTypesSendOrgNotificationRequest
|
|
30096
|
+
*/
|
|
30097
|
+
'type'?: DataTypesNotificationType;
|
|
30098
|
+
}
|
|
30099
|
+
|
|
30100
|
+
|
|
30101
|
+
/**
|
|
30102
|
+
*
|
|
30103
|
+
* @export
|
|
30104
|
+
* @interface DataTypesSendOrgNotificationResponse
|
|
30105
|
+
*/
|
|
30106
|
+
export interface DataTypesSendOrgNotificationResponse {
|
|
30107
|
+
/**
|
|
30108
|
+
*
|
|
30109
|
+
* @type {DataTypesSendOrgNotificationData}
|
|
30110
|
+
* @memberof DataTypesSendOrgNotificationResponse
|
|
30111
|
+
*/
|
|
30112
|
+
'data'?: DataTypesSendOrgNotificationData;
|
|
30113
|
+
/**
|
|
30114
|
+
*
|
|
30115
|
+
* @type {string}
|
|
30116
|
+
* @memberof DataTypesSendOrgNotificationResponse
|
|
30117
|
+
*/
|
|
30118
|
+
'message'?: string;
|
|
30119
|
+
/**
|
|
30120
|
+
*
|
|
30121
|
+
* @type {number}
|
|
30122
|
+
* @memberof DataTypesSendOrgNotificationResponse
|
|
30123
|
+
*/
|
|
30124
|
+
'status'?: number;
|
|
30125
|
+
}
|
|
29988
30126
|
/**
|
|
29989
30127
|
*
|
|
29990
30128
|
* @export
|
|
@@ -40433,6 +40571,31 @@ export interface SubscriptionRouteCancelProcessRequest {
|
|
|
40433
40571
|
*/
|
|
40434
40572
|
'subscription_id'?: string;
|
|
40435
40573
|
}
|
|
40574
|
+
/**
|
|
40575
|
+
*
|
|
40576
|
+
* @export
|
|
40577
|
+
* @interface SubscriptionRouteImmediatePlanChangeOrderHTTPRequest
|
|
40578
|
+
*/
|
|
40579
|
+
export interface SubscriptionRouteImmediatePlanChangeOrderHTTPRequest {
|
|
40580
|
+
/**
|
|
40581
|
+
*
|
|
40582
|
+
* @type {string}
|
|
40583
|
+
* @memberof SubscriptionRouteImmediatePlanChangeOrderHTTPRequest
|
|
40584
|
+
*/
|
|
40585
|
+
'billing_cycle'?: string;
|
|
40586
|
+
/**
|
|
40587
|
+
*
|
|
40588
|
+
* @type {string}
|
|
40589
|
+
* @memberof SubscriptionRouteImmediatePlanChangeOrderHTTPRequest
|
|
40590
|
+
*/
|
|
40591
|
+
'currency'?: string;
|
|
40592
|
+
/**
|
|
40593
|
+
*
|
|
40594
|
+
* @type {string}
|
|
40595
|
+
* @memberof SubscriptionRouteImmediatePlanChangeOrderHTTPRequest
|
|
40596
|
+
*/
|
|
40597
|
+
'new_plan_identifier'?: string;
|
|
40598
|
+
}
|
|
40436
40599
|
/**
|
|
40437
40600
|
*
|
|
40438
40601
|
* @export
|
|
@@ -40464,6 +40627,31 @@ export interface SubscriptionRoutePlanChangePreviewHTTPRequest {
|
|
|
40464
40627
|
*/
|
|
40465
40628
|
'new_plan_identifier'?: string;
|
|
40466
40629
|
}
|
|
40630
|
+
/**
|
|
40631
|
+
*
|
|
40632
|
+
* @export
|
|
40633
|
+
* @interface SubscriptionRouteSchedulePlanChangeHTTPRequest
|
|
40634
|
+
*/
|
|
40635
|
+
export interface SubscriptionRouteSchedulePlanChangeHTTPRequest {
|
|
40636
|
+
/**
|
|
40637
|
+
*
|
|
40638
|
+
* @type {string}
|
|
40639
|
+
* @memberof SubscriptionRouteSchedulePlanChangeHTTPRequest
|
|
40640
|
+
*/
|
|
40641
|
+
'billing_cycle'?: string;
|
|
40642
|
+
/**
|
|
40643
|
+
*
|
|
40644
|
+
* @type {string}
|
|
40645
|
+
* @memberof SubscriptionRouteSchedulePlanChangeHTTPRequest
|
|
40646
|
+
*/
|
|
40647
|
+
'currency'?: string;
|
|
40648
|
+
/**
|
|
40649
|
+
*
|
|
40650
|
+
* @type {string}
|
|
40651
|
+
* @memberof SubscriptionRouteSchedulePlanChangeHTTPRequest
|
|
40652
|
+
*/
|
|
40653
|
+
'new_plan_identifier'?: string;
|
|
40654
|
+
}
|
|
40467
40655
|
/**
|
|
40468
40656
|
*
|
|
40469
40657
|
* @export
|
|
@@ -42623,6 +42811,45 @@ export const AdminNotificationsApiAxiosParamCreator = function (configuration?:
|
|
|
42623
42811
|
options: localVarRequestOptions,
|
|
42624
42812
|
};
|
|
42625
42813
|
},
|
|
42814
|
+
/**
|
|
42815
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
42816
|
+
* @summary Send org-wide notification (Admin)
|
|
42817
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
42818
|
+
* @param {*} [options] Override http request option.
|
|
42819
|
+
* @throws {RequiredError}
|
|
42820
|
+
*/
|
|
42821
|
+
v1AdminNotificationsSendOrgPost: async (dataTypesSendOrgNotificationRequest: DataTypesSendOrgNotificationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42822
|
+
// verify required parameter 'dataTypesSendOrgNotificationRequest' is not null or undefined
|
|
42823
|
+
assertParamExists('v1AdminNotificationsSendOrgPost', 'dataTypesSendOrgNotificationRequest', dataTypesSendOrgNotificationRequest)
|
|
42824
|
+
const localVarPath = `/v1/admin/notifications/send-org`;
|
|
42825
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42826
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42827
|
+
let baseOptions;
|
|
42828
|
+
if (configuration) {
|
|
42829
|
+
baseOptions = configuration.baseOptions;
|
|
42830
|
+
}
|
|
42831
|
+
|
|
42832
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42833
|
+
const localVarHeaderParameter = {} as any;
|
|
42834
|
+
const localVarQueryParameter = {} as any;
|
|
42835
|
+
|
|
42836
|
+
// authentication BearerAuth required
|
|
42837
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
42838
|
+
|
|
42839
|
+
|
|
42840
|
+
|
|
42841
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42842
|
+
|
|
42843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42845
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42846
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSendOrgNotificationRequest, localVarRequestOptions, configuration)
|
|
42847
|
+
|
|
42848
|
+
return {
|
|
42849
|
+
url: toPathString(localVarUrlObj),
|
|
42850
|
+
options: localVarRequestOptions,
|
|
42851
|
+
};
|
|
42852
|
+
},
|
|
42626
42853
|
/**
|
|
42627
42854
|
* Sends a notification to specified users (requires admin privileges)
|
|
42628
42855
|
* @summary Send notification (Admin)
|
|
@@ -42891,6 +43118,19 @@ export const AdminNotificationsApiFp = function(configuration?: Configuration) {
|
|
|
42891
43118
|
const localVarOperationServerBasePath = operationServerMap['AdminNotificationsApi.v1AdminNotificationsSendBulkPost']?.[localVarOperationServerIndex]?.url;
|
|
42892
43119
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42893
43120
|
},
|
|
43121
|
+
/**
|
|
43122
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
43123
|
+
* @summary Send org-wide notification (Admin)
|
|
43124
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
43125
|
+
* @param {*} [options] Override http request option.
|
|
43126
|
+
* @throws {RequiredError}
|
|
43127
|
+
*/
|
|
43128
|
+
async v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest: DataTypesSendOrgNotificationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesSendOrgNotificationResponse>> {
|
|
43129
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options);
|
|
43130
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
43131
|
+
const localVarOperationServerBasePath = operationServerMap['AdminNotificationsApi.v1AdminNotificationsSendOrgPost']?.[localVarOperationServerIndex]?.url;
|
|
43132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
43133
|
+
},
|
|
42894
43134
|
/**
|
|
42895
43135
|
* Sends a notification to specified users (requires admin privileges)
|
|
42896
43136
|
* @summary Send notification (Admin)
|
|
@@ -43024,6 +43264,16 @@ export const AdminNotificationsApiFactory = function (configuration?: Configurat
|
|
|
43024
43264
|
v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch: DataTypesNotificationBatch, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSendBulkNotificationResponse> {
|
|
43025
43265
|
return localVarFp.v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(axios, basePath));
|
|
43026
43266
|
},
|
|
43267
|
+
/**
|
|
43268
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
43269
|
+
* @summary Send org-wide notification (Admin)
|
|
43270
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
43271
|
+
* @param {*} [options] Override http request option.
|
|
43272
|
+
* @throws {RequiredError}
|
|
43273
|
+
*/
|
|
43274
|
+
v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest: DataTypesSendOrgNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSendOrgNotificationResponse> {
|
|
43275
|
+
return localVarFp.v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options).then((request) => request(axios, basePath));
|
|
43276
|
+
},
|
|
43027
43277
|
/**
|
|
43028
43278
|
* Sends a notification to specified users (requires admin privileges)
|
|
43029
43279
|
* @summary Send notification (Admin)
|
|
@@ -43159,6 +43409,18 @@ export class AdminNotificationsApi extends BaseAPI {
|
|
|
43159
43409
|
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(this.axios, this.basePath));
|
|
43160
43410
|
}
|
|
43161
43411
|
|
|
43412
|
+
/**
|
|
43413
|
+
* Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
|
|
43414
|
+
* @summary Send org-wide notification (Admin)
|
|
43415
|
+
* @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
|
|
43416
|
+
* @param {*} [options] Override http request option.
|
|
43417
|
+
* @throws {RequiredError}
|
|
43418
|
+
* @memberof AdminNotificationsApi
|
|
43419
|
+
*/
|
|
43420
|
+
public v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest: DataTypesSendOrgNotificationRequest, options?: RawAxiosRequestConfig) {
|
|
43421
|
+
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43422
|
+
}
|
|
43423
|
+
|
|
43162
43424
|
/**
|
|
43163
43425
|
* Sends a notification to specified users (requires admin privileges)
|
|
43164
43426
|
* @summary Send notification (Admin)
|
|
@@ -56185,6 +56447,54 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56185
56447
|
|
|
56186
56448
|
|
|
56187
56449
|
|
|
56450
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56451
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56452
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56453
|
+
|
|
56454
|
+
return {
|
|
56455
|
+
url: toPathString(localVarUrlObj),
|
|
56456
|
+
options: localVarRequestOptions,
|
|
56457
|
+
};
|
|
56458
|
+
},
|
|
56459
|
+
/**
|
|
56460
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
56461
|
+
* @summary Export credit notes for GSTR-1
|
|
56462
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
56463
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
56464
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
56465
|
+
* @param {*} [options] Override http request option.
|
|
56466
|
+
* @throws {RequiredError}
|
|
56467
|
+
*/
|
|
56468
|
+
adminBillingCreditNotesExportGet: async (startDate?: string, endDate?: string, fiscalYear?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56469
|
+
const localVarPath = `/admin/billing/credit-notes/export`;
|
|
56470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56472
|
+
let baseOptions;
|
|
56473
|
+
if (configuration) {
|
|
56474
|
+
baseOptions = configuration.baseOptions;
|
|
56475
|
+
}
|
|
56476
|
+
|
|
56477
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56478
|
+
const localVarHeaderParameter = {} as any;
|
|
56479
|
+
const localVarQueryParameter = {} as any;
|
|
56480
|
+
|
|
56481
|
+
// authentication BearerAuth required
|
|
56482
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
56483
|
+
|
|
56484
|
+
if (startDate !== undefined) {
|
|
56485
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
56486
|
+
}
|
|
56487
|
+
|
|
56488
|
+
if (endDate !== undefined) {
|
|
56489
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
56490
|
+
}
|
|
56491
|
+
|
|
56492
|
+
if (fiscalYear !== undefined) {
|
|
56493
|
+
localVarQueryParameter['fiscal_year'] = fiscalYear;
|
|
56494
|
+
}
|
|
56495
|
+
|
|
56496
|
+
|
|
56497
|
+
|
|
56188
56498
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56189
56499
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56190
56500
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -56470,10 +56780,11 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56470
56780
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
56471
56781
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
56472
56782
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
56783
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
56473
56784
|
* @param {*} [options] Override http request option.
|
|
56474
56785
|
* @throws {RequiredError}
|
|
56475
56786
|
*/
|
|
56476
|
-
adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56787
|
+
adminBillingInvoicesGet: async (orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, invoiceType?: AdminBillingInvoicesGetInvoiceTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56477
56788
|
const localVarPath = `/admin/billing/invoices`;
|
|
56478
56789
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56479
56790
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -56529,6 +56840,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56529
56840
|
localVarQueryParameter['sort_order'] = sortOrder;
|
|
56530
56841
|
}
|
|
56531
56842
|
|
|
56843
|
+
if (invoiceType !== undefined) {
|
|
56844
|
+
localVarQueryParameter['invoice_type'] = invoiceType;
|
|
56845
|
+
}
|
|
56846
|
+
|
|
56532
56847
|
|
|
56533
56848
|
|
|
56534
56849
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -56731,6 +57046,43 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56731
57046
|
options: localVarRequestOptions,
|
|
56732
57047
|
};
|
|
56733
57048
|
},
|
|
57049
|
+
/**
|
|
57050
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
57051
|
+
* @summary Void a credit note
|
|
57052
|
+
* @param {string} id Invoice ID (UUID)
|
|
57053
|
+
* @param {*} [options] Override http request option.
|
|
57054
|
+
* @throws {RequiredError}
|
|
57055
|
+
*/
|
|
57056
|
+
adminBillingInvoicesIdVoidPost: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57057
|
+
// verify required parameter 'id' is not null or undefined
|
|
57058
|
+
assertParamExists('adminBillingInvoicesIdVoidPost', 'id', id)
|
|
57059
|
+
const localVarPath = `/admin/billing/invoices/{id}/void`
|
|
57060
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
57061
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57062
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57063
|
+
let baseOptions;
|
|
57064
|
+
if (configuration) {
|
|
57065
|
+
baseOptions = configuration.baseOptions;
|
|
57066
|
+
}
|
|
57067
|
+
|
|
57068
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
57069
|
+
const localVarHeaderParameter = {} as any;
|
|
57070
|
+
const localVarQueryParameter = {} as any;
|
|
57071
|
+
|
|
57072
|
+
// authentication BearerAuth required
|
|
57073
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
57074
|
+
|
|
57075
|
+
|
|
57076
|
+
|
|
57077
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57078
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57079
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57080
|
+
|
|
57081
|
+
return {
|
|
57082
|
+
url: toPathString(localVarUrlObj),
|
|
57083
|
+
options: localVarRequestOptions,
|
|
57084
|
+
};
|
|
57085
|
+
},
|
|
56734
57086
|
/**
|
|
56735
57087
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
56736
57088
|
* @summary Pay a pending invoice
|
|
@@ -57783,6 +58135,21 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
57783
58135
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']?.[localVarOperationServerIndex]?.url;
|
|
57784
58136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57785
58137
|
},
|
|
58138
|
+
/**
|
|
58139
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
58140
|
+
* @summary Export credit notes for GSTR-1
|
|
58141
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
58142
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
58143
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
58144
|
+
* @param {*} [options] Override http request option.
|
|
58145
|
+
* @throws {RequiredError}
|
|
58146
|
+
*/
|
|
58147
|
+
async adminBillingCreditNotesExportGet(startDate?: string, endDate?: string, fiscalYear?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
58148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options);
|
|
58149
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58150
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditNotesExportGet']?.[localVarOperationServerIndex]?.url;
|
|
58151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58152
|
+
},
|
|
57786
58153
|
/**
|
|
57787
58154
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
57788
58155
|
* @summary Get credit purchases
|
|
@@ -57876,11 +58243,12 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
57876
58243
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
57877
58244
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
57878
58245
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
58246
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
57879
58247
|
* @param {*} [options] Override http request option.
|
|
57880
58248
|
* @throws {RequiredError}
|
|
57881
58249
|
*/
|
|
57882
|
-
async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
57883
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
|
|
58250
|
+
async adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, invoiceType?: AdminBillingInvoicesGetInvoiceTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
58251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options);
|
|
57884
58252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57885
58253
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
|
|
57886
58254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -57951,6 +58319,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
57951
58319
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']?.[localVarOperationServerIndex]?.url;
|
|
57952
58320
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57953
58321
|
},
|
|
58322
|
+
/**
|
|
58323
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
58324
|
+
* @summary Void a credit note
|
|
58325
|
+
* @param {string} id Invoice ID (UUID)
|
|
58326
|
+
* @param {*} [options] Override http request option.
|
|
58327
|
+
* @throws {RequiredError}
|
|
58328
|
+
*/
|
|
58329
|
+
async adminBillingInvoicesIdVoidPost(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
58330
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesIdVoidPost(id, options);
|
|
58331
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58332
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdVoidPost']?.[localVarOperationServerIndex]?.url;
|
|
58333
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58334
|
+
},
|
|
57954
58335
|
/**
|
|
57955
58336
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
57956
58337
|
* @summary Pay a pending invoice
|
|
@@ -58352,6 +58733,18 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
58352
58733
|
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58353
58734
|
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
58354
58735
|
},
|
|
58736
|
+
/**
|
|
58737
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
58738
|
+
* @summary Export credit notes for GSTR-1
|
|
58739
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
58740
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
58741
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
58742
|
+
* @param {*} [options] Override http request option.
|
|
58743
|
+
* @throws {RequiredError}
|
|
58744
|
+
*/
|
|
58745
|
+
adminBillingCreditNotesExportGet(startDate?: string, endDate?: string, fiscalYear?: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
58746
|
+
return localVarFp.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(axios, basePath));
|
|
58747
|
+
},
|
|
58355
58748
|
/**
|
|
58356
58749
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
58357
58750
|
* @summary Get credit purchases
|
|
@@ -58430,11 +58823,12 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
58430
58823
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
58431
58824
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
58432
58825
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
58826
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
58433
58827
|
* @param {*} [options] Override http request option.
|
|
58434
58828
|
* @throws {RequiredError}
|
|
58435
58829
|
*/
|
|
58436
|
-
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58437
|
-
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
58830
|
+
adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, invoiceType?: AdminBillingInvoicesGetInvoiceTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58831
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(axios, basePath));
|
|
58438
58832
|
},
|
|
58439
58833
|
/**
|
|
58440
58834
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -58487,6 +58881,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
58487
58881
|
adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58488
58882
|
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
58489
58883
|
},
|
|
58884
|
+
/**
|
|
58885
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
58886
|
+
* @summary Void a credit note
|
|
58887
|
+
* @param {string} id Invoice ID (UUID)
|
|
58888
|
+
* @param {*} [options] Override http request option.
|
|
58889
|
+
* @throws {RequiredError}
|
|
58890
|
+
*/
|
|
58891
|
+
adminBillingInvoicesIdVoidPost(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58892
|
+
return localVarFp.adminBillingInvoicesIdVoidPost(id, options).then((request) => request(axios, basePath));
|
|
58893
|
+
},
|
|
58490
58894
|
/**
|
|
58491
58895
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
58492
58896
|
* @summary Pay a pending invoice
|
|
@@ -58844,6 +59248,20 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
58844
59248
|
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
58845
59249
|
}
|
|
58846
59250
|
|
|
59251
|
+
/**
|
|
59252
|
+
* Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
|
|
59253
|
+
* @summary Export credit notes for GSTR-1
|
|
59254
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
59255
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
59256
|
+
* @param {string} [fiscalYear] Fiscal year (e.g., 2526)
|
|
59257
|
+
* @param {*} [options] Override http request option.
|
|
59258
|
+
* @throws {RequiredError}
|
|
59259
|
+
* @memberof BillingDashboardApi
|
|
59260
|
+
*/
|
|
59261
|
+
public adminBillingCreditNotesExportGet(startDate?: string, endDate?: string, fiscalYear?: string, options?: RawAxiosRequestConfig) {
|
|
59262
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(this.axios, this.basePath));
|
|
59263
|
+
}
|
|
59264
|
+
|
|
58847
59265
|
/**
|
|
58848
59266
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
58849
59267
|
* @summary Get credit purchases
|
|
@@ -58932,12 +59350,13 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
58932
59350
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
58933
59351
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
58934
59352
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
59353
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
58935
59354
|
* @param {*} [options] Override http request option.
|
|
58936
59355
|
* @throws {RequiredError}
|
|
58937
59356
|
* @memberof BillingDashboardApi
|
|
58938
59357
|
*/
|
|
58939
|
-
public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig) {
|
|
58940
|
-
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
59358
|
+
public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, invoiceType?: AdminBillingInvoicesGetInvoiceTypeEnum, options?: RawAxiosRequestConfig) {
|
|
59359
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(this.axios, this.basePath));
|
|
58941
59360
|
}
|
|
58942
59361
|
|
|
58943
59362
|
/**
|
|
@@ -59001,6 +59420,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
59001
59420
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
59002
59421
|
}
|
|
59003
59422
|
|
|
59423
|
+
/**
|
|
59424
|
+
* Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
|
|
59425
|
+
* @summary Void a credit note
|
|
59426
|
+
* @param {string} id Invoice ID (UUID)
|
|
59427
|
+
* @param {*} [options] Override http request option.
|
|
59428
|
+
* @throws {RequiredError}
|
|
59429
|
+
* @memberof BillingDashboardApi
|
|
59430
|
+
*/
|
|
59431
|
+
public adminBillingInvoicesIdVoidPost(id: string, options?: RawAxiosRequestConfig) {
|
|
59432
|
+
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdVoidPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
59433
|
+
}
|
|
59434
|
+
|
|
59004
59435
|
/**
|
|
59005
59436
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
59006
59437
|
* @summary Pay a pending invoice
|
|
@@ -59361,6 +59792,14 @@ export const AdminBillingInvoicesGetSortOrderEnum = {
|
|
|
59361
59792
|
Desc2: 'DESC'
|
|
59362
59793
|
} as const;
|
|
59363
59794
|
export type AdminBillingInvoicesGetSortOrderEnum = typeof AdminBillingInvoicesGetSortOrderEnum[keyof typeof AdminBillingInvoicesGetSortOrderEnum];
|
|
59795
|
+
/**
|
|
59796
|
+
* @export
|
|
59797
|
+
*/
|
|
59798
|
+
export const AdminBillingInvoicesGetInvoiceTypeEnum = {
|
|
59799
|
+
TaxInvoice: 'tax_invoice',
|
|
59800
|
+
CreditNote: 'credit_note'
|
|
59801
|
+
} as const;
|
|
59802
|
+
export type AdminBillingInvoicesGetInvoiceTypeEnum = typeof AdminBillingInvoicesGetInvoiceTypeEnum[keyof typeof AdminBillingInvoicesGetInvoiceTypeEnum];
|
|
59364
59803
|
/**
|
|
59365
59804
|
* @export
|
|
59366
59805
|
*/
|
|
@@ -94344,6 +94783,45 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
94344
94783
|
options: localVarRequestOptions,
|
|
94345
94784
|
};
|
|
94346
94785
|
},
|
|
94786
|
+
/**
|
|
94787
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
94788
|
+
* @summary Create an immediate plan change order
|
|
94789
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
94790
|
+
* @param {*} [options] Override http request option.
|
|
94791
|
+
* @throws {RequiredError}
|
|
94792
|
+
*/
|
|
94793
|
+
adminSubscriptionsPlanChangeImmediateOrderPost: async (subscriptionRouteImmediatePlanChangeOrderHTTPRequest: SubscriptionRouteImmediatePlanChangeOrderHTTPRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94794
|
+
// verify required parameter 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest' is not null or undefined
|
|
94795
|
+
assertParamExists('adminSubscriptionsPlanChangeImmediateOrderPost', 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest', subscriptionRouteImmediatePlanChangeOrderHTTPRequest)
|
|
94796
|
+
const localVarPath = `/admin/subscriptions/plan-change/immediate/order`;
|
|
94797
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94798
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94799
|
+
let baseOptions;
|
|
94800
|
+
if (configuration) {
|
|
94801
|
+
baseOptions = configuration.baseOptions;
|
|
94802
|
+
}
|
|
94803
|
+
|
|
94804
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
94805
|
+
const localVarHeaderParameter = {} as any;
|
|
94806
|
+
const localVarQueryParameter = {} as any;
|
|
94807
|
+
|
|
94808
|
+
// authentication BearerAuth required
|
|
94809
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
94810
|
+
|
|
94811
|
+
|
|
94812
|
+
|
|
94813
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94814
|
+
|
|
94815
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94817
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
94818
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, localVarRequestOptions, configuration)
|
|
94819
|
+
|
|
94820
|
+
return {
|
|
94821
|
+
url: toPathString(localVarUrlObj),
|
|
94822
|
+
options: localVarRequestOptions,
|
|
94823
|
+
};
|
|
94824
|
+
},
|
|
94347
94825
|
/**
|
|
94348
94826
|
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
94349
94827
|
* @summary Preview plan change details
|
|
@@ -94383,6 +94861,111 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
94383
94861
|
options: localVarRequestOptions,
|
|
94384
94862
|
};
|
|
94385
94863
|
},
|
|
94864
|
+
/**
|
|
94865
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
94866
|
+
* @summary Cancel a scheduled plan change
|
|
94867
|
+
* @param {*} [options] Override http request option.
|
|
94868
|
+
* @throws {RequiredError}
|
|
94869
|
+
*/
|
|
94870
|
+
adminSubscriptionsPlanChangeScheduleDelete: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94871
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
94872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94873
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94874
|
+
let baseOptions;
|
|
94875
|
+
if (configuration) {
|
|
94876
|
+
baseOptions = configuration.baseOptions;
|
|
94877
|
+
}
|
|
94878
|
+
|
|
94879
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
94880
|
+
const localVarHeaderParameter = {} as any;
|
|
94881
|
+
const localVarQueryParameter = {} as any;
|
|
94882
|
+
|
|
94883
|
+
// authentication BearerAuth required
|
|
94884
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
94885
|
+
|
|
94886
|
+
|
|
94887
|
+
|
|
94888
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94889
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94890
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
94891
|
+
|
|
94892
|
+
return {
|
|
94893
|
+
url: toPathString(localVarUrlObj),
|
|
94894
|
+
options: localVarRequestOptions,
|
|
94895
|
+
};
|
|
94896
|
+
},
|
|
94897
|
+
/**
|
|
94898
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
94899
|
+
* @summary Get pending scheduled plan change
|
|
94900
|
+
* @param {*} [options] Override http request option.
|
|
94901
|
+
* @throws {RequiredError}
|
|
94902
|
+
*/
|
|
94903
|
+
adminSubscriptionsPlanChangeScheduleGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94904
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
94905
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94906
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94907
|
+
let baseOptions;
|
|
94908
|
+
if (configuration) {
|
|
94909
|
+
baseOptions = configuration.baseOptions;
|
|
94910
|
+
}
|
|
94911
|
+
|
|
94912
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
94913
|
+
const localVarHeaderParameter = {} as any;
|
|
94914
|
+
const localVarQueryParameter = {} as any;
|
|
94915
|
+
|
|
94916
|
+
// authentication BearerAuth required
|
|
94917
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
94918
|
+
|
|
94919
|
+
|
|
94920
|
+
|
|
94921
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94923
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
94924
|
+
|
|
94925
|
+
return {
|
|
94926
|
+
url: toPathString(localVarUrlObj),
|
|
94927
|
+
options: localVarRequestOptions,
|
|
94928
|
+
};
|
|
94929
|
+
},
|
|
94930
|
+
/**
|
|
94931
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
94932
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
94933
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
94934
|
+
* @param {*} [options] Override http request option.
|
|
94935
|
+
* @throws {RequiredError}
|
|
94936
|
+
*/
|
|
94937
|
+
adminSubscriptionsPlanChangeSchedulePost: async (subscriptionRouteSchedulePlanChangeHTTPRequest: SubscriptionRouteSchedulePlanChangeHTTPRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94938
|
+
// verify required parameter 'subscriptionRouteSchedulePlanChangeHTTPRequest' is not null or undefined
|
|
94939
|
+
assertParamExists('adminSubscriptionsPlanChangeSchedulePost', 'subscriptionRouteSchedulePlanChangeHTTPRequest', subscriptionRouteSchedulePlanChangeHTTPRequest)
|
|
94940
|
+
const localVarPath = `/admin/subscriptions/plan-change/schedule`;
|
|
94941
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94942
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94943
|
+
let baseOptions;
|
|
94944
|
+
if (configuration) {
|
|
94945
|
+
baseOptions = configuration.baseOptions;
|
|
94946
|
+
}
|
|
94947
|
+
|
|
94948
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
94949
|
+
const localVarHeaderParameter = {} as any;
|
|
94950
|
+
const localVarQueryParameter = {} as any;
|
|
94951
|
+
|
|
94952
|
+
// authentication BearerAuth required
|
|
94953
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
94954
|
+
|
|
94955
|
+
|
|
94956
|
+
|
|
94957
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94958
|
+
|
|
94959
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94961
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
94962
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRouteSchedulePlanChangeHTTPRequest, localVarRequestOptions, configuration)
|
|
94963
|
+
|
|
94964
|
+
return {
|
|
94965
|
+
url: toPathString(localVarUrlObj),
|
|
94966
|
+
options: localVarRequestOptions,
|
|
94967
|
+
};
|
|
94968
|
+
},
|
|
94386
94969
|
/**
|
|
94387
94970
|
* Updates Subscription information by ID.
|
|
94388
94971
|
* @summary Update an existing Subscription
|
|
@@ -94612,6 +95195,19 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) {
|
|
|
94612
95195
|
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsCancelProcessPost']?.[localVarOperationServerIndex]?.url;
|
|
94613
95196
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
94614
95197
|
},
|
|
95198
|
+
/**
|
|
95199
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
95200
|
+
* @summary Create an immediate plan change order
|
|
95201
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
95202
|
+
* @param {*} [options] Override http request option.
|
|
95203
|
+
* @throws {RequiredError}
|
|
95204
|
+
*/
|
|
95205
|
+
async adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest: SubscriptionRouteImmediatePlanChangeOrderHTTPRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
95206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options);
|
|
95207
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95208
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeImmediateOrderPost']?.[localVarOperationServerIndex]?.url;
|
|
95209
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95210
|
+
},
|
|
94615
95211
|
/**
|
|
94616
95212
|
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
94617
95213
|
* @summary Preview plan change details
|
|
@@ -94625,6 +95221,43 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) {
|
|
|
94625
95221
|
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangePreviewPost']?.[localVarOperationServerIndex]?.url;
|
|
94626
95222
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
94627
95223
|
},
|
|
95224
|
+
/**
|
|
95225
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
95226
|
+
* @summary Cancel a scheduled plan change
|
|
95227
|
+
* @param {*} [options] Override http request option.
|
|
95228
|
+
* @throws {RequiredError}
|
|
95229
|
+
*/
|
|
95230
|
+
async adminSubscriptionsPlanChangeScheduleDelete(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
95231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleDelete(options);
|
|
95232
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95233
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleDelete']?.[localVarOperationServerIndex]?.url;
|
|
95234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95235
|
+
},
|
|
95236
|
+
/**
|
|
95237
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
95238
|
+
* @summary Get pending scheduled plan change
|
|
95239
|
+
* @param {*} [options] Override http request option.
|
|
95240
|
+
* @throws {RequiredError}
|
|
95241
|
+
*/
|
|
95242
|
+
async adminSubscriptionsPlanChangeScheduleGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
95243
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleGet(options);
|
|
95244
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95245
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleGet']?.[localVarOperationServerIndex]?.url;
|
|
95246
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95247
|
+
},
|
|
95248
|
+
/**
|
|
95249
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
95250
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
95251
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
95252
|
+
* @param {*} [options] Override http request option.
|
|
95253
|
+
* @throws {RequiredError}
|
|
95254
|
+
*/
|
|
95255
|
+
async adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest: SubscriptionRouteSchedulePlanChangeHTTPRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
95256
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options);
|
|
95257
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95258
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeSchedulePost']?.[localVarOperationServerIndex]?.url;
|
|
95259
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95260
|
+
},
|
|
94628
95261
|
/**
|
|
94629
95262
|
* Updates Subscription information by ID.
|
|
94630
95263
|
* @summary Update an existing Subscription
|
|
@@ -94721,6 +95354,16 @@ export const SubscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
94721
95354
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
94722
95355
|
return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
|
|
94723
95356
|
},
|
|
95357
|
+
/**
|
|
95358
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
95359
|
+
* @summary Create an immediate plan change order
|
|
95360
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
95361
|
+
* @param {*} [options] Override http request option.
|
|
95362
|
+
* @throws {RequiredError}
|
|
95363
|
+
*/
|
|
95364
|
+
adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest: SubscriptionRouteImmediatePlanChangeOrderHTTPRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
95365
|
+
return localVarFp.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(axios, basePath));
|
|
95366
|
+
},
|
|
94724
95367
|
/**
|
|
94725
95368
|
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
94726
95369
|
* @summary Preview plan change details
|
|
@@ -94731,6 +95374,34 @@ export const SubscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
94731
95374
|
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
94732
95375
|
return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
|
|
94733
95376
|
},
|
|
95377
|
+
/**
|
|
95378
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
95379
|
+
* @summary Cancel a scheduled plan change
|
|
95380
|
+
* @param {*} [options] Override http request option.
|
|
95381
|
+
* @throws {RequiredError}
|
|
95382
|
+
*/
|
|
95383
|
+
adminSubscriptionsPlanChangeScheduleDelete(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
95384
|
+
return localVarFp.adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(axios, basePath));
|
|
95385
|
+
},
|
|
95386
|
+
/**
|
|
95387
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
95388
|
+
* @summary Get pending scheduled plan change
|
|
95389
|
+
* @param {*} [options] Override http request option.
|
|
95390
|
+
* @throws {RequiredError}
|
|
95391
|
+
*/
|
|
95392
|
+
adminSubscriptionsPlanChangeScheduleGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
95393
|
+
return localVarFp.adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(axios, basePath));
|
|
95394
|
+
},
|
|
95395
|
+
/**
|
|
95396
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
95397
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
95398
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
95399
|
+
* @param {*} [options] Override http request option.
|
|
95400
|
+
* @throws {RequiredError}
|
|
95401
|
+
*/
|
|
95402
|
+
adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest: SubscriptionRouteSchedulePlanChangeHTTPRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
95403
|
+
return localVarFp.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(axios, basePath));
|
|
95404
|
+
},
|
|
94734
95405
|
/**
|
|
94735
95406
|
* Updates Subscription information by ID.
|
|
94736
95407
|
* @summary Update an existing Subscription
|
|
@@ -94816,6 +95487,18 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
94816
95487
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
94817
95488
|
}
|
|
94818
95489
|
|
|
95490
|
+
/**
|
|
95491
|
+
* Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
|
|
95492
|
+
* @summary Create an immediate plan change order
|
|
95493
|
+
* @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
|
|
95494
|
+
* @param {*} [options] Override http request option.
|
|
95495
|
+
* @throws {RequiredError}
|
|
95496
|
+
* @memberof SubscriptionsApi
|
|
95497
|
+
*/
|
|
95498
|
+
public adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest: SubscriptionRouteImmediatePlanChangeOrderHTTPRequest, options?: RawAxiosRequestConfig) {
|
|
95499
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
95500
|
+
}
|
|
95501
|
+
|
|
94819
95502
|
/**
|
|
94820
95503
|
* Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
|
|
94821
95504
|
* @summary Preview plan change details
|
|
@@ -94828,6 +95511,40 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
94828
95511
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
94829
95512
|
}
|
|
94830
95513
|
|
|
95514
|
+
/**
|
|
95515
|
+
* Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
|
|
95516
|
+
* @summary Cancel a scheduled plan change
|
|
95517
|
+
* @param {*} [options] Override http request option.
|
|
95518
|
+
* @throws {RequiredError}
|
|
95519
|
+
* @memberof SubscriptionsApi
|
|
95520
|
+
*/
|
|
95521
|
+
public adminSubscriptionsPlanChangeScheduleDelete(options?: RawAxiosRequestConfig) {
|
|
95522
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(this.axios, this.basePath));
|
|
95523
|
+
}
|
|
95524
|
+
|
|
95525
|
+
/**
|
|
95526
|
+
* Returns the pending scheduled plan change for the organization, or null if none.
|
|
95527
|
+
* @summary Get pending scheduled plan change
|
|
95528
|
+
* @param {*} [options] Override http request option.
|
|
95529
|
+
* @throws {RequiredError}
|
|
95530
|
+
* @memberof SubscriptionsApi
|
|
95531
|
+
*/
|
|
95532
|
+
public adminSubscriptionsPlanChangeScheduleGet(options?: RawAxiosRequestConfig) {
|
|
95533
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(this.axios, this.basePath));
|
|
95534
|
+
}
|
|
95535
|
+
|
|
95536
|
+
/**
|
|
95537
|
+
* Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
|
|
95538
|
+
* @summary Schedule a plan change at end of billing cycle
|
|
95539
|
+
* @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
|
|
95540
|
+
* @param {*} [options] Override http request option.
|
|
95541
|
+
* @throws {RequiredError}
|
|
95542
|
+
* @memberof SubscriptionsApi
|
|
95543
|
+
*/
|
|
95544
|
+
public adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest: SubscriptionRouteSchedulePlanChangeHTTPRequest, options?: RawAxiosRequestConfig) {
|
|
95545
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
95546
|
+
}
|
|
95547
|
+
|
|
94831
95548
|
/**
|
|
94832
95549
|
* Updates Subscription information by ID.
|
|
94833
95550
|
* @summary Update an existing Subscription
|