@seekora-ai/admin-api 1.1.4 → 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/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}
@@ -12182,12 +12212,109 @@ export interface DataTypesLimitsListResponse {
12182
12212
  */
12183
12213
  'status'?: number;
12184
12214
  }
12215
+ /**
12216
+ *
12217
+ * @export
12218
+ * @interface DataTypesLoginAudit
12219
+ */
12220
+ export interface DataTypesLoginAudit {
12221
+ /**
12222
+ *
12223
+ * @type {string}
12224
+ * @memberof DataTypesLoginAudit
12225
+ */
12226
+ 'browser'?: string;
12227
+ /**
12228
+ *
12229
+ * @type {number}
12230
+ * @memberof DataTypesLoginAudit
12231
+ */
12232
+ 'createdBy'?: number;
12233
+ /**
12234
+ *
12235
+ * @type {string}
12236
+ * @memberof DataTypesLoginAudit
12237
+ */
12238
+ 'deviceName'?: string;
12239
+ /**
12240
+ *
12241
+ * @type {string}
12242
+ * @memberof DataTypesLoginAudit
12243
+ */
12244
+ 'failureReason'?: string;
12245
+ /**
12246
+ *
12247
+ * @type {string}
12248
+ * @memberof DataTypesLoginAudit
12249
+ */
12250
+ 'ipaddress'?: string;
12251
+ /**
12252
+ *
12253
+ * @type {string}
12254
+ * @memberof DataTypesLoginAudit
12255
+ */
12256
+ 'location'?: string;
12257
+ /**
12258
+ *
12259
+ * @type {number}
12260
+ * @memberof DataTypesLoginAudit
12261
+ */
12262
+ 'logID'?: number;
12263
+ /**
12264
+ *
12265
+ * @type {string}
12266
+ * @memberof DataTypesLoginAudit
12267
+ */
12268
+ 'loginTime'?: string;
12269
+ /**
12270
+ *
12271
+ * @type {string}
12272
+ * @memberof DataTypesLoginAudit
12273
+ */
12274
+ 'loginType'?: string;
12275
+ /**
12276
+ *
12277
+ * @type {string}
12278
+ * @memberof DataTypesLoginAudit
12279
+ */
12280
+ 'os'?: string;
12281
+ /**
12282
+ *
12283
+ * @type {string}
12284
+ * @memberof DataTypesLoginAudit
12285
+ */
12286
+ 'sessionID'?: string;
12287
+ /**
12288
+ *
12289
+ * @type {string}
12290
+ * @memberof DataTypesLoginAudit
12291
+ */
12292
+ 'status'?: string;
12293
+ /**
12294
+ *
12295
+ * @type {string}
12296
+ * @memberof DataTypesLoginAudit
12297
+ */
12298
+ 'userAgent'?: string;
12299
+ /**
12300
+ *
12301
+ * @type {number}
12302
+ * @memberof DataTypesLoginAudit
12303
+ */
12304
+ 'userID'?: number;
12305
+ }
12185
12306
  /**
12186
12307
  *
12187
12308
  * @export
12188
12309
  * @interface DataTypesLoginRequest
12189
12310
  */
