@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/dist/esm/api.d.ts CHANGED
@@ -7796,6 +7796,12 @@ export interface DataTypesBillingOrderDetailsResponse {
7796
7796
  * @memberof DataTypesBillingOrderDetailsResponse
7797
7797
  */
7798
7798
  'plan_details'?: DataTypesCreditPlanDetails;
7799
+ /**
7800
+ * Payment receipts for completed payments
7801
+ * @type {Array<DataTypesReceipt>}
7802
+ * @memberof DataTypesBillingOrderDetailsResponse
7803
+ */
7804
+ 'receipts'?: Array<DataTypesReceipt>;
7799
7805
  /**
7800
7806
  *
7801
7807
  * @type {Array<DataTypesOrderTransactionDisplay>}
@@ -10802,31 +10808,6 @@ export interface DataTypesGatewayListResponse {
10802
10808
  */
10803
10809
  'gateways'?: Array<DataTypesGatewayInfo>;
10804
10810
  }
10805
- /**
10806
- *
10807
- * @export
10808
- * @interface DataTypesGenericResponseArrayDataTypesInvoice
10809
- */
10810
- export interface DataTypesGenericResponseArrayDataTypesInvoice {
10811
- /**
10812
- *
10813
- * @type {Array<DataTypesInvoice>}
10814
- * @memberof DataTypesGenericResponseArrayDataTypesInvoice
10815
- */
10816
- 'data'?: Array<DataTypesInvoice>;
10817
- /**
10818
- *
10819
- * @type {string}
10820
- * @memberof DataTypesGenericResponseArrayDataTypesInvoice
10821
- */
10822
- 'message'?: string;
10823
- /**
10824
- *
10825
- * @type {number}
10826
- * @memberof DataTypesGenericResponseArrayDataTypesInvoice
10827
- */
10828
- 'status'?: number;
10829
- }
10830
10811
  /**
10831
10812
  *
10832
10813
  * @export
@@ -10927,6 +10908,31 @@ export interface DataTypesGenericResponseDataTypesPayInvoiceResponse {
10927
10908
  */
10928
10909
  'status'?: number;
10929
10910
  }
10911
+ /**
10912
+ *
10913
+ * @export
10914
+ * @interface DataTypesGenericResponseDataTypesReceipt
10915
+ */
10916
+ export interface DataTypesGenericResponseDataTypesReceipt {
10917
+ /**
10918
+ *
10919
+ * @type {DataTypesReceipt}
10920
+ * @memberof DataTypesGenericResponseDataTypesReceipt
10921
+ */
10922
+ 'data'?: DataTypesReceipt;
10923
+ /**
10924
+ *
10925
+ * @type {string}
10926
+ * @memberof DataTypesGenericResponseDataTypesReceipt
10927
+ */
10928
+ 'message'?: string;
10929
+ /**
10930
+ *
10931
+ * @type {number}
10932
+ * @memberof DataTypesGenericResponseDataTypesReceipt
10933
+ */
10934
+ 'status'?: number;
10935
+ }
10930
10936
  /**
10931
10937
  *
10932
10938
  * @export
@@ -11600,6 +11606,22 @@ export interface DataTypesInvoice {
11600
11606
  * @memberof DataTypesInvoice
11601
11607
  */
11602
11608
  'items'?: Array<DataTypesInvoiceItem>;
11609
+ /**
11610
+ * Complete invoice data as JSON
11611
+ * @type {{ [key: string]: any; }}
11612
+ * @memberof DataTypesInvoice
11613
+ */
11614
+ 'json_data'?: {
11615
+ [key: string]: any;
11616
+ };
11617
+ /**
11618
+ * Additional metadata
11619
+ * @type {{ [key: string]: any; }}
11620
+ * @memberof DataTypesInvoice
11621
+ */
11622
+ 'metadata'?: {
11623
+ [key: string]: any;
11624
+ };
11603
11625
  /**
11604
11626
  *
11605
11627
  * @type {string}
@@ -11636,6 +11658,18 @@ export interface DataTypesInvoice {
11636
11658
  * @memberof DataTypesInvoice
11637
11659
  */
