@seekora-ai/admin-api 1.1.5 → 1.1.7

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
@@ -7723,30 +7723,72 @@ export interface DataTypesAutocompleteSuggestion {
7723
7723
  * @interface DataTypesBillingAlertRequest
7724
7724
  */
7725
7725
  export interface DataTypesBillingAlertRequest {
7726
+ /**
7727
+ * Custom email recipients (overrides org defaults)
7728
+ * @type {Array<string>}
7729
+ * @memberof DataTypesBillingAlertRequest
7730
+ */
7731
+ 'alert_emails'?: Array<string>;
7732
+ /**
7733
+ * Custom name for the alert
7734
+ * @type {string}
7735
+ * @memberof DataTypesBillingAlertRequest
7736
+ */
7737
+ 'alert_name'?: string;
7726
7738
  /**
7727
7739
  *
7728
7740
  * @type {string}
7729
7741
  * @memberof DataTypesBillingAlertRequest
7730
7742
  */
7731
7743
  'alert_type': DataTypesBillingAlertRequestAlertTypeEnum;
7744
+ /**
7745
+ * Minutes between alerts (default: 60)
7746
+ * @type {number}
7747
+ * @memberof DataTypesBillingAlertRequest
7748
+ */
7749
+ 'cooldown_period'?: number;
7732
7750
  /**
7733
7751
  *
7734
7752
  * @type {boolean}
7735
7753
  * @memberof DataTypesBillingAlertRequest
7736
7754
  */
7737
7755
  'is_enabled'?: boolean;
7756
+ /**
7757
+ *
7758
+ * @type {{ [key: string]: any; }}
7759
+ * @memberof DataTypesBillingAlertRequest
7760
+ */
7761
+ 'metadata'?: { [key: string]: any; };
7738
7762
  /**
7739
7763
  *
7740
7764
  * @type {{ [key: string]: any; }}
7741
7765
  * @memberof DataTypesBillingAlertRequest
7742
7766
  */
7743
7767
  'notification_channels'?: { [key: string]: any; };
7768
+ /**
7769
+ * NULL = org-level, value = store-level
7770
+ * @type {number}
7771
+ * @memberof DataTypesBillingAlertRequest
7772
+ */
7773
+ 'store_id'?: number;
7774
+ /**
7775
+ * Percentage threshold 0-100 (exclusive with threshold_value)
7776
+ * @type {number}
7777
+ * @memberof DataTypesBillingAlertRequest
7778
+ */
7779
+ 'threshold_percentage'?: number;
7744
7780
  /**
7745
7781
  *
7782
+ * @type {string}
7783
+ * @memberof DataTypesBillingAlertRequest
7784
+ */
7785
+ 'threshold_unit': DataTypesBillingAlertRequestThresholdUnitEnum;
7786
+ /**
7787
+ * Absolute threshold value (exclusive with threshold_percentage)
7746
7788
  * @type {number}
7747
7789
  * @memberof DataTypesBillingAlertRequest
7748
7790
  */
7749
- 'threshold_value': number;
7791
+ 'threshold_value'?: number;
7750
7792
  }
7751
7793
 
7752
7794
  export const DataTypesBillingAlertRequestAlertTypeEnum = {
@@ -7756,6 +7798,13 @@ export const DataTypesBillingAlertRequestAlertTypeEnum = {
7756
7798
  } as const;
7757
7799
 
7758
7800
  export type DataTypesBillingAlertRequestAlertTypeEnum = typeof DataTypesBillingAlertRequestAlertTypeEnum[keyof typeof DataTypesBillingAlertRequestAlertTypeEnum];
7801
+ export const DataTypesBillingAlertRequestThresholdUnitEnum = {
7802
+ Credits: 'credits',
7803
+ Days: 'days',
7804
+ Percentage: 'percentage'
7805
+ } as const;
7806
+
7807
+ export type DataTypesBillingAlertRequestThresholdUnitEnum = typeof DataTypesBillingAlertRequestThresholdUnitEnum[keyof typeof DataTypesBillingAlertRequestThresholdUnitEnum];
7759
7808
 
7760
7809
  /**
7761
7810
  *
@@ -7793,6 +7842,12 @@ export interface DataTypesBillingOrderDetailsResponse {
7793
7842
  * @memberof DataTypesBillingOrderDetailsResponse
7794
7843
  */
7795
7844
  'plan_details'?: DataTypesCreditPlanDetails;
7845
+ /**
7846
+ * Payment receipts for completed payments
7847
+ * @type {Array<DataTypesReceipt>}
7848
+ * @memberof DataTypesBillingOrderDetailsResponse
7849
+ */
7850
+ 'receipts'?: Array<DataTypesReceipt>;
7796
7851
  /**
7797
7852
  *
7798
7853
  * @type {Array<DataTypesOrderTransactionDisplay>}
@@ -8012,6 +8067,248 @@ export interface DataTypesCombinedSearchResult {
8012
8067
  */
8013
8068
  'widget'?: DataTypesWidgetSearchResult;
8014
8069
  }
8070
+ /**
8071
+ *
8072
+ * @export
8073
+ * @interface DataTypesCompanyConfig
8074
+ */
8075
+ export interface DataTypesCompanyConfig {
8076
+ /**
8077
+ *
8078
+ * @type {string}
8079
+ * @memberof DataTypesCompanyConfig
8080
+ */
8081
+ 'account_number'?: string;
8082
+ /**
8083
+ *
8084
+ * @type {string}
8085
+ * @memberof DataTypesCompanyConfig
8086
+ */
8087
+ 'address_line1'?: string;
8088
+ /**
8089
+ *
8090
+ * @type {string}
8091
+ * @memberof DataTypesCompanyConfig
8092
+ */
8093
+ 'address_line2'?: string;
8094
+ /**
8095
+ *
8096
+ * @type {string}
8097
+ * @memberof DataTypesCompanyConfig
8098
+ */
8099
+ 'bank_name'?: string;
8100
+ /**
8101
+ *
8102
+ * @type {string}
8103
+ * @memberof DataTypesCompanyConfig
8104
+ */
8105
+ 'billing_email'?: string;
8106
+ /**
8107
+ *
8108
+ * @type {string}
8109
+ * @memberof DataTypesCompanyConfig
8110
+ */
8111
+ 'city'?: string;
8112
+ /**
8113
+ *
8114
+ * @type {string}
8115
+ * @memberof DataTypesCompanyConfig
8116
+ */
8117
+ 'company_name'?: string;
8118
+ /**
8119
+ *
8120
+ * @type {string}
8121
+ * @memberof DataTypesCompanyConfig
8122
+ */
8123
+ 'country'?: string;
8124
+ /**
8125
+ *
8126
+ * @type {string}
8127
+ * @memberof DataTypesCompanyConfig
8128
+ */
8129
+ 'email'?: string;
8130
+ /**
8131
+ *
8132
+ * @type {string}
8133
+ * @memberof DataTypesCompanyConfig
8134
+ */
8135
+ 'gstin'?: string;
8136
+ /**
8137
+ *
8138
+ * @type {string}
8139
+ * @memberof DataTypesCompanyConfig
8140
+ */
8141
+ 'ifsc_code'?: string;
8142
+ /**
8143
+ *
8144
+ * @type {string}
8145
+ * @memberof DataTypesCompanyConfig
8146
+ */
8147
+ 'logo_url'?: string;
8148
+ /**
8149
+ *
8150
+ * @type {string}
8151
+ * @memberof DataTypesCompanyConfig
8152
+ */
8153
+ 'pan'?: string;
8154
+ /**
8155
+ *
8156
+ * @type {string}
8157
+ * @memberof DataTypesCompanyConfig
8158
+ */
8159
+ 'phone_number'?: string;
8160
+ /**
8161
+ *
8162
+ * @type {string}
8163
+ * @memberof DataTypesCompanyConfig
8164
+ */
8165
+ 'postal_code'?: string;
8166
+ /**
8167
+ *
8168
+ * @type {string}
8169
+ * @memberof DataTypesCompanyConfig
8170
+ */
8171
+ 'state'?: string;
8172
+ /**
8173
+ *
8174
+ * @type {string}
8175
+ * @memberof DataTypesCompanyConfig
8176
+ */
8177
+ 'support_email'?: string;
8178
+ /**
8179
+ *
8180
+ * @type {string}
8181
+ * @memberof DataTypesCompanyConfig
8182
+ */
8183
+ 'tax_registration'?: string;
8184
+ /**
8185
+ *
8186
+ * @type {string}
8187
+ * @memberof DataTypesCompanyConfig
8188
+ */
8189
+ 'website'?: string;
8190
+ }
8191
+ /**
8192
+ *
8193
+ * @export
8194
+ * @interface DataTypesCompanyConfigRequest
8195
+ */
8196
+ export interface DataTypesCompanyConfigRequest {
8197
+ /**
8198
+ *
8199
+ * @type {string}
8200
+ * @memberof DataTypesCompanyConfigRequest
8201
+ */
8202
+ 'account_number'?: string;
8203
+ /**
8204
+ *
8205
+ * @type {string}
8206
+ * @memberof DataTypesCompanyConfigRequest
8207
+ */
8208
+ 'address_line1': string;
8209
+ /**
8210
+ *
8211
+ * @type {string}
8212
+ * @memberof DataTypesCompanyConfigRequest
8213
+ */
8214
+ 'address_line2'?: string;
8215
+ /**
8216
+ *
8217
+ * @type {string}
8218
+ * @memberof DataTypesCompanyConfigRequest
8219
+ */
8220
+ 'bank_name'?: string;
8221
+ /**
8222
+ *
8223
+ * @type {string}
8224
+ * @memberof DataTypesCompanyConfigRequest
8225
+ */
8226
+ 'billing_email'?: string;
8227
+ /**
8228
+ *
8229
+ * @type {string}
8230
+ * @memberof DataTypesCompanyConfigRequest
8231
+ */
8232
+ 'city': string;
8233
+ /**
8234
+ *
8235
+ * @type {string}
8236
+ * @memberof DataTypesCompanyConfigRequest
8237
+ */
8238
+ 'company_name': string;
8239
+ /**
8240
+ *
8241
+ * @type {string}
8242
+ * @memberof DataTypesCompanyConfigRequest
8243
+ */
8244
+ 'country': string;
8245
+ /**
8246
+ *
8247
+ * @type {string}
8248
+ * @memberof DataTypesCompanyConfigRequest
8249
+ */
8250
+ 'email': string;
8251
+ /**
8252
+ *
8253
+ * @type {string}
8254
+ * @memberof DataTypesCompanyConfigRequest
8255
+ */
8256
+ 'gstin'?: string;
8257
+ /**
8258
+ *
8259
+ * @type {string}
8260
+ * @memberof DataTypesCompanyConfigRequest
8261
+ */
8262
+ 'ifsc_code'?: string;
8263
+ /**
8264
+ *
8265
+ * @type {string}
8266
+ * @memberof DataTypesCompanyConfigRequest
8267
+ */
8268
+ 'logo_url'?: string;
8269
+ /**
8270
+ *
8271
+ * @type {string}
8272
+ * @memberof DataTypesCompanyConfigRequest
8273
+ */
8274
+ 'pan'?: string;
8275
+ /**
8276
+ *
8277
+ * @type {string}
8278
+ * @memberof DataTypesCompanyConfigRequest
8279
+ */
8280
+ 'phone_number': string;
8281
+ /**
8282
+ *
8283
+ * @type {string}
8284
+ * @memberof DataTypesCompanyConfigRequest
8285
+ */
8286
+ 'postal_code': string;
8287
+ /**
8288
+ *
8289
+ * @type {string}
8290
+ * @memberof DataTypesCompanyConfigRequest
8291
+ */
8292
+ 'state': string;
8293
+ /**
8294
+ *
8295
+ * @type {string}
8296
+ * @memberof DataTypesCompanyConfigRequest
8297
+ */
8298
+ 'support_email'?: string;
8299
+ /**
8300
+ *
8301
+ * @type {string}
8302
+ * @memberof DataTypesCompanyConfigRequest
8303
+ */
8304
+ 'tax_registration'?: string;
8305
+ /**
8306
+ *
8307
+ * @type {string}
8308
+ * @memberof DataTypesCompanyConfigRequest
8309
+ */
8310
+ 'website'?: string;
8311
+ }
8015
8312
  /**
8016
8313
  *
8017
8314
  * @export
@@ -8309,6 +8606,54 @@ export interface DataTypesCreateOrganizationRequest {
8309
8606
  * @memberof DataTypesCreateOrganizationRequest
8310
8607
  */
8311
8608
  'Address'?: string;
8609
+ /**
8610
+ *
8611
+ * @type {string}
8612
+ * @memberof DataTypesCreateOrganizationRequest
8613
+ */
8614
+ 'BillingAddressLine1'?: string;
8615
+ /**
8616
+ *
8617
+ * @type {string}
8618
+ * @memberof DataTypesCreateOrganizationRequest
8619
+ */
8620
+ 'BillingAddressLine2'?: string;
8621
+ /**
8622
+ *
8623
+ * @type {string}
8624
+ * @memberof DataTypesCreateOrganizationRequest
8625
+ */
8626
+ 'BillingCity'?: string;
8627
+ /**
8628
+ *
8629
+ * @type {string}
8630
+ * @memberof DataTypesCreateOrganizationRequest
8631
+ */
8632
+ 'BillingCountry'?: string;
8633
+ /**
8634
+ *
8635
+ * @type {string}
8636
+ * @memberof DataTypesCreateOrganizationRequest
8637
+ */
8638
+ 'BillingPostalCode'?: string;
8639
+ /**
8640
+ *
8641
+ * @type {string}
8642
+ * @memberof DataTypesCreateOrganizationRequest
8643
+ */
8644
+ 'BillingState'?: string;
8645
+ /**
8646
+ *
8647
+ * @type {string}
8648
+ * @memberof DataTypesCreateOrganizationRequest
8649
+ */
8650
+ 'BusinessLegalName'?: string;
8651
+ /**
8652
+ *
8653
+ * @type {string}
8654
+ * @memberof DataTypesCreateOrganizationRequest
8655
+ */
8656
+ 'BusinessType'?: string;
8312
8657
  /**
8313
8658
  *
8314
8659
  * @type {string}
@@ -8333,6 +8678,18 @@ export interface DataTypesCreateOrganizationRequest {
8333
8678
  * @memberof DataTypesCreateOrganizationRequest
8334
8679
  */
8335
8680
  'Footer'?: string;
8681
+ /**
8682
+ * Tax and Billing Details
8683
+ * @type {string}
8684
+ * @memberof DataTypesCreateOrganizationRequest
8685
+ */
8686
+ 'GSTIN'?: string;
8687
+ /**
8688
+ *
8689
+ * @type {string}
8690
+ * @memberof DataTypesCreateOrganizationRequest
8691
+ */
8692
+ 'HSNSACCode'?: string;
8336
8693
  /**
8337
8694
  *
8338
8695
  * @type {Array<number>}
@@ -8357,12 +8714,24 @@ export interface DataTypesCreateOrganizationRequest {
8357
8714
  * @memberof DataTypesCreateOrganizationRequest
8358
8715
  */
8359
8716
  'OrgName'?: string;
8717
+ /**
8718
+ *
8719
+ * @type {string}
8720
+ * @memberof DataTypesCreateOrganizationRequest
8721
+ */
8722
+ 'PAN'?: string;
8360
8723
  /**
8361
8724
  *
8362
8725
  * @type {string}
8363
8726
  * @memberof DataTypesCreateOrganizationRequest
8364
8727
  */
8365
8728
  'PhoneNo'?: string;
8729
+ /**
8730
+ *
8731
+ * @type {string}
8732
+ * @memberof DataTypesCreateOrganizationRequest
8733
+ */
8734
+ 'PlaceOfSupply'?: string;
8366
8735
  /**
8367
8736
  *
8368
8737
  * @type {string}
@@ -8375,6 +8744,36 @@ export interface DataTypesCreateOrganizationRequest {
8375
8744
  * @memberof DataTypesCreateOrganizationRequest
8376
8745
  */
8377
8746
  'TIN'?: string;
8747
+ /**
8748
+ *
8749
+ * @type {string}
8750
+ * @memberof DataTypesCreateOrganizationRequest
8751
+ */
8752
+ 'TaxExemptionCertificate'?: string;
8753
+ /**
8754
+ *
8755
+ * @type {boolean}
8756
+ * @memberof DataTypesCreateOrganizationRequest
8757
+ */
8758
+ 'TaxExemptionStatus'?: boolean;
8759
+ /**
8760
+ *
8761
+ * @type {string}
8762
+ * @memberof DataTypesCreateOrganizationRequest
8763
+ */
8764
+ 'TaxExemptionValidUntil'?: string;
8765
+ /**
8766
+ *
8767
+ * @type {string}
8768
+ * @memberof DataTypesCreateOrganizationRequest
8769
+ */
8770
+ 'TaxRegistrationCountry'?: string;
8771
+ /**
8772
+ *
8773
+ * @type {string}
8774
+ * @memberof DataTypesCreateOrganizationRequest
8775
+ */
8776
+ 'TaxRegistrationNumber'?: string;
8378
8777
  /**
8379
8778
  *
8380
8779
  * @type {string}
@@ -10790,31 +11189,6 @@ export interface DataTypesGatewayListResponse {
10790
11189
  */
10791
11190
  'gateways'?: Array<DataTypesGatewayInfo>;
10792
11191
  }
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
11192
  /**
10819
11193
  *
10820
11194
  * @export
@@ -10915,6 +11289,31 @@ export interface DataTypesGenericResponseDataTypesPayInvoiceResponse {
10915
11289
  */