12190
12311
  export interface DataTypesLoginRequest {
12312
+ /**
12313
+ * \"link\" or \"unlink\"
12314
+ * @type {string}
12315
+ * @memberof DataTypesLoginRequest
12316
+ */
12317
+ 'action'?: string;
12191
12318
  /**
12192
12319
  *
12193
12320
  * @type {string}
@@ -13444,6 +13571,12 @@ export interface DataTypesOrderDetailsResponse {
13444
13571
  * @memberof DataTypesOrderDetailsResponse
13445
13572
  */
13446
13573
  'order'?: DataTypesOrder;
13574
+ /**
13575
+ * Payment receipts for this order
13576
+ * @type {Array<DataTypesReceipt>}
13577
+ * @memberof DataTypesOrderDetailsResponse
13578
+ */
13579
+ 'receipts'?: Array<DataTypesReceipt>;
13447
13580
  /**
13448
13581
  *
13449
13582
  * @type {Array<DataTypesOrderTransactionDisplay>}
@@ -14770,6 +14903,12 @@ export interface DataTypesProfileResponse {
14770
14903
  * @memberof DataTypesProfileResponse
14771
14904
  */
14772
14905
  'has_password'?: boolean;
14906
+ /**
14907
+ *
14908
+ * @type {Array<DataTypesLoginAudit>}
14909
+ * @memberof DataTypesProfileResponse
14910
+ */
14911
+ 'last_logins'?: Array<DataTypesLoginAudit>;
14773
14912
  /**
14774
14913
  *
14775
14914
  * @type {string}
@@ -15033,6 +15172,157 @@ export interface DataTypesQuerySuggestionsConfig {
15033
15172
  */
15034
15173
  'use_manual'?: boolean;
15035
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
+ }
15036
15326
  /**
15037
15327
  *
15038
15328
  * @export
@@ -20709,7 +20999,7 @@ export const AccountSettingsApiAxiosParamCreator = function (configuration?: Con
20709
20999
  };
20710
21000
  },
20711
21001
  /**
20712
- * Retrieves the profile of the currently logged-in user
21002
+ * Retrieves the full profile of the currently logged-in user including last login history
20713
21003
  * @summary Retrieve user profile
20714
21004
  * @param {*} [options] Override http request option.
20715
21005
  * @throws {RequiredError}
@@ -20893,7 +21183,7 @@ export const AccountSettingsApiFp = function(configuration?: Configuration) {
20893
21183
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20894
21184
  },
20895
21185
  /**
20896
- * Retrieves the profile of the currently logged-in user
21186
+ * Retrieves the full profile of the currently logged-in user including last login history
20897
21187
  * @summary Retrieve user profile
20898
21188
  * @param {*} [options] Override http request option.
20899
21189
  * @throws {RequiredError}
@@ -20989,7 +21279,7 @@ export const AccountSettingsApiFactory = function (configuration?: Configuration
20989
21279
  return localVarFp.accountSettingsPasswordPut(dataTypesUpdatePasswordRequest, options).then((request) => request(axios, basePath));
20990
21280
  },
20991
21281
  /**
20992
- * Retrieves the profile of the currently logged-in user
21282
+ * Retrieves the full profile of the currently logged-in user including last login history
20993
21283
  * @summary Retrieve user profile
20994
21284
  * @param {*} [options] Override http request option.
20995
21285
  * @throws {RequiredError}
@@ -21086,7 +21376,7 @@ export class AccountSettingsApi extends BaseAPI {
21086
21376
  }
21087
21377
 
21088
21378
  /**
21089
- * Retrieves the profile of the currently logged-in user
21379
+ * Retrieves the full profile of the currently logged-in user including last login history
21090
21380
  * @summary Retrieve user profile
21091
21381
  * @param {*} [options] Override http request option.
21092
21382
  * @throws {RequiredError}
@@ -27559,26 +27849,68 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
27559
27849
  options: localVarRequestOptions,
27560
27850
  };
27561
27851
  },
27562
- }
27563
- };
27564
-
27565
- /**
27566
- * AuthApi - functional programming interface
27567
- * @export
27568
- */
27569
- export const AuthApiFp = function(configuration?: Configuration) {
27570
- const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
27571
- return {
27572
27852
  /**
27573
- * Authenticates a user with username and password
27574
- * @summary Login a user
27575
- * @param {DataTypesLoginRequest} dataTypesLoginRequest Login credentials
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 &lt;access_token&gt;
27856
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
27576
27857
  * @param {*} [options] Override http request option.
27577
27858
  * @throws {RequiredError}
27578
27859
  */
27579
- async authLoginPost(dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>> {
27580
- const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(dataTypesLoginRequest, options);
27581
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
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
+
27889
+ return {
27890
+ url: toPathString(localVarUrlObj),
27891
+ options: localVarRequestOptions,
27892
+ };
27893
+ },
27894
+ }
27895
+ };
27896
+
27897
+ /**
27898
+ * AuthApi - functional programming interface
27899
+ * @export
27900
+ */
27901
+ export const AuthApiFp = function(configuration?: Configuration) {
27902
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
27903
+ return {
27904
+ /**
27905
+ * Authenticates a user with username and password
27906
+ * @summary Login a user
27907
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest Login credentials
27908
+ * @param {*} [options] Override http request option.
27909
+ * @throws {RequiredError}
27910
+ */
27911
+ async authLoginPost(dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>> {
27912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(dataTypesLoginRequest, options);
27913
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27582
27914
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authLoginPost']?.[localVarOperationServerIndex]?.url;
27583
27915
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27584
27916
  },
@@ -27606,6 +27938,20 @@ export const AuthApiFp = function(configuration?: Configuration) {
27606
27938
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authSessionGet']?.[localVarOperationServerIndex]?.url;
27607
27939
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27608
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 &lt;access_token&gt;
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
+ },
27609
27955
  }
27610
27956
  };
27611
27957
 
@@ -27644,6 +27990,17 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
27644
27990
  authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper> {
27645
27991
  return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
27646
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 &lt;access_token&gt;
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
+ },
27647
28004
  };
27648
28005
  };
27649
28006
 
@@ -27687,6 +28044,19 @@ export class AuthApi extends BaseAPI {
27687
28044
  public authSessionGet(options?: RawAxiosRequestConfig) {
27688
28045
  return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
27689
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 &lt;access_token&gt;
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
+ }
27690
28060
  }
27691
28061
 
27692
28062
 
@@ -29012,6 +29382,193 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29012
29382
 
29013
29383
 
29014
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
+
29015
29572
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29016
29573
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29017
29574
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -29304,7 +29861,7 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29304
29861
  * @param {*} [options] Override http request option.
29305
29862
  * @throws {RequiredError}
29306
29863
  */
29307
- async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>> {
29864
+ async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
29308
29865
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options);
29309
29866
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29310
29867
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGenerateForOrderOrderIdPost']?.[localVarOperationServerIndex]?.url;
@@ -29511,6 +30068,71 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29511
30068
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
29512
30069
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29513
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
+ },
29514
30136
  /**
29515
30137
  * Returns saved payment cards from Razorpay for the organization
29516
30138
  * @summary Get saved payment cards
@@ -29682,7 +30304,7 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29682
30304
  * @param {*} [options] Override http request option.
29683
30305
  * @throws {RequiredError}
29684
30306
  */
29685
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice> {
30307
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
29686
30308
  return localVarFp.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(axios, basePath));
29687
30309
  },
29688
30310
  /**
@@ -29844,6 +30466,56 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29844
30466
  adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
29845
30467
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
29846
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
+ },
29847
30519
  /**
29848
30520
  * Returns saved payment cards from Razorpay for the organization
29849
30521
  * @summary Get saved payment cards
@@ -30221,6 +30893,66 @@ export class BillingDashboardApi extends BaseAPI {
30221
30893
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
30222
30894
  }
30223
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
+
30224
30956
  /**
30225
30957
  * Returns saved payment cards from Razorpay for the organization
30226
30958
  * @summary Get saved payment cards