11638
11660
  'payment_method'?: string;
11661
+ /**
11662
+ * When PDF was generated
11663
+ * @type {string}
11664
+ * @memberof DataTypesInvoice
11665
+ */
11666
+ 'pdf_generated_at'?: string;
11667
+ /**
11668
+ * S3 key for PDF storage
11669
+ * @type {string}
11670
+ * @memberof DataTypesInvoice
11671
+ */
11672
+ 'pdf_s3_key'?: string;
11639
11673
  /**
11640
11674
  * \"draft\", \"sent\", \"paid\", \"overdue\", \"cancelled\"
11641
11675
  * @type {string}
@@ -12196,12 +12230,109 @@ export interface DataTypesLimitsListResponse {
12196
12230
  */
12197
12231
  'status'?: number;
12198
12232
  }
12233
+ /**
12234
+ *
12235
+ * @export
12236
+ * @interface DataTypesLoginAudit
12237
+ */
12238
+ export interface DataTypesLoginAudit {
12239
+ /**
12240
+ *
12241
+ * @type {string}
12242
+ * @memberof DataTypesLoginAudit
12243
+ */
12244
+ 'browser'?: string;
12245
+ /**
12246
+ *
12247
+ * @type {number}
12248
+ * @memberof DataTypesLoginAudit
12249
+ */
12250
+ 'createdBy'?: number;
12251
+ /**
12252
+ *
12253
+ * @type {string}
12254
+ * @memberof DataTypesLoginAudit
12255
+ */
12256
+ 'deviceName'?: string;
12257
+ /**
12258
+ *
12259
+ * @type {string}
12260
+ * @memberof DataTypesLoginAudit
12261
+ */
12262
+ 'failureReason'?: string;
12263
+ /**
12264
+ *
12265
+ * @type {string}
12266
+ * @memberof DataTypesLoginAudit
12267
+ */
12268
+ 'ipaddress'?: string;
12269
+ /**
12270
+ *
12271
+ * @type {string}
12272
+ * @memberof DataTypesLoginAudit
12273
+ */
12274
+ 'location'?: string;
12275
+ /**
12276
+ *
12277
+ * @type {number}
12278
+ * @memberof DataTypesLoginAudit
12279
+ */
12280
+ 'logID'?: number;
12281
+ /**
12282
+ *
12283
+ * @type {string}
12284
+ * @memberof DataTypesLoginAudit
12285
+ */
12286
+ 'loginTime'?: string;
12287
+ /**
12288
+ *
12289
+ * @type {string}
12290
+ * @memberof DataTypesLoginAudit
12291
+ */
12292
+ 'loginType'?: string;
12293
+ /**
12294
+ *
12295
+ * @type {string}
12296
+ * @memberof DataTypesLoginAudit
12297
+ */
12298
+ 'os'?: string;
12299
+ /**
12300
+ *
12301
+ * @type {string}
12302
+ * @memberof DataTypesLoginAudit
12303
+ */
12304
+ 'sessionID'?: string;
12305
+ /**
12306
+ *
12307
+ * @type {string}
12308
+ * @memberof DataTypesLoginAudit
12309
+ */
12310
+ 'status'?: string;
12311
+ /**
12312
+ *
12313
+ * @type {string}
12314
+ * @memberof DataTypesLoginAudit
12315
+ */
12316
+ 'userAgent'?: string;
12317
+ /**
12318
+ *
12319
+ * @type {number}
12320
+ * @memberof DataTypesLoginAudit
12321
+ */
12322
+ 'userID'?: number;
12323
+ }
12199
12324
  /**
12200
12325
  *
12201
12326
  * @export
12202
12327
  * @interface DataTypesLoginRequest
12203
12328
  */
