@seekora-ai/admin-api 1.2.3 → 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 +19 -4
- package/api.ts +922 -28
- package/dist/api.d.ts +544 -12
- package/dist/api.js +665 -34
- package/dist/esm/api.d.ts +544 -12
- package/dist/esm/api.js +659 -28
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.5.tgz +0 -0
- package/seekora-ai-admin-api-1.2.3.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,87 @@ 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
|
+
}
|
|
40599
|
+
/**
|
|
40600
|
+
*
|
|
40601
|
+
* @export
|
|
40602
|
+
* @interface SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40603
|
+
*/
|
|
40604
|
+
export interface SubscriptionRoutePlanChangePreviewHTTPRequest {
|
|
40605
|
+
/**
|
|
40606
|
+
*
|
|
40607
|
+
* @type {string}
|
|
40608
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40609
|
+
*/
|
|
40610
|
+
'billing_cycle'?: string;
|
|
40611
|
+
/**
|
|
40612
|
+
*
|
|
40613
|
+
* @type {string}
|
|
40614
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40615
|
+
*/
|
|
40616
|
+
'currency'?: string;
|
|
40617
|
+
/**
|
|
40618
|
+
*
|
|
40619
|
+
* @type {number}
|
|
40620
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40621
|
+
*/
|
|
40622
|
+
'new_plan_id'?: number;
|
|
40623
|
+
/**
|
|
40624
|
+
*
|
|
40625
|
+
* @type {string}
|
|
40626
|
+
* @memberof SubscriptionRoutePlanChangePreviewHTTPRequest
|
|
40627
|
+
*/
|
|
40628
|
+
'new_plan_identifier'?: string;
|
|
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
|
+
}
|
|
40436
40655
|
/**
|
|
40437
40656
|
*
|
|
40438
40657
|
* @export
|
|
@@ -42592,6 +42811,45 @@ export const AdminNotificationsApiAxiosParamCreator = function (configuration?:
|
|
|
42592
42811
|
options: localVarRequestOptions,
|
|
42593
42812
|
};
|
|
42594
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
|
+
},
|
|
42595
42853
|
/**
|
|
42596
42854
|
* Sends a notification to specified users (requires admin privileges)
|
|
42597
42855
|
* @summary Send notification (Admin)
|
|
@@ -42860,6 +43118,19 @@ export const AdminNotificationsApiFp = function(configuration?: Configuration) {
|
|
|
42860
43118
|
const localVarOperationServerBasePath = operationServerMap['AdminNotificationsApi.v1AdminNotificationsSendBulkPost']?.[localVarOperationServerIndex]?.url;
|
|
42861
43119
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42862
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
|
+
},
|
|
42863
43134
|
/**
|
|
42864
43135
|
* Sends a notification to specified users (requires admin privileges)
|
|
42865
43136
|
* @summary Send notification (Admin)
|
|
@@ -42993,6 +43264,16 @@ export const AdminNotificationsApiFactory = function (configuration?: Configurat
|
|
|
42993
43264
|
v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch: DataTypesNotificationBatch, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesSendBulkNotificationResponse> {
|
|
42994
43265
|
return localVarFp.v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(axios, basePath));
|
|
42995
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
|
+
},
|
|
42996
43277
|
/**
|
|
42997
43278
|
* Sends a notification to specified users (requires admin privileges)
|
|
42998
43279
|
* @summary Send notification (Admin)
|
|
@@ -43128,6 +43409,18 @@ export class AdminNotificationsApi extends BaseAPI {
|
|
|
43128
43409
|
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(this.axios, this.basePath));
|
|
43129
43410
|
}
|
|
43130
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
|
+
|
|
43131
43424
|
/**
|
|
43132
43425
|
* Sends a notification to specified users (requires admin privileges)
|
|
43133
43426
|
* @summary Send notification (Admin)
|
|
@@ -56154,6 +56447,54 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56154
56447
|
|
|
56155
56448
|
|
|
56156
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
|
+
|
|
56157
56498
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56158
56499
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56159
56500
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -56439,10 +56780,11 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56439
56780
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
56440
56781
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
56441
56782
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
56783
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
56442
56784
|
* @param {*} [options] Override http request option.
|
|
56443
56785
|
* @throws {RequiredError}
|
|
56444
56786
|
*/
|
|
56445
|
-
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> => {
|
|
56446
56788
|
const localVarPath = `/admin/billing/invoices`;
|
|
56447
56789
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56448
56790
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -56498,6 +56840,10 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56498
56840
|
localVarQueryParameter['sort_order'] = sortOrder;
|
|
56499
56841
|
}
|
|
56500
56842
|
|
|
56843
|
+
if (invoiceType !== undefined) {
|
|
56844
|
+
localVarQueryParameter['invoice_type'] = invoiceType;
|
|
56845
|
+
}
|
|
56846
|
+
|
|
56501
56847
|
|
|
56502
56848
|
|
|
56503
56849
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -56700,6 +57046,43 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
56700
57046
|
options: localVarRequestOptions,
|
|
56701
57047
|
};
|
|
56702
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
|
+
},
|
|
56703
57086
|
/**
|
|
56704
57087
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
56705
57088
|
* @summary Pay a pending invoice
|
|
@@ -57752,6 +58135,21 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
57752
58135
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingCreditLedgerGet']?.[localVarOperationServerIndex]?.url;
|
|
57753
58136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57754
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
|
+
},
|
|
57755
58153
|
/**
|
|
57756
58154
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
57757
58155
|
* @summary Get credit purchases
|
|
@@ -57845,11 +58243,12 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
57845
58243
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
57846
58244
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
57847
58245
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
58246
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
57848
58247
|
* @param {*} [options] Override http request option.
|
|
57849
58248
|
* @throws {RequiredError}
|
|
57850
58249
|
*/
|
|
57851
|
-
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>> {
|
|
57852
|
-
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);
|
|
57853
58252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
57854
58253
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']?.[localVarOperationServerIndex]?.url;
|
|
57855
58254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -57920,6 +58319,19 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
57920
58319
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']?.[localVarOperationServerIndex]?.url;
|
|
57921
58320
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
57922
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
|
+
},
|
|
57923
58335
|
/**
|
|
57924
58336
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
57925
58337
|
* @summary Pay a pending invoice
|
|
@@ -58321,6 +58733,18 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
58321
58733
|
adminBillingCreditLedgerGet(orgId?: number, startDate?: string, endDate?: string, page?: number, pageSize?: number, limit?: number, offset?: number, sortBy?: AdminBillingCreditLedgerGetSortByEnum, sortOrder?: AdminBillingCreditLedgerGetSortOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58322
58734
|
return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
58323
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
|
+
},
|
|
58324
58748
|
/**
|
|
58325
58749
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
58326
58750
|
* @summary Get credit purchases
|
|
@@ -58399,11 +58823,12 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
58399
58823
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
58400
58824
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
58401
58825
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
58826
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
58402
58827
|
* @param {*} [options] Override http request option.
|
|
58403
58828
|
* @throws {RequiredError}
|
|
58404
58829
|
*/
|
|
58405
|
-
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> {
|
|
58406
|
-
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));
|
|
58407
58832
|
},
|
|
58408
58833
|
/**
|
|
58409
58834
|
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
@@ -58456,6 +58881,16 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
58456
58881
|
adminBillingInvoicesIdPut(id: string, dataTypesUpdateInvoiceRequest: DataTypesUpdateInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
58457
58882
|
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
58458
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
|
+
},
|
|
58459
58894
|
/**
|
|
58460
58895
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
58461
58896
|
* @summary Pay a pending invoice
|
|
@@ -58813,6 +59248,20 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
58813
59248
|
return BillingDashboardApiFp(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
58814
59249
|
}
|
|
58815
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
|
+
|
|
58816
59265
|
/**
|
|
58817
59266
|
* Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
|
|
58818
59267
|
* @summary Get credit purchases
|
|
@@ -58901,12 +59350,13 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
58901
59350
|
* @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
|
|
58902
59351
|
* @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
|
|
58903
59352
|
* @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
|
|
59353
|
+
* @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
|
|
58904
59354
|
* @param {*} [options] Override http request option.
|
|
58905
59355
|
* @throws {RequiredError}
|
|
58906
59356
|
* @memberof BillingDashboardApi
|
|
58907
59357
|
*/
|
|
58908
|
-
public adminBillingInvoicesGet(orgId?: number, status?: string, startDate?: string, endDate?: string, search?: string, page?: number, pageSize?: number, limit?: number, sortBy?: AdminBillingInvoicesGetSortByEnum, sortOrder?: AdminBillingInvoicesGetSortOrderEnum, options?: RawAxiosRequestConfig) {
|
|
58909
|
-
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));
|
|
58910
59360
|
}
|
|
58911
59361
|
|
|
58912
59362
|
/**
|
|
@@ -58970,6 +59420,18 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
58970
59420
|
return BillingDashboardApiFp(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58971
59421
|
}
|
|
58972
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
|
+
|
|
58973
59435
|
/**
|
|
58974
59436
|
* Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
|
|
58975
59437
|
* @summary Pay a pending invoice
|
|
@@ -59330,6 +59792,14 @@ export const AdminBillingInvoicesGetSortOrderEnum = {
|
|
|
59330
59792
|
Desc2: 'DESC'
|
|
59331
59793
|
} as const;
|
|
59332
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];
|
|
59333
59803
|
/**
|
|
59334
59804
|
* @export
|
|
59335
59805
|
*/
|
|
@@ -59906,10 +60376,10 @@ export const BillingUserPaymentsApiAxiosParamCreator = function (configuration?:
|
|
|
59906
60376
|
* @param {*} [options] Override http request option.
|
|
59907
60377
|
* @throws {RequiredError}
|
|
59908
60378
|
*/
|
|
59909
|
-
|
|
60379
|
+
adminBillingPaymentsRetryPost: async (billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59910
60380
|
// verify required parameter 'billingServiceRetryPaymentRequest' is not null or undefined
|
|
59911
|
-
assertParamExists('
|
|
59912
|
-
const localVarPath = `/
|
|
60381
|
+
assertParamExists('adminBillingPaymentsRetryPost', 'billingServiceRetryPaymentRequest', billingServiceRetryPaymentRequest)
|
|
60382
|
+
const localVarPath = `/admin/billing/payments/retry`;
|
|
59913
60383
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59914
60384
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59915
60385
|
let baseOptions;
|
|
@@ -59945,10 +60415,10 @@ export const BillingUserPaymentsApiAxiosParamCreator = function (configuration?:
|
|
|
59945
60415
|
* @param {*} [options] Override http request option.
|
|
59946
60416
|
* @throws {RequiredError}
|
|
59947
60417
|
*/
|
|
59948
|
-
|
|
60418
|
+
adminBillingSubscriptionsIdPaymentStatusGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59949
60419
|
// verify required parameter 'id' is not null or undefined
|
|
59950
|
-
assertParamExists('
|
|
59951
|
-
const localVarPath = `/
|
|
60420
|
+
assertParamExists('adminBillingSubscriptionsIdPaymentStatusGet', 'id', id)
|
|
60421
|
+
const localVarPath = `/admin/billing/subscriptions/{id}/payment-status`
|
|
59952
60422
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
59953
60423
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59954
60424
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -59992,10 +60462,10 @@ export const BillingUserPaymentsApiFp = function(configuration?: Configuration)
|
|
|
59992
60462
|
* @param {*} [options] Override http request option.
|
|
59993
60463
|
* @throws {RequiredError}
|
|
59994
60464
|
*/
|
|
59995
|
-
async
|
|
59996
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
60465
|
+
async adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingServiceRetryPaymentResponse>> {
|
|
60466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options);
|
|
59997
60467
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
59998
|
-
const localVarOperationServerBasePath = operationServerMap['BillingUserPaymentsApi.
|
|
60468
|
+
const localVarOperationServerBasePath = operationServerMap['BillingUserPaymentsApi.adminBillingPaymentsRetryPost']?.[localVarOperationServerIndex]?.url;
|
|
59999
60469
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
60000
60470
|
},
|
|
60001
60471
|
/**
|
|
@@ -60005,10 +60475,10 @@ export const BillingUserPaymentsApiFp = function(configuration?: Configuration)
|
|
|
60005
60475
|
* @param {*} [options] Override http request option.
|
|
60006
60476
|
* @throws {RequiredError}
|
|
60007
60477
|
*/
|
|
60008
|
-
async
|
|
60009
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
60478
|
+
async adminBillingSubscriptionsIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingServicePaymentStatusResponse>> {
|
|
60479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingSubscriptionsIdPaymentStatusGet(id, options);
|
|
60010
60480
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
60011
|
-
const localVarOperationServerBasePath = operationServerMap['BillingUserPaymentsApi.
|
|
60481
|
+
const localVarOperationServerBasePath = operationServerMap['BillingUserPaymentsApi.adminBillingSubscriptionsIdPaymentStatusGet']?.[localVarOperationServerIndex]?.url;
|
|
60012
60482
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
60013
60483
|
},
|
|
60014
60484
|
}
|
|
@@ -60028,8 +60498,8 @@ export const BillingUserPaymentsApiFactory = function (configuration?: Configura
|
|
|
60028
60498
|
* @param {*} [options] Override http request option.
|
|
60029
60499
|
* @throws {RequiredError}
|
|
60030
60500
|
*/
|
|
60031
|
-
|
|
60032
|
-
return localVarFp.
|
|
60501
|
+
adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingServiceRetryPaymentResponse> {
|
|
60502
|
+
return localVarFp.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(axios, basePath));
|
|
60033
60503
|
},
|
|
60034
60504
|
/**
|
|
60035
60505
|
* Gets the current payment status, dunning state, and retry options for a subscription
|
|
@@ -60038,8 +60508,8 @@ export const BillingUserPaymentsApiFactory = function (configuration?: Configura
|
|
|
60038
60508
|
* @param {*} [options] Override http request option.
|
|
60039
60509
|
* @throws {RequiredError}
|
|
60040
60510
|
*/
|
|
60041
|
-
|
|
60042
|
-
return localVarFp.
|
|
60511
|
+
adminBillingSubscriptionsIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingServicePaymentStatusResponse> {
|
|
60512
|
+
return localVarFp.adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(axios, basePath));
|
|
60043
60513
|
},
|
|
60044
60514
|
};
|
|
60045
60515
|
};
|
|
@@ -60059,8 +60529,8 @@ export class BillingUserPaymentsApi extends BaseAPI {
|
|
|
60059
60529
|
* @throws {RequiredError}
|
|
60060
60530
|
* @memberof BillingUserPaymentsApi
|
|
60061
60531
|
*/
|
|
60062
|
-
public
|
|
60063
|
-
return BillingUserPaymentsApiFp(this.configuration).
|
|
60532
|
+
public adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest: BillingServiceRetryPaymentRequest, options?: RawAxiosRequestConfig) {
|
|
60533
|
+
return BillingUserPaymentsApiFp(this.configuration).adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
60064
60534
|
}
|
|
60065
60535
|
|
|
60066
60536
|
/**
|
|
@@ -60071,8 +60541,8 @@ export class BillingUserPaymentsApi extends BaseAPI {
|
|
|
60071
60541
|
* @throws {RequiredError}
|
|
60072
60542
|
* @memberof BillingUserPaymentsApi
|
|
60073
60543
|
*/
|
|
60074
|
-
public
|
|
60075
|
-
return BillingUserPaymentsApiFp(this.configuration).
|
|
60544
|
+
public adminBillingSubscriptionsIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig) {
|
|
60545
|
+
return BillingUserPaymentsApiFp(this.configuration).adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
60076
60546
|
}
|
|
60077
60547
|
}
|
|
60078
60548
|
|
|
@@ -78655,6 +79125,43 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
78655
79125
|
|
|
78656
79126
|
|
|
78657
79127
|
|
|
79128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79131
|
+
|
|
79132
|
+
return {
|
|
79133
|
+
url: toPathString(localVarUrlObj),
|
|
79134
|
+
options: localVarRequestOptions,
|
|
79135
|
+
};
|
|
79136
|
+
},
|
|
79137
|
+
/**
|
|
79138
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
79139
|
+
* @summary Get order retry payment info
|
|
79140
|
+
* @param {string} id Order UUID
|
|
79141
|
+
* @param {*} [options] Override http request option.
|
|
79142
|
+
* @throws {RequiredError}
|
|
79143
|
+
*/
|
|
79144
|
+
adminPaymentGatewayOrdersIdRetryInfoGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
79145
|
+
// verify required parameter 'id' is not null or undefined
|
|
79146
|
+
assertParamExists('adminPaymentGatewayOrdersIdRetryInfoGet', 'id', id)
|
|
79147
|
+
const localVarPath = `/admin/payment-gateway/orders/{id}/retry-info`
|
|
79148
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
79149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
79151
|
+
let baseOptions;
|
|
79152
|
+
if (configuration) {
|
|
79153
|
+
baseOptions = configuration.baseOptions;
|
|
79154
|
+
}
|
|
79155
|
+
|
|
79156
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
79157
|
+
const localVarHeaderParameter = {} as any;
|
|
79158
|
+
const localVarQueryParameter = {} as any;
|
|
79159
|
+
|
|
79160
|
+
// authentication BearerAuth required
|
|
79161
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
79162
|
+
|
|
79163
|
+
|
|
79164
|
+
|
|
78658
79165
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
78659
79166
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78660
79167
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -79045,6 +79552,19 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
79045
79552
|
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersIdGet']?.[localVarOperationServerIndex]?.url;
|
|
79046
79553
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
79047
79554
|
},
|
|
79555
|
+
/**
|
|
79556
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
79557
|
+
* @summary Get order retry payment info
|
|
79558
|
+
* @param {string} id Order UUID
|
|
79559
|
+
* @param {*} [options] Override http request option.
|
|
79560
|
+
* @throws {RequiredError}
|
|
79561
|
+
*/
|
|
79562
|
+
async adminPaymentGatewayOrdersIdRetryInfoGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
79563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayOrdersIdRetryInfoGet(id, options);
|
|
79564
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
79565
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersIdRetryInfoGet']?.[localVarOperationServerIndex]?.url;
|
|
79566
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
79567
|
+
},
|
|
79048
79568
|
/**
|
|
79049
79569
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
79050
79570
|
* @summary Get payment status for polling (frontend)
|
|
@@ -79220,6 +79740,16 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
79220
79740
|
adminPaymentGatewayOrdersIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOrderDetailsResponse> {
|
|
79221
79741
|
return localVarFp.adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(axios, basePath));
|
|
79222
79742
|
},
|
|
79743
|
+
/**
|
|
79744
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
79745
|
+
* @summary Get order retry payment info
|
|
79746
|
+
* @param {string} id Order UUID
|
|
79747
|
+
* @param {*} [options] Override http request option.
|
|
79748
|
+
* @throws {RequiredError}
|
|
79749
|
+
*/
|
|
79750
|
+
adminPaymentGatewayOrdersIdRetryInfoGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
79751
|
+
return localVarFp.adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(axios, basePath));
|
|
79752
|
+
},
|
|
79223
79753
|
/**
|
|
79224
79754
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
79225
79755
|
* @summary Get payment status for polling (frontend)
|
|
@@ -79381,6 +79911,18 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
79381
79911
|
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
79382
79912
|
}
|
|
79383
79913
|
|
|
79914
|
+
/**
|
|
79915
|
+
* Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
|
|
79916
|
+
* @summary Get order retry payment info
|
|
79917
|
+
* @param {string} id Order UUID
|
|
79918
|
+
* @param {*} [options] Override http request option.
|
|
79919
|
+
* @throws {RequiredError}
|
|
79920
|
+
* @memberof PaymentGatewayApi
|
|
79921
|
+
*/
|
|
79922
|
+
public adminPaymentGatewayOrdersIdRetryInfoGet(id: string, options?: RawAxiosRequestConfig) {
|
|
79923
|
+
return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
79924
|
+
}
|
|
79925
|
+
|
|
79384
79926
|
/**
|
|
79385
79927
|
* Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
|
|
79386
79928
|
* @summary Get payment status for polling (frontend)
|
|
@@ -94241,6 +94783,189 @@ export const SubscriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
94241
94783
|
options: localVarRequestOptions,
|
|
94242
94784
|
};
|
|
94243
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
|
+
},
|
|
94825
|
+
/**
|
|
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.
|
|
94827
|
+
* @summary Preview plan change details
|
|
94828
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
94829
|
+
* @param {*} [options] Override http request option.
|
|
94830
|
+
* @throws {RequiredError}
|
|
94831
|
+
*/
|
|
94832
|
+
adminSubscriptionsPlanChangePreviewPost: async (subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
94833
|
+
// verify required parameter 'subscriptionRoutePlanChangePreviewHTTPRequest' is not null or undefined
|
|
94834
|
+
assertParamExists('adminSubscriptionsPlanChangePreviewPost', 'subscriptionRoutePlanChangePreviewHTTPRequest', subscriptionRoutePlanChangePreviewHTTPRequest)
|
|
94835
|
+
const localVarPath = `/admin/subscriptions/plan-change/preview`;
|
|
94836
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94837
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94838
|
+
let baseOptions;
|
|
94839
|
+
if (configuration) {
|
|
94840
|
+
baseOptions = configuration.baseOptions;
|
|
94841
|
+
}
|
|
94842
|
+
|
|
94843
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
94844
|
+
const localVarHeaderParameter = {} as any;
|
|
94845
|
+
const localVarQueryParameter = {} as any;
|
|
94846
|
+
|
|
94847
|
+
// authentication BearerAuth required
|
|
94848
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
94849
|
+
|
|
94850
|
+
|
|
94851
|
+
|
|
94852
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94853
|
+
|
|
94854
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94856
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
94857
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRoutePlanChangePreviewHTTPRequest, localVarRequestOptions, configuration)
|
|
94858
|
+
|
|
94859
|
+
return {
|
|
94860
|
+
url: toPathString(localVarUrlObj),
|
|
94861
|
+
options: localVarRequestOptions,
|
|
94862
|
+
};
|
|
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
|
+
},
|
|
94244
94969
|
/**
|
|
94245
94970
|
* Updates Subscription information by ID.
|
|
94246
94971
|
* @summary Update an existing Subscription
|
|
@@ -94470,6 +95195,69 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) {
|
|
|
94470
95195
|
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsCancelProcessPost']?.[localVarOperationServerIndex]?.url;
|
|
94471
95196
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
94472
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
|
+
},
|
|
95211
|
+
/**
|
|
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.
|
|
95213
|
+
* @summary Preview plan change details
|
|
95214
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
95215
|
+
* @param {*} [options] Override http request option.
|
|
95216
|
+
* @throws {RequiredError}
|
|
95217
|
+
*/
|
|
95218
|
+
async adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
95219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options);
|
|
95220
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95221
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangePreviewPost']?.[localVarOperationServerIndex]?.url;
|
|
95222
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
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
|
+
},
|
|
94473
95261
|
/**
|
|
94474
95262
|
* Updates Subscription information by ID.
|
|
94475
95263
|
* @summary Update an existing Subscription
|
|
@@ -94566,6 +95354,54 @@ export const SubscriptionsApiFactory = function (configuration?: Configuration,
|
|
|
94566
95354
|
adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest: SubscriptionRouteCancelProcessRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
94567
95355
|
return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
|
|
94568
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
|
+
},
|
|
95367
|
+
/**
|
|
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.
|
|
95369
|
+
* @summary Preview plan change details
|
|
95370
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
95371
|
+
* @param {*} [options] Override http request option.
|
|
95372
|
+
* @throws {RequiredError}
|
|
95373
|
+
*/
|
|
95374
|
+
adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
95375
|
+
return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
94569
95405
|
/**
|
|
94570
95406
|
* Updates Subscription information by ID.
|
|
94571
95407
|
* @summary Update an existing Subscription
|
|
@@ -94651,6 +95487,64 @@ export class SubscriptionsApi extends BaseAPI {
|
|
|
94651
95487
|
return SubscriptionsApiFp(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
94652
95488
|
}
|
|
94653
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
|
+
|
|
95502
|
+
/**
|
|
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.
|
|
95504
|
+
* @summary Preview plan change details
|
|
95505
|
+
* @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
|
|
95506
|
+
* @param {*} [options] Override http request option.
|
|
95507
|
+
* @throws {RequiredError}
|
|
95508
|
+
* @memberof SubscriptionsApi
|
|
95509
|
+
*/
|
|
95510
|
+
public adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest: SubscriptionRoutePlanChangePreviewHTTPRequest, options?: RawAxiosRequestConfig) {
|
|
95511
|
+
return SubscriptionsApiFp(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
|
|
95512
|
+
}
|
|
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
|
+
|
|
94654
95548
|
/**
|
|
94655
95549
|
* Updates Subscription information by ID.
|
|
94656
95550
|
* @summary Update an existing Subscription
|