10916
11290
  'status'?: number;
10917
11291
  }
11292
+ /**
11293
+ *
11294
+ * @export
11295
+ * @interface DataTypesGenericResponseDataTypesReceipt
11296
+ */
11297
+ export interface DataTypesGenericResponseDataTypesReceipt {
11298
+ /**
11299
+ *
11300
+ * @type {DataTypesReceipt}
11301
+ * @memberof DataTypesGenericResponseDataTypesReceipt
11302
+ */
11303
+ 'data'?: DataTypesReceipt;
11304
+ /**
11305
+ *
11306
+ * @type {string}
11307
+ * @memberof DataTypesGenericResponseDataTypesReceipt
11308
+ */
11309
+ 'message'?: string;
11310
+ /**
11311
+ *
11312
+ * @type {number}
11313
+ * @memberof DataTypesGenericResponseDataTypesReceipt
11314
+ */
11315
+ 'status'?: number;
11316
+ }
10918
11317
  /**
10919
11318
  *
10920
11319
  * @export
@@ -11564,6 +11963,12 @@ export interface DataTypesInvoice {
11564
11963
  * @memberof DataTypesInvoice
11565
11964
  */
11566
11965
  'due_date'?: string;
11966
+ /**
11967
+ * Download helpers
11968
+ * @type {string}
11969
+ * @memberof DataTypesInvoice
11970
+ */
11971
+ 'invoice_download_path'?: string;
11567
11972
  /**
11568
11973
  *
11569
11974
  * @type {string}
@@ -11576,6 +11981,12 @@ export interface DataTypesInvoice {
11576
11981
  * @memberof DataTypesInvoice
11577
11982
  */
