electric-coop-api 0.1.26 → 0.1.28

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## electric-coop-api@0.1.26
1
+ ## electric-coop-api@0.1.28
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.26 --save
39
+ npm install electric-coop-api@0.1.28 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -27,6 +27,36 @@ export interface BillBreakdownChargeDto {
27
27
  * @memberof BillBreakdownChargeDto
28
28
  */
29
29
  amount: number;
30
+ /**
31
+ * Unit rate used to compute this charge. Per-kWh rate for consumption-based charges; the fixed peso value for flat charges (e.g. meter rental).
32
+ * @type {number}
33
+ * @memberof BillBreakdownChargeDto
34
+ */
35
+ rate: number;
36
+ /**
37
+ * True if this is a flat fixed monthly charge (e.g. meter rental); false if computed as rate × kWh.
38
+ * @type {boolean}
39
+ * @memberof BillBreakdownChargeDto
40
+ */
41
+ isFixed: boolean;
42
+ /**
43
+ * True if this entry is a subsidy/discount subtracted from the total (e.g. Senior Citizen Subsidy). Amount will be negative.
44
+ * @type {boolean}
45
+ * @memberof BillBreakdownChargeDto
46
+ */
47
+ isDiscount: boolean;
48
+ /**
49
+ * kWh consumption applied to derive the amount. Null for fixed/flat charges (e.g. meter rental).
50
+ * @type {object}
51
+ * @memberof BillBreakdownChargeDto
52
+ */
53
+ kwh?: object | null;
54
+ /**
55
+ * VAT rate in effect at the time of billing (e.g. 0.12 = 12%).
56
+ * @type {number}
57
+ * @memberof BillBreakdownChargeDto
58
+ */
59
+ vatRate: number;
30
60
  }
31
61
  /**
32
62
  * Check if a given object implements the BillBreakdownChargeDto interface.
@@ -19,6 +19,14 @@ export function instanceOfBillBreakdownChargeDto(value) {
19
19
  return false;
20
20
  if (!('amount' in value) || value['amount'] === undefined)
21
21
  return false;
22
+ if (!('rate' in value) || value['rate'] === undefined)
23
+ return false;
24
+ if (!('isFixed' in value) || value['isFixed'] === undefined)
25
+ return false;
26
+ if (!('isDiscount' in value) || value['isDiscount'] === undefined)
27
+ return false;
28
+ if (!('vatRate' in value) || value['vatRate'] === undefined)
29
+ return false;
22
30
  return true;
23
31
  }
24
32
  export function BillBreakdownChargeDtoFromJSON(json) {
@@ -31,6 +39,11 @@ export function BillBreakdownChargeDtoFromJSONTyped(json, ignoreDiscriminator) {
31
39
  return {
32
40
  'name': json['name'],
33
41
  'amount': json['amount'],
42
+ 'rate': json['rate'],
43
+ 'isFixed': json['isFixed'],
44
+ 'isDiscount': json['isDiscount'],
45
+ 'kwh': json['kwh'] == null ? undefined : json['kwh'],
46
+ 'vatRate': json['vatRate'],
34
47
  };
35
48
  }
36
49
  export function BillBreakdownChargeDtoToJSON(json) {
@@ -43,5 +56,10 @@ export function BillBreakdownChargeDtoToJSONTyped(value, ignoreDiscriminator = f
43
56
  return {
44
57
  'name': value['name'],
45
58
  'amount': value['amount'],
59
+ 'rate': value['rate'],
60
+ 'isFixed': value['isFixed'],
61
+ 'isDiscount': value['isDiscount'],
62
+ 'kwh': value['kwh'],
63
+ 'vatRate': value['vatRate'],
46
64
  };
47
65
  }
@@ -22,7 +22,25 @@ export interface RateChargeDto {
22
22
  */
23
23
  name: string;
24
24
  /**
25
- *
25
+ * Monetary rate for this charge. Per-kWh amount for consumption-based charges; fixed peso amount for flat charges (e.g. meter rental).
26
+ * @type {number}
27
+ * @memberof RateChargeDto
28
+ */
29
+ rate: number;
30
+ /**
31
+ * When true the rate is a flat fixed monthly amount (e.g. Meter Rental). When false the amount is rate × kWh consumption. In standard Philippine ERC billing only Meter Rental is fixed; all other components are per-kWh.
32
+ * @type {boolean}
33
+ * @memberof RateChargeDto
34
+ */
35
+ isFixed: boolean;
36
+ /**
37
+ * When true this entry is a subsidy or discount that is subtracted from the bill total (e.g. Senior Citizen Subsidy, Lifeline Rate Allowance). The computed amount will be negative in the breakdown.
38
+ * @type {boolean}
39
+ * @memberof RateChargeDto
40
+ */
41
+ isDiscount: boolean;
42
+ /**
43
+ * VAT rate as decimal (0–0.12), e.g. 0.12 = 12%
26
44
  * @type {number}
27
45
  * @memberof RateChargeDto
28
46
  */
