@seekora-ai/admin-api 1.1.6 → 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/README.md +6 -2
- package/api.ts +936 -11
- package/dist/api.d.ts +797 -9
- package/dist/api.js +273 -16
- package/dist/esm/api.d.ts +797 -9
- package/dist/esm/api.js +263 -10
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.7.tgz +0 -0
- package/seekora-ai-admin-api-1.1.6.tgz +0 -0
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'
|
|
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
|
*
|
|
@@ -8018,6 +8067,248 @@ export interface DataTypesCombinedSearchResult {
|
|
|
8018
8067
|
*/
|
|
8019
8068
|
'widget'?: DataTypesWidgetSearchResult;
|
|
8020
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
|
+
}
|
|
8021
8312
|
/**
|
|
8022
8313
|
*
|
|
8023
8314
|
* @export
|
|
@@ -8315,6 +8606,54 @@ export interface DataTypesCreateOrganizationRequest {
|
|
|
8315
8606
|
* @memberof DataTypesCreateOrganizationRequest
|
|
8316
8607
|
*/
|
|
8317
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;
|
|
8318
8657
|
/**
|
|
8319
8658
|
*
|
|
8320
8659
|
* @type {string}
|
|
@@ -8339,6 +8678,18 @@ export interface DataTypesCreateOrganizationRequest {
|
|
|
8339
8678
|
* @memberof DataTypesCreateOrganizationRequest
|
|
8340
8679
|
*/
|
|
8341
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;
|
|
8342
8693
|
/**
|
|
8343
8694
|
*
|
|
8344
8695
|
* @type {Array<number>}
|
|
@@ -8363,12 +8714,24 @@ export interface DataTypesCreateOrganizationRequest {
|
|
|
8363
8714
|
* @memberof DataTypesCreateOrganizationRequest
|
|
8364
8715
|
*/
|
|
8365
8716
|
'OrgName'?: string;
|
|
8717
|
+
/**
|
|
8718
|
+
*
|
|
8719
|
+
* @type {string}
|
|
8720
|
+
* @memberof DataTypesCreateOrganizationRequest
|
|
8721
|
+
*/
|
|
8722
|
+
'PAN'?: string;
|
|
8366
8723
|
/**
|
|
8367
8724
|
*
|
|
8368
8725
|
* @type {string}
|
|
8369
8726
|
* @memberof DataTypesCreateOrganizationRequest
|
|
8370
8727
|
*/
|
|
8371
8728
|
'PhoneNo'?: string;
|
|
8729
|
+
/**
|
|
8730
|
+
*
|
|
8731
|
+
* @type {string}
|
|
8732
|
+
* @memberof DataTypesCreateOrganizationRequest
|
|
8733
|
+
*/
|
|
8734
|
+
'PlaceOfSupply'?: string;
|
|
8372
8735
|
/**
|
|
8373
8736
|
*
|
|
8374
8737
|
* @type {string}
|
|
@@ -8381,6 +8744,36 @@ export interface DataTypesCreateOrganizationRequest {
|
|
|
8381
8744
|
* @memberof DataTypesCreateOrganizationRequest
|
|
8382
8745
|
*/
|
|
8383
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;
|
|
8384
8777
|
/**
|
|
8385
8778
|
*
|
|
8386
8779
|
* @type {string}
|
|
@@ -11570,6 +11963,12 @@ export interface DataTypesInvoice {
|
|
|
11570
11963
|
* @memberof DataTypesInvoice
|
|
11571
11964
|
*/
|
|
11572
11965
|
'due_date'?: string;
|
|
11966
|
+
/**
|
|
11967
|
+
* Download helpers
|
|
11968
|
+
* @type {string}
|
|
11969
|
+
* @memberof DataTypesInvoice
|
|
11970
|
+
*/
|
|
11971
|
+
'invoice_download_path'?: string;
|
|
11573
11972
|
/**
|
|
11574
11973
|
*
|
|
11575
11974
|
* @type {string}
|
|
@@ -11582,6 +11981,12 @@ export interface DataTypesInvoice {
|
|
|
11582
11981
|
* @memberof DataTypesInvoice
|
|
11583
11982
|
*/
|
|
11584
11983
|
'invoice_number'?: string;
|
|
11984
|
+
/**
|
|
11985
|
+
*
|
|
11986
|
+
* @type {string}
|
|
11987
|
+
* @memberof DataTypesInvoice
|
|
11988
|
+
*/
|
|
11989
|
+
'invoice_pdf_url'?: string;
|
|
11585
11990
|
/**
|
|
11586
11991
|
*
|
|
11587
11992
|
* @type {string}
|
|
@@ -11654,6 +12059,30 @@ export interface DataTypesInvoice {
|
|
|
11654
12059
|
* @memberof DataTypesInvoice
|
|
11655
12060
|
*/
|
|
11656
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;
|
|
11657
12086
|
/**
|
|
11658
12087
|
* \"draft\", \"sent\", \"paid\", \"overdue\", \"cancelled\"
|
|
11659
12088
|
* @type {string}
|
|
@@ -13742,6 +14171,54 @@ export interface DataTypesOrganization {
|
|
|
13742
14171
|
* @memberof DataTypesOrganization
|
|
13743
14172
|
*/
|
|
13744
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;
|
|
13745
14222
|
/**
|
|
13746
14223
|
* Nullable field
|
|
13747
14224
|
* @type {string}
|
|
@@ -13778,6 +14255,18 @@ export interface DataTypesOrganization {
|
|
|
13778
14255
|
* @memberof DataTypesOrganization
|
|
13779
14256
|
*/
|
|
13780
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;
|
|
13781
14270
|
/**
|
|
13782
14271
|
* Nullable BOOLEAN field
|
|
13783
14272
|
* @type {boolean}
|
|
@@ -13826,12 +14315,36 @@ export interface DataTypesOrganization {
|
|
|
13826
14315
|
* @memberof DataTypesOrganization
|
|
13827
14316
|
*/
|
|
13828
14317
|
'OrgName'?: string;
|
|
14318
|
+
/**
|
|
14319
|
+
* Permanent Account Number (India)
|
|
14320
|
+
* @type {string}
|
|
14321
|
+
* @memberof DataTypesOrganization
|
|
14322
|
+
*/
|
|
14323
|
+
'PAN'?: string;
|
|
13829
14324
|
/**
|
|
13830
14325
|
* Nullable field
|
|
13831
14326
|
* @type {string}
|
|
13832
14327
|
* @memberof DataTypesOrganization
|
|
13833
14328
|
*/
|
|
13834
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;
|
|
13835
14348
|
/**
|
|
13836
14349
|
* Nullable field
|
|
13837
14350
|
* @type {string}
|
|
@@ -13844,6 +14357,42 @@ export interface DataTypesOrganization {
|
|
|
13844
14357
|
* @memberof DataTypesOrganization
|
|
13845
14358
|
*/
|
|
13846
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;
|
|
13847
14396
|
/**
|
|
13848
14397
|
* Nullable field
|
|
13849
14398
|
* @type {string}
|
|
@@ -18108,6 +18657,54 @@ export interface DataTypesUpdateOrganizationRequest {
|
|
|
18108
18657
|
* @memberof DataTypesUpdateOrganizationRequest
|
|
18109
18658
|
*/
|
|
18110
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;
|
|
18111
18708
|
/**
|
|
18112
18709
|
*
|
|
18113
18710
|
* @type {string}
|
|
@@ -18132,6 +18729,18 @@ export interface DataTypesUpdateOrganizationRequest {
|
|
|
18132
18729
|
* @memberof DataTypesUpdateOrganizationRequest
|
|
18133
18730
|
*/
|
|
18134
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;
|
|
18135
18744
|
/**
|
|
18136
18745
|
*
|
|
18137
18746
|
* @type {string}
|
|
@@ -18144,12 +18753,24 @@ export interface DataTypesUpdateOrganizationRequest {
|
|
|
18144
18753
|
* @memberof DataTypesUpdateOrganizationRequest
|
|
18145
18754
|
*/
|
|
18146
18755
|
'OrgName': string;
|
|
18756
|
+
/**
|
|
18757
|
+
*
|
|
18758
|
+
* @type {string}
|
|
18759
|
+
* @memberof DataTypesUpdateOrganizationRequest
|
|
18760
|
+
*/
|
|
18761
|
+
'PAN'?: string;
|
|
18147
18762
|
/**
|
|
18148
18763
|
*
|
|
18149
18764
|
* @type {string}
|
|
18150
18765
|
* @memberof DataTypesUpdateOrganizationRequest
|
|
18151
18766
|
*/
|
|
18152
18767
|
'PhoneNo'?: string;
|
|
18768
|
+
/**
|
|
18769
|
+
*
|
|
18770
|
+
* @type {string}
|
|
18771
|
+
* @memberof DataTypesUpdateOrganizationRequest
|
|
18772
|
+
*/
|
|
18773
|
+
'PlaceOfSupply'?: string;
|
|
18153
18774
|
/**
|
|
18154
18775
|
*
|
|
18155
18776
|
* @type {string}
|
|
@@ -18162,6 +18783,36 @@ export interface DataTypesUpdateOrganizationRequest {
|
|
|
18162
18783
|
* @memberof DataTypesUpdateOrganizationRequest
|
|
18163
18784
|
*/
|
|
18164
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;
|
|
18165
18816
|
/**
|
|
18166
18817
|
*
|
|
18167
18818
|
* @type {string}
|
|
@@ -31100,6 +31751,184 @@ export class CommonApi extends BaseAPI {
|
|
|
31100
31751
|
|
|
31101
31752
|
|
|
31102
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
|
+
|
|
31103
31932
|
/**
|
|
31104
31933
|
* ConnectorsApi - axios parameter creator
|
|
31105
31934
|
* @export
|
|
@@ -39953,10 +40782,22 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
39953
40782
|
* @summary List orders (paginated)
|
|
39954
40783
|
* @param {number} [page] Page number (default 1)
|
|
39955
40784
|
* @param {number} [pageSize] Page size (default 20, max 100)
|
|
39956
|
-
* @param {
|
|
39957
|
-
* @
|
|
39958
|
-
|
|
39959
|
-
|
|
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> => {
|
|
39960
40801
|
const localVarPath = `/admin/payment-gateway/orders`;
|
|
39961
40802
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39962
40803
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -39980,6 +40821,54 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration?: Conf
|
|
|
39980
40821
|
localVarQueryParameter['page_size'] = pageSize;
|
|
39981
40822
|
}
|
|
39982
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
|
+
|
|
39983
40872
|
|
|
39984
40873
|
|
|
39985
40874
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -40375,11 +41264,23 @@ export const PaymentGatewayApiFp = function(configuration?: Configuration) {
|
|
|
40375
41264
|
* @summary List orders (paginated)
|
|
40376
41265
|
* @param {number} [page] Page number (default 1)
|
|
40377
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)
|
|
40378
41279
|
* @param {*} [options] Override http request option.
|
|
40379
41280
|
* @throws {RequiredError}
|
|
40380
41281
|
*/
|
|
40381
|
-
async adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOrdersListResponse>> {
|
|
40382
|
-
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);
|
|
40383
41284
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40384
41285
|
const localVarOperationServerBasePath = operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersGet']?.[localVarOperationServerIndex]?.url;
|
|
40385
41286
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -40544,11 +41445,23 @@ export const PaymentGatewayApiFactory = function (configuration?: Configuration,
|
|
|
40544
41445
|
* @summary List orders (paginated)
|
|
40545
41446
|
* @param {number} [page] Page number (default 1)
|
|
40546
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)
|
|
40547
41460
|
* @param {*} [options] Override http request option.
|
|
40548
41461
|
* @throws {RequiredError}
|
|
40549
41462
|
*/
|
|
40550
|
-
adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOrdersListResponse> {
|
|
40551
|
-
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));
|
|
40552
41465
|
},
|
|
40553
41466
|
/**
|
|
40554
41467
|
* Returns order details, list of payment transactions for that order, and the latest invoice if available. Does not expose raw gateway secrets.
|
|
@@ -40689,12 +41602,24 @@ export class PaymentGatewayApi extends BaseAPI {
|
|
|
40689
41602
|
* @summary List orders (paginated)
|
|
40690
41603
|
* @param {number} [page] Page number (default 1)
|
|
40691
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)
|
|
40692
41617
|
* @param {*} [options] Override http request option.
|
|
40693
41618
|
* @throws {RequiredError}
|
|
40694
41619
|
* @memberof PaymentGatewayApi
|
|
40695
41620
|
*/
|
|
40696
|
-
public adminPaymentGatewayOrdersGet(page?: number, pageSize?: number, options?: RawAxiosRequestConfig) {
|
|
40697
|
-
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));
|
|
40698
41623
|
}
|
|
40699
41624
|
|
|
40700
41625
|
/**
|