11578
11983
  'invoice_number'?: string;
11984
+ /**
11985
+ *
11986
+ * @type {string}
11987
+ * @memberof DataTypesInvoice
11988
+ */
11989
+ 'invoice_pdf_url'?: string;
11579
11990
  /**
11580
11991
  *
11581
11992
  * @type {string}
@@ -11588,6 +11999,18 @@ export interface DataTypesInvoice {
11588
11999
  * @memberof DataTypesInvoice
11589
12000
  */
11590
12001
  'items'?: Array<DataTypesInvoiceItem>;
12002
+ /**
12003
+ * Complete invoice data as JSON
12004
+ * @type {{ [key: string]: any; }}
12005
+ * @memberof DataTypesInvoice
12006
+ */
12007
+ 'json_data'?: { [key: string]: any; };
12008
+ /**
12009
+ * Additional metadata
12010
+ * @type {{ [key: string]: any; }}
12011
+ * @memberof DataTypesInvoice
12012
+ */
12013
+ 'metadata'?: { [key: string]: any; };
11591
12014
  /**
11592
12015
  *
11593
12016
  * @type {string}
@@ -11624,6 +12047,42 @@ export interface DataTypesInvoice {
11624
12047
  * @memberof DataTypesInvoice
11625
12048
  */
11626
12049
  'payment_method'?: string;
12050
+ /**
12051
+ * When PDF was generated
12052
+ * @type {string}
12053
+ * @memberof DataTypesInvoice
12054
+ */
12055
+ 'pdf_generated_at'?: string;
12056
+ /**
12057
+ * S3 key for PDF storage
12058
+ * @type {string}
12059
+ * @memberof DataTypesInvoice
12060
+ */
12061
+ 'pdf_s3_key'?: string;
12062
+ /**
12063
+ *
12064
+ * @type {string}
12065
+ * @memberof DataTypesInvoice
12066
+ */
12067
+ 'receipt_download_path'?: string;
12068
+ /**
12069
+ * Linked receipt metadata
12070
+ * @type {number}
12071
+ * @memberof DataTypesInvoice
12072
+ */
12073
+ 'receipt_id'?: number;
12074
+ /**
12075
+ *
12076
+ * @type {string}
12077
+ * @memberof DataTypesInvoice
12078
+ */
12079
+ 'receipt_number'?: string;
12080
+ /**
12081
+ *
12082
+ * @type {string}
12083
+ * @memberof DataTypesInvoice
12084
+ */
12085
+ 'receipt_pdf_url'?: string;
11627
12086
  /**
11628
12087
  * \"draft\", \"sent\", \"paid\", \"overdue\", \"cancelled\"
11629
12088
  * @type {string}
@@ -12279,6 +12738,12 @@ export interface DataTypesLoginAudit {
12279
12738
  * @interface DataTypesLoginRequest
12280
12739
  */
12281
12740
  export interface DataTypesLoginRequest {
12741
+ /**
12742
+ * \"link\" or \"unlink\"
12743
+ * @type {string}
12744
+ * @memberof DataTypesLoginRequest
12745
+ */
12746
+ 'action'?: string;
12282
12747
  /**
12283
12748
  *
12284
12749
  * @type {string}
@@ -13535,6 +14000,12 @@ export interface DataTypesOrderDetailsResponse {
13535
14000
  * @memberof DataTypesOrderDetailsResponse
13536
14001
  */
13537
14002
  'order'?: DataTypesOrder;
14003
+ /**
14004
+ * Payment receipts for this order
14005
+ * @type {Array<DataTypesReceipt>}
14006
+ * @memberof DataTypesOrderDetailsResponse
14007
+ */
14008
+ 'receipts'?: Array<DataTypesReceipt>;
13538
14009
  /**
13539
14010
  *
13540
14011
  * @type {Array<DataTypesOrderTransactionDisplay>}
@@ -13700,6 +14171,54 @@ export interface DataTypesOrganization {
13700
14171
  * @memberof DataTypesOrganization
13701
14172
  */
13702
14173
  'Address'?: string;
14174
+ /**
14175
+ * Billing address line 1
14176
+ * @type {string}
14177
+ * @memberof DataTypesOrganization
14178
+ */
14179
+ 'BillingAddressLine1'?: string;
14180
+ /**
14181
+ * Billing address line 2
14182
+ * @type {string}
14183
+ * @memberof DataTypesOrganization
14184
+ */
14185
+ 'BillingAddressLine2'?: string;
14186
+ /**
14187
+ * Billing city
14188
+ * @type {string}
14189
+ * @memberof DataTypesOrganization
14190
+ */
14191
+ 'BillingCity'?: string;
14192
+ /**
14193
+ * Billing country (ISO code)
14194
+ * @type {string}
14195
+ * @memberof DataTypesOrganization
14196
+ */
14197
+ 'BillingCountry'?: string;
14198
+ /**
14199
+ * Billing postal/zip code
14200
+ * @type {string}
14201
+ * @memberof DataTypesOrganization
14202
+ */
14203
+ 'BillingPostalCode'?: string;
14204
+ /**
14205
+ * Billing state/province
14206
+ * @type {string}
14207
+ * @memberof DataTypesOrganization
14208
+ */
14209
+ 'BillingState'?: string;
14210
+ /**
14211
+ * Legal business name
14212
+ * @type {string}
14213
+ * @memberof DataTypesOrganization
14214
+ */
14215
+ 'BusinessLegalName'?: string;
14216
+ /**
14217
+ * Business entity type
14218
+ * @type {string}
14219
+ * @memberof DataTypesOrganization
14220
+ */
14221
+ 'BusinessType'?: string;
13703
14222
  /**
13704
14223
  * Nullable field
13705
14224
  * @type {string}
@@ -13736,6 +14255,18 @@ export interface DataTypesOrganization {
13736
14255
  * @memberof DataTypesOrganization
13737
14256
  */
13738
14257
  'Footer'?: string;
14258
+ /**
14259
+ * Tax and Billing Details
14260
+ * @type {string}
14261
+ * @memberof DataTypesOrganization
14262
+ */
14263
+ 'GSTIN'?: string;
14264
+ /**
14265
+ * HSN/SAC code
14266
+ * @type {string}
14267
+ * @memberof DataTypesOrganization
14268
+ */
14269
+ 'HSNSACCode'?: string;
13739
14270
  /**
13740
14271
  * Nullable BOOLEAN field
13741
14272
  * @type {boolean}
@@ -13784,12 +14315,36 @@ export interface DataTypesOrganization {
13784
14315
  * @memberof DataTypesOrganization
13785
14316
  */
13786
14317
  'OrgName'?: string;
14318
+ /**
14319
+ * Permanent Account Number (India)
14320
+ * @type {string}
14321
+ * @memberof DataTypesOrganization
14322
+ */
14323
+ 'PAN'?: string;
13787
14324
  /**
13788
14325
  * Nullable field
13789
14326
  * @type {string}
13790
14327
  * @memberof DataTypesOrganization
13791
14328
  */
13792
14329
  'PhoneNo'?: string;
14330
+ /**
14331
+ * State/Province for tax
14332
+ * @type {string}
14333
+ * @memberof DataTypesOrganization
14334
+ */
14335
+ 'PlaceOfSupply'?: string;
14336
+ /**
14337
+ * Razorpay customer creation time
14338
+ * @type {string}
14339
+ * @memberof DataTypesOrganization
14340
+ */
14341
+ 'RazorpayCustomerCreatedAt'?: string;
14342
+ /**
14343
+ * Razorpay Integration
14344
+ * @type {string}
14345
+ * @memberof DataTypesOrganization
14346
+ */
14347
+ 'RazorpayCustomerID'?: string;
13793
14348
  /**
13794
14349
  * Nullable field
13795
14350
  * @type {string}
@@ -13802,6 +14357,42 @@ export interface DataTypesOrganization {
13802
14357
  * @memberof DataTypesOrganization
13803
14358
  */
13804
14359
  'TIN'?: string;
14360
+ /**
14361
+ * Certificate number
14362
+ * @type {string}
14363
+ * @memberof DataTypesOrganization
14364
+ */
14365
+ 'TaxExemptionCertificate'?: string;
14366
+ /**
14367
+ * Tax exemption flag
14368
+ * @type {boolean}
14369
+ * @memberof DataTypesOrganization
14370
+ */
14371
+ 'TaxExemptionStatus'?: boolean;
14372
+ /**
14373
+ * Validity date
14374
+ * @type {string}
14375
+ * @memberof DataTypesOrganization
14376
+ */
14377
+ 'TaxExemptionValidUntil'?: string;
14378
+ /**
14379
+ * ISO country code for tax
14380
+ * @type {string}
14381
+ * @memberof DataTypesOrganization
14382
+ */
14383
+ 'TaxRegistrationCountry'?: string;
14384
+ /**
14385
+ * Generic tax registration number
14386
+ * @type {string}
14387
+ * @memberof DataTypesOrganization
14388
+ */
14389
+ 'TaxRegistrationNumber'?: string;
14390
+ /**
14391
+ * Flexible tax config (JSONB)
14392
+ * @type {string}
14393
+ * @memberof DataTypesOrganization
14394
+ */
14395
+ 'TaxSettings'?: string;
13805
14396
  /**
13806
14397
  * Nullable field
13807
14398
  * @type {string}
@@ -15130,6 +15721,157 @@ export interface DataTypesQuerySuggestionsConfig {
15130
15721
  */
15131
15722
  'use_manual'?: boolean;
15132
15723
  }
