electric-coop-api 0.1.83 → 0.1.85
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/.openapi-generator/FILES +12 -0
- package/README.md +2 -2
- package/dist/apis/AdminBillsApi.d.ts +5 -5
- package/dist/apis/AdminBillsApi.js +3 -2
- package/dist/apis/SettingsApi.d.ts +0 -20
- package/dist/apis/SettingsApi.js +0 -32
- package/dist/esm/apis/AdminBillsApi.d.ts +5 -5
- package/dist/esm/apis/AdminBillsApi.js +4 -3
- package/dist/esm/apis/SettingsApi.d.ts +0 -20
- package/dist/esm/apis/SettingsApi.js +0 -32
- package/dist/esm/models/IssueOrForBillDto.d.ts +38 -0
- package/dist/esm/models/IssueOrForBillDto.js +47 -0
- package/dist/esm/models/IssueOrForBillSuccessResponse.d.ts +45 -0
- package/dist/esm/models/IssueOrForBillSuccessResponse.js +50 -0
- package/dist/esm/models/OfficialReceiptPaymentMethodEnum.d.ts +28 -0
- package/dist/esm/models/OfficialReceiptPaymentMethodEnum.js +46 -0
- package/dist/esm/models/Tenant.d.ts +6 -8
- package/dist/esm/models/Tenant.js +6 -4
- package/dist/esm/models/TenantBillingIntegration.d.ts +52 -0
- package/dist/esm/models/TenantBillingIntegration.js +47 -0
- package/dist/esm/models/TenantFeaturesSettings.d.ts +50 -0
- package/dist/esm/models/TenantFeaturesSettings.js +47 -0
- package/dist/esm/models/TenantMeterReadingSettings.d.ts +44 -0
- package/dist/esm/models/TenantMeterReadingSettings.js +45 -0
- package/dist/esm/models/TenantOfficialReceiptSettings.d.ts +61 -0
- package/dist/esm/models/TenantOfficialReceiptSettings.js +54 -0
- package/dist/esm/models/TenantOrFooterSettings.d.ts +38 -0
- package/dist/esm/models/TenantOrFooterSettings.js +43 -0
- package/dist/esm/models/TenantOrIdentitySettings.d.ts +44 -0
- package/dist/esm/models/TenantOrIdentitySettings.js +45 -0
- package/dist/esm/models/TenantOrSeriesSettings.d.ts +62 -0
- package/dist/esm/models/TenantOrSeriesSettings.js +51 -0
- package/dist/esm/models/TenantOrShowFieldsSettings.d.ts +86 -0
- package/dist/esm/models/TenantOrShowFieldsSettings.js +59 -0
- package/dist/esm/models/TenantSettings.d.ts +77 -0
- package/dist/esm/models/TenantSettings.js +58 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/IssueOrForBillDto.d.ts +38 -0
- package/dist/models/IssueOrForBillDto.js +54 -0
- package/dist/models/IssueOrForBillSuccessResponse.d.ts +45 -0
- package/dist/models/IssueOrForBillSuccessResponse.js +57 -0
- package/dist/models/OfficialReceiptPaymentMethodEnum.d.ts +28 -0
- package/dist/models/OfficialReceiptPaymentMethodEnum.js +54 -0
- package/dist/models/Tenant.d.ts +6 -8
- package/dist/models/Tenant.js +6 -4
- package/dist/models/TenantBillingIntegration.d.ts +52 -0
- package/dist/models/TenantBillingIntegration.js +54 -0
- package/dist/models/TenantFeaturesSettings.d.ts +50 -0
- package/dist/models/TenantFeaturesSettings.js +54 -0
- package/dist/models/TenantMeterReadingSettings.d.ts +44 -0
- package/dist/models/TenantMeterReadingSettings.js +52 -0
- package/dist/models/TenantOfficialReceiptSettings.d.ts +61 -0
- package/dist/models/TenantOfficialReceiptSettings.js +61 -0
- package/dist/models/TenantOrFooterSettings.d.ts +38 -0
- package/dist/models/TenantOrFooterSettings.js +50 -0
- package/dist/models/TenantOrIdentitySettings.d.ts +44 -0
- package/dist/models/TenantOrIdentitySettings.js +52 -0
- package/dist/models/TenantOrSeriesSettings.d.ts +62 -0
- package/dist/models/TenantOrSeriesSettings.js +58 -0
- package/dist/models/TenantOrShowFieldsSettings.d.ts +86 -0
- package/dist/models/TenantOrShowFieldsSettings.js +66 -0
- package/dist/models/TenantSettings.d.ts +77 -0
- package/dist/models/TenantSettings.js +65 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/AdminBillsApi.ts +10 -6
- package/src/apis/SettingsApi.ts +0 -50
- package/src/models/IssueOrForBillDto.ts +75 -0
- package/src/models/IssueOrForBillSuccessResponse.ts +91 -0
- package/src/models/OfficialReceiptPaymentMethodEnum.ts +56 -0
- package/src/models/Tenant.ts +22 -8
- package/src/models/TenantBillingIntegration.ts +89 -0
- package/src/models/TenantFeaturesSettings.ts +89 -0
- package/src/models/TenantMeterReadingSettings.ts +81 -0
- package/src/models/TenantOfficialReceiptSettings.ts +133 -0
- package/src/models/TenantOrFooterSettings.ts +73 -0
- package/src/models/TenantOrIdentitySettings.ts +81 -0
- package/src/models/TenantOrSeriesSettings.ts +105 -0
- package/src/models/TenantOrShowFieldsSettings.ts +137 -0
- package/src/models/TenantSettings.ts +143 -0
- package/src/models/index.ts +12 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -120,6 +120,8 @@ src/models/ErrorResponseDtoMessage.ts
|
|
|
120
120
|
src/models/FieldRoleEnum.ts
|
|
121
121
|
src/models/InitiatePaymentDto.ts
|
|
122
122
|
src/models/InitiatePaymentResponse.ts
|
|
123
|
+
src/models/IssueOrForBillDto.ts
|
|
124
|
+
src/models/IssueOrForBillSuccessResponse.ts
|
|
123
125
|
src/models/LastReadingDto.ts
|
|
124
126
|
src/models/LinkConsumerAccountDto.ts
|
|
125
127
|
src/models/LoginDto.ts
|
|
@@ -152,6 +154,7 @@ src/models/NotificationTargetEnum.ts
|
|
|
152
154
|
src/models/NotificationTypeEnum.ts
|
|
153
155
|
src/models/NotificationUnreadCount.ts
|
|
154
156
|
src/models/NotificationUnreadCountResponseDto.ts
|
|
157
|
+
src/models/OfficialReceiptPaymentMethodEnum.ts
|
|
155
158
|
src/models/OfficialReceiptSettingsResponseDto.ts
|
|
156
159
|
src/models/OfficialReceiptSettingsSuccessResponse.ts
|
|
157
160
|
src/models/OrFooterResponseDto.ts
|
|
@@ -202,6 +205,15 @@ src/models/StaffUsersPaginatedResponse.ts
|
|
|
202
205
|
src/models/SubmitMeterReadingDto.ts
|
|
203
206
|
src/models/SwaggerEnumSchemas.ts
|
|
204
207
|
src/models/Tenant.ts
|
|
208
|
+
src/models/TenantBillingIntegration.ts
|
|
209
|
+
src/models/TenantFeaturesSettings.ts
|
|
210
|
+
src/models/TenantMeterReadingSettings.ts
|
|
211
|
+
src/models/TenantOfficialReceiptSettings.ts
|
|
212
|
+
src/models/TenantOrFooterSettings.ts
|
|
213
|
+
src/models/TenantOrIdentitySettings.ts
|
|
214
|
+
src/models/TenantOrSeriesSettings.ts
|
|
215
|
+
src/models/TenantOrShowFieldsSettings.ts
|
|
216
|
+
src/models/TenantSettings.ts
|
|
205
217
|
src/models/TenantSettingsResponseDto.ts
|
|
206
218
|
src/models/TenantSettingsSuccessResponse.ts
|
|
207
219
|
src/models/TenantStatusEnum.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.85
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install electric-coop-api@0.1.
|
|
39
|
+
npm install electric-coop-api@0.1.85 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BillStatusEnum, BillingDashboardStatsResponse, BillsAdminPaginatedResponse, BillsCalculationSuccessResponse, BillsSuccessResponse, CreateBillDto, PreviewBillDto, RecordPaymentDto, UpdateBillDto } from '../models/index';
|
|
13
|
+
import type { BillStatusEnum, BillingDashboardStatsResponse, BillsAdminPaginatedResponse, BillsCalculationSuccessResponse, BillsSuccessResponse, CreateBillDto, IssueOrForBillSuccessResponse, PreviewBillDto, RecordPaymentDto, UpdateBillDto } from '../models/index';
|
|
14
14
|
export interface CreateAdminBillRequest {
|
|
15
15
|
createBillDto: CreateBillDto;
|
|
16
16
|
}
|
|
@@ -152,11 +152,11 @@ export interface AdminBillsApiInterface {
|
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
* @memberof AdminBillsApiInterface
|
|
154
154
|
*/
|
|
155
|
-
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
155
|
+
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueOrForBillSuccessResponse>>;
|
|
156
156
|
/**
|
|
157
157
|
* Issue or retrieve Official Receipt number for a paid bill (idempotent)
|
|
158
158
|
*/
|
|
159
|
-
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
159
|
+
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueOrForBillSuccessResponse>;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
162
|
* @summary Preview bill calculation without saving (admin)
|
|
@@ -262,11 +262,11 @@ export declare class AdminBillsApi extends runtime.BaseAPI implements AdminBills
|
|
|
262
262
|
/**
|
|
263
263
|
* Issue or retrieve Official Receipt number for a paid bill (idempotent)
|
|
264
264
|
*/
|
|
265
|
-
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
265
|
+
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueOrForBillSuccessResponse>>;
|
|
266
266
|
/**
|
|
267
267
|
* Issue or retrieve Official Receipt number for a paid bill (idempotent)
|
|
268
268
|
*/
|
|
269
|
-
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
269
|
+
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueOrForBillSuccessResponse>;
|
|
270
270
|
/**
|
|
271
271
|
* Preview bill calculation without saving (admin)
|
|
272
272
|
*/
|
|
@@ -318,7 +318,7 @@ class AdminBillsApi extends runtime.BaseAPI {
|
|
|
318
318
|
headers: headerParameters,
|
|
319
319
|
query: queryParameters,
|
|
320
320
|
}, initOverrides);
|
|
321
|
-
return new runtime.
|
|
321
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IssueOrForBillSuccessResponseFromJSON)(jsonValue));
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
@@ -326,7 +326,8 @@ class AdminBillsApi extends runtime.BaseAPI {
|
|
|
326
326
|
*/
|
|
327
327
|
issueOrForBill(requestParameters, initOverrides) {
|
|
328
328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
-
yield this.issueOrForBillRaw(requestParameters, initOverrides);
|
|
329
|
+
const response = yield this.issueOrForBillRaw(requestParameters, initOverrides);
|
|
330
|
+
return yield response.value();
|
|
330
331
|
});
|
|
331
332
|
}
|
|
332
333
|
/**
|
|
@@ -48,18 +48,6 @@ export interface SettingsApiInterface {
|
|
|
48
48
|
* Get tenant settings
|
|
49
49
|
*/
|
|
50
50
|
getTenantSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantSettingsSuccessResponse>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @summary Issue the next OR number (increments the sequence)
|
|
54
|
-
* @param {*} [options] Override http request option.
|
|
55
|
-
* @throws {RequiredError}
|
|
56
|
-
* @memberof SettingsApiInterface
|
|
57
|
-
*/
|
|
58
|
-
issueOfficialReceiptNumberRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
-
/**
|
|
60
|
-
* Issue the next OR number (increments the sequence)
|
|
61
|
-
*/
|
|
62
|
-
issueOfficialReceiptNumber(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
63
51
|
/**
|
|
64
52
|
*
|
|
65
53
|
* @summary Update meter reading settings (billing window & due date grace days)
|
|
@@ -107,14 +95,6 @@ export declare class SettingsApi extends runtime.BaseAPI implements SettingsApiI
|
|
|
107
95
|
* Get tenant settings
|
|
108
96
|
*/
|
|
109
97
|
getTenantSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantSettingsSuccessResponse>;
|
|
110
|
-
/**
|
|
111
|
-
* Issue the next OR number (increments the sequence)
|
|
112
|
-
*/
|
|
113
|
-
issueOfficialReceiptNumberRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
114
|
-
/**
|
|
115
|
-
* Issue the next OR number (increments the sequence)
|
|
116
|
-
*/
|
|
117
|
-
issueOfficialReceiptNumber(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
98
|
/**
|
|
119
99
|
* Update meter reading settings (billing window & due date grace days)
|
|
120
100
|
*/
|
package/dist/apis/SettingsApi.js
CHANGED
|
@@ -95,38 +95,6 @@ class SettingsApi extends runtime.BaseAPI {
|
|
|
95
95
|
return yield response.value();
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
/**
|
|
99
|
-
* Issue the next OR number (increments the sequence)
|
|
100
|
-
*/
|
|
101
|
-
issueOfficialReceiptNumberRaw(initOverrides) {
|
|
102
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
-
const queryParameters = {};
|
|
104
|
-
const headerParameters = {};
|
|
105
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
-
const token = this.configuration.accessToken;
|
|
107
|
-
const tokenString = yield token("bearer", []);
|
|
108
|
-
if (tokenString) {
|
|
109
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
let urlPath = `/api/v1/settings/official-receipt/issue`;
|
|
113
|
-
const response = yield this.request({
|
|
114
|
-
path: urlPath,
|
|
115
|
-
method: 'POST',
|
|
116
|
-
headers: headerParameters,
|
|
117
|
-
query: queryParameters,
|
|
118
|
-
}, initOverrides);
|
|
119
|
-
return new runtime.VoidApiResponse(response);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Issue the next OR number (increments the sequence)
|
|
124
|
-
*/
|
|
125
|
-
issueOfficialReceiptNumber(initOverrides) {
|
|
126
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
yield this.issueOfficialReceiptNumberRaw(initOverrides);
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
98
|
/**
|
|
131
99
|
* Update meter reading settings (billing window & due date grace days)
|
|
132
100
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BillStatusEnum, BillingDashboardStatsResponse, BillsAdminPaginatedResponse, BillsCalculationSuccessResponse, BillsSuccessResponse, CreateBillDto, PreviewBillDto, RecordPaymentDto, UpdateBillDto } from '../models/index';
|
|
13
|
+
import type { BillStatusEnum, BillingDashboardStatsResponse, BillsAdminPaginatedResponse, BillsCalculationSuccessResponse, BillsSuccessResponse, CreateBillDto, IssueOrForBillSuccessResponse, PreviewBillDto, RecordPaymentDto, UpdateBillDto } from '../models/index';
|
|
14
14
|
export interface CreateAdminBillRequest {
|
|
15
15
|
createBillDto: CreateBillDto;
|
|
16
16
|
}
|
|
@@ -152,11 +152,11 @@ export interface AdminBillsApiInterface {
|
|
|
152
152
|
* @throws {RequiredError}
|
|
153
153
|
* @memberof AdminBillsApiInterface
|
|
154
154
|
*/
|
|
155
|
-
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
155
|
+
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueOrForBillSuccessResponse>>;
|
|
156
156
|
/**
|
|
157
157
|
* Issue or retrieve Official Receipt number for a paid bill (idempotent)
|
|
158
158
|
*/
|
|
159
|
-
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
159
|
+
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueOrForBillSuccessResponse>;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
162
|
* @summary Preview bill calculation without saving (admin)
|
|
@@ -262,11 +262,11 @@ export declare class AdminBillsApi extends runtime.BaseAPI implements AdminBills
|
|
|
262
262
|
/**
|
|
263
263
|
* Issue or retrieve Official Receipt number for a paid bill (idempotent)
|
|
264
264
|
*/
|
|
265
|
-
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
265
|
+
issueOrForBillRaw(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueOrForBillSuccessResponse>>;
|
|
266
266
|
/**
|
|
267
267
|
* Issue or retrieve Official Receipt number for a paid bill (idempotent)
|
|
268
268
|
*/
|
|
269
|
-
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
269
|
+
issueOrForBill(requestParameters: IssueOrForBillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueOrForBillSuccessResponse>;
|
|
270
270
|
/**
|
|
271
271
|
* Preview bill calculation without saving (admin)
|
|
272
272
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { BillingDashboardStatsResponseFromJSON, BillsAdminPaginatedResponseFromJSON, BillsCalculationSuccessResponseFromJSON, BillsSuccessResponseFromJSON, CreateBillDtoToJSON, PreviewBillDtoToJSON, RecordPaymentDtoToJSON, UpdateBillDtoToJSON, } from '../models/index';
|
|
24
|
+
import { BillingDashboardStatsResponseFromJSON, BillsAdminPaginatedResponseFromJSON, BillsCalculationSuccessResponseFromJSON, BillsSuccessResponseFromJSON, CreateBillDtoToJSON, IssueOrForBillSuccessResponseFromJSON, PreviewBillDtoToJSON, RecordPaymentDtoToJSON, UpdateBillDtoToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -315,7 +315,7 @@ export class AdminBillsApi extends runtime.BaseAPI {
|
|
|
315
315
|
headers: headerParameters,
|
|
316
316
|
query: queryParameters,
|
|
317
317
|
}, initOverrides);
|
|
318
|
-
return new runtime.
|
|
318
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IssueOrForBillSuccessResponseFromJSON(jsonValue));
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
@@ -323,7 +323,8 @@ export class AdminBillsApi extends runtime.BaseAPI {
|
|
|
323
323
|
*/
|
|
324
324
|
issueOrForBill(requestParameters, initOverrides) {
|
|
325
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
-
yield this.issueOrForBillRaw(requestParameters, initOverrides);
|
|
326
|
+
const response = yield this.issueOrForBillRaw(requestParameters, initOverrides);
|
|
327
|
+
return yield response.value();
|
|
327
328
|
});
|
|
328
329
|
}
|
|
329
330
|
/**
|
|
@@ -48,18 +48,6 @@ export interface SettingsApiInterface {
|
|
|
48
48
|
* Get tenant settings
|
|
49
49
|
*/
|
|
50
50
|
getTenantSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantSettingsSuccessResponse>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @summary Issue the next OR number (increments the sequence)
|
|
54
|
-
* @param {*} [options] Override http request option.
|
|
55
|
-
* @throws {RequiredError}
|
|
56
|
-
* @memberof SettingsApiInterface
|
|
57
|
-
*/
|
|
58
|
-
issueOfficialReceiptNumberRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
-
/**
|
|
60
|
-
* Issue the next OR number (increments the sequence)
|
|
61
|
-
*/
|
|
62
|
-
issueOfficialReceiptNumber(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
63
51
|
/**
|
|
64
52
|
*
|
|
65
53
|
* @summary Update meter reading settings (billing window & due date grace days)
|
|
@@ -107,14 +95,6 @@ export declare class SettingsApi extends runtime.BaseAPI implements SettingsApiI
|
|
|
107
95
|
* Get tenant settings
|
|
108
96
|
*/
|
|
109
97
|
getTenantSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantSettingsSuccessResponse>;
|
|
110
|
-
/**
|
|
111
|
-
* Issue the next OR number (increments the sequence)
|
|
112
|
-
*/
|
|
113
|
-
issueOfficialReceiptNumberRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
114
|
-
/**
|
|
115
|
-
* Issue the next OR number (increments the sequence)
|
|
116
|
-
*/
|
|
117
|
-
issueOfficialReceiptNumber(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
98
|
/**
|
|
119
99
|
* Update meter reading settings (billing window & due date grace days)
|
|
120
100
|
*/
|
|
@@ -92,38 +92,6 @@ export class SettingsApi extends runtime.BaseAPI {
|
|
|
92
92
|
return yield response.value();
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Issue the next OR number (increments the sequence)
|
|
97
|
-
*/
|
|
98
|
-
issueOfficialReceiptNumberRaw(initOverrides) {
|
|
99
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
const queryParameters = {};
|
|
101
|
-
const headerParameters = {};
|
|
102
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
-
const token = this.configuration.accessToken;
|
|
104
|
-
const tokenString = yield token("bearer", []);
|
|
105
|
-
if (tokenString) {
|
|
106
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
let urlPath = `/api/v1/settings/official-receipt/issue`;
|
|
110
|
-
const response = yield this.request({
|
|
111
|
-
path: urlPath,
|
|
112
|
-
method: 'POST',
|
|
113
|
-
headers: headerParameters,
|
|
114
|
-
query: queryParameters,
|
|
115
|
-
}, initOverrides);
|
|
116
|
-
return new runtime.VoidApiResponse(response);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Issue the next OR number (increments the sequence)
|
|
121
|
-
*/
|
|
122
|
-
issueOfficialReceiptNumber(initOverrides) {
|
|
123
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
yield this.issueOfficialReceiptNumberRaw(initOverrides);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
95
|
/**
|
|
128
96
|
* Update meter reading settings (billing window & due date grace days)
|
|
129
97
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IssueOrForBillDto
|
|
16
|
+
*/
|
|
17
|
+
export interface IssueOrForBillDto {
|
|
18
|
+
/**
|
|
19
|
+
* Official Receipt number
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IssueOrForBillDto
|
|
22
|
+
*/
|
|
23
|
+
orNumber: string;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates if the Official Receipt already exists
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof IssueOrForBillDto
|
|
28
|
+
*/
|
|
29
|
+
isExisting: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the IssueOrForBillDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfIssueOrForBillDto(value: object): value is IssueOrForBillDto;
|
|
35
|
+
export declare function IssueOrForBillDtoFromJSON(json: any): IssueOrForBillDto;
|
|
36
|
+
export declare function IssueOrForBillDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueOrForBillDto;
|
|
37
|
+
export declare function IssueOrForBillDtoToJSON(json: any): IssueOrForBillDto;
|
|
38
|
+
export declare function IssueOrForBillDtoToJSONTyped(value?: IssueOrForBillDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IssueOrForBillDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIssueOrForBillDto(value) {
|
|
18
|
+
if (!('orNumber' in value) || value['orNumber'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('isExisting' in value) || value['isExisting'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function IssueOrForBillDtoFromJSON(json) {
|
|
25
|
+
return IssueOrForBillDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function IssueOrForBillDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'orNumber': json['orNumber'],
|
|
33
|
+
'isExisting': json['isExisting'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function IssueOrForBillDtoToJSON(json) {
|
|
37
|
+
return IssueOrForBillDtoToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function IssueOrForBillDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'orNumber': value['orNumber'],
|
|
45
|
+
'isExisting': value['isExisting'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { IssueOrForBillDto } from './IssueOrForBillDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IssueOrForBillSuccessResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IssueOrForBillSuccessResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof IssueOrForBillSuccessResponse
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof IssueOrForBillSuccessResponse
|
|
29
|
+
*/
|
|
30
|
+
error?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {IssueOrForBillDto}
|
|
34
|
+
* @memberof IssueOrForBillSuccessResponse
|
|
35
|
+
*/
|
|
36
|
+
data: IssueOrForBillDto;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IssueOrForBillSuccessResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfIssueOrForBillSuccessResponse(value: object): value is IssueOrForBillSuccessResponse;
|
|
42
|
+
export declare function IssueOrForBillSuccessResponseFromJSON(json: any): IssueOrForBillSuccessResponse;
|
|
43
|
+
export declare function IssueOrForBillSuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueOrForBillSuccessResponse;
|
|
44
|
+
export declare function IssueOrForBillSuccessResponseToJSON(json: any): IssueOrForBillSuccessResponse;
|
|
45
|
+
export declare function IssueOrForBillSuccessResponseToJSONTyped(value?: IssueOrForBillSuccessResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { IssueOrForBillDtoFromJSON, IssueOrForBillDtoToJSON, } from './IssueOrForBillDto';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the IssueOrForBillSuccessResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfIssueOrForBillSuccessResponse(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function IssueOrForBillSuccessResponseFromJSON(json) {
|
|
26
|
+
return IssueOrForBillSuccessResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function IssueOrForBillSuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'success': json['success'],
|
|
34
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
35
|
+
'data': IssueOrForBillDtoFromJSON(json['data']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function IssueOrForBillSuccessResponseToJSON(json) {
|
|
39
|
+
return IssueOrForBillSuccessResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function IssueOrForBillSuccessResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'success': value['success'],
|
|
47
|
+
'error': value['error'],
|
|
48
|
+
'data': IssueOrForBillDtoToJSON(value['data']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const OfficialReceiptPaymentMethodEnum: {
|
|
17
|
+
readonly Cash: "cash";
|
|
18
|
+
readonly Gcash: "gcash";
|
|
19
|
+
readonly OnlineBanking: "online_banking";
|
|
20
|
+
readonly Check: "check";
|
|
21
|
+
readonly BankTransfer: "bank_transfer";
|
|
22
|
+
};
|
|
23
|
+
export type OfficialReceiptPaymentMethodEnum = typeof OfficialReceiptPaymentMethodEnum[keyof typeof OfficialReceiptPaymentMethodEnum];
|
|
24
|
+
export declare function instanceOfOfficialReceiptPaymentMethodEnum(value: any): boolean;
|
|
25
|
+
export declare function OfficialReceiptPaymentMethodEnumFromJSON(json: any): OfficialReceiptPaymentMethodEnum;
|
|
26
|
+
export declare function OfficialReceiptPaymentMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): OfficialReceiptPaymentMethodEnum;
|
|
27
|
+
export declare function OfficialReceiptPaymentMethodEnumToJSON(value?: OfficialReceiptPaymentMethodEnum | null): any;
|
|
28
|
+
export declare function OfficialReceiptPaymentMethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): OfficialReceiptPaymentMethodEnum;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const OfficialReceiptPaymentMethodEnum = {
|
|
19
|
+
Cash: 'cash',
|
|
20
|
+
Gcash: 'gcash',
|
|
21
|
+
OnlineBanking: 'online_banking',
|
|
22
|
+
Check: 'check',
|
|
23
|
+
BankTransfer: 'bank_transfer'
|
|
24
|
+
};
|
|
25
|
+
export function instanceOfOfficialReceiptPaymentMethodEnum(value) {
|
|
26
|
+
for (const key in OfficialReceiptPaymentMethodEnum) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(OfficialReceiptPaymentMethodEnum, key)) {
|
|
28
|
+
if (OfficialReceiptPaymentMethodEnum[key] === value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
export function OfficialReceiptPaymentMethodEnumFromJSON(json) {
|
|
36
|
+
return OfficialReceiptPaymentMethodEnumFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function OfficialReceiptPaymentMethodEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
export function OfficialReceiptPaymentMethodEnumToJSON(value) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
export function OfficialReceiptPaymentMethodEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Consumer } from './Consumer';
|
|
13
13
|
import type { TenantStatusEnum } from './TenantStatusEnum';
|
|
14
|
+
import type { TenantBillingIntegration } from './TenantBillingIntegration';
|
|
14
15
|
import type { Bill } from './Bill';
|
|
15
16
|
import type { Complaint } from './Complaint';
|
|
17
|
+
import type { TenantSettings } from './TenantSettings';
|
|
16
18
|
/**
|
|
17
19
|
*
|
|
18
20
|
* @export
|
|
@@ -63,20 +65,16 @@ export interface Tenant {
|
|
|
63
65
|
logo?: string;
|
|
64
66
|
/**
|
|
65
67
|
*
|
|
66
|
-
* @type {
|
|
68
|
+
* @type {TenantSettings}
|
|
67
69
|
* @memberof Tenant
|
|
68
70
|
*/
|
|
69
|
-
settings?:
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
};
|
|
71
|
+
settings?: TenantSettings;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
|
-
* @type {
|
|
74
|
+
* @type {TenantBillingIntegration}
|
|
75
75
|
* @memberof Tenant
|
|
76
76
|
*/
|
|
77
|
-
billingIntegration?:
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
};
|
|
77
|
+
billingIntegration?: TenantBillingIntegration;
|
|
80
78
|
/**
|
|
81
79
|
*
|
|
82
80
|
* @type {TenantStatusEnum}
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ConsumerFromJSON, ConsumerToJSON, } from './Consumer';
|
|
15
15
|
import { TenantStatusEnumFromJSON, TenantStatusEnumToJSON, } from './TenantStatusEnum';
|
|
16
|
+
import { TenantBillingIntegrationFromJSON, TenantBillingIntegrationToJSON, } from './TenantBillingIntegration';
|
|
16
17
|
import { BillFromJSON, BillToJSON, } from './Bill';
|
|
17
18
|
import { ComplaintFromJSON, ComplaintToJSON, } from './Complaint';
|
|
19
|
+
import { TenantSettingsFromJSON, TenantSettingsToJSON, } from './TenantSettings';
|
|
18
20
|
/**
|
|
19
21
|
* Check if a given object implements the Tenant interface.
|
|
20
22
|
*/
|
|
@@ -48,8 +50,8 @@ export function TenantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'domain': json['domain'],
|
|
49
51
|
'name': json['name'],
|
|
50
52
|
'logo': json['logo'] == null ? undefined : json['logo'],
|
|
51
|
-
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
52
|
-
'billingIntegration': json['billingIntegration'] == null ? undefined : json['billingIntegration'],
|
|
53
|
+
'settings': json['settings'] == null ? undefined : TenantSettingsFromJSON(json['settings']),
|
|
54
|
+
'billingIntegration': json['billingIntegration'] == null ? undefined : TenantBillingIntegrationFromJSON(json['billingIntegration']),
|
|
53
55
|
'status': TenantStatusEnumFromJSON(json['status']),
|
|
54
56
|
'lastLogoutAt': json['lastLogoutAt'] == null ? undefined : json['lastLogoutAt'],
|
|
55
57
|
'consumers': json['consumers'] == null ? undefined : (json['consumers'].map(ConsumerFromJSON)),
|
|
@@ -72,8 +74,8 @@ export function TenantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
74
|
'domain': value['domain'],
|
|
73
75
|
'name': value['name'],
|
|
74
76
|
'logo': value['logo'],
|
|
75
|
-
'settings': value['settings'],
|
|
76
|
-
'billingIntegration': value['billingIntegration'],
|
|
77
|
+
'settings': TenantSettingsToJSON(value['settings']),
|
|
78
|
+
'billingIntegration': TenantBillingIntegrationToJSON(value['billingIntegration']),
|
|
77
79
|
'status': TenantStatusEnumToJSON(value['status']),
|
|
78
80
|
'lastLogoutAt': value['lastLogoutAt'],
|
|
79
81
|
'consumers': value['consumers'] == null ? undefined : (value['consumers'].map(ConsumerToJSON)),
|