@@ -17,6 +17,12 @@
17
17
  export function instanceOfRateChargeDto(value) {
18
18
  if (!('name' in value) || value['name'] === undefined)
19
19
  return false;
20
+ if (!('rate' in value) || value['rate'] === undefined)
21
+ return false;
22
+ if (!('isFixed' in value) || value['isFixed'] === undefined)
23
+ return false;
24
+ if (!('isDiscount' in value) || value['isDiscount'] === undefined)
25
+ return false;
20
26
  if (!('vatRate' in value) || value['vatRate'] === undefined)
21
27
  return false;
22
28
  return true;
@@ -30,6 +36,9 @@ export function RateChargeDtoFromJSONTyped(json, ignoreDiscriminator) {
30
36
  }
31
37
  return {
32
38
  'name': json['name'],
39
+ 'rate': json['rate'],
40
+ 'isFixed': json['isFixed'],
41
+ 'isDiscount': json['isDiscount'],
33
42
  'vatRate': json['vatRate'],
34
43
  };
35
44
  }
@@ -42,6 +51,9 @@ export function RateChargeDtoToJSONTyped(value, ignoreDiscriminator = false) {
42
51
  }
43
52
  return {
44
53
  'name': value['name'],
54
+ 'rate': value['rate'],
55
+ 'isFixed': value['isFixed'],
56
+ 'isDiscount': value['isDiscount'],
45
57
  'vatRate': value['vatRate'],
46
58
  };
47
59
  }
@@ -27,6 +27,36 @@ export interface BillBreakdownChargeDto {
27
27
  * @memberof BillBreakdownChargeDto
28
28
  */
29
29
  amount: number;
30
+ /**
31
+ * Unit rate used to compute this charge. Per-kWh rate for consumption-based charges; the fixed peso value for flat charges (e.g. meter rental).
32
+ * @type {number}
33
+ * @memberof BillBreakdownChargeDto
34
+ */
35
+ rate: number;
36
+ /**
37
+ * True if this is a flat fixed monthly charge (e.g. meter rental); false if computed as rate × kWh.
38
+ * @type {boolean}
39
+ * @memberof BillBreakdownChargeDto
40
+ */
41
+ isFixed: boolean;
42
+ /**
43
+ * True if this entry is a subsidy/discount subtracted from the total (e.g. Senior Citizen Subsidy). Amount will be negative.
44
+ * @type {boolean}
45
+ * @memberof BillBreakdownChargeDto
46
+ */
47
+ isDiscount: boolean;
48
+ /**
49
+ * kWh consumption applied to derive the amount. Null for fixed/flat charges (e.g. meter rental).
50
+ * @type {object}
51
+ * @memberof BillBreakdownChargeDto
52
+ */
53
+ kwh?: object | null;
54
+ /**
55
+ * VAT rate in effect at the time of billing (e.g. 0.12 = 12%).
56
+ * @type {number}
57
+ * @memberof BillBreakdownChargeDto
58
+ */
59
+ vatRate: number;
30
60
  }
31
61
  /**
32
62
  * Check if a given object implements the BillBreakdownChargeDto interface.
@@ -26,6 +26,14 @@ function instanceOfBillBreakdownChargeDto(value) {
26
26
  return false;
27
27
  if (!('amount' in value) || value['amount'] === undefined)
28
28
  return false;
29
+ if (!('rate' in value) || value['rate'] === undefined)
30
+ return false;
31
+ if (!('isFixed' in value) || value['isFixed'] === undefined)
32
+ return false;
33
+ if (!('isDiscount' in value) || value['isDiscount'] === undefined)
34
+ return false;
35
+ if (!('vatRate' in value) || value['vatRate'] === undefined)
36
+ return false;
29
37
  return true;
30
38
  }
31
39
  function BillBreakdownChargeDtoFromJSON(json) {
@@ -38,6 +46,11 @@ function BillBreakdownChargeDtoFromJSONTyped(json, ignoreDiscriminator) {
38
46
  return {
39
47
  'name': json['name'],
40
48
  'amount': json['amount'],
49
+ 'rate': json['rate'],
50
+ 'isFixed': json['isFixed'],
51
+ 'isDiscount': json['isDiscount'],
52
+ 'kwh': json['kwh'] == null ? undefined : json['kwh'],
53
+ 'vatRate': json['vatRate'],
41
54
  };
42
55
  }
43
56
  function BillBreakdownChargeDtoToJSON(json) {
@@ -50,5 +63,10 @@ function BillBreakdownChargeDtoToJSONTyped(value, ignoreDiscriminator = false) {
50
63
  return {
51
64
  'name': value['name'],
52
65
  'amount': value['amount'],
66
+ 'rate': value['rate'],
67
+ 'isFixed': value['isFixed'],
68
+ 'isDiscount': value['isDiscount'],
69
+ 'kwh': value['kwh'],
70
+ 'vatRate': value['vatRate'],
53
71
  };
54
72
  }
@@ -22,7 +22,25 @@ export interface RateChargeDto {
22
22
  */