15724
+ /**
15725
+ *
15726
+ * @export
15727
+ * @interface DataTypesReceipt
15728
+ */
15729
+ export interface DataTypesReceipt {
15730
+ /**
15731
+ *
15732
+ * @type {number}
15733
+ * @memberof DataTypesReceipt
15734
+ */
15735
+ 'amount'?: number;
15736
+ /**
15737
+ *
15738
+ * @type {string}
15739
+ * @memberof DataTypesReceipt
15740
+ */
15741
+ 'created_at'?: string;
15742
+ /**
15743
+ *
15744
+ * @type {string}
15745
+ * @memberof DataTypesReceipt
15746
+ */
15747
+ 'currency'?: string;
15748
+ /**
15749
+ *
15750
+ * @type {string}
15751
+ * @memberof DataTypesReceipt
15752
+ */
15753
+ 'customer_email'?: string;
15754
+ /**
15755
+ *
15756
+ * @type {string}
15757
+ * @memberof DataTypesReceipt
15758
+ */
15759
+ 'customer_name'?: string;
15760
+ /**
15761
+ *
15762
+ * @type {string}
15763
+ * @memberof DataTypesReceipt
15764
+ */
15765
+ 'deleted_at'?: string;
15766
+ /**
15767
+ *
15768
+ * @type {string}
15769
+ * @memberof DataTypesReceipt
15770
+ */
15771
+ 'description'?: string;
15772
+ /**
15773
+ * Link to invoice if exists (UUID as string)
15774
+ * @type {string}
15775
+ * @memberof DataTypesReceipt
15776
+ */
15777
+ 'invoice_id'?: string;
15778
+ /**
15779
+ *
15780
+ * @type {boolean}
15781
+ * @memberof DataTypesReceipt
15782
+ */
15783
+ 'is_deleted'?: boolean;
15784
+ /**
15785
+ * Complete receipt data as JSON
15786
+ * @type {{ [key: string]: any; }}
15787
+ * @memberof DataTypesReceipt
15788
+ */
15789
+ 'json_data'?: { [key: string]: any; };
15790
+ /**
15791
+ *
15792
+ * @type {{ [key: string]: any; }}
15793
+ * @memberof DataTypesReceipt
15794
+ */
15795
+ 'metadata'?: { [key: string]: any; };
15796
+ /**
15797
+ *
15798
+ * @type {string}
15799
+ * @memberof DataTypesReceipt
15800
+ */
15801
+ 'notes'?: string;
15802
+ /**
15803
+ *
15804
+ * @type {number}
15805
+ * @memberof DataTypesReceipt
15806
+ */
15807
+ 'org_id'?: number;
15808
+ /**
15809
+ *
15810
+ * @type {string}
15811
+ * @memberof DataTypesReceipt
15812
+ */
15813
+ 'payment_date'?: string;
15814
+ /**
15815
+ * razorpay, stripe, etc.
15816
+ * @type {string}
15817
+ * @memberof DataTypesReceipt
15818
+ */
15819
+ 'payment_gateway'?: string;
15820
+ /**
15821
+ *
15822
+ * @type {number}
15823
+ * @memberof DataTypesReceipt
15824
+ */
15825
+ 'payment_id'?: number;
15826
+ /**
15827
+ * card, upi, netbanking, etc.
15828
+ * @type {string}
15829
+ * @memberof DataTypesReceipt
15830
+ */
15831
+ 'payment_method'?: string;
15832
+ /**
15833
+ * When PDF was generated
15834
+ * @type {string}
15835
+ * @memberof DataTypesReceipt
15836
+ */
15837
+ 'pdf_generated_at'?: string;
15838
+ /**
15839
+ * S3 key for PDF storage
15840
+ * @type {string}
15841
+ * @memberof DataTypesReceipt
15842
+ */
15843
+ 'pdf_s3_key'?: string;
15844
+ /**
15845
+ *
15846
+ * @type {number}
15847
+ * @memberof DataTypesReceipt
15848
+ */
15849
+ 'receipt_id'?: number;
15850
+ /**
15851
+ *
15852
+ * @type {string}
15853
+ * @memberof DataTypesReceipt
15854
+ */
15855
+ 'receipt_number'?: string;
15856
+ /**
15857
+ * generated, sent, viewed
15858
+ * @type {string}
15859
+ * @memberof DataTypesReceipt
15860
+ */
15861
+ 'status'?: string;
15862
+ /**
15863
+ * Gateway transaction ID
15864
+ * @type {string}
15865
+ * @memberof DataTypesReceipt
15866
+ */
15867
+ 'transaction_id'?: string;
15868
+ /**
15869
+ *
15870
+ * @type {string}
15871
+ * @memberof DataTypesReceipt
15872
+ */
15873
+ 'updated_at'?: string;
15874
+ }
15133
15875
  /**
15134
15876
  *
15135
15877
  * @export
@@ -17915,6 +18657,54 @@ export interface DataTypesUpdateOrganizationRequest {
17915
18657
  * @memberof DataTypesUpdateOrganizationRequest
17916
18658
  */
17917
18659
  'Address'?: string;
18660
+ /**
18661
+ *
18662
+ * @type {string}
18663
+ * @memberof DataTypesUpdateOrganizationRequest
18664
+ */
18665
+ 'BillingAddressLine1'?: string;
18666
+ /**
18667
+ *
18668
+ * @type {string}
18669
+ * @memberof DataTypesUpdateOrganizationRequest
18670
+ */
18671
+ 'BillingAddressLine2'?: string;
18672
+ /**
18673
+ *
18674
+ * @type {string}
18675
+ * @memberof DataTypesUpdateOrganizationRequest
18676
+ */
18677
+ 'BillingCity'?: string;
18678
+ /**
18679
+ *
18680
+ * @type {string}
18681
+ * @memberof DataTypesUpdateOrganizationRequest
18682
+ */
18683
+ 'BillingCountry'?: string;
18684
+ /**
18685
+ *
18686
+ * @type {string}
18687
+ * @memberof DataTypesUpdateOrganizationRequest
18688
+ */
18689
+ 'BillingPostalCode'?: string;
18690
+ /**
18691
+ *
18692
+ * @type {string}
18693
+ * @memberof DataTypesUpdateOrganizationRequest
18694
+ */
18695
+ 'BillingState'?: string;
18696
+ /**
18697
+ *
18698
+ * @type {string}
18699
+ * @memberof DataTypesUpdateOrganizationRequest
18700
+ */
18701
+ 'BusinessLegalName'?: string;
18702
+ /**
18703
+ *
18704
+ * @type {string}
18705
+ * @memberof DataTypesUpdateOrganizationRequest
18706
+ */
18707
+ 'BusinessType'?: string;
17918
18708
  /**
17919
18709
  *
17920
18710
  * @type {string}
@@ -17939,6 +18729,18 @@ export interface DataTypesUpdateOrganizationRequest {
17939
18729
  * @memberof DataTypesUpdateOrganizationRequest
17940
18730
  */
17941
18731
  'Footer'?: string;
18732
+ /**
18733
+ * Tax and Billing Details
18734
+ * @type {string}
18735
+ * @memberof DataTypesUpdateOrganizationRequest
18736
+ */
18737
+ 'GSTIN'?: string;
18738
+ /**
18739
+ *
18740
+ * @type {string}
18741
+ * @memberof DataTypesUpdateOrganizationRequest
18742
+ */
18743
+ 'HSNSACCode'?: string;
17942
18744
  /**
17943
18745
  *
17944
18746
  * @type {string}
@@ -17951,12 +18753,24 @@ export interface DataTypesUpdateOrganizationRequest {
17951
18753
  * @memberof DataTypesUpdateOrganizationRequest
17952
18754
  */
17953
18755
  'OrgName': string;
