electric-coop-api 0.1.39 → 0.1.41
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 +3 -2
- package/README.md +2 -2
- package/dist/apis/MetersApi.d.ts +57 -5
- package/dist/apis/MetersApi.js +85 -1
- package/dist/esm/apis/MetersApi.d.ts +57 -5
- package/dist/esm/apis/MetersApi.js +86 -2
- package/dist/esm/models/MeterReadingPreviewSuccessResponse.d.ts +45 -0
- package/dist/esm/models/{MeterCurrentBillSuccessResponse.js → MeterReadingPreviewSuccessResponse.js} +11 -11
- package/dist/esm/models/PreviewMeterReadingDto.d.ts +32 -0
- package/dist/esm/models/PreviewMeterReadingDto.js +43 -0
- package/dist/esm/models/SubmitMeterReadingDto.d.ts +44 -0
- package/dist/esm/models/SubmitMeterReadingDto.js +51 -0
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/MeterReadingPreviewSuccessResponse.d.ts +45 -0
- package/dist/models/MeterReadingPreviewSuccessResponse.js +57 -0
- package/dist/models/PreviewMeterReadingDto.d.ts +32 -0
- package/dist/models/PreviewMeterReadingDto.js +50 -0
- package/dist/models/SubmitMeterReadingDto.d.ts +44 -0
- package/dist/models/SubmitMeterReadingDto.js +58 -0
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +1 -1
- package/src/apis/MetersApi.ts +169 -8
- package/src/models/MeterReadingPreviewSuccessResponse.ts +91 -0
- package/src/models/PreviewMeterReadingDto.ts +66 -0
- package/src/models/SubmitMeterReadingDto.ts +84 -0
- package/src/models/index.ts +3 -2
- package/dist/esm/models/MeterCurrentBillResponseDto.d.ts +0 -88
- package/dist/esm/models/MeterCurrentBillResponseDto.js +0 -77
- package/dist/esm/models/MeterCurrentBillSuccessResponse.d.ts +0 -45
- package/dist/models/MeterCurrentBillResponseDto.d.ts +0 -88
- package/dist/models/MeterCurrentBillResponseDto.js +0 -84
- package/dist/models/MeterCurrentBillSuccessResponse.d.ts +0 -45
- package/dist/models/MeterCurrentBillSuccessResponse.js +0 -57
- package/src/models/MeterCurrentBillResponseDto.ts +0 -162
- package/src/models/MeterCurrentBillSuccessResponse.ts +0 -91
|
@@ -1,45 +0,0 @@
|
|
|
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 { MeterCurrentBillResponseDto } from './MeterCurrentBillResponseDto';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MeterCurrentBillSuccessResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MeterCurrentBillSuccessResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
23
|
-
*/
|
|
24
|
-
success: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
29
|
-
*/
|
|
30
|
-
error?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {MeterCurrentBillResponseDto}
|
|
34
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
35
|
-
*/
|
|
36
|
-
data: MeterCurrentBillResponseDto;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the MeterCurrentBillSuccessResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export declare function instanceOfMeterCurrentBillSuccessResponse(value: object): value is MeterCurrentBillSuccessResponse;
|
|
42
|
-
export declare function MeterCurrentBillSuccessResponseFromJSON(json: any): MeterCurrentBillSuccessResponse;
|
|
43
|
-
export declare function MeterCurrentBillSuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeterCurrentBillSuccessResponse;
|
|
44
|
-
export declare function MeterCurrentBillSuccessResponseToJSON(json: any): MeterCurrentBillSuccessResponse;
|
|
45
|
-
export declare function MeterCurrentBillSuccessResponseToJSONTyped(value?: MeterCurrentBillSuccessResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,88 +0,0 @@
|
|
|
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 { BillBreakdownDto } from './BillBreakdownDto';
|
|
13
|
-
import type { BillStatusEnum } from './BillStatusEnum';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface MeterCurrentBillResponseDto
|
|
18
|
-
*/
|
|
19
|
-
export interface MeterCurrentBillResponseDto {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof MeterCurrentBillResponseDto
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Billing period (YYYY-MM)
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof MeterCurrentBillResponseDto
|
|
30
|
-
*/
|
|
31
|
-
billingPeriod: string;
|
|
32
|
-
/**
|
|
33
|
-
* Date the meter reading was taken
|
|
34
|
-
* @type {object}
|
|
35
|
-
* @memberof MeterCurrentBillResponseDto
|
|
36
|
-
*/
|
|
37
|
-
readingDate?: object | null;
|
|
38
|
-
/**
|
|
39
|
-
* Previous meter reading in kWh
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof MeterCurrentBillResponseDto
|
|
42
|
-
*/
|
|
43
|
-
previousReading: number;
|
|
44
|
-
/**
|
|
45
|
-
* Current meter reading in kWh
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof MeterCurrentBillResponseDto
|
|
48
|
-
*/
|
|
49
|
-
currentReading: number;
|
|
50
|
-
/**
|
|
51
|
-
* Consumption in kWh
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof MeterCurrentBillResponseDto
|
|
54
|
-
*/
|
|
55
|
-
consumption: number;
|
|
56
|
-
/**
|
|
57
|
-
* Gross amount due before discounts
|
|
58
|
-
* @type {number}
|
|
59
|
-
* @memberof MeterCurrentBillResponseDto
|
|
60
|
-
*/
|
|
61
|
-
grossDue: number;
|
|
62
|
-
/**
|
|
63
|
-
* Net amount due after discounts and VAT
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof MeterCurrentBillResponseDto
|
|
66
|
-
*/
|
|
67
|
-
netDue: number;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {BillStatusEnum}
|
|
71
|
-
* @memberof MeterCurrentBillResponseDto
|
|
72
|
-
*/
|
|
73
|
-
status: BillStatusEnum;
|
|
74
|
-
/**
|
|
75
|
-
* Itemized bill breakdown
|
|
76
|
-
* @type {BillBreakdownDto}
|
|
77
|
-
* @memberof MeterCurrentBillResponseDto
|
|
78
|
-
*/
|
|
79
|
-
breakdown?: BillBreakdownDto;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Check if a given object implements the MeterCurrentBillResponseDto interface.
|
|
83
|
-
*/
|
|
84
|
-
export declare function instanceOfMeterCurrentBillResponseDto(value: object): value is MeterCurrentBillResponseDto;
|
|
85
|
-
export declare function MeterCurrentBillResponseDtoFromJSON(json: any): MeterCurrentBillResponseDto;
|
|
86
|
-
export declare function MeterCurrentBillResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeterCurrentBillResponseDto;
|
|
87
|
-
export declare function MeterCurrentBillResponseDtoToJSON(json: any): MeterCurrentBillResponseDto;
|
|
88
|
-
export declare function MeterCurrentBillResponseDtoToJSONTyped(value?: MeterCurrentBillResponseDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Electric Cooperative Consumer Portal API
|
|
6
|
-
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfMeterCurrentBillResponseDto = instanceOfMeterCurrentBillResponseDto;
|
|
17
|
-
exports.MeterCurrentBillResponseDtoFromJSON = MeterCurrentBillResponseDtoFromJSON;
|
|
18
|
-
exports.MeterCurrentBillResponseDtoFromJSONTyped = MeterCurrentBillResponseDtoFromJSONTyped;
|
|
19
|
-
exports.MeterCurrentBillResponseDtoToJSON = MeterCurrentBillResponseDtoToJSON;
|
|
20
|
-
exports.MeterCurrentBillResponseDtoToJSONTyped = MeterCurrentBillResponseDtoToJSONTyped;
|
|
21
|
-
const BillBreakdownDto_1 = require("./BillBreakdownDto");
|
|
22
|
-
const BillStatusEnum_1 = require("./BillStatusEnum");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the MeterCurrentBillResponseDto interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfMeterCurrentBillResponseDto(value) {
|
|
27
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('previousReading' in value) || value['previousReading'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('currentReading' in value) || value['currentReading'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('consumption' in value) || value['consumption'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('grossDue' in value) || value['grossDue'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
if (!('netDue' in value) || value['netDue'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
function MeterCurrentBillResponseDtoFromJSON(json) {
|
|
46
|
-
return MeterCurrentBillResponseDtoFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function MeterCurrentBillResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
-
if (json == null) {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'id': json['id'],
|
|
54
|
-
'billingPeriod': json['billingPeriod'],
|
|
55
|
-
'readingDate': json['readingDate'] == null ? undefined : json['readingDate'],
|
|
56
|
-
'previousReading': json['previousReading'],
|
|
57
|
-
'currentReading': json['currentReading'],
|
|
58
|
-
'consumption': json['consumption'],
|
|
59
|
-
'grossDue': json['grossDue'],
|
|
60
|
-
'netDue': json['netDue'],
|
|
61
|
-
'status': (0, BillStatusEnum_1.BillStatusEnumFromJSON)(json['status']),
|
|
62
|
-
'breakdown': json['breakdown'] == null ? undefined : (0, BillBreakdownDto_1.BillBreakdownDtoFromJSON)(json['breakdown']),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function MeterCurrentBillResponseDtoToJSON(json) {
|
|
66
|
-
return MeterCurrentBillResponseDtoToJSONTyped(json, false);
|
|
67
|
-
}
|
|
68
|
-
function MeterCurrentBillResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
-
if (value == null) {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
'id': value['id'],
|
|
74
|
-
'billingPeriod': value['billingPeriod'],
|
|
75
|
-
'readingDate': value['readingDate'],
|
|
76
|
-
'previousReading': value['previousReading'],
|
|
77
|
-
'currentReading': value['currentReading'],
|
|
78
|
-
'consumption': value['consumption'],
|
|
79
|
-
'grossDue': value['grossDue'],
|
|
80
|
-
'netDue': value['netDue'],
|
|
81
|
-
'status': (0, BillStatusEnum_1.BillStatusEnumToJSON)(value['status']),
|
|
82
|
-
'breakdown': (0, BillBreakdownDto_1.BillBreakdownDtoToJSON)(value['breakdown']),
|
|
83
|
-
};
|
|
84
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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 { MeterCurrentBillResponseDto } from './MeterCurrentBillResponseDto';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MeterCurrentBillSuccessResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MeterCurrentBillSuccessResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
23
|
-
*/
|
|
24
|
-
success: boolean;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
29
|
-
*/
|
|
30
|
-
error?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {MeterCurrentBillResponseDto}
|
|
34
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
35
|
-
*/
|
|
36
|
-
data: MeterCurrentBillResponseDto;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the MeterCurrentBillSuccessResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export declare function instanceOfMeterCurrentBillSuccessResponse(value: object): value is MeterCurrentBillSuccessResponse;
|
|
42
|
-
export declare function MeterCurrentBillSuccessResponseFromJSON(json: any): MeterCurrentBillSuccessResponse;
|
|
43
|
-
export declare function MeterCurrentBillSuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeterCurrentBillSuccessResponse;
|
|
44
|
-
export declare function MeterCurrentBillSuccessResponseToJSON(json: any): MeterCurrentBillSuccessResponse;
|
|
45
|
-
export declare function MeterCurrentBillSuccessResponseToJSONTyped(value?: MeterCurrentBillSuccessResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Electric Cooperative Consumer Portal API
|
|
6
|
-
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfMeterCurrentBillSuccessResponse = instanceOfMeterCurrentBillSuccessResponse;
|
|
17
|
-
exports.MeterCurrentBillSuccessResponseFromJSON = MeterCurrentBillSuccessResponseFromJSON;
|
|
18
|
-
exports.MeterCurrentBillSuccessResponseFromJSONTyped = MeterCurrentBillSuccessResponseFromJSONTyped;
|
|
19
|
-
exports.MeterCurrentBillSuccessResponseToJSON = MeterCurrentBillSuccessResponseToJSON;
|
|
20
|
-
exports.MeterCurrentBillSuccessResponseToJSONTyped = MeterCurrentBillSuccessResponseToJSONTyped;
|
|
21
|
-
const MeterCurrentBillResponseDto_1 = require("./MeterCurrentBillResponseDto");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the MeterCurrentBillSuccessResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfMeterCurrentBillSuccessResponse(value) {
|
|
26
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function MeterCurrentBillSuccessResponseFromJSON(json) {
|
|
33
|
-
return MeterCurrentBillSuccessResponseFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function MeterCurrentBillSuccessResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'success': json['success'],
|
|
41
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
42
|
-
'data': (0, MeterCurrentBillResponseDto_1.MeterCurrentBillResponseDtoFromJSON)(json['data']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function MeterCurrentBillSuccessResponseToJSON(json) {
|
|
46
|
-
return MeterCurrentBillSuccessResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function MeterCurrentBillSuccessResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'success': value['success'],
|
|
54
|
-
'error': value['error'],
|
|
55
|
-
'data': (0, MeterCurrentBillResponseDto_1.MeterCurrentBillResponseDtoToJSON)(value['data']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { BillBreakdownDto } from './BillBreakdownDto';
|
|
17
|
-
import {
|
|
18
|
-
BillBreakdownDtoFromJSON,
|
|
19
|
-
BillBreakdownDtoFromJSONTyped,
|
|
20
|
-
BillBreakdownDtoToJSON,
|
|
21
|
-
BillBreakdownDtoToJSONTyped,
|
|
22
|
-
} from './BillBreakdownDto';
|
|
23
|
-
import type { BillStatusEnum } from './BillStatusEnum';
|
|
24
|
-
import {
|
|
25
|
-
BillStatusEnumFromJSON,
|
|
26
|
-
BillStatusEnumFromJSONTyped,
|
|
27
|
-
BillStatusEnumToJSON,
|
|
28
|
-
BillStatusEnumToJSONTyped,
|
|
29
|
-
} from './BillStatusEnum';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface MeterCurrentBillResponseDto
|
|
35
|
-
*/
|
|
36
|
-
export interface MeterCurrentBillResponseDto {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof MeterCurrentBillResponseDto
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* Billing period (YYYY-MM)
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof MeterCurrentBillResponseDto
|
|
47
|
-
*/
|
|
48
|
-
billingPeriod: string;
|
|
49
|
-
/**
|
|
50
|
-
* Date the meter reading was taken
|
|
51
|
-
* @type {object}
|
|
52
|
-
* @memberof MeterCurrentBillResponseDto
|
|
53
|
-
*/
|
|
54
|
-
readingDate?: object | null;
|
|
55
|
-
/**
|
|
56
|
-
* Previous meter reading in kWh
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof MeterCurrentBillResponseDto
|
|
59
|
-
*/
|
|
60
|
-
previousReading: number;
|
|
61
|
-
/**
|
|
62
|
-
* Current meter reading in kWh
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof MeterCurrentBillResponseDto
|
|
65
|
-
*/
|
|
66
|
-
currentReading: number;
|
|
67
|
-
/**
|
|
68
|
-
* Consumption in kWh
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof MeterCurrentBillResponseDto
|
|
71
|
-
*/
|
|
72
|
-
consumption: number;
|
|
73
|
-
/**
|
|
74
|
-
* Gross amount due before discounts
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof MeterCurrentBillResponseDto
|
|
77
|
-
*/
|
|
78
|
-
grossDue: number;
|
|
79
|
-
/**
|
|
80
|
-
* Net amount due after discounts and VAT
|
|
81
|
-
* @type {number}
|
|
82
|
-
* @memberof MeterCurrentBillResponseDto
|
|
83
|
-
*/
|
|
84
|
-
netDue: number;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {BillStatusEnum}
|
|
88
|
-
* @memberof MeterCurrentBillResponseDto
|
|
89
|
-
*/
|
|
90
|
-
status: BillStatusEnum;
|
|
91
|
-
/**
|
|
92
|
-
* Itemized bill breakdown
|
|
93
|
-
* @type {BillBreakdownDto}
|
|
94
|
-
* @memberof MeterCurrentBillResponseDto
|
|
95
|
-
*/
|
|
96
|
-
breakdown?: BillBreakdownDto;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Check if a given object implements the MeterCurrentBillResponseDto interface.
|
|
103
|
-
*/
|
|
104
|
-
export function instanceOfMeterCurrentBillResponseDto(value: object): value is MeterCurrentBillResponseDto {
|
|
105
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
106
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
|
|
107
|
-
if (!('previousReading' in value) || value['previousReading'] === undefined) return false;
|
|
108
|
-
if (!('currentReading' in value) || value['currentReading'] === undefined) return false;
|
|
109
|
-
if (!('consumption' in value) || value['consumption'] === undefined) return false;
|
|
110
|
-
if (!('grossDue' in value) || value['grossDue'] === undefined) return false;
|
|
111
|
-
if (!('netDue' in value) || value['netDue'] === undefined) return false;
|
|
112
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
113
|
-
return true;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function MeterCurrentBillResponseDtoFromJSON(json: any): MeterCurrentBillResponseDto {
|
|
117
|
-
return MeterCurrentBillResponseDtoFromJSONTyped(json, false);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function MeterCurrentBillResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeterCurrentBillResponseDto {
|
|
121
|
-
if (json == null) {
|
|
122
|
-
return json;
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
'id': json['id'],
|
|
127
|
-
'billingPeriod': json['billingPeriod'],
|
|
128
|
-
'readingDate': json['readingDate'] == null ? undefined : json['readingDate'],
|
|
129
|
-
'previousReading': json['previousReading'],
|
|
130
|
-
'currentReading': json['currentReading'],
|
|
131
|
-
'consumption': json['consumption'],
|
|
132
|
-
'grossDue': json['grossDue'],
|
|
133
|
-
'netDue': json['netDue'],
|
|
134
|
-
'status': BillStatusEnumFromJSON(json['status']),
|
|
135
|
-
'breakdown': json['breakdown'] == null ? undefined : BillBreakdownDtoFromJSON(json['breakdown']),
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function MeterCurrentBillResponseDtoToJSON(json: any): MeterCurrentBillResponseDto {
|
|
140
|
-
return MeterCurrentBillResponseDtoToJSONTyped(json, false);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export function MeterCurrentBillResponseDtoToJSONTyped(value?: MeterCurrentBillResponseDto | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
-
if (value == null) {
|
|
145
|
-
return value;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return {
|
|
149
|
-
|
|
150
|
-
'id': value['id'],
|
|
151
|
-
'billingPeriod': value['billingPeriod'],
|
|
152
|
-
'readingDate': value['readingDate'],
|
|
153
|
-
'previousReading': value['previousReading'],
|
|
154
|
-
'currentReading': value['currentReading'],
|
|
155
|
-
'consumption': value['consumption'],
|
|
156
|
-
'grossDue': value['grossDue'],
|
|
157
|
-
'netDue': value['netDue'],
|
|
158
|
-
'status': BillStatusEnumToJSON(value['status']),
|
|
159
|
-
'breakdown': BillBreakdownDtoToJSON(value['breakdown']),
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
@@ -1,91 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { MeterCurrentBillResponseDto } from './MeterCurrentBillResponseDto';
|
|
17
|
-
import {
|
|
18
|
-
MeterCurrentBillResponseDtoFromJSON,
|
|
19
|
-
MeterCurrentBillResponseDtoFromJSONTyped,
|
|
20
|
-
MeterCurrentBillResponseDtoToJSON,
|
|
21
|
-
MeterCurrentBillResponseDtoToJSONTyped,
|
|
22
|
-
} from './MeterCurrentBillResponseDto';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MeterCurrentBillSuccessResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface MeterCurrentBillSuccessResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
34
|
-
*/
|
|
35
|
-
success: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
40
|
-
*/
|
|
41
|
-
error?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {MeterCurrentBillResponseDto}
|
|
45
|
-
* @memberof MeterCurrentBillSuccessResponse
|
|
46
|
-
*/
|
|
47
|
-
data: MeterCurrentBillResponseDto;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Check if a given object implements the MeterCurrentBillSuccessResponse interface.
|
|
52
|
-
*/
|
|
53
|
-
export function instanceOfMeterCurrentBillSuccessResponse(value: object): value is MeterCurrentBillSuccessResponse {
|
|
54
|
-
if (!('success' in value) || value['success'] === undefined) return false;
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function MeterCurrentBillSuccessResponseFromJSON(json: any): MeterCurrentBillSuccessResponse {
|
|
60
|
-
return MeterCurrentBillSuccessResponseFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function MeterCurrentBillSuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeterCurrentBillSuccessResponse {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'success': json['success'],
|
|
70
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
71
|
-
'data': MeterCurrentBillResponseDtoFromJSON(json['data']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function MeterCurrentBillSuccessResponseToJSON(json: any): MeterCurrentBillSuccessResponse {
|
|
76
|
-
return MeterCurrentBillSuccessResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function MeterCurrentBillSuccessResponseToJSONTyped(value?: MeterCurrentBillSuccessResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'success': value['success'],
|
|
87
|
-
'error': value['error'],
|
|
88
|
-
'data': MeterCurrentBillResponseDtoToJSON(value['data']),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|