@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/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}
@@ -12293,6 +12327,12 @@ export interface DataTypesLoginAudit {
12293
12327
  * @interface DataTypesLoginRequest
12294
12328
  */
12295
12329
  export interface DataTypesLoginRequest {
12330
+ /**
12331
+ * \"link\" or \"unlink\"
12332
+ * @type {string}
12333
+ * @memberof DataTypesLoginRequest
12334
+ */
12335
+ 'action'?: string;
12296
12336
  /**
12297
12337
  *
12298
12338
  * @type {string}
@@ -13561,6 +13601,12 @@ export interface DataTypesOrderDetailsResponse {
13561
13601
  * @memberof DataTypesOrderDetailsResponse
13562
13602
  */
13563
13603
  'order'?: DataTypesOrder;
13604
+ /**
13605
+ * Payment receipts for this order
13606
+ * @type {Array<DataTypesReceipt>}
13607
+ * @memberof DataTypesOrderDetailsResponse
13608
+ */
13609
+ 'receipts'?: Array<DataTypesReceipt>;
13564
13610
  /**
13565
13611
  *
13566
13612
  * @type {Array<DataTypesOrderTransactionDisplay>}
@@ -15169,6 +15215,161 @@ export interface DataTypesQuerySuggestionsConfig {
15169
15215
  */
15170
15216
  'use_manual'?: boolean;
15171
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
+ }
15172
15373
  /**
15173
15374
  *
15174
15375
  * @export
@@ -24006,6 +24207,15 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
24006
24207
  * @throws {RequiredError}
24007
24208
  */
24008
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>;
24009
24219
  };
24010
24220
  /**
24011
24221
  * AuthApi - functional programming interface
@@ -24034,6 +24244,15 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
24034
24244
  * @throws {RequiredError}
24035
24245
  */
24036
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>>;
24037
24256
  };
24038
24257
  /**
24039
24258
  * AuthApi - factory interface
@@ -24062,6 +24281,15 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
24062
24281
  * @throws {RequiredError}
24063
24282
  */
24064
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>;
24065
24293
  };
24066
24294
  /**
24067
24295
  * AuthApi - object-oriented interface
@@ -24095,6 +24323,16 @@ export declare class AuthApi extends BaseAPI {
24095
24323
  * @memberof AuthApi
24096
24324
  */
24097
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, {}>>;
24098
24336
  }
24099
24337
  /**
24100
24338
  * AutomatedRefundManagementApi - axios parameter creator
@@ -24432,6 +24670,46 @@ export declare const BillingDashboardApiAxiosParamCreator: (configuration?: Conf
24432
24670
  * @throws {RequiredError}
24433
24671
  */
24434
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>;
24435
24713
  /**
24436
24714
  * Returns saved payment cards from Razorpay for the organization
24437
24715
  * @summary Get saved payment cards
@@ -24569,7 +24847,7 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
24569
24847
  * @param {*} [options] Override http request option.
24570
24848
  * @throws {RequiredError}
24571
24849
  */
24572
- 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>>;
24573
24851
  /**
24574
24852
  * Generates an invoice automatically from a completed payment
24575
24853
  * @summary Generate invoice from payment
@@ -24701,6 +24979,46 @@ export declare const BillingDashboardApiFp: (configuration?: Configuration) => {
24701
24979
  * @throws {RequiredError}
24702
24980
  */
24703
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>>;
24704
25022
  /**
24705
25023
  * Returns saved payment cards from Razorpay for the organization
24706
25024
  * @summary Get saved payment cards
@@ -24838,7 +25156,7 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
24838
25156
  * @param {*} [options] Override http request option.
24839
25157
  * @throws {RequiredError}
24840
25158
  */
24841
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>;
25159
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
24842
25160
  /**
24843
25161
  * Generates an invoice automatically from a completed payment
24844
25162
  * @summary Generate invoice from payment
@@ -24970,6 +25288,46 @@ export declare const BillingDashboardApiFactory: (configuration?: Configuration,
24970
25288
  * @throws {RequiredError}
24971
25289
  */
24972
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>;
24973
25331
  /**
24974
25332
  * Returns saved payment cards from Razorpay for the organization
24975
25333
  * @summary Get saved payment cards
@@ -25120,7 +25478,7 @@ export declare class BillingDashboardApi extends BaseAPI {
25120
25478
  * @throws {RequiredError}
25121
25479
  * @memberof BillingDashboardApi
25122
25480
  */
25123
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesGenericResponseArrayDataTypesInvoice, any, {}>>;
25481
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
25124
25482
  /**
25125
25483
  * Generates an invoice automatically from a completed payment
25126
25484
  * @summary Generate invoice from payment
@@ -25266,6 +25624,51 @@ export declare class BillingDashboardApi extends BaseAPI {
25266
25624
  * @memberof BillingDashboardApi
25267
25625
  */
25268
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, {}>>;
25269
25672
  /**
25270
25673
  * Returns saved payment cards from Razorpay for the organization
25271
25674
  * @summary Get saved payment cards