18756
+ /**
18757
+ *
18758
+ * @type {string}
18759
+ * @memberof DataTypesUpdateOrganizationRequest
18760
+ */
18761
+ 'PAN'?: string;
17954
18762
  /**
17955
18763
  *
17956
18764
  * @type {string}
17957
18765
  * @memberof DataTypesUpdateOrganizationRequest
17958
18766
  */
17959
18767
  'PhoneNo'?: string;
18768
+ /**
18769
+ *
18770
+ * @type {string}
18771
+ * @memberof DataTypesUpdateOrganizationRequest
18772
+ */
18773
+ 'PlaceOfSupply'?: string;
17960
18774
  /**
17961
18775
  *
17962
18776
  * @type {string}
@@ -17969,6 +18783,36 @@ export interface DataTypesUpdateOrganizationRequest {
17969
18783
  * @memberof DataTypesUpdateOrganizationRequest
17970
18784
  */
17971
18785
  'TIN'?: string;
18786
+ /**
18787
+ *
18788
+ * @type {string}
18789
+ * @memberof DataTypesUpdateOrganizationRequest
18790
+ */
18791
+ 'TaxExemptionCertificate'?: string;
18792
+ /**
18793
+ *
18794
+ * @type {boolean}
18795
+ * @memberof DataTypesUpdateOrganizationRequest
18796
+ */
18797
+ 'TaxExemptionStatus'?: boolean;
18798
+ /**
18799
+ *
18800
+ * @type {string}
18801
+ * @memberof DataTypesUpdateOrganizationRequest
18802
+ */
18803
+ 'TaxExemptionValidUntil'?: string;
18804
+ /**
18805
+ *
18806
+ * @type {string}
18807
+ * @memberof DataTypesUpdateOrganizationRequest
18808
+ */
18809
+ 'TaxRegistrationCountry'?: string;
18810
+ /**
18811
+ *
18812
+ * @type {string}
18813
+ * @memberof DataTypesUpdateOrganizationRequest
18814
+ */
18815
+ 'TaxRegistrationNumber'?: string;
17972
18816
  /**
17973
18817
  *
17974
18818
  * @type {string}
@@ -27651,6 +28495,48 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
27651
28495
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27652
28496
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27653
28497
 
28498
+ return {
28499
+ url: toPathString(localVarUrlObj),
28500
+ options: localVarRequestOptions,
28501
+ };
28502
+ },
28503
+ /**
28504
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
28505
+ * @summary Link or Unlink an SSO provider
28506
+ * @param {string} authorization Bearer &lt;access_token&gt;
28507
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
28508
+ * @param {*} [options] Override http request option.
28509
+ * @throws {RequiredError}
28510
+ */
28511
+ authUpdateSsoPost: async (authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28512
+ // verify required parameter 'authorization' is not null or undefined
28513
+ assertParamExists('authUpdateSsoPost', 'authorization', authorization)
28514
+ // verify required parameter 'dataTypesLoginRequest' is not null or undefined
28515
+ assertParamExists('authUpdateSsoPost', 'dataTypesLoginRequest', dataTypesLoginRequest)
28516
+ const localVarPath = `/Auth/update-sso`;
28517
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28518
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28519
+ let baseOptions;
28520
+ if (configuration) {
28521
+ baseOptions = configuration.baseOptions;
28522
+ }
28523
+
28524
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28525
+ const localVarHeaderParameter = {} as any;
28526
+ const localVarQueryParameter = {} as any;
28527
+
28528
+
28529
+
28530
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28531
+
28532
+ if (authorization != null) {
28533
+ localVarHeaderParameter['Authorization'] = String(authorization);
28534
+ }
28535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28537
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28538
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesLoginRequest, localVarRequestOptions, configuration)
28539
+
27654
28540
  return {
27655
28541
  url: toPathString(localVarUrlObj),
27656
28542
  options: localVarRequestOptions,
@@ -27703,6 +28589,20 @@ export const AuthApiFp = function(configuration?: Configuration) {
27703
28589
  const localVarOperationServerBasePath = operationServerMap['AuthApi.authSessionGet']?.[localVarOperationServerIndex]?.url;
27704
28590
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27705
28591
  },
28592
+ /**
28593
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
28594
+ * @summary Link or Unlink an SSO provider
28595
+ * @param {string} authorization Bearer &lt;access_token&gt;
28596
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
28597
+ * @param {*} [options] Override http request option.
28598
+ * @throws {RequiredError}
28599
+ */
28600
+ async authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
28601
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authUpdateSsoPost(authorization, dataTypesLoginRequest, options);
28602
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28603
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authUpdateSsoPost']?.[localVarOperationServerIndex]?.url;
28604
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28605
+ },
27706
28606
  }
27707
28607
  };
27708
28608
 
@@ -27741,6 +28641,17 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
27741
28641
  authSessionGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesLoginResponseWrapper> {
27742
28642
  return localVarFp.authSessionGet(options).then((request) => request(axios, basePath));
27743
28643
  },
28644
+ /**
28645
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
28646
+ * @summary Link or Unlink an SSO provider
28647
+ * @param {string} authorization Bearer &lt;access_token&gt;
28648
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
28649
+ * @param {*} [options] Override http request option.
28650
+ * @throws {RequiredError}
28651
+ */
28652
+ authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
28653
+ return localVarFp.authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(axios, basePath));
28654
+ },
27744
28655
  };
27745
28656
  };
27746
28657
 
@@ -27784,6 +28695,19 @@ export class AuthApi extends BaseAPI {
27784
28695
  public authSessionGet(options?: RawAxiosRequestConfig) {
27785
28696
  return AuthApiFp(this.configuration).authSessionGet(options).then((request) => request(this.axios, this.basePath));
27786
28697
  }
28698
+
28699
+ /**
28700
+ * Allows the authenticated user to link or unlink a social login provider (Google, GitHub, etc.)
28701
+ * @summary Link or Unlink an SSO provider
28702
+ * @param {string} authorization Bearer &lt;access_token&gt;
28703
+ * @param {DataTypesLoginRequest} dataTypesLoginRequest SSO link/unlink request payload
28704
+ * @param {*} [options] Override http request option.
28705
+ * @throws {RequiredError}
28706
+ * @memberof AuthApi
28707
+ */
28708
+ public authUpdateSsoPost(authorization: string, dataTypesLoginRequest: DataTypesLoginRequest, options?: RawAxiosRequestConfig) {
28709
+ return AuthApiFp(this.configuration).authUpdateSsoPost(authorization, dataTypesLoginRequest, options).then((request) => request(this.axios, this.basePath));
28710
+ }
27787
28711
  }
27788
28712
 
27789
28713
 
@@ -29109,6 +30033,193 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration?: Co
29109
30033
 
29110
30034
 
29111
30035
 