23
23
  name: string;
24
24
  /**
25
- *
25
+ * Monetary rate for this charge. Per-kWh amount for consumption-based charges; fixed peso amount for flat charges (e.g. meter rental).
26
+ * @type {number}
27
+ * @memberof RateChargeDto
28
+ */
29
+ rate: number;
30
+ /**
31
+ * When true the rate is a flat fixed monthly amount (e.g. Meter Rental). When false the amount is rate × kWh consumption. In standard Philippine ERC billing only Meter Rental is fixed; all other components are per-kWh.
32
+ * @type {boolean}
33
+ * @memberof RateChargeDto
34
+ */
35
+ isFixed: boolean;
36
+ /**
37
+ * When true this entry is a subsidy or discount that is subtracted from the bill total (e.g. Senior Citizen Subsidy, Lifeline Rate Allowance). The computed amount will be negative in the breakdown.
38
+ * @type {boolean}
39
+ * @memberof RateChargeDto
40
+ */
41
+ isDiscount: boolean;
42
+ /**
43
+ * VAT rate as decimal (0–0.12), e.g. 0.12 = 12%
26
44
  * @type {number}
27
45
  * @memberof RateChargeDto
28
46
  */
@@ -24,6 +24,12 @@ exports.RateChargeDtoToJSONTyped = RateChargeDtoToJSONTyped;
24
24
  function instanceOfRateChargeDto(value) {
25
25
  if (!('name' in value) || value['name'] === undefined)
26
26
  return false;
27
+ if (!('rate' in value) || value['rate'] === undefined)
28
+ return false;
29
+ if (!('isFixed' in value) || value['isFixed'] === undefined)
30
+ return false;
31
+ if (!('isDiscount' in value) || value['isDiscount'] === undefined)
32
+ return false;
27
33
  if (!('vatRate' in value) || value['vatRate'] === undefined)
28
34
  return false;
29
35
  return true;
@@ -37,6 +43,9 @@ function RateChargeDtoFromJSONTyped(json, ignoreDiscriminator) {
37
43
  }
38
44
  return {
39
45
  'name': json['name'],
46
+ 'rate': json['rate'],
47
+ 'isFixed': json['isFixed'],
48
+ 'isDiscount': json['isDiscount'],
40
49
  'vatRate': json['vatRate'],
41
50
  };
42
51
  }
@@ -49,6 +58,9 @@ function RateChargeDtoToJSONTyped(value, ignoreDiscriminator = false) {
49
58
  }
50
59
  return {
51
60
  'name': value['name'],
61
+ 'rate': value['rate'],
62
+ 'isFixed': value['isFixed'],
63
+ 'isDiscount': value['isDiscount'],
52
64
  'vatRate': value['vatRate'],
53
65
  };
54
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electric-coop-api",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "OpenAPI client for electric-coop-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -31,6 +31,36 @@ export interface BillBreakdownChargeDto {
31
31
  * @memberof BillBreakdownChargeDto
32
32
  */
33
33
  amount: number;
34
+ /**
35
+ * Unit rate used to compute this charge. Per-kWh rate for consumption-based charges; the fixed peso value for flat charges (e.g. meter rental).
36
+ * @type {number}
37
+ * @memberof BillBreakdownChargeDto
38
+ */
39
+ rate: number;
40
+ /**
41
+ * True if this is a flat fixed monthly charge (e.g. meter rental); false if computed as rate × kWh.
42
+ * @type {boolean}
43
+ * @memberof BillBreakdownChargeDto
44
+ */
45
+ isFixed: boolean;
46
+ /**
47
+ * True if this entry is a subsidy/discount subtracted from the total (e.g. Senior Citizen Subsidy). Amount will be negative.
48
+ * @type {boolean}
49
+ * @memberof BillBreakdownChargeDto
50
+ */
51
+ isDiscount: boolean;
52
+ /**
53
+ * kWh consumption applied to derive the amount. Null for fixed/flat charges (e.g. meter rental).
54
+ * @type {object}
55
+ * @memberof BillBreakdownChargeDto
56
+ */
57
+ kwh?: object | null;
58
+ /**
59
+ * VAT rate in effect at the time of billing (e.g. 0.12 = 12%).
60
+ * @type {number}
61
+ * @memberof BillBreakdownChargeDto
62
+ */
63
+ vatRate: number;
34
64
  }