12204
12329
  export interface DataTypesLoginRequest {
12330
+ /**
12331
+ * \"link\" or \"unlink\"
12332
+ * @type {string}
12333
+ * @memberof DataTypesLoginRequest
12334
+ */
12335
+ 'action'?: string;
12205
12336
  /**
12206
12337
  *
12207
12338
  * @type {string}
@@ -13470,6 +13601,12 @@ export interface DataTypesOrderDetailsResponse {
13470
13601
  * @memberof DataTypesOrderDetailsResponse
13471
13602
  */
13472
13603
  'order'?: DataTypesOrder;
13604
+ /**
13605
+ * Payment receipts for this order
13606
+ * @type {Array<DataTypesReceipt>}
13607
+ * @memberof DataTypesOrderDetailsResponse
13608
+ */
13609
+ 'receipts'?: Array<DataTypesReceipt>;
13473
13610
  /**
13474
13611
  *
13475
13612
  * @type {Array<DataTypesOrderTransactionDisplay>}
@@ -14809,6 +14946,12 @@ export interface DataTypesProfileResponse {
14809
14946
  * @memberof DataTypesProfileResponse
14810
14947
  */
14811
14948
  'has_password'?: boolean;
14949
+ /**
14950
+ *
14951
+ * @type {Array<DataTypesLoginAudit>}
14952
+ * @memberof DataTypesProfileResponse
14953
+ */
14954
+ 'last_logins'?: Array<DataTypesLoginAudit>;
14812
14955
  /**
14813
14956
  *
14814
14957
  * @type {string}
@@ -15072,6 +15215,161 @@ export interface DataTypesQuerySuggestionsConfig {
15072
15215
  */
15073
15216
  'use_manual'?: boolean;
15074
15217
  }