30036
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30038
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30039
+
30040
+ return {
30041
+ url: toPathString(localVarUrlObj),
30042
+ options: localVarRequestOptions,
30043
+ };
30044
+ },
30045
+ /**
30046
+ * Generates receipts for all completed payments without receipts in the organization
30047
+ * @summary Auto-generate receipts for organization
30048
+ * @param {*} [options] Override http request option.
30049
+ * @throws {RequiredError}
30050
+ */
30051
+ adminBillingReceiptsAutoGeneratePost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30052
+ const localVarPath = `/admin/billing/receipts/auto-generate`;
30053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30054
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30055
+ let baseOptions;
30056
+ if (configuration) {
30057
+ baseOptions = configuration.baseOptions;
30058
+ }
30059
+
30060
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30061
+ const localVarHeaderParameter = {} as any;
30062
+ const localVarQueryParameter = {} as any;
30063
+
30064
+ // authentication BearerAuth required
30065
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
30066
+
30067
+
30068
+
30069
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30070
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30071
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30072
+
30073
+ return {
30074
+ url: toPathString(localVarUrlObj),
30075
+ options: localVarRequestOptions,
30076
+ };
30077
+ },
30078
+ /**
30079
+ * Generates a receipt for a completed payment
30080
+ * @summary Generate receipt from payment
30081
+ * @param {number} paymentId Payment ID
30082
+ * @param {*} [options] Override http request option.
30083
+ * @throws {RequiredError}
30084
+ */
30085
+ adminBillingReceiptsGeneratePaymentIdPost: async (paymentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30086
+ // verify required parameter 'paymentId' is not null or undefined
30087
+ assertParamExists('adminBillingReceiptsGeneratePaymentIdPost', 'paymentId', paymentId)
30088
+ const localVarPath = `/admin/billing/receipts/generate/{paymentId}`
30089
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
30090
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30091
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30092
+ let baseOptions;
30093
+ if (configuration) {
30094
+ baseOptions = configuration.baseOptions;
30095
+ }
30096
+
30097
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30098
+ const localVarHeaderParameter = {} as any;
30099
+ const localVarQueryParameter = {} as any;
30100
+
30101
+ // authentication BearerAuth required
30102
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
30103
+
30104
+
30105
+
30106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30108
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30109
+
30110
+ return {
30111
+ url: toPathString(localVarUrlObj),
30112
+ options: localVarRequestOptions,
30113
+ };
30114
+ },
30115
+ /**
30116
+ * Retrieves a paginated list of receipts for the organization
30117
+ * @summary List receipts
30118
+ * @param {number} [page] Page number (default: 1)
30119
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
30120
+ * @param {*} [options] Override http request option.
30121
+ * @throws {RequiredError}
30122
+ */
30123
+ adminBillingReceiptsGet: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30124
+ const localVarPath = `/admin/billing/receipts`;
30125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30127
+ let baseOptions;
30128
+ if (configuration) {
30129
+ baseOptions = configuration.baseOptions;
30130
+ }
30131
+
30132
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30133
+ const localVarHeaderParameter = {} as any;
30134
+ const localVarQueryParameter = {} as any;
30135
+
30136
+ // authentication BearerAuth required
30137
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
30138
+
30139
+ if (page !== undefined) {
30140
+ localVarQueryParameter['page'] = page;
30141
+ }
30142
+
30143
+ if (pageSize !== undefined) {
30144
+ localVarQueryParameter['page_size'] = pageSize;
30145
+ }
30146
+
30147
+
30148
+
30149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30152
+
30153
+ return {
30154
+ url: toPathString(localVarUrlObj),
30155
+ options: localVarRequestOptions,
30156
+ };
30157
+ },
30158
+ /**
30159
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
30160
+ * @summary Download receipt PDF
30161
+ * @param {number} id Receipt ID
30162
+ * @param {*} [options] Override http request option.
30163
+ * @throws {RequiredError}
30164
+ */
30165
+ adminBillingReceiptsIdDownloadGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30166
+ // verify required parameter 'id' is not null or undefined
30167
+ assertParamExists('adminBillingReceiptsIdDownloadGet', 'id', id)
30168
+ const localVarPath = `/admin/billing/receipts/{id}/download`
30169
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
30170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30172
+ let baseOptions;
30173
+ if (configuration) {
30174
+ baseOptions = configuration.baseOptions;
30175
+ }
30176
+
30177
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30178
+ const localVarHeaderParameter = {} as any;
30179
+ const localVarQueryParameter = {} as any;
30180
+
30181
+ // authentication BearerAuth required
30182
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
30183
+
30184
+
30185
+
30186
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30188
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30189
+
30190
+ return {
30191
+ url: toPathString(localVarUrlObj),
30192
+ options: localVarRequestOptions,
30193
+ };
30194
+ },
30195
+ /**
30196
+ * Retrieves a single receipt by its ID
30197
+ * @summary Get receipt by ID
30198
+ * @param {number} id Receipt ID
30199
+ * @param {*} [options] Override http request option.
30200
+ * @throws {RequiredError}
30201
+ */
30202
+ adminBillingReceiptsIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30203
+ // verify required parameter 'id' is not null or undefined
30204
+ assertParamExists('adminBillingReceiptsIdGet', 'id', id)
30205
+ const localVarPath = `/admin/billing/receipts/{id}`
30206
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
30207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30209
+ let baseOptions;
30210
+ if (configuration) {
30211
+ baseOptions = configuration.baseOptions;
30212
+ }
30213
+
30214
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30215
+ const localVarHeaderParameter = {} as any;
30216
+ const localVarQueryParameter = {} as any;
30217
+
30218
+ // authentication BearerAuth required
30219
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
30220
+
30221
+
30222
+
29112
30223
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29113
30224
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29114
30225
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -29401,7 +30512,7 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29401
30512
  * @param {*} [options] Override http request option.
29402
30513
  * @throws {RequiredError}
29403
30514
  */
29404
- async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice>> {
30515
+ async adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
29405
30516
  const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options);
29406
30517
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29407
30518
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingInvoicesGenerateForOrderOrderIdPost']?.[localVarOperationServerIndex]?.url;
@@ -29608,6 +30719,71 @@ export const BillingDashboardApiFp = function(configuration?: Configuration) {
29608
30719
  const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingPaymentTransactionsGet']?.[localVarOperationServerIndex]?.url;
29609
30720
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29610
30721
  },
30722
+ /**
30723
+ * Generates receipts for all completed payments without receipts in the organization
30724
+ * @summary Auto-generate receipts for organization
30725
+ * @param {*} [options] Override http request option.
30726
+ * @throws {RequiredError}
30727
+ */
30728
+ async adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsAutoGeneratePost(options);
30730
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30731
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsAutoGeneratePost']?.[localVarOperationServerIndex]?.url;
30732
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30733
+ },
30734
+ /**
30735
+ * Generates a receipt for a completed payment
30736
+ * @summary Generate receipt from payment
30737
+ * @param {number} paymentId Payment ID
30738
+ * @param {*} [options] Override http request option.
30739
+ * @throws {RequiredError}
30740
+ */
30741
+ async adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>> {
30742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options);
30743
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30744
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGeneratePaymentIdPost']?.[localVarOperationServerIndex]?.url;
30745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30746
+ },
30747
+ /**
30748
+ * Retrieves a paginated list of receipts for the organization
30749
+ * @summary List receipts
30750
+ * @param {number} [page] Page number (default: 1)
30751
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
30752
+ * @param {*} [options] Override http request option.
30753
+ * @throws {RequiredError}
30754
+ */
30755
+ async adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30756
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsGet(page, pageSize, options);
30757
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30758
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsGet']?.[localVarOperationServerIndex]?.url;
30759
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30760
+ },
30761
+ /**
30762
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
30763
+ * @summary Download receipt PDF
30764
+ * @param {number} id Receipt ID
30765
+ * @param {*} [options] Override http request option.
30766
+ * @throws {RequiredError}
30767
+ */
30768
+ async adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
30769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsIdDownloadGet(id, options);
30770
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30771
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdDownloadGet']?.[localVarOperationServerIndex]?.url;
30772
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30773
+ },
30774
+ /**
30775
+ * Retrieves a single receipt by its ID
30776
+ * @summary Get receipt by ID
30777
+ * @param {number} id Receipt ID
30778
+ * @param {*} [options] Override http request option.
30779
+ * @throws {RequiredError}
30780
+ */
30781
+ async adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesReceipt>> {
30782
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminBillingReceiptsIdGet(id, options);
30783
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30784
+ const localVarOperationServerBasePath = operationServerMap['BillingDashboardApi.adminBillingReceiptsIdGet']?.[localVarOperationServerIndex]?.url;
30785
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30786
+ },
29611
30787
  /**
29612
30788
  * Returns saved payment cards from Razorpay for the organization
29613
30789
  * @summary Get saved payment cards
@@ -29779,7 +30955,7 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29779
30955
  * @param {*} [options] Override http request option.
29780
30956
  * @throws {RequiredError}
29781
30957
  */
