green_link_api 1.10.2 → 1.10.4
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 +2 -2
- package/dist/ApiClient.js +51 -133
- package/dist/api/BlockchainApi.js +19 -38
- package/dist/api/EnergyAssetsApi.js +61 -106
- package/dist/api/EnergyDataApi.js +88 -152
- package/dist/api/HealthCheckApi.js +2 -12
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +2 -12
- package/dist/api/LocationsApi.js +21 -40
- package/dist/api/LogsApi.js +36 -67
- package/dist/api/MaintenanceCheckApi.js +2 -12
- package/dist/api/OrganizationprofilesApi.js +19 -38
- package/dist/api/OrganizationsApi.js +91 -146
- package/dist/api/SchemaApi.js +2 -12
- package/dist/api/SentryDebugApi.js +2 -12
- package/dist/api/UsersApi.js +23 -47
- package/dist/index.js +0 -110
- package/dist/model/Activities.js +9 -28
- package/dist/model/BlockchainTransaction.js +12 -36
- package/dist/model/Consumer.js +13 -37
- package/dist/model/ConsumptionDataFileList.js +8 -26
- package/dist/model/ConsumptionDataFromRetailerRequest.js +5 -20
- package/dist/model/ConsumptionDataPointCreate.js +24 -59
- package/dist/model/ConsumptionDataPointListOrDetail.js +24 -64
- package/dist/model/ConsumptionDataPointUpdate.js +24 -59
- package/dist/model/ConsumptionSite.js +15 -41
- package/dist/model/ConsumptionSiteContract.js +9 -29
- package/dist/model/ConsumptionSiteContractImport.js +5 -20
- package/dist/model/ConsumptionSiteCreate.js +15 -41
- package/dist/model/ConsumptionSiteFileUpload.js +8 -26
- package/dist/model/ConsumptionSiteListOrDetail.js +14 -41
- package/dist/model/ContentTypeEnum.js +0 -15
- package/dist/model/EacTypeEnum.js +0 -11
- package/dist/model/EmissionFactor.js +9 -28
- package/dist/model/EnergySourceEnum.js +0 -18
- package/dist/model/EnergySourcePreference.js +10 -32
- package/dist/model/GetFromEpias.js +5 -20
- package/dist/model/GridOperator.js +11 -33
- package/dist/model/ImportRequest.js +14 -40
- package/dist/model/ImportRequestStatusEnum.js +0 -14
- package/dist/model/ImportedEnergyDataPoint.js +11 -32
- package/dist/model/Issuer.js +11 -33
- package/dist/model/Location.js +19 -48
- package/dist/model/Login.js +5 -20
- package/dist/model/MatchRequest.js +23 -63
- package/dist/model/MatchTypeEnum.js +0 -12
- package/dist/model/MatchedEnergyDataPoint.js +14 -39
- package/dist/model/MatchingConsumerRequest.js +7 -24
- package/dist/model/MatchingSiteRequest.js +7 -24
- package/dist/model/OrganizationTypeEnum.js +0 -16
- package/dist/model/PaginatedActivitiesList.js +6 -23
- package/dist/model/PaginatedConsumerList.js +6 -23
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteContractList.js +6 -23
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedEmissionFactorList.js +6 -23
- package/dist/model/PaginatedEnergySourcePreferenceList.js +6 -23
- package/dist/model/PaginatedGridOperatorList.js +6 -23
- package/dist/model/PaginatedImportRequestList.js +6 -23
- package/dist/model/PaginatedImportedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedIssuerList.js +6 -23
- package/dist/model/PaginatedLocationList.js +6 -23
- package/dist/model/PaginatedMatchRequestList.js +6 -23
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +6 -23
- package/dist/model/PaginatedProducerList.js +6 -23
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +6 -23
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +6 -23
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +6 -23
- package/dist/model/PaginatedRetailerList.js +6 -23
- package/dist/model/PaginatedSmartContractList.js +6 -23
- package/dist/model/PaginatedUnprocessedRowList.js +6 -23
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +6 -23
- package/dist/model/PaginatedUploadedFileList.js +6 -23
- package/dist/model/PaginatedUserList.js +6 -23
- package/dist/model/PatchedConsumer.js +13 -37
- package/dist/model/PatchedConsumptionDataPointUpdate.js +24 -59
- package/dist/model/PatchedConsumptionSite.js +15 -41
- package/dist/model/PatchedEmissionFactor.js +9 -28
- package/dist/model/PatchedEnergySourcePreference.js +10 -32
- package/dist/model/PatchedGridOperator.js +11 -33
- package/dist/model/PatchedIssuer.js +11 -33
- package/dist/model/PatchedLocation.js +19 -48
- package/dist/model/PatchedProducer.js +11 -33
- package/dist/model/PatchedProductionDataPointUpdate.js +18 -47
- package/dist/model/PatchedProductionSiteUpdate.js +20 -51
- package/dist/model/PatchedRetailer.js +12 -35
- package/dist/model/PatchedSmartContract.js +9 -28
- package/dist/model/PatchedUser.js +18 -47
- package/dist/model/PatchedUserDetail.js +18 -47
- package/dist/model/PriorityEnum.js +0 -18
- package/dist/model/Producer.js +11 -33
- package/dist/model/ProductionDataFileList.js +8 -26
- package/dist/model/ProductionDataFromEpiasRequest.js +11 -36
- package/dist/model/ProductionDataPointCreate.js +18 -47
- package/dist/model/ProductionDataPointListOrDetail.js +19 -53
- package/dist/model/ProductionDataPointUpdate.js +18 -47
- package/dist/model/ProductionSite.js +20 -51
- package/dist/model/ProductionSiteFileUpload.js +12 -34
- package/dist/model/ProductionSiteListOrDetail.js +18 -48
- package/dist/model/ProductionSiteUpdate.js +20 -51
- package/dist/model/Register.js +14 -38
- package/dist/model/Retailer.js +12 -35
- package/dist/model/SmartContract.js +9 -28
- package/dist/model/Status619Enum.js +0 -13
- package/dist/model/Token.js +3 -16
- package/dist/model/TypeEnum.js +0 -13
- package/dist/model/UnprocessedRow.js +9 -28
- package/dist/model/UploadedCertificate.js +12 -35
- package/dist/model/UploadedCertificateListorDetail.js +12 -36
- package/dist/model/UploadedFile.js +10 -32
- package/dist/model/User.js +18 -47
- package/dist/model/UserDetail.js +18 -47
- package/package.json +1 -1
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _SmartContract = _interopRequireDefault(require("./SmartContract"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PatchedProductionDataPointUpdate model module.
|
|
22
15
|
* @module model/PatchedProductionDataPointUpdate
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var PatchedProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PatchedProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PatchedProductionDataPointUpdate() {
|
|
31
24
|
_classCallCheck(this, PatchedProductionDataPointUpdate);
|
|
32
|
-
|
|
33
25
|
PatchedProductionDataPointUpdate.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PatchedProductionDataPointUpdate, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PatchedProductionDataPointUpdate</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,169 +41,148 @@ var PatchedProductionDataPointUpdate = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PatchedProductionDataPointUpdate} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PatchedProductionDataPointUpdate} The populated <code>PatchedProductionDataPointUpdate</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PatchedProductionDataPointUpdate();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('id')) {
|
|
60
50
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('production_site')) {
|
|
64
53
|
obj['production_site'] = _ApiClient["default"].convertToType(data['production_site'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('producer')) {
|
|
68
56
|
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('grid_operator')) {
|
|
72
59
|
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
if (data.hasOwnProperty('retailer')) {
|
|
76
62
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
if (data.hasOwnProperty('emission_factor')) {
|
|
80
65
|
obj['emission_factor'] = _ApiClient["default"].convertToType(data['emission_factor'], 'String');
|
|
81
66
|
}
|
|
82
|
-
|
|
83
67
|
if (data.hasOwnProperty('production_start')) {
|
|
84
68
|
obj['production_start'] = _ApiClient["default"].convertToType(data['production_start'], 'Date');
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
if (data.hasOwnProperty('production_end')) {
|
|
88
71
|
obj['production_end'] = _ApiClient["default"].convertToType(data['production_end'], 'Date');
|
|
89
72
|
}
|
|
90
|
-
|
|
91
73
|
if (data.hasOwnProperty('amount_produced')) {
|
|
92
74
|
obj['amount_produced'] = _ApiClient["default"].convertToType(data['amount_produced'], 'Number');
|
|
93
75
|
}
|
|
94
|
-
|
|
95
76
|
if (data.hasOwnProperty('amount_matched')) {
|
|
96
77
|
obj['amount_matched'] = _ApiClient["default"].convertToType(data['amount_matched'], 'Number');
|
|
97
78
|
}
|
|
98
|
-
|
|
99
79
|
if (data.hasOwnProperty('is_fully_matched')) {
|
|
100
80
|
obj['is_fully_matched'] = _ApiClient["default"].convertToType(data['is_fully_matched'], 'Boolean');
|
|
101
81
|
}
|
|
102
|
-
|
|
103
82
|
if (data.hasOwnProperty('tx')) {
|
|
104
83
|
obj['tx'] = _ApiClient["default"].convertToType(data['tx'], 'String');
|
|
105
84
|
}
|
|
106
|
-
|
|
107
85
|
if (data.hasOwnProperty('is_settlement_data')) {
|
|
108
86
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
109
87
|
}
|
|
110
|
-
|
|
111
88
|
if (data.hasOwnProperty('minter_contract')) {
|
|
112
89
|
obj['minter_contract'] = _ApiClient["default"].convertToType(data['minter_contract'], _SmartContract["default"]);
|
|
113
90
|
}
|
|
114
|
-
|
|
115
91
|
if (data.hasOwnProperty('created_at')) {
|
|
116
92
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
117
93
|
}
|
|
118
|
-
|
|
119
94
|
if (data.hasOwnProperty('updated_at')) {
|
|
120
95
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
121
96
|
}
|
|
122
97
|
}
|
|
123
|
-
|
|
124
98
|
return obj;
|
|
125
99
|
}
|
|
126
100
|
}]);
|
|
127
|
-
|
|
128
101
|
return PatchedProductionDataPointUpdate;
|
|
129
102
|
}();
|
|
130
103
|
/**
|
|
131
104
|
* This ID is also the token ID in the smart contract.
|
|
132
105
|
* @member {Number} id
|
|
133
106
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
136
107
|
PatchedProductionDataPointUpdate.prototype['id'] = undefined;
|
|
108
|
+
|
|
137
109
|
/**
|
|
138
110
|
* @member {String} production_site
|
|
139
111
|
*/
|
|
140
|
-
|
|
141
112
|
PatchedProductionDataPointUpdate.prototype['production_site'] = undefined;
|
|
113
|
+
|
|
142
114
|
/**
|
|
143
115
|
* @member {String} producer
|
|
144
116
|
*/
|
|
145
|
-
|
|
146
117
|
PatchedProductionDataPointUpdate.prototype['producer'] = undefined;
|
|
118
|
+
|
|
147
119
|
/**
|
|
148
120
|
* @member {String} grid_operator
|
|
149
121
|
*/
|
|
150
|
-
|
|
151
122
|
PatchedProductionDataPointUpdate.prototype['grid_operator'] = undefined;
|
|
123
|
+
|
|
152
124
|
/**
|
|
153
125
|
* @member {String} retailer
|
|
154
126
|
*/
|
|
155
|
-
|
|
156
127
|
PatchedProductionDataPointUpdate.prototype['retailer'] = undefined;
|
|
128
|
+
|
|
157
129
|
/**
|
|
158
130
|
* @member {String} emission_factor
|
|
159
131
|
*/
|
|
160
|
-
|
|
161
132
|
PatchedProductionDataPointUpdate.prototype['emission_factor'] = undefined;
|
|
133
|
+
|
|
162
134
|
/**
|
|
163
135
|
* @member {Date} production_start
|
|
164
136
|
*/
|
|
165
|
-
|
|
166
137
|
PatchedProductionDataPointUpdate.prototype['production_start'] = undefined;
|
|
138
|
+
|
|
167
139
|
/**
|
|
168
140
|
* @member {Date} production_end
|
|
169
141
|
*/
|
|
170
|
-
|
|
171
142
|
PatchedProductionDataPointUpdate.prototype['production_end'] = undefined;
|
|
143
|
+
|
|
172
144
|
/**
|
|
173
145
|
* Required. Value should be in KWh. Default 0.
|
|
174
146
|
* @member {Number} amount_produced
|
|
175
147
|
*/
|
|
176
|
-
|
|
177
148
|
PatchedProductionDataPointUpdate.prototype['amount_produced'] = undefined;
|
|
149
|
+
|
|
178
150
|
/**
|
|
179
151
|
* Required. Value should be in KWh. Default 0.
|
|
180
152
|
* @member {Number} amount_matched
|
|
181
153
|
*/
|
|
182
|
-
|
|
183
154
|
PatchedProductionDataPointUpdate.prototype['amount_matched'] = undefined;
|
|
155
|
+
|
|
184
156
|
/**
|
|
185
157
|
* True if fully matched. Default False.
|
|
186
158
|
* @member {Boolean} is_fully_matched
|
|
187
159
|
*/
|
|
188
|
-
|
|
189
160
|
PatchedProductionDataPointUpdate.prototype['is_fully_matched'] = undefined;
|
|
161
|
+
|
|
190
162
|
/**
|
|
191
163
|
* @member {String} tx
|
|
192
164
|
*/
|
|
193
|
-
|
|
194
165
|
PatchedProductionDataPointUpdate.prototype['tx'] = undefined;
|
|
166
|
+
|
|
195
167
|
/**
|
|
196
168
|
* True if settlement data. Default False.
|
|
197
169
|
* @member {Boolean} is_settlement_data
|
|
198
170
|
*/
|
|
199
|
-
|
|
200
171
|
PatchedProductionDataPointUpdate.prototype['is_settlement_data'] = undefined;
|
|
172
|
+
|
|
201
173
|
/**
|
|
202
174
|
* @member {module:model/SmartContract} minter_contract
|
|
203
175
|
*/
|
|
204
|
-
|
|
205
176
|
PatchedProductionDataPointUpdate.prototype['minter_contract'] = undefined;
|
|
177
|
+
|
|
206
178
|
/**
|
|
207
179
|
* @member {Date} created_at
|
|
208
180
|
*/
|
|
209
|
-
|
|
210
181
|
PatchedProductionDataPointUpdate.prototype['created_at'] = undefined;
|
|
182
|
+
|
|
211
183
|
/**
|
|
212
184
|
* @member {Date} updated_at
|
|
213
185
|
*/
|
|
214
|
-
|
|
215
186
|
PatchedProductionDataPointUpdate.prototype['updated_at'] = undefined;
|
|
216
187
|
var _default = PatchedProductionDataPointUpdate;
|
|
217
188
|
exports["default"] = _default;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Location = _interopRequireDefault(require("./Location"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PatchedProductionSiteUpdate model module.
|
|
22
15
|
* @module model/PatchedProductionSiteUpdate
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var PatchedProductionSiteUpdate = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PatchedProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PatchedProductionSiteUpdate() {
|
|
31
24
|
_classCallCheck(this, PatchedProductionSiteUpdate);
|
|
32
|
-
|
|
33
25
|
PatchedProductionSiteUpdate.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PatchedProductionSiteUpdate, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PatchedProductionSiteUpdate</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,188 +41,165 @@ var PatchedProductionSiteUpdate = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PatchedProductionSiteUpdate} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PatchedProductionSiteUpdate} The populated <code>PatchedProductionSiteUpdate</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PatchedProductionSiteUpdate();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('id')) {
|
|
60
50
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('producer')) {
|
|
64
53
|
obj['producer'] = _ApiClient["default"].convertToType(data['producer'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('grid_operator')) {
|
|
68
56
|
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('issuer')) {
|
|
72
59
|
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
if (data.hasOwnProperty('retailer')) {
|
|
76
62
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
if (data.hasOwnProperty('location')) {
|
|
80
65
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
81
66
|
}
|
|
82
|
-
|
|
83
67
|
if (data.hasOwnProperty('name')) {
|
|
84
68
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
if (data.hasOwnProperty('site_logo')) {
|
|
88
71
|
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
89
72
|
}
|
|
90
|
-
|
|
91
73
|
if (data.hasOwnProperty('capacity')) {
|
|
92
74
|
obj['capacity'] = _ApiClient["default"].convertToType(data['capacity'], 'Number');
|
|
93
75
|
}
|
|
94
|
-
|
|
95
76
|
if (data.hasOwnProperty('energy_source')) {
|
|
96
77
|
obj['energy_source'] = _ApiClient["default"].convertToType(data['energy_source'], 'String');
|
|
97
78
|
}
|
|
98
|
-
|
|
99
79
|
if (data.hasOwnProperty('technology_or_fuel_type')) {
|
|
100
80
|
obj['technology_or_fuel_type'] = _ApiClient["default"].convertToType(data['technology_or_fuel_type'], 'String');
|
|
101
81
|
}
|
|
102
|
-
|
|
103
82
|
if (data.hasOwnProperty('eic')) {
|
|
104
83
|
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
105
84
|
}
|
|
106
|
-
|
|
107
85
|
if (data.hasOwnProperty('power_plant_id')) {
|
|
108
86
|
obj['power_plant_id'] = _ApiClient["default"].convertToType(data['power_plant_id'], 'Number');
|
|
109
87
|
}
|
|
110
|
-
|
|
111
88
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
112
89
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
113
90
|
}
|
|
114
|
-
|
|
115
91
|
if (data.hasOwnProperty('is_active')) {
|
|
116
92
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
117
93
|
}
|
|
118
|
-
|
|
119
94
|
if (data.hasOwnProperty('is_licensed')) {
|
|
120
95
|
obj['is_licensed'] = _ApiClient["default"].convertToType(data['is_licensed'], 'Boolean');
|
|
121
96
|
}
|
|
122
|
-
|
|
123
97
|
if (data.hasOwnProperty('created_at')) {
|
|
124
98
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
125
99
|
}
|
|
126
|
-
|
|
127
100
|
if (data.hasOwnProperty('updated_at')) {
|
|
128
101
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
129
102
|
}
|
|
130
103
|
}
|
|
131
|
-
|
|
132
104
|
return obj;
|
|
133
105
|
}
|
|
134
106
|
}]);
|
|
135
|
-
|
|
136
107
|
return PatchedProductionSiteUpdate;
|
|
137
108
|
}();
|
|
138
109
|
/**
|
|
139
110
|
* @member {String} id
|
|
140
111
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
112
|
PatchedProductionSiteUpdate.prototype['id'] = undefined;
|
|
113
|
+
|
|
144
114
|
/**
|
|
145
115
|
* @member {String} producer
|
|
146
116
|
*/
|
|
147
|
-
|
|
148
117
|
PatchedProductionSiteUpdate.prototype['producer'] = undefined;
|
|
118
|
+
|
|
149
119
|
/**
|
|
150
120
|
* @member {String} grid_operator
|
|
151
121
|
*/
|
|
152
|
-
|
|
153
122
|
PatchedProductionSiteUpdate.prototype['grid_operator'] = undefined;
|
|
123
|
+
|
|
154
124
|
/**
|
|
155
125
|
* @member {String} issuer
|
|
156
126
|
*/
|
|
157
|
-
|
|
158
127
|
PatchedProductionSiteUpdate.prototype['issuer'] = undefined;
|
|
128
|
+
|
|
159
129
|
/**
|
|
160
130
|
* @member {String} retailer
|
|
161
131
|
*/
|
|
162
|
-
|
|
163
132
|
PatchedProductionSiteUpdate.prototype['retailer'] = undefined;
|
|
133
|
+
|
|
164
134
|
/**
|
|
165
135
|
* @member {module:model/Location} location
|
|
166
136
|
*/
|
|
167
|
-
|
|
168
137
|
PatchedProductionSiteUpdate.prototype['location'] = undefined;
|
|
138
|
+
|
|
169
139
|
/**
|
|
170
140
|
* Required. 150 characters or fewer.
|
|
171
141
|
* @member {String} name
|
|
172
142
|
*/
|
|
173
|
-
|
|
174
143
|
PatchedProductionSiteUpdate.prototype['name'] = undefined;
|
|
144
|
+
|
|
175
145
|
/**
|
|
176
146
|
* @member {String} site_logo
|
|
177
147
|
*/
|
|
178
|
-
|
|
179
148
|
PatchedProductionSiteUpdate.prototype['site_logo'] = undefined;
|
|
149
|
+
|
|
180
150
|
/**
|
|
181
151
|
* (Optional) Value should be in KWh.
|
|
182
152
|
* @member {Number} capacity
|
|
183
153
|
*/
|
|
184
|
-
|
|
185
154
|
PatchedProductionSiteUpdate.prototype['capacity'] = undefined;
|
|
155
|
+
|
|
186
156
|
/**
|
|
187
157
|
* @member {String} energy_source
|
|
188
158
|
*/
|
|
189
|
-
|
|
190
159
|
PatchedProductionSiteUpdate.prototype['energy_source'] = undefined;
|
|
160
|
+
|
|
191
161
|
/**
|
|
192
162
|
* @member {String} technology_or_fuel_type
|
|
193
163
|
*/
|
|
194
|
-
|
|
195
164
|
PatchedProductionSiteUpdate.prototype['technology_or_fuel_type'] = undefined;
|
|
165
|
+
|
|
196
166
|
/**
|
|
197
167
|
* Required. 30 characters or fewer.
|
|
198
168
|
* @member {String} eic
|
|
199
169
|
*/
|
|
200
|
-
|
|
201
170
|
PatchedProductionSiteUpdate.prototype['eic'] = undefined;
|
|
171
|
+
|
|
202
172
|
/**
|
|
203
173
|
* Power plant ID of the site. Used for querying EPIAS Transparency Platform.
|
|
204
174
|
* @member {Number} power_plant_id
|
|
205
175
|
*/
|
|
206
|
-
|
|
207
176
|
PatchedProductionSiteUpdate.prototype['power_plant_id'] = undefined;
|
|
177
|
+
|
|
208
178
|
/**
|
|
209
179
|
* @member {String} blockchain_account_address
|
|
210
180
|
*/
|
|
211
|
-
|
|
212
181
|
PatchedProductionSiteUpdate.prototype['blockchain_account_address'] = undefined;
|
|
182
|
+
|
|
213
183
|
/**
|
|
214
184
|
* True if organization is active. Default True.
|
|
215
185
|
* @member {Boolean} is_active
|
|
216
186
|
*/
|
|
217
|
-
|
|
218
187
|
PatchedProductionSiteUpdate.prototype['is_active'] = undefined;
|
|
188
|
+
|
|
219
189
|
/**
|
|
220
190
|
* True if site is licensed. Default True.
|
|
221
191
|
* @member {Boolean} is_licensed
|
|
222
192
|
*/
|
|
223
|
-
|
|
224
193
|
PatchedProductionSiteUpdate.prototype['is_licensed'] = undefined;
|
|
194
|
+
|
|
225
195
|
/**
|
|
226
196
|
* @member {Date} created_at
|
|
227
197
|
*/
|
|
228
|
-
|
|
229
198
|
PatchedProductionSiteUpdate.prototype['created_at'] = undefined;
|
|
199
|
+
|
|
230
200
|
/**
|
|
231
201
|
* @member {Date} updated_at
|
|
232
202
|
*/
|
|
233
|
-
|
|
234
203
|
PatchedProductionSiteUpdate.prototype['updated_at'] = undefined;
|
|
235
204
|
var _default = PatchedProductionSiteUpdate;
|
|
236
205
|
exports["default"] = _default;
|
|
@@ -4,23 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Location = _interopRequireDefault(require("./Location"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
|
|
18
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
-
|
|
20
13
|
/**
|
|
21
14
|
* The PatchedRetailer model module.
|
|
22
15
|
* @module model/PatchedRetailer
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var PatchedRetailer = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -29,19 +22,18 @@ var PatchedRetailer = /*#__PURE__*/function () {
|
|
|
29
22
|
*/
|
|
30
23
|
function PatchedRetailer() {
|
|
31
24
|
_classCallCheck(this, PatchedRetailer);
|
|
32
|
-
|
|
33
25
|
PatchedRetailer.initialize(this);
|
|
34
26
|
}
|
|
27
|
+
|
|
35
28
|
/**
|
|
36
29
|
* Initializes the fields of this object.
|
|
37
30
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
31
|
* Only for internal use.
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
33
|
_createClass(PatchedRetailer, null, [{
|
|
43
34
|
key: "initialize",
|
|
44
35
|
value: function initialize(obj) {}
|
|
36
|
+
|
|
45
37
|
/**
|
|
46
38
|
* Constructs a <code>PatchedRetailer</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
39
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,115 +41,100 @@ var PatchedRetailer = /*#__PURE__*/function () {
|
|
|
49
41
|
* @param {module:model/PatchedRetailer} obj Optional instance to populate.
|
|
50
42
|
* @return {module:model/PatchedRetailer} The populated <code>PatchedRetailer</code> instance.
|
|
51
43
|
*/
|
|
52
|
-
|
|
53
44
|
}, {
|
|
54
45
|
key: "constructFromObject",
|
|
55
46
|
value: function constructFromObject(data, obj) {
|
|
56
47
|
if (data) {
|
|
57
48
|
obj = obj || new PatchedRetailer();
|
|
58
|
-
|
|
59
49
|
if (data.hasOwnProperty('id')) {
|
|
60
50
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
if (data.hasOwnProperty('name')) {
|
|
64
53
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
if (data.hasOwnProperty('api_provider_name')) {
|
|
68
56
|
obj['api_provider_name'] = _ApiClient["default"].convertToType(data['api_provider_name'], 'String');
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
if (data.hasOwnProperty('location')) {
|
|
72
59
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
76
62
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
if (data.hasOwnProperty('website_url')) {
|
|
80
65
|
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
81
66
|
}
|
|
82
|
-
|
|
83
67
|
if (data.hasOwnProperty('is_active')) {
|
|
84
68
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
if (data.hasOwnProperty('is_registrant')) {
|
|
88
71
|
obj['is_registrant'] = _ApiClient["default"].convertToType(data['is_registrant'], 'Boolean');
|
|
89
72
|
}
|
|
90
|
-
|
|
91
73
|
if (data.hasOwnProperty('created_at')) {
|
|
92
74
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
93
75
|
}
|
|
94
|
-
|
|
95
76
|
if (data.hasOwnProperty('updated_at')) {
|
|
96
77
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
97
78
|
}
|
|
98
79
|
}
|
|
99
|
-
|
|
100
80
|
return obj;
|
|
101
81
|
}
|
|
102
82
|
}]);
|
|
103
|
-
|
|
104
83
|
return PatchedRetailer;
|
|
105
84
|
}();
|
|
106
85
|
/**
|
|
107
86
|
* @member {String} id
|
|
108
87
|
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
88
|
PatchedRetailer.prototype['id'] = undefined;
|
|
89
|
+
|
|
112
90
|
/**
|
|
113
91
|
* Required. 150 characters or fewer.
|
|
114
92
|
* @member {String} name
|
|
115
93
|
*/
|
|
116
|
-
|
|
117
94
|
PatchedRetailer.prototype['name'] = undefined;
|
|
95
|
+
|
|
118
96
|
/**
|
|
119
97
|
* Not required. 150 characters or fewer.
|
|
120
98
|
* @member {String} api_provider_name
|
|
121
99
|
*/
|
|
122
|
-
|
|
123
100
|
PatchedRetailer.prototype['api_provider_name'] = undefined;
|
|
101
|
+
|
|
124
102
|
/**
|
|
125
103
|
* @member {module:model/Location} location
|
|
126
104
|
*/
|
|
127
|
-
|
|
128
105
|
PatchedRetailer.prototype['location'] = undefined;
|
|
106
|
+
|
|
129
107
|
/**
|
|
130
108
|
* @member {String} blockchain_account_address
|
|
131
109
|
*/
|
|
132
|
-
|
|
133
110
|
PatchedRetailer.prototype['blockchain_account_address'] = undefined;
|
|
111
|
+
|
|
134
112
|
/**
|
|
135
113
|
* Not required. 200 characters or fewer.
|
|
136
114
|
* @member {String} website_url
|
|
137
115
|
*/
|
|
138
|
-
|
|
139
116
|
PatchedRetailer.prototype['website_url'] = undefined;
|
|
117
|
+
|
|
140
118
|
/**
|
|
141
119
|
* True if organization is active. Default True.
|
|
142
120
|
* @member {Boolean} is_active
|
|
143
121
|
*/
|
|
144
|
-
|
|
145
122
|
PatchedRetailer.prototype['is_active'] = undefined;
|
|
123
|
+
|
|
146
124
|
/**
|
|
147
125
|
* True if retailer is a registrant. Default True.
|
|
148
126
|
* @member {Boolean} is_registrant
|
|
149
127
|
*/
|
|
150
|
-
|
|
151
128
|
PatchedRetailer.prototype['is_registrant'] = undefined;
|
|
129
|
+
|
|
152
130
|
/**
|
|
153
131
|
* @member {Date} created_at
|
|
154
132
|
*/
|
|
155
|
-
|
|
156
133
|
PatchedRetailer.prototype['created_at'] = undefined;
|
|
134
|
+
|
|
157
135
|
/**
|
|
158
136
|
* @member {Date} updated_at
|
|
159
137
|
*/
|
|
160
|
-
|
|
161
138
|
PatchedRetailer.prototype['updated_at'] = undefined;
|
|
162
139
|
var _default = PatchedRetailer;
|
|
163
140
|
exports["default"] = _default;
|