@seekora-ai/admin-api 1.1.5 → 1.1.6
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 +10 -3
- package/api.ts +662 -27
- package/dist/api.d.ts +431 -28
- package/dist/api.js +416 -0
- package/dist/esm/api.d.ts +431 -28
- package/dist/esm/api.js +416 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.6.tgz +0 -0
- package/seekora-ai-admin-api-1.1.5.tgz +0 -0
package/api.ts
CHANGED
|
@@ -7793,6 +7793,12 @@ export interface DataTypesBillingOrderDetailsResponse {
|
|
|
7793
7793
|
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7794
7794
|
*/
|
|
7795
7795
|
'plan_details'?: DataTypesCreditPlanDetails;
|
|
7796
|
+
/**
|
|
7797
|
+
* Payment receipts for completed payments
|
|
7798
|
+
* @type {Array<DataTypesReceipt>}
|
|
7799
|
+
* @memberof DataTypesBillingOrderDetailsResponse
|
|
7800
|
+
*/
|
|
7801
|
+
'receipts'?: Array<DataTypesReceipt>;
|
|
7796
7802
|
/**
|
|
7797
7803
|
*
|
|
7798
7804
|
* @type {Array<DataTypesOrderTransactionDisplay>}
|
|
@@ -10790,31 +10796,6 @@ export interface DataTypesGatewayListResponse {
|
|
|
10790
10796
|
*/
|
|
10791
10797
|
'gateways'?: Array<DataTypesGatewayInfo>;
|
|
10792
10798
|
}
|
|
10793
|
-
/**
|
|
10794
|
-
*
|
|
10795
|
-
* @export
|
|
10796
|
-
* @interface DataTypesGenericResponseArrayDataTypesInvoice
|
|
10797
|
-
*/
|
|
10798
|
-
export interface DataTypesGenericResponseArrayDataTypesInvoice {
|
|
10799
|
-
/**
|
|
10800
|
-
*
|
|
10801
|
-
* @type {Array<DataTypesInvoice>}
|
|
10802
|
-
* @memberof DataTypesGenericResponseArrayDataTypesInvoice
|
|
10803
|
-
*/
|
|
10804
|
-
'data'?: Array<DataTypesInvoice>;
|
|
10805
|
-
/**
|
|
10806
|
-
*
|
|
10807
|
-
* @type {string}
|
|
10808
|
-
* @memberof DataTypesGenericResponseArrayDataTypesInvoice
|
|
10809
|
-
*/
|
|
10810
|
-
'message'?: string;
|
|
10811
|
-
/**
|
|
10812
|
-
*
|
|
10813
|
-
* @type {number}
|
|
10814
|
-
* @memberof DataTypesGenericResponseArrayDataTypesInvoice
|
|
10815
|
-
*/
|
|
10816
|
-
'status'?: number;
|
|
10817
|
-
}
|
|
10818
10799
|
/**
|
|
10819
10800
|
*
|
|
10820
10801
|
* @export
|
|
@@ -10915,6 +10896,31 @@ export interface DataTypesGenericResponseDataTypesPayInvoiceResponse {
|
|
|
10915
10896
|
*/
|
|
10916
10897
|
'status'?: number;
|
|
10917
10898
|
}
|
|
10899
|
+
/**
|
|
10900
|
+
*
|
|
10901
|
+
* @export
|
|
10902
|
+
* @interface DataTypesGenericResponseDataTypesReceipt
|
|
10903
|
+
*/
|
|
10904
|
+
export interface DataTypesGenericResponseDataTypesReceipt {
|
|
10905
|
+
/**
|
|
10906
|
+
*
|
|
10907
|
+
* @type {DataTypesReceipt}
|
|
10908
|
+
* @memberof DataTypesGenericResponseDataTypesReceipt
|
|
10909
|
+
*/
|
|
10910
|
+
'data'?: DataTypesReceipt;
|
|
10911
|
+
/**
|
|
10912
|
+
*
|
|
10913
|
+
* @type {string}
|
|
10914
|
+
* @memberof DataTypesGenericResponseDataTypesReceipt
|
|
10915
|
+
*/
|
|
10916
|
+
'message'?: string;
|
|
10917
|
+
/**
|
|
10918
|
+
*
|
|
10919
|
+
* @type {number}
|
|
10920
|
+
* @memberof DataTypesGenericResponseDataTypesReceipt
|
|
10921
|
+
*/
|
|
10922
|
+
'status'?: number;
|
|
10923
|
+
}
|
|
10918
10924
|
/**
|
|
10919
10925
|
*
|
|
10920
10926
|
* @export
|
|
@@ -11588,6 +11594,18 @@ export interface DataTypesInvoice {
|
|
|
11588
11594
|
* @memberof DataTypesInvoice
|
|
11589
11595
|
*/
|
|
11590
11596
|
'items'?: Array<DataTypesInvoiceItem>;
|
|
11597
|
+
/**
|
|
11598
|
+
* Complete invoice data as JSON
|
|
11599
|
+
* @type {{ [key: string]: any; }}
|
|
11600
|
+
* @memberof DataTypesInvoice
|
|
11601
|
+
*/
|
|
11602
|
+
'json_data'?: { [key: string]: any; };
|
|
11603
|
+
/**
|
|
11604
|
+
* Additional metadata
|
|
11605
|
+
* @type {{ [key: string]: any; }}
|
|
11606
|
+
* @memberof DataTypesInvoice
|
|
11607
|
+
*/
|
|
11608
|
+
'metadata'?: { [key: string]: any; };
|
|
11591
11609
|
/**
|
|
11592
11610
|
*
|
|
11593
11611
|
* @type {string}
|
|
@@ -11624,6 +11642,18 @@ export interface DataTypesInvoice {
|
|
|
11624
11642
|
* @memberof DataTypesInvoice
|
|
11625
11643
|
*/
|
|
11626
11644
|
'payment_method'?: string;
|
|
11645
|
+
/**
|
|
11646
|
+
* When PDF was generated
|
|
11647
|
+
* @type {string}
|
|
11648
|
+
* @memberof DataTypesInvoice
|
|
11649
|
+
*/
|
|
11650
|
+
'pdf_generated_at'?: string;
|
|
11651
|
+
/**
|
|
11652
|
+
* S3 key for PDF storage
|
|
11653
|
+
* @type {string}
|
|
11654
|
+
* @memberof DataTypesInvoice
|
|
11655
|
+
*/
|
|
11656
|
+
'pdf_s3_key'?: string;
|
|
11627
11657
|
/**
|
|
11628
11658
|
* \"draft\", \"sent\", \"paid\", \"overdue\", \"cancelled\"
|
|
11629
11659
|
* @type {string}
|
|
@@ -12279,6 +12309,12 @@ export interface DataTypesLoginAudit {
|
|
|
12279
12309
|
* @interface DataTypesLoginRequest
|
|
12280
12310
|
*/
|
|
12281
12311
|
export interface DataTypesLoginRequest {
|
|
12312
|
+
/**
|
|
12313
|
+
* \"link\" or \"unlink\"
|
|
12314
|
+
* @type {string}
|
|
12315
|
+
* @memberof DataTypesLoginRequest
|
|
12316
|
+
*/
|
|
12317
|
+
'action'?: string;
|
|
12282
12318
|
/**
|
|
12283
12319
|
*
|
|
12284
12320
|
* @type {string}
|
|
@@ -13535,6 +13571,12 @@ export interface DataTypesOrderDetailsResponse {
|
|
|
13535
13571
|
* @memberof DataTypesOrderDetailsResponse
|
|
13536
13572
|
*/
|
|
13537
13573
|
'order'?: DataTypesOrder;
|
|
13574
|
+
/**
|
|
13575
|
+
* Payment receipts for this order
|
|
13576
|
+
* @type {Array<DataTypesReceipt>}
|
|
13577
|
+
* @memberof DataTypesOrderDetailsResponse
|
|
13578
|
+
*/
|
|
13579
|
+
'receipts'?: Array<DataTypesReceipt>;
|
|
13538
13580
|
/**
|
|
13539
13581
|
*
|
|
13540
13582
|
* @type {Array<DataTypesOrderTransactionDisplay>}
|
|
@@ -15130,6 +15172,157 @@ export interface DataTypesQuerySuggestionsConfig {
|
|
|
15130
15172
|
*/
|
|
15131
15173
|
'use_manual'?: boolean;
|
|
15132
15174
|
}
|
|
15175
|
+
/**
|
|
15176
|
+
*
|
|
15177
|
+
* @export
|
|
15178
|
+
* @interface DataTypesReceipt
|
|
15179
|
+
*/
|
|
15180
|
+
export interface DataTypesReceipt {
|
|
15181
|
+
/**
|
|
15182
|
+
*
|
|
15183
|
+
* @type {number}
|
|
15184
|
+
* @memberof DataTypesReceipt
|
|
15185
|
+
*/
|
|
15186
|
+
'amount'?: number;
|
|
15187
|
+
/**
|
|
15188
|
+
*
|
|
15189
|
+
* @type {string}
|
|
15190
|
+
* @memberof DataTypesReceipt
|
|
15191
|
+
*/
|
|
15192
|
+
'created_at'?: string;
|
|
15193
|
+
/**
|
|
15194
|
+
*
|
|
15195
|
+
* @type {string}
|
|
15196
|
+
* @memberof DataTypesReceipt
|
|
15197
|
+
*/
|
|
15198
|
+
'currency'?: string;
|
|
15199
|
+
/**
|
|
15200
|
+
*
|
|
15201
|
+
* @type {string}
|
|
15202
|
+
* @memberof DataTypesReceipt
|
|
15203
|
+
*/
|
|
15204
|
+
'customer_email'?: string;
|
|
15205
|
+
/**
|
|
15206
|
+
*
|
|
15207
|
+
* @type {string}
|
|
15208
|
+
* @memberof DataTypesReceipt
|
|
15209
|
+
*/
|
|
15210
|
+
'customer_name'?: string;
|
|
15211
|
+
/**
|
|
15212
|
+
*
|
|
15213
|
+
* @type {string}
|
|
15214
|
+
* @memberof DataTypesReceipt
|
|
15215
|
+
*/
|
|
15216
|
+
'deleted_at'?: string;
|
|
15217
|
+
/**
|
|
15218
|
+
*
|
|
15219
|
+
* @type {string}
|
|
15220
|
+
* @memberof DataTypesReceipt
|
|
15221
|
+
*/
|
|
15222
|
+
'description'?: string;
|
|
15223
|
+
/**
|
|
15224
|
+
* Link to invoice if exists (UUID as string)
|
|
15225
|
+
* @type {string}
|
|
15226
|
+
* @memberof DataTypesReceipt
|
|
15227
|
+
*/
|
|
15228
|
+
'invoice_id'?: string;
|
|
15229
|
+
/**
|
|
15230
|
+
*
|
|
15231
|
+
* @type {boolean}
|
|
15232
|
+
* @memberof DataTypesReceipt
|
|
15233
|
+
*/
|
|
15234
|
+
'is_deleted'?: boolean;
|
|
15235
|
+
/**
|
|
15236
|
+
* Complete receipt data as JSON
|
|
15237
|
+
* @type {{ [key: string]: any; }}
|
|
15238
|
+
* @memberof DataTypesReceipt
|
|
15239
|
+
*/
|
|
15240
|
+
'json_data'?: { [key: string]: any; };
|
|
15241
|
+
/**
|
|
15242
|
+
*
|
|
15243
|
+
* @type {{ [key: string]: any; }}
|
|
15244
|
+
* @memberof DataTypesReceipt
|
|
15245
|
+
*/
|
|
15246
|
+
'metadata'?: { [key: string]: any; };
|
|
15247
|
+
/**
|
|
15248
|
+
*
|
|
15249
|
+
* @type {string}
|
|
15250
|
+
* @memberof DataTypesReceipt
|
|
15251
|
+
*/
|
|
15252
|
+
'notes'?: string;
|
|
15253
|
+
/**
|
|
15254
|
+
*
|
|
15255
|
+
* @type {number}
|
|
15256
|
+
* @memberof DataTypesReceipt
|
|
15257
|
+
*/
|
|
15258
|
+
'org_id'?: number;
|
|
15259
|
+
/**
|
|
15260
|
+
*
|
|
15261
|
+
* @type {string}
|
|
15262
|
+
* @memberof DataTypesReceipt
|
|
15263
|
+
*/
|
|
15264
|
+
'payment_date'?: string;
|
|
15265
|
+
/**
|
|
15266
|
+
* razorpay, stripe, etc.
|
|
15267
|
+
* @type {string}
|
|
15268
|
+
* @memberof DataTypesReceipt
|
|
15269
|
+
*/
|
|
15270
|
+
'payment_gateway'?: string;
|
|
15271
|
+
/**
|
|
15272
|
+
*
|
|
15273
|
+
* @type {number}
|
|
15274
|
+
* @memberof DataTypesReceipt
|
|
15275
|
+
*/
|
|
15276
|
+
'payment_id'?: number;
|
|
15277
|
+
/**
|
|
15278
|
+
* card, upi, netbanking, etc.
|
|
15279
|
+
* @type {string}
|
|
15280
|
+
* @memberof DataTypesReceipt
|
|
15281
|
+
*/
|
|
15282
|
+
'payment_method'?: string;
|
|
15283
|
+
/**
|
|
15284
|
+
* When PDF was generated
|
|
15285
|
+
* @type {string}
|
|
15286
|
+
* @memberof DataTypesReceipt
|
|
15287
|
+
*/
|
|
15288
|
+
'pdf_generated_at'?: string;
|
|
15289
|
+
/**
|
|
15290
|
+
* S3 key for PDF storage
|
|
15291
|
+
* @type {string}
|
|
15292
|
+
* @memberof DataTypesReceipt
|
|
15293
|
+
*/
|
|
15294
|
+
'pdf_s3_key'?: string;
|
|
15295
|
+
/**
|
|
15296
|
+
*
|
|
15297
|
+
* @type {number}
|
|
15298
|
+
* @memberof DataTypesReceipt
|
|
15299
|
+
*/
|
|
15300
|
+
'receipt_id'?: number;
|
|
15301
|
+
/**
|
|
15302
|
+
*
|
|
15303
|
+
* @type {string}
|
|
15304
|
+
* @memberof DataTypesReceipt
|
|
15305
|
+
*/
|
|
15306
|
+
'receipt_number'?: string;
|
|
15307
|
+
/**
|
|
15308
|
+
* generated, sent, viewed
|
|
15309
|
+
* @type {string}
|
|
15310
|
+
* @memberof DataTypesReceipt
|
|
15311
|
+
*/
|
|
15312
|
+
'status'?: string;
|
|
15313
|
+
/**
|
|
15314
|
+
* Gateway transaction ID
|
|
15315
|
+
* @type {string}
|
|
15316
|
+
* @memberof DataTypesReceipt
|
|
15317
|
+
*/
|
|
15318
|
+
'transaction_id'?: string;
|
|
15319
|
+
/**
|
|
15320
|
+
*
|
|
15321
|
+
* @type {string}
|
|
15322
|
+
* @memberof DataTypesReceipt
|
|
15323
|
+
*/
|
|
15324
|
+
'updated_at'?: string;
|
|
15325
|
+
}
|
|
15133
15326
|
/**
|
|
15134
15327
|
*
|
|
15135
15328
|
* @export
|
|
@@ -27651,6 +27844,48 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
27651
27844
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27652
27845
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27653
27846
|
|
|
27847
|
+
return {
|
|
27848
|
+
url: toPathString(localVarUrlObj),
|
|
27849
|
+
options: localVarRequestOptions,
|
|
27850
|
+
};
|
|
27851
|
+
},
|
|
27852
|
+
/**
|
|
27853
|
+
* Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
|
|
27854
|
+
* @summary Link or Unlink an SSO provider
|
|
27855
|
+
* @param {string} authorization Bearer <access_token>
|
|
27856
|
+
* @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
|
|
27857
|
+
* @param {*} [options] Override http request option.
|
|
27858
|
+
* @throws {RequiredError}
|
|
27859
|
+
*/
|
|
27860
|
+
authUpdateSsoPost: async (authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27861
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
27862
|
+
assertParamExists('authUpdateSsoPost', 'authorization', authorization)
|
|
27863
|
+
// verify required parameter 'dataTypesLoginRequest' is not null or undefined
|
|
27864
|
+
assertParamExists('authUpdateSsoPost', 'dataTypesLoginRequest', dataTypesLoginRequest)
|
|
27865
|
+
const localVarPath = `/Auth/update-sso`;
|
|
27866
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27867
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27868
|
+
let baseOptions;
|
|
27869
|
+
if (configuration) {
|
|
27870
|
+
baseOptions = configuration.baseOptions;
|
|
27871
|
+
}
|
|
27872
|
+
|
|
27873
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27874
|
+
const localVarHeaderParameter = {} as any;
|
|
27875
|
+
const localVarQueryParameter = {} as any;
|
|
27876
|
+
|
|
27877
|
+
|
|
27878
|
+
|
|
27879
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27880
|
+
|
|
27881
|
+
if (authorization != null) {
|
|
27882
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
27883
|
+
}
|
|
27884
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27886
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27887
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesLoginRequest, localVarRequestOptions, configuration)
|
|
27888
|
+
|
|
27654
27889
|
return {
|
|
27655
27890
|
url: toPathString(localVarUrlObj),
|
|
27656
27891
|
options: localVarRequestOptions,
|
|
@@ -27703,6 +27938,20 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
27703
27938
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.authSessionGet']?.[localVarOperationServerIndex]?.url;
|
|
27704
27939
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27705
27940
|
},
|
|
27941
|
+
/**
|
|
27942
|
+
* Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
|
|
27943
|
+
* @summary Link or Unlink an SSO provider
|
|
27944
|
+
* @param {string} authorization Bearer <access_token>
|
|
27945
|
+
* @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
|
|
27946
|
+
* @param {*} [options] Override http request option.
|
|
27947
|
+
* @throws {RequiredError}
|
|
27948
|
+
*/
|
|
27949
|
+
async authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
27950
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authUpdateSsoPost(authorization, dataTypesLoginRequest, options);
|
|
27951
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27952
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authUpdateSsoPost']?.[localVarOperationServerIndex]?.url;
|
|
27953
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27954
|
+
},
|
|
27706
27955
|
}
|
|
27707
27956
|
};
|
|
27708
27957
|
|
|
@@ -27741,6 +27990,17 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
27741
27990
|
authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper> {
|
|
27742
27991
|
return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
|
|
27743
27992
|
},
|
|
27993
|
+
/**
|
|
27994
|
+
* Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
|
|
27995
|
+
* @summary Link or Unlink an SSO provider
|
|
27996
|
+
* @param {string} authorization Bearer <access_token>
|
|
27997
|
+
* @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
|
|
27998
|
+
* @param {*} [options] Override http request option.
|
|
27999
|
+
* @throws {RequiredError}
|
|
28000
|
+
*/
|
|
28001
|
+
authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
28002
|
+
return localVarFp.authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(axios, basePath));
|
|
28003
|
+
},
|
|
27744
28004
|
};
|
|
27745
28005
|
};
|
|
27746
28006
|
|
|
@@ -27784,6 +28044,19 @@ export class AuthApi extends BaseAPI {
|
|
|
27784
28044
|
public authSessionGet(options?: RawAxiosRequestConfig) {
|
|
27785
28045
|
return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
|
|
27786
28046
|
}
|
|
28047
|
+
|
|
28048
|
+
/**
|
|
28049
|
+
* Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
|
|
28050
|
+
* @summary Link or Unlink an SSO provider
|
|
28051
|
+
* @param {string} authorization Bearer <access_token>
|
|
28052
|
+
* @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
|
|
28053
|
+
* @param {*} [options] Override http request option.
|
|
28054
|
+
* @throws {RequiredError}
|
|
28055
|
+
* @memberof AuthApi
|
|
28056
|
+
*/
|
|
28057
|
+
public authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig) {
|
|
28058
|
+
return AuthApiFp(this.configuration).authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28059
|
+
}
|
|
27787
28060
|
}
|
|
27788
28061
|
|
|
27789
28062
|
|
|
@@ -29109,6 +29382,193 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
|
|
|
29109
29382
|
|
|
29110
29383
|
|
|
29111
29384
|
|
|
29385
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29387
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29388
|
+
|
|
29389
|
+
return {
|
|
29390
|
+
url: toPathString(localVarUrlObj),
|
|
29391
|
+
options: localVarRequestOptions,
|
|
29392
|
+
};
|
|
29393
|
+
},
|
|
29394
|
+
/**
|
|
29395
|
+
* Generates receipts for all completed payments without receipts in the organization
|
|
29396
|
+
* @summary Auto-generate receipts for organization
|
|
29397
|
+
* @param {*} [options] Override http request option.
|
|
29398
|
+
* @throws {RequiredError}
|
|
29399
|
+
*/
|
|
29400
|
+
adminBillingReceiptsAutoGeneratePost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29401
|
+
const localVarPath = `/admin/billing/receipts/auto-generate`;
|
|
29402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29403
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29404
|
+
let baseOptions;
|
|
29405
|
+
if (configuration) {
|
|
29406
|
+
baseOptions = configuration.baseOptions;
|
|
29407
|
+
}
|
|
29408
|
+
|
|
29409
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29410
|
+
const localVarHeaderParameter = {} as any;
|
|
29411
|
+
const localVarQueryParameter = {} as any;
|
|
29412
|
+
|
|
29413
|
+
// authentication BearerAuth required
|
|
29414
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
29415
|
+
|
|
29416
|
+
|
|
29417
|
+
|
|
29418
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29420
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29421
|
+
|
|
29422
|
+
return {
|
|
29423
|
+
url: toPathString(localVarUrlObj),
|
|
29424
|
+
options: localVarRequestOptions,
|
|
29425
|
+
};
|
|
29426
|
+
},
|
|
29427
|
+
/**
|
|
29428
|
+
* Generates a receipt for a completed payment
|
|
29429
|
+
* @summary Generate receipt from payment
|
|
29430
|
+
* @param {number} paymentId Payment ID
|
|
29431
|
+
* @param {*} [options] Override http request option.
|
|
29432
|
+
* @throws {RequiredError}
|
|
29433
|
+
*/
|
|
29434
|
+
adminBillingReceiptsGeneratePaymentIdPost: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29435
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
29436
|
+
assertParamExists('adminBillingReceiptsGeneratePaymentIdPost', 'paymentId', paymentId)
|
|
29437
|
+
const localVarPath = `/admin/billing/receipts/generate/{paymentId}`
|
|
29438
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
29439
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29440
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29441
|
+
let baseOptions;
|
|
29442
|
+
if (configuration) {
|
|
29443
|
+
baseOptions = configuration.baseOptions;
|
|
29444
|
+
}
|
|
29445
|
+
|
|
29446
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29447
|
+
const localVarHeaderParameter = {} as any;
|
|
29448
|
+
const localVarQueryParameter = {} as any;
|
|
29449
|
+
|
|
29450
|
+
// authentication BearerAuth required
|
|
29451
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
29452
|
+
|
|
29453
|
+
|
|
29454
|
+
|
|
29455
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29456
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29457
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29458
|
+
|
|
29459
|
+
return {
|
|
29460
|
+
url: toPathString(localVarUrlObj),
|
|
29461
|
+
options: localVarRequestOptions,
|
|
29462
|
+
};
|
|
29463
|
+
},
|
|
29464
|
+
/**
|
|
29465
|
+
* Retrieves a paginated list of receipts for the organization
|
|
29466
|
+
* @summary List receipts
|
|
29467
|
+
* @param {number} [page] Page number (default: 1)
|
|
29468
|
+
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
29469
|
+
* @param {*} [options] Override http request option.
|
|
29470
|
+
* @throws {RequiredError}
|
|
29471
|
+
*/
|
|
29472
|
+
adminBillingReceiptsGet: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29473
|
+
const localVarPath = `/admin/billing/receipts`;
|
|
29474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29476
|
+
let baseOptions;
|
|
29477
|
+
if (configuration) {
|
|
29478
|
+
baseOptions = configuration.baseOptions;
|
|
29479
|
+
}
|
|
29480
|
+
|
|
29481
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29482
|
+
const localVarHeaderParameter = {} as any;
|
|
29483
|
+
const localVarQueryParameter = {} as any;
|
|
29484
|
+
|
|
29485
|
+
// authentication BearerAuth required
|
|
29486
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
29487
|
+
|
|
29488
|
+
if (page !== undefined) {
|
|
29489
|
+
localVarQueryParameter['page'] = page;
|
|
29490
|
+
}
|
|
29491
|
+
|
|
29492
|
+
if (pageSize !== undefined) {
|
|
29493
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
29494
|
+
}
|
|
29495
|
+
|
|
29496
|
+
|
|
29497
|
+
|
|
29498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29500
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29501
|
+
|
|
29502
|
+
return {
|
|
29503
|
+
url: toPathString(localVarUrlObj),
|
|
29504
|
+
options: localVarRequestOptions,
|
|
29505
|
+
};
|
|
29506
|
+
},
|
|
29507
|
+
/**
|
|
29508
|
+
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
29509
|
+
* @summary Download receipt PDF
|
|
29510
|
+
* @param {number} id Receipt ID
|
|
29511
|
+
* @param {*} [options] Override http request option.
|
|
29512
|
+
* @throws {RequiredError}
|
|
29513
|
+
*/
|
|
29514
|
+
adminBillingReceiptsIdDownloadGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29515
|
+
// verify required parameter 'id' is not null or undefined
|
|
29516
|
+
assertParamExists('adminBillingReceiptsIdDownloadGet', 'id', id)
|
|
29517
|
+
const localVarPath = `/admin/billing/receipts/{id}/download`
|
|
29518
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29519
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29520
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29521
|
+
let baseOptions;
|
|
29522
|
+
if (configuration) {
|
|
29523
|
+
baseOptions = configuration.baseOptions;
|
|
29524
|
+
}
|
|
29525
|
+
|
|
29526
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29527
|
+
const localVarHeaderParameter = {} as any;
|
|
29528
|
+
const localVarQueryParameter = {} as any;
|
|
29529
|
+
|
|
29530
|
+
// authentication BearerAuth required
|
|
29531
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
29532
|
+
|
|
29533
|
+
|
|
29534
|
+
|
|
29535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29537
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29538
|
+
|
|
29539
|
+
return {
|
|
29540
|
+
url: toPathString(localVarUrlObj),
|
|
29541
|
+
options: localVarRequestOptions,
|
|
29542
|
+
};
|
|
29543
|
+
},
|
|
29544
|
+
/**
|
|
29545
|
+
* Retrieves a single receipt by its ID
|
|
29546
|
+
* @summary Get receipt by ID
|
|
29547
|
+
* @param {number} id Receipt ID
|
|
29548
|
+
* @param {*} [options] Override http request option.
|
|
29549
|
+
* @throws {RequiredError}
|
|
29550
|
+
*/
|
|
29551
|
+
adminBillingReceiptsIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29552
|
+
// verify required parameter 'id' is not null or undefined
|
|
29553
|
+
assertParamExists('adminBillingReceiptsIdGet', 'id', id)
|
|
29554
|
+
const localVarPath = `/admin/billing/receipts/{id}`
|
|
29555
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29556
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29557
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29558
|
+
let baseOptions;
|
|
29559
|
+
if (configuration) {
|
|
29560
|
+
baseOptions = configuration.baseOptions;
|
|
29561
|
+
}
|
|
29562
|
+
|
|
29563
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29564
|
+
const localVarHeaderParameter = {} as any;
|
|
29565
|
+
const localVarQueryParameter = {} as any;
|
|
29566
|
+
|
|
29567
|
+
// authentication BearerAuth required
|
|
29568
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
29569
|
+
|
|
29570
|
+
|
|
29571
|
+
|
|
29112
29572
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29113
29573
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29114
29574
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -29401,7 +29861,7 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
29401
29861
|
* @param {*} [options] Override http request option.
|
|
29402
29862
|
* @throws {RequiredError}
|
|
29403
29863
|
*/
|
|
29404
|
-
async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
29864
|
+
async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
29405
29865
|
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options);
|
|
29406
29866
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29407
29867
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGenerateForOrderOrderIdPost']?.[localVarOperationServerIndex]?.url;
|
|
@@ -29608,6 +30068,71 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
|
|
|
29608
30068
|
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
|
|
29609
30069
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29610
30070
|
},
|
|
30071
|
+
/**
|
|
30072
|
+
* Generates receipts for all completed payments without receipts in the organization
|
|
30073
|
+
* @summary Auto-generate receipts for organization
|
|
30074
|
+
* @param {*} [options] Override http request option.
|
|
30075
|
+
* @throws {RequiredError}
|
|
30076
|
+
*/
|
|
30077
|
+
async adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30078
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsAutoGeneratePost(options);
|
|
30079
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30080
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsAutoGeneratePost']?.[localVarOperationServerIndex]?.url;
|
|
30081
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30082
|
+
},
|
|
30083
|
+
/**
|
|
30084
|
+
* Generates a receipt for a completed payment
|
|
30085
|
+
* @summary Generate receipt from payment
|
|
30086
|
+
* @param {number} paymentId Payment ID
|
|
30087
|
+
* @param {*} [options] Override http request option.
|
|
30088
|
+
* @throws {RequiredError}
|
|
30089
|
+
*/
|
|
30090
|
+
async adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>> {
|
|
30091
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options);
|
|
30092
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30093
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGeneratePaymentIdPost']?.[localVarOperationServerIndex]?.url;
|
|
30094
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30095
|
+
},
|
|
30096
|
+
/**
|
|
30097
|
+
* Retrieves a paginated list of receipts for the organization
|
|
30098
|
+
* @summary List receipts
|
|
30099
|
+
* @param {number} [page] Page number (default: 1)
|
|
30100
|
+
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
30101
|
+
* @param {*} [options] Override http request option.
|
|
30102
|
+
* @throws {RequiredError}
|
|
30103
|
+
*/
|
|
30104
|
+
async adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30105
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
|
|
30106
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30107
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']?.[localVarOperationServerIndex]?.url;
|
|
30108
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30109
|
+
},
|
|
30110
|
+
/**
|
|
30111
|
+
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
30112
|
+
* @summary Download receipt PDF
|
|
30113
|
+
* @param {number} id Receipt ID
|
|
30114
|
+
* @param {*} [options] Override http request option.
|
|
30115
|
+
* @throws {RequiredError}
|
|
30116
|
+
*/
|
|
30117
|
+
async adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
30118
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsIdDownloadGet(id, options);
|
|
30119
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30120
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdDownloadGet']?.[localVarOperationServerIndex]?.url;
|
|
30121
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30122
|
+
},
|
|
30123
|
+
/**
|
|
30124
|
+
* Retrieves a single receipt by its ID
|
|
30125
|
+
* @summary Get receipt by ID
|
|
30126
|
+
* @param {number} id Receipt ID
|
|
30127
|
+
* @param {*} [options] Override http request option.
|
|
30128
|
+
* @throws {RequiredError}
|
|
30129
|
+
*/
|
|
30130
|
+
async adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>> {
|
|
30131
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsIdGet(id, options);
|
|
30132
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
30133
|
+
const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
30134
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30135
|
+
},
|
|
29611
30136
|
/**
|
|
29612
30137
|
* Returns saved payment cards from Razorpay for the organization
|
|
29613
30138
|
* @summary Get saved payment cards
|
|
@@ -29779,7 +30304,7 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
29779
30304
|
* @param {*} [options] Override http request option.
|
|
29780
30305
|
* @throws {RequiredError}
|
|
29781
30306
|
*/
|
|
29782
|
-
adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
30307
|
+
adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
29783
30308
|
return localVarFp.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(axios, basePath));
|
|
29784
30309
|
},
|
|
29785
30310
|
/**
|
|
@@ -29941,6 +30466,56 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
|
|
|
29941
30466
|
adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
29942
30467
|
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
29943
30468
|
},
|
|
30469
|
+
/**
|
|
30470
|
+
* Generates receipts for all completed payments without receipts in the organization
|
|
30471
|
+
* @summary Auto-generate receipts for organization
|
|
30472
|
+
* @param {*} [options] Override http request option.
|
|
30473
|
+
* @throws {RequiredError}
|
|
30474
|
+
*/
|
|
30475
|
+
adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30476
|
+
return localVarFp.adminBillingReceiptsAutoGeneratePost(options).then((request) => request(axios, basePath));
|
|
30477
|
+
},
|
|
30478
|
+
/**
|
|
30479
|
+
* Generates a receipt for a completed payment
|
|
30480
|
+
* @summary Generate receipt from payment
|
|
30481
|
+
* @param {number} paymentId Payment ID
|
|
30482
|
+
* @param {*} [options] Override http request option.
|
|
30483
|
+
* @throws {RequiredError}
|
|
30484
|
+
*/
|
|
30485
|
+
adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt> {
|
|
30486
|
+
return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
30487
|
+
},
|
|
30488
|
+
/**
|
|
30489
|
+
* Retrieves a paginated list of receipts for the organization
|
|
30490
|
+
* @summary List receipts
|
|
30491
|
+
* @param {number} [page] Page number (default: 1)
|
|
30492
|
+
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
30493
|
+
* @param {*} [options] Override http request option.
|
|
30494
|
+
* @throws {RequiredError}
|
|
30495
|
+
*/
|
|
30496
|
+
adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30497
|
+
return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
|
|
30498
|
+
},
|
|
30499
|
+
/**
|
|
30500
|
+
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
30501
|
+
* @summary Download receipt PDF
|
|
30502
|
+
* @param {number} id Receipt ID
|
|
30503
|
+
* @param {*} [options] Override http request option.
|
|
30504
|
+
* @throws {RequiredError}
|
|
30505
|
+
*/
|
|
30506
|
+
adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
30507
|
+
return localVarFp.adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(axios, basePath));
|
|
30508
|
+
},
|
|
30509
|
+
/**
|
|
30510
|
+
* Retrieves a single receipt by its ID
|
|
30511
|
+
* @summary Get receipt by ID
|
|
30512
|
+
* @param {number} id Receipt ID
|
|
30513
|
+
* @param {*} [options] Override http request option.
|
|
30514
|
+
* @throws {RequiredError}
|
|
30515
|
+
*/
|
|
30516
|
+
adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt> {
|
|
30517
|
+
return localVarFp.adminBillingReceiptsIdGet(id, options).then((request) => request(axios, basePath));
|
|
30518
|
+
},
|
|
29944
30519
|
/**
|
|
29945
30520
|
* Returns saved payment cards from Razorpay for the organization
|
|
29946
30521
|
* @summary Get saved payment cards
|
|
@@ -30318,6 +30893,66 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
30318
30893
|
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
30319
30894
|
}
|
|
30320
30895
|
|
|
30896
|
+
/**
|
|
30897
|
+
* Generates receipts for all completed payments without receipts in the organization
|
|
30898
|
+
* @summary Auto-generate receipts for organization
|
|
30899
|
+
* @param {*} [options] Override http request option.
|
|
30900
|
+
* @throws {RequiredError}
|
|
30901
|
+
* @memberof BillingDashboardApi
|
|
30902
|
+
*/
|
|
30903
|
+
public adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig) {
|
|
30904
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
|
|
30905
|
+
}
|
|
30906
|
+
|
|
30907
|
+
/**
|
|
30908
|
+
* Generates a receipt for a completed payment
|
|
30909
|
+
* @summary Generate receipt from payment
|
|
30910
|
+
* @param {number} paymentId Payment ID
|
|
30911
|
+
* @param {*} [options] Override http request option.
|
|
30912
|
+
* @throws {RequiredError}
|
|
30913
|
+
* @memberof BillingDashboardApi
|
|
30914
|
+
*/
|
|
30915
|
+
public adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig) {
|
|
30916
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
30917
|
+
}
|
|
30918
|
+
|
|
30919
|
+
/**
|
|
30920
|
+
* Retrieves a paginated list of receipts for the organization
|
|
30921
|
+
* @summary List receipts
|
|
30922
|
+
* @param {number} [page] Page number (default: 1)
|
|
30923
|
+
* @param {number} [pageSize] Page size (default: 20, max: 100)
|
|
30924
|
+
* @param {*} [options] Override http request option.
|
|
30925
|
+
* @throws {RequiredError}
|
|
30926
|
+
* @memberof BillingDashboardApi
|
|
30927
|
+
*/
|
|
30928
|
+
public adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
|
|
30929
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
30930
|
+
}
|
|
30931
|
+
|
|
30932
|
+
/**
|
|
30933
|
+
* Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
|
|
30934
|
+
* @summary Download receipt PDF
|
|
30935
|
+
* @param {number} id Receipt ID
|
|
30936
|
+
* @param {*} [options] Override http request option.
|
|
30937
|
+
* @throws {RequiredError}
|
|
30938
|
+
* @memberof BillingDashboardApi
|
|
30939
|
+
*/
|
|
30940
|
+
public adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig) {
|
|
30941
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
30942
|
+
}
|
|
30943
|
+
|
|
30944
|
+
/**
|
|
30945
|
+
* Retrieves a single receipt by its ID
|
|
30946
|
+
* @summary Get receipt by ID
|
|
30947
|
+
* @param {number} id Receipt ID
|
|
30948
|
+
* @param {*} [options] Override http request option.
|
|
30949
|
+
* @throws {RequiredError}
|
|
30950
|
+
* @memberof BillingDashboardApi
|
|
30951
|
+
*/
|
|
30952
|
+
public adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig) {
|
|
30953
|
+
return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
30954
|
+
}
|
|
30955
|
+
|
|
30321
30956
|
/**
|
|
30322
30957
|
* Returns saved payment cards from Razorpay for the organization
|
|
30323
30958
|
* @summary Get saved payment cards
|