35
65
 
36
66
  /**
@@ -39,6 +69,10 @@ export interface BillBreakdownChargeDto {
39
69
  export function instanceOfBillBreakdownChargeDto(value: object): value is BillBreakdownChargeDto {
40
70
  if (!('name' in value) || value['name'] === undefined) return false;
41
71
  if (!('amount' in value) || value['amount'] === undefined) return false;
72
+ if (!('rate' in value) || value['rate'] === undefined) return false;
73
+ if (!('isFixed' in value) || value['isFixed'] === undefined) return false;
74
+ if (!('isDiscount' in value) || value['isDiscount'] === undefined) return false;
75
+ if (!('vatRate' in value) || value['vatRate'] === undefined) return false;
42
76
  return true;
43
77
  }
44
78
 
@@ -54,6 +88,11 @@ export function BillBreakdownChargeDtoFromJSONTyped(json: any, ignoreDiscriminat
54
88
 
55
89
  'name': json['name'],
56
90
  'amount': json['amount'],
91
+ 'rate': json['rate'],
92
+ 'isFixed': json['isFixed'],
93
+ 'isDiscount': json['isDiscount'],
94
+ 'kwh': json['kwh'] == null ? undefined : json['kwh'],
95
+ 'vatRate': json['vatRate'],
57
96
  };
58
97
  }
59
98
 
@@ -70,6 +109,11 @@ export function BillBreakdownChargeDtoToJSONTyped(value?: BillBreakdownChargeDto
70
109
 
71
110
  'name': value['name'],
72
111
  'amount': value['amount'],
112
+ 'rate': value['rate'],
113
+ 'isFixed': value['isFixed'],
114
+ 'isDiscount': value['isDiscount'],
115
+ 'kwh': value['kwh'],
116
+ 'vatRate': value['vatRate'],
73
117
  };
74
118
  }
75
119
 
@@ -26,7 +26,25 @@ export interface RateChargeDto {
26
26
  */
27
27
  name: string;
28
28
  /**
29
- *
29
+ * Monetary rate for this charge. Per-kWh amount for consumption-based charges; fixed peso amount for flat charges (e.g. meter rental).
30
+ * @type {number}
31
+ * @memberof RateChargeDto
32
+ */
33
+ rate: number;
34
+ /**
35
+ * When true the rate is a flat fixed monthly amount (e.g. Meter Rental). When false the amount is rate × kWh consumption. In standard Philippine ERC billing only Meter Rental is fixed; all other components are per-kWh.
36
+ * @type {boolean}
37
+ * @memberof RateChargeDto
38
+ */
39
+ isFixed: boolean;
40
+ /**
41
+ * When true this entry is a subsidy or discount that is subtracted from the bill total (e.g. Senior Citizen Subsidy, Lifeline Rate Allowance). The computed amount will be negative in the breakdown.
42
+ * @type {boolean}
43
+ * @memberof RateChargeDto
44
+ */
45
+ isDiscount: boolean;
46
+ /**
47
+ * VAT rate as decimal (0–0.12), e.g. 0.12 = 12%
30
48
  * @type {number}
31
49
  * @memberof RateChargeDto
32
50
  */
@@ -38,6 +56,9 @@ export interface RateChargeDto {
38
56
  */
39
57
  export function instanceOfRateChargeDto(value: object): value is RateChargeDto {
40
58
  if (!('name' in value) || value['name'] === undefined) return false;
59
+ if (!('rate' in value) || value['rate'] === undefined) return false;
60
+ if (!('isFixed' in value) || value['isFixed'] === undefined) return false;
61
+ if (!('isDiscount' in value) || value['isDiscount'] === undefined) return false;
41
62
  if (!('vatRate' in value) || value['vatRate'] === undefined) return false;
42
63
  return true;
43
64
  }
@@ -53,6 +74,9 @@ export function RateChargeDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
53
74
  return {
54
75
 
55
76
  'name': json['name'],
77
+ 'rate': json['rate'],
78
+ 'isFixed': json['isFixed'],
79
+ 'isDiscount': json['isDiscount'],
56
80
  'vatRate': json['vatRate'],
57
81
  };
58
82
  }
@@ -69,6 +93,9 @@ export function RateChargeDtoToJSONTyped(value?: RateChargeDto | null, ignoreDis
69
93
  return {
70
94
 
71
95
  'name': value['name'],
96
+ 'rate': value['rate'],
97
+ 'isFixed': value['isFixed'],
98
+ 'isDiscount': value['isDiscount'],
72
99
  'vatRate': value['vatRate'],
73
100
  };
74
101
  }