15218
+ /**
15219
+ *
15220
+ * @export
15221
+ * @interface DataTypesReceipt
15222
+ */
15223
+ export interface DataTypesReceipt {
15224
+ /**
15225
+ *
15226
+ * @type {number}
15227
+ * @memberof DataTypesReceipt
15228
+ */
15229
+ 'amount'?: number;
15230
+ /**
15231
+ *
15232
+ * @type {string}
15233
+ * @memberof DataTypesReceipt
15234
+ */
15235
+ 'created_at'?: string;
15236
+ /**
15237
+ *
15238
+ * @type {string}
15239
+ * @memberof DataTypesReceipt
15240
+ */
15241
+ 'currency'?: string;
15242
+ /**
15243
+ *
15244
+ * @type {string}
15245
+ * @memberof DataTypesReceipt
15246
+ */
15247
+ 'customer_email'?: string;
15248
+ /**
15249
+ *
15250
+ * @type {string}
15251
+ * @memberof DataTypesReceipt
15252
+ */
15253
+ 'customer_name'?: string;
15254
+ /**
15255
+ *
15256
+ * @type {string}
15257
+ * @memberof DataTypesReceipt
15258
+ */
15259
+ 'deleted_at'?: string;
15260
+ /**
15261
+ *
15262
+ * @type {string}
15263
+ * @memberof DataTypesReceipt
15264
+ */
15265
+ 'description'?: string;
15266
+ /**
15267
+ * Link to invoice if exists (UUID as string)
15268
+ * @type {string}
15269
+ * @memberof DataTypesReceipt
15270
+ */
15271
+ 'invoice_id'?: string;
15272
+ /**
15273
+ *
15274
+ * @type {boolean}
15275
+ * @memberof DataTypesReceipt
15276
+ */
15277
+ 'is_deleted'?: boolean;
15278
+ /**
15279
+ * Complete receipt data as JSON
15280
+ * @type {{ [key: string]: any; }}
15281
+ * @memberof DataTypesReceipt
15282
+ */
15283
+ 'json_data'?: {
15284
+ [key: string]: any;
15285
+ };
15286
+ /**
15287
+ *
15288
+ * @type {{ [key: string]: any; }}
15289
+ * @memberof DataTypesReceipt
15290
+ */
15291
+ 'metadata'?: {
15292
+ [key: string]: any;
15293
+ };
15294
+ /**
15295
+ *
15296
+ * @type {string}
15297
+ * @memberof DataTypesReceipt
15298
+ */
15299
+ 'notes'?: string;
15300
+ /**
15301
+ *
15302
+ * @type {number}
15303
+ * @memberof DataTypesReceipt
15304
+ */
15305
+ 'org_id'?: number;
15306
+ /**
15307
+ *
15308
+ * @type {string}
15309
+ * @memberof DataTypesReceipt
15310
+ */
15311
+ 'payment_date'?: string;
15312
+ /**
15313
+ * razorpay, stripe, etc.
15314
+ * @type {string}
15315
+ * @memberof DataTypesReceipt
15316
+ */
15317
+ 'payment_gateway'?: string;
15318
+ /**
15319
+ *
15320
+ * @type {number}
15321
+ * @memberof DataTypesReceipt
15322
+ */
15323
+ 'payment_id'?: number;
15324
+ /**
15325
+ * card, upi, netbanking, etc.
15326
+ * @type {string}
15327
+ * @memberof DataTypesReceipt
15328
+ */
15329
+ 'payment_method'?: string;
15330
+ /**
15331
+ * When PDF was generated
15332
+ * @type {string}
15333
+ * @memberof DataTypesReceipt
15334
+ */
15335
+ 'pdf_generated_at'?: string;
15336
+ /**
15337
+ * S3 key for PDF storage
15338
+ * @type {string}
15339
+ * @memberof DataTypesReceipt
15340
+ */
15341
+ 'pdf_s3_key'?: string;
15342
+ /**
15343
+ *
15344
+ * @type {number}
15345
+ * @memberof DataTypesReceipt
15346
+ */
15347
+ 'receipt_id'?: number;
15348
+ /**
15349
+ *
15350
+ * @type {string}
15351
+ * @memberof DataTypesReceipt
15352
+ */
15353
+ 'receipt_number'?: string;
15354
+ /**
15355
+ * generated, sent, viewed
15356
+ * @type {string}
15357
+ * @memberof DataTypesReceipt
15358
+ */
15359
+ 'status'?: string;
15360
+ /**
15361
+ * Gateway transaction ID
15362
+ * @type {string}
15363
+ * @memberof DataTypesReceipt
15364
+ */
15365
+ 'transaction_id'?: string;
15366
+ /**
15367
+ *
15368
+ * @type {string}
15369
+ * @memberof DataTypesReceipt
15370
+ */
15371
+ 'updated_at'?: string;
15372
+ }
15075
15373
  /**
15076
15374
  *
15077
15375
  * @export
@@ -20391,7 +20689,7 @@ export declare const AccountSettingsApiAxiosParamCreator: (configuration?: Confi
20391
20689
  */