29782
- adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseArrayDataTypesInvoice> {
30958
+ adminBillingInvoicesGenerateForOrderOrderIdPost(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
29783
30959
  return localVarFp.adminBillingInvoicesGenerateForOrderOrderIdPost(orderId, options).then((request) => request(axios, basePath));
29784
30960
  },
29785
30961
  /**
@@ -29941,6 +31117,56 @@ export const BillingDashboardApiFactory = function (configuration?: Configuratio
29941
31117
  adminBillingPaymentTransactionsGet(orgId?: number, startDate?: string, endDate?: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
29942
31118
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
29943
31119
  },
31120
+ /**
31121
+ * Generates receipts for all completed payments without receipts in the organization
31122
+ * @summary Auto-generate receipts for organization
31123
+ * @param {*} [options] Override http request option.
31124
+ * @throws {RequiredError}
31125
+ */
31126
+ adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31127
+ return localVarFp.adminBillingReceiptsAutoGeneratePost(options).then((request) => request(axios, basePath));
31128
+ },
31129
+ /**
31130
+ * Generates a receipt for a completed payment
31131
+ * @summary Generate receipt from payment
31132
+ * @param {number} paymentId Payment ID
31133
+ * @param {*} [options] Override http request option.
31134
+ * @throws {RequiredError}
31135
+ */
31136
+ adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt> {
31137
+ return localVarFp.adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
31138
+ },
31139
+ /**
31140
+ * Retrieves a paginated list of receipts for the organization
31141
+ * @summary List receipts
31142
+ * @param {number} [page] Page number (default: 1)
31143
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
31144
+ * @param {*} [options] Override http request option.
31145
+ * @throws {RequiredError}
31146
+ */
31147
+ adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31148
+ return localVarFp.adminBillingReceiptsGet(page, pageSize, options).then((request) => request(axios, basePath));
31149
+ },
31150
+ /**
31151
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
31152
+ * @summary Download receipt PDF
31153
+ * @param {number} id Receipt ID
31154
+ * @param {*} [options] Override http request option.
31155
+ * @throws {RequiredError}
31156
+ */
31157
+ adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31158
+ return localVarFp.adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(axios, basePath));
31159
+ },
31160
+ /**
31161
+ * Retrieves a single receipt by its ID
31162
+ * @summary Get receipt by ID
31163
+ * @param {number} id Receipt ID
31164
+ * @param {*} [options] Override http request option.
31165
+ * @throws {RequiredError}
31166
+ */
31167
+ adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesReceipt> {
31168
+ return localVarFp.adminBillingReceiptsIdGet(id, options).then((request) => request(axios, basePath));
31169
+ },
29944
31170
  /**
29945
31171
  * Returns saved payment cards from Razorpay for the organization
29946
31172
  * @summary Get saved payment cards
@@ -30318,6 +31544,66 @@ export class BillingDashboardApi extends BaseAPI {
30318
31544
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
30319
31545
  }
30320
31546
 
31547
+ /**
31548
+ * Generates receipts for all completed payments without receipts in the organization
31549
+ * @summary Auto-generate receipts for organization
31550
+ * @param {*} [options] Override http request option.
31551
+ * @throws {RequiredError}
31552
+ * @memberof BillingDashboardApi
31553
+ */
31554
+ public adminBillingReceiptsAutoGeneratePost(options?: RawAxiosRequestConfig) {
31555
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
31556
+ }
31557
+
31558
+ /**
31559
+ * Generates a receipt for a completed payment
31560
+ * @summary Generate receipt from payment
31561
+ * @param {number} paymentId Payment ID
31562
+ * @param {*} [options] Override http request option.
31563
+ * @throws {RequiredError}
31564
+ * @memberof BillingDashboardApi
31565
+ */
31566
+ public adminBillingReceiptsGeneratePaymentIdPost(paymentId: number, options?: RawAxiosRequestConfig) {
31567
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
31568
+ }
31569
+
31570
+ /**
31571
+ * Retrieves a paginated list of receipts for the organization
31572
+ * @summary List receipts
31573
+ * @param {number} [page] Page number (default: 1)
31574
+ * @param {number} [pageSize] Page size (default: 20, max: 100)
31575
+ * @param {*} [options] Override http request option.
31576
+ * @throws {RequiredError}
31577
+ * @memberof BillingDashboardApi
31578
+ */
31579
+ public adminBillingReceiptsGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
31580
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
31581
+ }
31582
+
31583
+ /**
31584
+ * Returns a receipt as a base64-encoded PDF blob for frontend download. PDFs are cached in S3 for performance.
31585
+ * @summary Download receipt PDF
31586
+ * @param {number} id Receipt ID
31587
+ * @param {*} [options] Override http request option.
31588
+ * @throws {RequiredError}
31589
+ * @memberof BillingDashboardApi
31590
+ */
31591
+ public adminBillingReceiptsIdDownloadGet(id: number, options?: RawAxiosRequestConfig) {
31592
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdDownloadGet(id, options).then((request) => request(this.axios, this.basePath));
31593
+ }
31594
+
31595
+ /**
31596
+ * Retrieves a single receipt by its ID
31597
+ * @summary Get receipt by ID
31598
+ * @param {number} id Receipt ID
31599
+ * @param {*} [options] Override http request option.
31600
+ * @throws {RequiredError}
31601
+ * @memberof BillingDashboardApi
31602
+ */
31603
+ public adminBillingReceiptsIdGet(id: number, options?: RawAxiosRequestConfig) {
31604
+ return BillingDashboardApiFp(this.configuration).adminBillingReceiptsIdGet(id, options).then((request) => request(this.axios, this.basePath));
31605
+ }
31606
+
30321
31607
  /**
30322
31608
  * Returns saved payment cards from Razorpay for the organization
30323
31609
  * @summary Get saved payment cards
@@ -30465,6 +31751,184 @@ export class CommonApi extends BaseAPI {
30465
31751
 
30466
31752
 
30467
31753
 
31754
+ /**
31755
+ * CompanyConfigApi - axios parameter creator
31756
+ * @export
31757
+ */
31758
+ export const CompanyConfigApiAxiosParamCreator = function (configuration?: Configuration) {
31759
+ return {
31760
+ /**
31761
+ * Retrieves company information used on invoices and receipts
31762
+ * @summary Get company configuration
31763
+ * @param {*} [options] Override http request option.
31764
+ * @throws {RequiredError}
31765
+ */
31766
+ adminV1ConfigCompanyGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31767
+ const localVarPath = `/admin/v1/config/company`;
31768
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31769
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31770
+ let baseOptions;
31771
+ if (configuration) {
31772
+ baseOptions = configuration.baseOptions;
31773
+ }
31774
+
31775
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31776
+ const localVarHeaderParameter = {} as any;
31777
+ const localVarQueryParameter = {} as any;
31778
+
31779
+ // authentication BearerAuth required
31780
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
31781
+
31782
+
31783
+
31784
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31785
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31786
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31787
+
31788
+ return {
31789
+ url: toPathString(localVarUrlObj),
31790
+ options: localVarRequestOptions,
31791
+ };
31792
+ },
31793
+ /**
31794
+ * Updates company information used on invoices and receipts
31795
+ * @summary Update company configuration
31796
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
31797
+ * @param {*} [options] Override http request option.
31798
+ * @throws {RequiredError}
31799
+ */
31800
+ adminV1ConfigCompanyPut: async (dataTypesCompanyConfigRequest: DataTypesCompanyConfigRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31801
+ // verify required parameter 'dataTypesCompanyConfigRequest' is not null or undefined
31802
+ assertParamExists('adminV1ConfigCompanyPut', 'dataTypesCompanyConfigRequest', dataTypesCompanyConfigRequest)
31803
+ const localVarPath = `/admin/v1/config/company`;
31804
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31805
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31806
+ let baseOptions;
31807
+ if (configuration) {
31808
+ baseOptions = configuration.baseOptions;
31809
+ }
31810
+
31811
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
31812
+ const localVarHeaderParameter = {} as any;
31813
+ const localVarQueryParameter = {} as any;
31814
+
31815
+ // authentication BearerAuth required
31816
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
31817
+
31818
+
31819
+
31820
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31821
+
31822
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31823
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31824
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31825
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCompanyConfigRequest, localVarRequestOptions, configuration)
31826
+
31827
+ return {
31828
+ url: toPathString(localVarUrlObj),
31829
+ options: localVarRequestOptions,
31830
+ };
31831
+ },
31832
+ }
31833
+ };
31834
+
31835
+ /**
31836
+ * CompanyConfigApi - functional programming interface
31837
+ * @export
31838
+ */
31839
+ export const CompanyConfigApiFp = function(configuration?: Configuration) {
31840
+ const localVarAxiosParamCreator = CompanyConfigApiAxiosParamCreator(configuration)
31841
+ return {
31842
+ /**
31843
+ * Retrieves company information used on invoices and receipts
31844
+ * @summary Get company configuration
31845
+ * @param {*} [options] Override http request option.
31846
+ * @throws {RequiredError}
31847
+ */
31848
+ async adminV1ConfigCompanyGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesCompanyConfig>> {
31849
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1ConfigCompanyGet(options);
31850
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31851
+ const localVarOperationServerBasePath = operationServerMap['CompanyConfigApi.adminV1ConfigCompanyGet']?.[localVarOperationServerIndex]?.url;
31852
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31853
+ },
31854
+ /**
31855
+ * Updates company information used on invoices and receipts
31856
+ * @summary Update company configuration
31857
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
31858
+ * @param {*} [options] Override http request option.
31859
+ * @throws {RequiredError}
31860
+ */
31861
+ async adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest: DataTypesCompanyConfigRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
31862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options);
31863
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31864
+ const localVarOperationServerBasePath = operationServerMap['CompanyConfigApi.adminV1ConfigCompanyPut']?.[localVarOperationServerIndex]?.url;
31865
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31866
+ },
31867
+ }
31868
+ };
31869
+
31870
+ /**
31871
+ * CompanyConfigApi - factory interface
31872
+ * @export
31873
+ */
31874
+ export const CompanyConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
31875
+ const localVarFp = CompanyConfigApiFp(configuration)
31876
+ return {
31877
+ /**
31878
+ * Retrieves company information used on invoices and receipts
31879
+ * @summary Get company configuration
31880
+ * @param {*} [options] Override http request option.
31881
+ * @throws {RequiredError}
31882
+ */
31883
+ adminV1ConfigCompanyGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesCompanyConfig> {
31884
+ return localVarFp.adminV1ConfigCompanyGet(options).then((request) => request(axios, basePath));
31885
+ },
31886
+ /**
31887
+ * Updates company information used on invoices and receipts
31888
+ * @summary Update company configuration
31889
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
31890
+ * @param {*} [options] Override http request option.
31891
+ * @throws {RequiredError}
31892
+ */
31893
+ adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest: DataTypesCompanyConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
31894
+ return localVarFp.adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options).then((request) => request(axios, basePath));
31895
+ },
31896
+ };
31897
+ };
31898
+
31899
+ /**
31900
+ * CompanyConfigApi - object-oriented interface
31901
+ * @export
31902
+ * @class CompanyConfigApi
31903
+ * @extends {BaseAPI}
31904
+ */
31905
+ export class CompanyConfigApi extends BaseAPI {
31906
+ /**
31907
+ * Retrieves company information used on invoices and receipts
31908
+ * @summary Get company configuration
31909
+ * @param {*} [options] Override http request option.
31910
+ * @throws {RequiredError}
31911
+ * @memberof CompanyConfigApi
31912
+ */
31913
+ public adminV1ConfigCompanyGet(options?: RawAxiosRequestConfig) {
31914
+ return CompanyConfigApiFp(this.configuration).adminV1ConfigCompanyGet(options).then((request) => request(this.axios, this.basePath));
31915
+ }
31916
+
31917
+ /**
31918
+ * Updates company information used on invoices and receipts
31919
+ * @summary Update company configuration
31920
+ * @param {DataTypesCompanyConfigRequest} dataTypesCompanyConfigRequest Company config
31921
+ * @param {*} [options] Override http request option.
31922
+ * @throws {RequiredError}
31923
+ * @memberof CompanyConfigApi
31924
+ */
31925
+ public adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest: DataTypesCompanyConfigRequest, options?: RawAxiosRequestConfig) {
31926
+ return CompanyConfigApiFp(this.configuration).adminV1ConfigCompanyPut(dataTypesCompanyConfigRequest, options).then((request) => request(this.axios, this.basePath));
31927
+ }
31928
+ }
31929
+
31930
+
31931
+
30468
31932
  /**
30469
31933
  * ConnectorsApi - axios parameter creator
30470
31934
  * @export
@@ -39318,10 +40782,22 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
39318
40782
  * @summary List orders (paginated)
39319
40783
  * @param {number} [page] Page number (default 1)
39320
40784
  * @param {number} [pageSize] Page size (default 20, max 100)
39321
- * @param {*} [options] Override http request option.
39322
- * @throws {RequiredError}
39323
- */
39324
- adminPaymentGatewayOrdersGet: async (page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40785
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
40786
+ * @param {string} [statuses] Comma-separated statuses to include
40787
+ * @param {string} [paymentTypes] Comma-separated payment types to include
40788
+ * @param {string} [gateways] Comma-separated gateways to include
40789
+ * @param {string} [currencies] Comma-separated currencies to include
40790
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
40791
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
40792
+ * @param {number} [amountMin] Minimum order amount
40793
+ * @param {number} [amountMax] Maximum order amount
40794
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
40795
+ * @param {string} [sortBy] Legacy single-field sort
40796
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
40797
+ * @param {*} [options] Override http request option.
40798
+ * @throws {RequiredError}
40799
+ */
40800
+ adminPaymentGatewayOrdersGet: async (page?: number, pageSize?: number, search?: string, statuses?: string, paymentTypes?: string, gateways?: string, currencies?: string, createdFrom?: string, createdTo?: string, amountMin?: number, amountMax?: number, sort?: string, sortBy?: string, sortOrder?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39325
40801
  const localVarPath = `/admin/payment-gateway/orders`;
39326
40802
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
39327
40803
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -39345,6 +40821,54 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
39345
40821
  localVarQueryParameter['page_size'] = pageSize;
39346
40822
  }
39347
40823
 
40824
+ if (search !== undefined) {
40825
+ localVarQueryParameter['search'] = search;
40826
+ }
40827
+
40828
+ if (statuses !== undefined) {
40829
+ localVarQueryParameter['statuses'] = statuses;
40830
+ }
40831
+
40832
+ if (paymentTypes !== undefined) {
40833
+ localVarQueryParameter['payment_types'] = paymentTypes;
40834
+ }
40835
+
40836
+ if (gateways !== undefined) {
40837
+ localVarQueryParameter['gateways'] = gateways;
40838
+ }
40839
+
40840
+ if (currencies !== undefined) {
40841
+ localVarQueryParameter['currencies'] = currencies;
40842
+ }
40843
+
40844
+ if (createdFrom !== undefined) {
40845
+ localVarQueryParameter['created_from'] = createdFrom;
40846
+ }
40847
+
40848
+ if (createdTo !== undefined) {
40849
+ localVarQueryParameter['created_to'] = createdTo;
40850
+ }
40851
+
40852
+ if (amountMin !== undefined) {
40853
+ localVarQueryParameter['amount_min'] = amountMin;
40854
+ }
40855
+
40856
+ if (amountMax !== undefined) {
40857
+ localVarQueryParameter['amount_max'] = amountMax;
40858
+ }
40859
+
40860
+ if (sort !== undefined) {
40861
+ localVarQueryParameter['sort'] = sort;
40862
+ }
40863
+
40864
+ if (sortBy !== undefined) {
40865
+ localVarQueryParameter['sort_by'] = sortBy;
40866
+ }
40867
+
40868
+ if (sortOrder !== undefined) {
40869
+ localVarQueryParameter['sort_order'] = sortOrder;
40870
+ }
40871
+
39348
40872
 
39349
40873
 
39350
40874
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -39740,11 +41264,23 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
39740
41264
  * @summary List orders (paginated)
39741
41265
  * @param {number} [page] Page number (default 1)
39742
41266
  * @param {number} [pageSize] Page size (default 20, max 100)
41267
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
41268
+ * @param {string} [statuses] Comma-separated statuses to include
41269
+ * @param {string} [paymentTypes] Comma-separated payment types to include
41270
+ * @param {string} [gateways] Comma-separated gateways to include
41271
+ * @param {string} [currencies] Comma-separated currencies to include
41272
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
41273
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
41274
+ * @param {number} [amountMin] Minimum order amount
41275
+ * @param {number} [amountMax] Maximum order amount
41276
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
41277
+ * @param {string} [sortBy] Legacy single-field sort
41278
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
39743
41279
  * @param {*} [options] Override http request option.
39744
41280
  * @throws {RequiredError}
39745
41281
  */
39746
- async adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOrdersListResponse>> {
39747
- const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayOrdersGet(page, pageSize, options);
41282
+ async adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, search?: string, statuses?: string, paymentTypes?: string, gateways?: string, currencies?: string, createdFrom?: string, createdTo?: string, amountMin?: number, amountMax?: number, sort?: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOrdersListResponse>> {
41283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options);
39748
41284
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39749
41285
  const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersGet']?.[localVarOperationServerIndex]?.url;
39750
41286
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -39909,11 +41445,23 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
39909
41445
  * @summary List orders (paginated)
39910
41446
  * @param {number} [page] Page number (default 1)
39911
41447
  * @param {number} [pageSize] Page size (default 20, max 100)
41448
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
41449
+ * @param {string} [statuses] Comma-separated statuses to include
41450
+ * @param {string} [paymentTypes] Comma-separated payment types to include
41451
+ * @param {string} [gateways] Comma-separated gateways to include
41452
+ * @param {string} [currencies] Comma-separated currencies to include
41453
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
41454
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
41455
+ * @param {number} [amountMin] Minimum order amount
41456
+ * @param {number} [amountMax] Maximum order amount
41457
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
41458
+ * @param {string} [sortBy] Legacy single-field sort
41459
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
39912
41460
  * @param {*} [options] Override http request option.
39913
41461
  * @throws {RequiredError}
39914
41462
  */
39915
- adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOrdersListResponse> {
39916
- return localVarFp.adminPaymentGatewayOrdersGet(page, pageSize, options).then((request) => request(axios, basePath));
41463
+ adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, search?: string, statuses?: string, paymentTypes?: string, gateways?: string, currencies?: string, createdFrom?: string, createdTo?: string, amountMin?: number, amountMax?: number, sort?: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOrdersListResponse> {
41464
+ return localVarFp.adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options).then((request) => request(axios, basePath));
39917
41465
  },
39918
41466
  /**
39919
41467
  * Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
@@ -40054,12 +41602,24 @@ export class PaymentGatewayApi extends BaseAPI {
40054
41602
  * @summary List orders (paginated)
40055
41603
  * @param {number} [page] Page number (default 1)
40056
41604
  * @param {number} [pageSize] Page size (default 20, max 100)
41605
+ * @param {string} [search] Search by order ID, gateway references, amount, or customer details
41606
+ * @param {string} [statuses] Comma-separated statuses to include
41607
+ * @param {string} [paymentTypes] Comma-separated payment types to include
41608
+ * @param {string} [gateways] Comma-separated gateways to include
41609
+ * @param {string} [currencies] Comma-separated currencies to include
41610
+ * @param {string} [createdFrom] Created_at filter (RFC3339 or YYYY-MM-DD)
41611
+ * @param {string} [createdTo] Created_at upper bound (inclusive, RFC3339 or YYYY-MM-DD)
41612
+ * @param {number} [amountMin] Minimum order amount
41613
+ * @param {number} [amountMax] Maximum order amount
41614
+ * @param {string} [sort] Multi-field sort (e.g. created_at:desc,amount:asc or -created_at,+amount)
41615
+ * @param {string} [sortBy] Legacy single-field sort
41616
+ * @param {string} [sortOrder] Sort direction for sort_by (asc or desc)
40057
41617
  * @param {*} [options] Override http request option.
40058
41618
  * @throws {RequiredError}
40059
41619
  * @memberof PaymentGatewayApi
40060
41620
  */
40061
- public adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
40062
- return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersGet(page, pageSize, options).then((request) => request(this.axios, this.basePath));
41621
+ public adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, search?: string, statuses?: string, paymentTypes?: string, gateways?: string, currencies?: string, createdFrom?: string, createdTo?: string, amountMin?: number, amountMax?: number, sort?: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) {
41622
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayOrdersGet(page, pageSize, search, statuses, paymentTypes, gateways, currencies, createdFrom, createdTo, amountMin, amountMax, sort, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
40063
41623
  }
40064
41624
 
40065
41625
  /**