20392
20690
  accountSettingsPasswordPut: (dataTypesUpdatePasswordRequest: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20393
20691
  /**
20394
- * Retrieves the profile of the currently logged-in user
20692
+ * Retrieves the full profile of the currently logged-in user including last login history
20395
20693
  * @summary Retrieve user profile
20396
20694
  * @param {*} [options] Override http request option.
20397
20695
  * @throws {RequiredError}
@@ -20458,7 +20756,7 @@ export declare const AccountSettingsApiFp: (configuration?: Configuration) => {
20458
20756
  */
20459
20757
  accountSettingsPasswordPut(dataTypesUpdatePasswordRequest: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
20460
20758
  /**
20461
- * Retrieves the profile of the currently logged-in user
20759
+ * Retrieves the full profile of the currently logged-in user including last login history
20462
20760
  * @summary Retrieve user profile
20463
20761
  * @param {*} [options] Override http request option.
20464
20762
  * @throws {RequiredError}
@@ -20525,7 +20823,7 @@ export declare const AccountSettingsApiFactory: (configuration?: Configuration,
20525
20823
  */
20526
20824
  accountSettingsPasswordPut(dataTypesUpdatePasswordRequest: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
20527
20825
  /**
20528
- * Retrieves the profile of the currently logged-in user
20826
+ * Retrieves the full profile of the currently logged-in user including last login history
20529
20827
  * @summary Retrieve user profile
20530
20828
  * @param {*} [options] Override http request option.
20531
20829
  * @throws {RequiredError}
@@ -20599,7 +20897,7 @@ export declare class AccountSettingsApi extends BaseAPI {
20599
20897
  */
20600
20898
  accountSettingsPasswordPut(dataTypesUpdatePasswordRequest: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
20601
20899
  /**
20602
- * Retrieves the profile of the currently logged-in user
20900
+ * Retrieves the full profile of the currently logged-in user including last login history
20603
20901
  * @summary Retrieve user profile
20604
20902
  * @param {*} [options] Override http request option.
20605
20903
  * @throws {RequiredError}
@@ -23909,6 +24207,15 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
23909
24207
  * @throws {RequiredError}
23910
24208
  */
23911
24209
  authSessionGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24210
+ /**
24211
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
24212
+ * @summary Link or Unlink an SSO provider
24213
+ * @param {string} authorization Bearer &lt;access_token&gt;
24214
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
24215
+ * @param {*} [options] Override http request option.
24216
+ * @throws {RequiredError}
24217
+ */
24218
+ authUpdateSsoPost: (authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23912
24219
  };
23913
24220
  /**
23914
24221
  * AuthApi - functional programming interface
@@ -23937,6 +24244,15 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
23937
24244
  * @throws {RequiredError}
23938
24245
  */
23939
24246
  authSessionGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesLoginResponseWrapper>>;
24247
+ /**
24248
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
24249
+ * @summary Link or Unlink an SSO provider
24250
+ * @param {string} authorization Bearer &lt;access_token&gt;
24251
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
24252
+ * @param {*} [options] Override http request option.
24253
+ * @throws {RequiredError}
24254
+ */
24255
+ authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
23940
24256
  };
23941
24257
  /**
23942
24258
  * AuthApi - factory interface
@@ -23965,6 +24281,15 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
23965
24281
  * @throws {RequiredError}
23966
24282
  */
23967
24283
  authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper>;
24284
+ /**
24285
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
24286
+ * @summary Link or Unlink an SSO provider
24287
+ * @param {string} authorization Bearer &lt;access_token&gt;
24288
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
24289
+ * @param {*} [options] Override http request option.
24290
+ * @throws {RequiredError}
24291
+ */
24292
+ authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
23968
24293
  };
23969
24294
  /**
23970
24295
  * AuthApi - object-oriented interface
@@ -23998,6 +24323,16 @@ export declare class AuthApi extends BaseAPI {
23998
24323
  * @memberof AuthApi
23999
24324
  */
24000
24325
  authSessionGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesLoginResponseWrapper, any, {}>>;
24326
+ /**
24327
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
24328
+ * @summary Link or Unlink an SSO provider
24329
+ * @param {string} authorization Bearer &lt;access_token&gt;
24330
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
24331
+ * @param {*} [options] Override http request option.
24332
+ * @throws {RequiredError}
24333
+ * @memberof AuthApi
24334
+ */
24335
+ authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
24001
24336
  }
24002
24337
  /**
24003
24338
  * AutomatedRefundManagementApi - axios parameter creator
@@ -24335,6 +24670,46 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
24335
24670
  * @throws {RequiredError}
24336
24671
  */
24337
24672
  adminBillingPaymentTransactionsGet: (orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24673
+ /**
24674
+ * Generates receipts for all completed payments without receipts in the organization
24675
+ * @summary Auto-generate receipts for organization
24676
+ * @param {*} [options] Override http request option.
24677
+ * @throws {RequiredError}
24678
+ */
24679
+ adminBillingReceiptsAutoGeneratePost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24680
+ /**
24681
+ * Generates a receipt for a completed payment
24682
+ * @summary Generate receipt from payment
24683
+ * @param {number} paymentId Payment ID
24684
+ * @param {*} [options] Override http request option.
24685
+ * @throws {RequiredError}
24686
+ */
24687
+ adminBillingReceiptsGeneratePaymentIdPost: (paymentId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24688
+ /**
24689
+ * Retrieves a paginated list of receipts for the organization
24690
+ * @summary List receipts
24691
+ * @param {number} [page] Page number (default: 1)
24692
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
24693
+ * @param {*} [options] Override http request option.
24694
+ * @throws {RequiredError}
24695
+ */
24696
+ adminBillingReceiptsGet: (page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24697
+ /**
24698
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
24699
+ * @summary Download receipt PDF
24700
+ * @param {number} id Receipt ID
24701
+ * @param {*} [options] Override http request option.
24702
+ * @throws {RequiredError}
24703
+ */
24704
+ adminBillingReceiptsIdDownloadGet: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24705
+ /**
24706
+ * Retrieves a single receipt by its ID
24707
+ * @summary Get receipt by ID
24708
+ * @param {number} id Receipt ID
24709
+ * @param {*} [options] Override http request option.
24710
+ * @throws {RequiredError}
24711
+ */
24712
+ adminBillingReceiptsIdGet: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
24338
24713
  /**
24339
24714
  * Returns saved payment cards from Razorpay for the organization
24340
24715
  * @summary Get saved payment cards
@@ -24472,7 +24847,7 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
24472
24847
  * @param {*} [options] Override http request option.
24473
24848
  * @throws {RequiredError}
24474
24849
  */
24475
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>>;
24850
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
24476
24851
  /**
24477
24852
  * Generates an invoice automatically from a completed payment
24478
24853
  * @summary Generate invoice from payment
@@ -24604,6 +24979,46 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
24604
24979
  * @throws {RequiredError}
24605
24980
  */
24606
24981
  adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
24982
+ /**
24983
+ * Generates receipts for all completed payments without receipts in the organization
24984
+ * @summary Auto-generate receipts for organization
24985
+ * @param {*} [options] Override http request option.
24986
+ * @throws {RequiredError}
24987
+ */
24988
+ adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
24989
+ /**
24990
+ * Generates a receipt for a completed payment
24991
+ * @summary Generate receipt from payment
24992
+ * @param {number} paymentId Payment ID
24993
+ * @param {*} [options] Override http request option.
24994
+ * @throws {RequiredError}
24995
+ */
24996
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>>;
24997
+ /**
24998
+ * Retrieves a paginated list of receipts for the organization
24999
+ * @summary List receipts
25000
+ * @param {number} [page] Page number (default: 1)
25001
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
25002
+ * @param {*} [options] Override http request option.
25003
+ * @throws {RequiredError}
25004
+ */
25005
+ adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25006
+ /**
25007
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
25008
+ * @summary Download receipt PDF
25009
+ * @param {number} id Receipt ID
25010
+ * @param {*} [options] Override http request option.
25011
+ * @throws {RequiredError}
25012
+ */
25013
+ adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
25014
+ /**
25015
+ * Retrieves a single receipt by its ID
25016
+ * @summary Get receipt by ID
25017
+ * @param {number} id Receipt ID
25018
+ * @param {*} [options] Override http request option.
25019
+ * @throws {RequiredError}
25020
+ */
25021
+ adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>>;
24607
25022
  /**
24608
25023
  * Returns saved payment cards from Razorpay for the organization
24609
25024
  * @summary Get saved payment cards
@@ -24741,7 +25156,7 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
24741
25156
  * @param {*} [options] Override http request option.
24742
25157
  * @throws {RequiredError}
24743
25158
  */
24744
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>;
25159
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
24745
25160
  /**
24746
25161
  * Generates an invoice automatically from a completed payment
24747
25162
  * @summary Generate invoice from payment
@@ -24873,6 +25288,46 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
24873
25288
  * @throws {RequiredError}
24874
25289
  */
24875
25290
  adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25291
+ /**
25292
+ * Generates receipts for all completed payments without receipts in the organization
25293
+ * @summary Auto-generate receipts for organization
25294
+ * @param {*} [options] Override http request option.
25295
+ * @throws {RequiredError}
25296
+ */
25297
+ adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25298
+ /**
25299
+ * Generates a receipt for a completed payment
25300
+ * @summary Generate receipt from payment
25301
+ * @param {number} paymentId Payment ID
25302
+ * @param {*} [options] Override http request option.
25303
+ * @throws {RequiredError}
25304
+ */
25305
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt>;
25306
+ /**
25307
+ * Retrieves a paginated list of receipts for the organization
25308
+ * @summary List receipts
25309
+ * @param {number} [page] Page number (default: 1)
25310
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
25311
+ * @param {*} [options] Override http request option.
25312
+ * @throws {RequiredError}
25313
+ */
25314
+ adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25315
+ /**
25316
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
25317
+ * @summary Download receipt PDF
25318
+ * @param {number} id Receipt ID
25319
+ * @param {*} [options] Override http request option.
25320
+ * @throws {RequiredError}
25321
+ */
25322
+ adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
25323
+ /**
25324
+ * Retrieves a single receipt by its ID
25325
+ * @summary Get receipt by ID
25326
+ * @param {number} id Receipt ID
25327
+ * @param {*} [options] Override http request option.
25328
+ * @throws {RequiredError}
25329
+ */
25330
+ adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt>;
24876
25331
  /**
24877
25332
  * Returns saved payment cards from Razorpay for the organization
24878
25333
  * @summary Get saved payment cards
@@ -25023,7 +25478,7 @@ export declare class BillingDashboardApi extends BaseAPI {
25023
25478
  * @throws {RequiredError}
25024
25479
  * @memberof BillingDashboardApi
25025
25480
  */
25026
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseArrayDataTypesInvoice, any, {}>>;
25481
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
25027
25482
  /**
25028
25483
  * Generates an invoice automatically from a completed payment
25029
25484
  * @summary Generate invoice from payment
@@ -25169,6 +25624,51 @@ export declare class BillingDashboardApi extends BaseAPI {
25169
25624
  * @memberof BillingDashboardApi
25170
25625
  */
25171
25626
  adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
25627
+ /**
25628
+ * Generates receipts for all completed payments without receipts in the organization
25629
+ * @summary Auto-generate receipts for organization
25630
+ * @param {*} [options] Override http request option.
25631
+ * @throws {RequiredError}
25632
+ * @memberof BillingDashboardApi
25633
+ */
25634
+ adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
25635
+ /**
25636
+ * Generates a receipt for a completed payment
25637
+ * @summary Generate receipt from payment
25638
+ * @param {number} paymentId Payment ID
25639
+ * @param {*} [options] Override http request option.
25640
+ * @throws {RequiredError}
25641
+ * @memberof BillingDashboardApi
25642
+ */
25643
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesReceipt, any, {}>>;
25644
+ /**
25645
+ * Retrieves a paginated list of receipts for the organization
25646
+ * @summary List receipts
25647
+ * @param {number} [page] Page number (default: 1)
25648
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
25649
+ * @param {*} [options] Override http request option.
25650
+ * @throws {RequiredError}
25651
+ * @memberof BillingDashboardApi
25652
+ */
25653
+ adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
25654
+ /**
25655
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
25656
+ * @summary Download receipt PDF
25657
+ * @param {number} id Receipt ID
25658
+ * @param {*} [options] Override http request option.
25659
+ * @throws {RequiredError}
25660
+ * @memberof BillingDashboardApi
25661
+ */
25662
+ adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
25663
+ /**
25664
+ * Retrieves a single receipt by its ID
25665
+ * @summary Get receipt by ID
25666
+ * @param {number} id Receipt ID
25667
+ * @param {*} [options] Override http request option.
25668
+ * @throws {RequiredError}
25669
+ * @memberof BillingDashboardApi
25670
+ */
25671
+ adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseDataTypesReceipt, any, {}>>;
25172
25672
  /**
25173
25673
  * Returns saved payment cards from Razorpay for the organization
25174
25674
  * @summary Get saved payment cards