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 _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 ConsumptionSite model module.
|
|
22
15
|
* @module model/ConsumptionSite
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var ConsumptionSite = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -32,16 +25,14 @@ var ConsumptionSite = /*#__PURE__*/function () {
|
|
|
32
25
|
*/
|
|
33
26
|
function ConsumptionSite(location, name, eic) {
|
|
34
27
|
_classCallCheck(this, ConsumptionSite);
|
|
35
|
-
|
|
36
28
|
ConsumptionSite.initialize(this, location, name, eic);
|
|
37
29
|
}
|
|
30
|
+
|
|
38
31
|
/**
|
|
39
32
|
* Initializes the fields of this object.
|
|
40
33
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
34
|
* Only for internal use.
|
|
42
35
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
36
|
_createClass(ConsumptionSite, null, [{
|
|
46
37
|
key: "initialize",
|
|
47
38
|
value: function initialize(obj, location, name, eic) {
|
|
@@ -49,6 +40,7 @@ var ConsumptionSite = /*#__PURE__*/function () {
|
|
|
49
40
|
obj['name'] = name;
|
|
50
41
|
obj['eic'] = eic;
|
|
51
42
|
}
|
|
43
|
+
|
|
52
44
|
/**
|
|
53
45
|
* Constructs a <code>ConsumptionSite</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
46
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -56,140 +48,122 @@ var ConsumptionSite = /*#__PURE__*/function () {
|
|
|
56
48
|
* @param {module:model/ConsumptionSite} obj Optional instance to populate.
|
|
57
49
|
* @return {module:model/ConsumptionSite} The populated <code>ConsumptionSite</code> instance.
|
|
58
50
|
*/
|
|
59
|
-
|
|
60
51
|
}, {
|
|
61
52
|
key: "constructFromObject",
|
|
62
53
|
value: function constructFromObject(data, obj) {
|
|
63
54
|
if (data) {
|
|
64
55
|
obj = obj || new ConsumptionSite();
|
|
65
|
-
|
|
66
56
|
if (data.hasOwnProperty('id')) {
|
|
67
57
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
68
58
|
}
|
|
69
|
-
|
|
70
59
|
if (data.hasOwnProperty('consumer')) {
|
|
71
60
|
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
72
61
|
}
|
|
73
|
-
|
|
74
62
|
if (data.hasOwnProperty('grid_operator')) {
|
|
75
63
|
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
76
64
|
}
|
|
77
|
-
|
|
78
65
|
if (data.hasOwnProperty('retailer')) {
|
|
79
66
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
80
67
|
}
|
|
81
|
-
|
|
82
68
|
if (data.hasOwnProperty('issuer')) {
|
|
83
69
|
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
84
70
|
}
|
|
85
|
-
|
|
86
71
|
if (data.hasOwnProperty('location')) {
|
|
87
72
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
88
73
|
}
|
|
89
|
-
|
|
90
74
|
if (data.hasOwnProperty('name')) {
|
|
91
75
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
92
76
|
}
|
|
93
|
-
|
|
94
77
|
if (data.hasOwnProperty('site_logo')) {
|
|
95
78
|
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
96
79
|
}
|
|
97
|
-
|
|
98
80
|
if (data.hasOwnProperty('eic')) {
|
|
99
81
|
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
100
82
|
}
|
|
101
|
-
|
|
102
83
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
103
84
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
104
85
|
}
|
|
105
|
-
|
|
106
86
|
if (data.hasOwnProperty('is_active')) {
|
|
107
87
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
108
88
|
}
|
|
109
|
-
|
|
110
89
|
if (data.hasOwnProperty('created_at')) {
|
|
111
90
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
112
91
|
}
|
|
113
|
-
|
|
114
92
|
if (data.hasOwnProperty('updated_at')) {
|
|
115
93
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
116
94
|
}
|
|
117
95
|
}
|
|
118
|
-
|
|
119
96
|
return obj;
|
|
120
97
|
}
|
|
121
98
|
}]);
|
|
122
|
-
|
|
123
99
|
return ConsumptionSite;
|
|
124
100
|
}();
|
|
125
101
|
/**
|
|
126
102
|
* @member {String} id
|
|
127
103
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
104
|
ConsumptionSite.prototype['id'] = undefined;
|
|
105
|
+
|
|
131
106
|
/**
|
|
132
107
|
* @member {String} consumer
|
|
133
108
|
*/
|
|
134
|
-
|
|
135
109
|
ConsumptionSite.prototype['consumer'] = undefined;
|
|
110
|
+
|
|
136
111
|
/**
|
|
137
112
|
* @member {String} grid_operator
|
|
138
113
|
*/
|
|
139
|
-
|
|
140
114
|
ConsumptionSite.prototype['grid_operator'] = undefined;
|
|
115
|
+
|
|
141
116
|
/**
|
|
142
117
|
* @member {String} retailer
|
|
143
118
|
*/
|
|
144
|
-
|
|
145
119
|
ConsumptionSite.prototype['retailer'] = undefined;
|
|
120
|
+
|
|
146
121
|
/**
|
|
147
122
|
* @member {String} issuer
|
|
148
123
|
*/
|
|
149
|
-
|
|
150
124
|
ConsumptionSite.prototype['issuer'] = undefined;
|
|
125
|
+
|
|
151
126
|
/**
|
|
152
127
|
* @member {module:model/Location} location
|
|
153
128
|
*/
|
|
154
|
-
|
|
155
129
|
ConsumptionSite.prototype['location'] = undefined;
|
|
130
|
+
|
|
156
131
|
/**
|
|
157
132
|
* Required. 150 characters or fewer.
|
|
158
133
|
* @member {String} name
|
|
159
134
|
*/
|
|
160
|
-
|
|
161
135
|
ConsumptionSite.prototype['name'] = undefined;
|
|
136
|
+
|
|
162
137
|
/**
|
|
163
138
|
* @member {String} site_logo
|
|
164
139
|
*/
|
|
165
|
-
|
|
166
140
|
ConsumptionSite.prototype['site_logo'] = undefined;
|
|
141
|
+
|
|
167
142
|
/**
|
|
168
143
|
* Required. 30 characters or fewer.
|
|
169
144
|
* @member {String} eic
|
|
170
145
|
*/
|
|
171
|
-
|
|
172
146
|
ConsumptionSite.prototype['eic'] = undefined;
|
|
147
|
+
|
|
173
148
|
/**
|
|
174
149
|
* @member {String} blockchain_account_address
|
|
175
150
|
*/
|
|
176
|
-
|
|
177
151
|
ConsumptionSite.prototype['blockchain_account_address'] = undefined;
|
|
152
|
+
|
|
178
153
|
/**
|
|
179
154
|
* True if organization is active. Default True.
|
|
180
155
|
* @member {Boolean} is_active
|
|
181
156
|
*/
|
|
182
|
-
|
|
183
157
|
ConsumptionSite.prototype['is_active'] = undefined;
|
|
158
|
+
|
|
184
159
|
/**
|
|
185
160
|
* @member {Date} created_at
|
|
186
161
|
*/
|
|
187
|
-
|
|
188
162
|
ConsumptionSite.prototype['created_at'] = undefined;
|
|
163
|
+
|
|
189
164
|
/**
|
|
190
165
|
* @member {Date} updated_at
|
|
191
166
|
*/
|
|
192
|
-
|
|
193
167
|
ConsumptionSite.prototype['updated_at'] = undefined;
|
|
194
168
|
var _default = ConsumptionSite;
|
|
195
169
|
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 _ConsumptionSite = _interopRequireDefault(require("./ConsumptionSite"));
|
|
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 ConsumptionSiteContract model module.
|
|
22
15
|
* @module model/ConsumptionSiteContract
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var ConsumptionSiteContract = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -32,16 +25,14 @@ var ConsumptionSiteContract = /*#__PURE__*/function () {
|
|
|
32
25
|
*/
|
|
33
26
|
function ConsumptionSiteContract(consumptionSite, startDate, endDate) {
|
|
34
27
|
_classCallCheck(this, ConsumptionSiteContract);
|
|
35
|
-
|
|
36
28
|
ConsumptionSiteContract.initialize(this, consumptionSite, startDate, endDate);
|
|
37
29
|
}
|
|
30
|
+
|
|
38
31
|
/**
|
|
39
32
|
* Initializes the fields of this object.
|
|
40
33
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
34
|
* Only for internal use.
|
|
42
35
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
36
|
_createClass(ConsumptionSiteContract, null, [{
|
|
46
37
|
key: "initialize",
|
|
47
38
|
value: function initialize(obj, consumptionSite, startDate, endDate) {
|
|
@@ -49,6 +40,7 @@ var ConsumptionSiteContract = /*#__PURE__*/function () {
|
|
|
49
40
|
obj['start_date'] = startDate;
|
|
50
41
|
obj['end_date'] = endDate;
|
|
51
42
|
}
|
|
43
|
+
|
|
52
44
|
/**
|
|
53
45
|
* Constructs a <code>ConsumptionSiteContract</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
46
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -56,83 +48,71 @@ var ConsumptionSiteContract = /*#__PURE__*/function () {
|
|
|
56
48
|
* @param {module:model/ConsumptionSiteContract} obj Optional instance to populate.
|
|
57
49
|
* @return {module:model/ConsumptionSiteContract} The populated <code>ConsumptionSiteContract</code> instance.
|
|
58
50
|
*/
|
|
59
|
-
|
|
60
51
|
}, {
|
|
61
52
|
key: "constructFromObject",
|
|
62
53
|
value: function constructFromObject(data, obj) {
|
|
63
54
|
if (data) {
|
|
64
55
|
obj = obj || new ConsumptionSiteContract();
|
|
65
|
-
|
|
66
56
|
if (data.hasOwnProperty('id')) {
|
|
67
57
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
68
58
|
}
|
|
69
|
-
|
|
70
59
|
if (data.hasOwnProperty('consumption_site')) {
|
|
71
60
|
obj['consumption_site'] = _ConsumptionSite["default"].constructFromObject(data['consumption_site']);
|
|
72
61
|
}
|
|
73
|
-
|
|
74
62
|
if (data.hasOwnProperty('amount_consumed')) {
|
|
75
63
|
obj['amount_consumed'] = _ApiClient["default"].convertToType(data['amount_consumed'], 'String');
|
|
76
64
|
}
|
|
77
|
-
|
|
78
65
|
if (data.hasOwnProperty('start_date')) {
|
|
79
66
|
obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
|
|
80
67
|
}
|
|
81
|
-
|
|
82
68
|
if (data.hasOwnProperty('end_date')) {
|
|
83
69
|
obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
|
|
84
70
|
}
|
|
85
|
-
|
|
86
71
|
if (data.hasOwnProperty('created_at')) {
|
|
87
72
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
88
73
|
}
|
|
89
|
-
|
|
90
74
|
if (data.hasOwnProperty('updated_at')) {
|
|
91
75
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
92
76
|
}
|
|
93
77
|
}
|
|
94
|
-
|
|
95
78
|
return obj;
|
|
96
79
|
}
|
|
97
80
|
}]);
|
|
98
|
-
|
|
99
81
|
return ConsumptionSiteContract;
|
|
100
82
|
}();
|
|
101
83
|
/**
|
|
102
84
|
* @member {String} id
|
|
103
85
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
86
|
ConsumptionSiteContract.prototype['id'] = undefined;
|
|
87
|
+
|
|
107
88
|
/**
|
|
108
89
|
* @member {module:model/ConsumptionSite} consumption_site
|
|
109
90
|
*/
|
|
110
|
-
|
|
111
91
|
ConsumptionSiteContract.prototype['consumption_site'] = undefined;
|
|
92
|
+
|
|
112
93
|
/**
|
|
113
94
|
* @member {String} amount_consumed
|
|
114
95
|
*/
|
|
115
|
-
|
|
116
96
|
ConsumptionSiteContract.prototype['amount_consumed'] = undefined;
|
|
97
|
+
|
|
117
98
|
/**
|
|
118
99
|
* @member {Date} start_date
|
|
119
100
|
*/
|
|
120
|
-
|
|
121
101
|
ConsumptionSiteContract.prototype['start_date'] = undefined;
|
|
102
|
+
|
|
122
103
|
/**
|
|
123
104
|
* @member {Date} end_date
|
|
124
105
|
*/
|
|
125
|
-
|
|
126
106
|
ConsumptionSiteContract.prototype['end_date'] = undefined;
|
|
107
|
+
|
|
127
108
|
/**
|
|
128
109
|
* @member {Date} created_at
|
|
129
110
|
*/
|
|
130
|
-
|
|
131
111
|
ConsumptionSiteContract.prototype['created_at'] = undefined;
|
|
112
|
+
|
|
132
113
|
/**
|
|
133
114
|
* @member {Date} updated_at
|
|
134
115
|
*/
|
|
135
|
-
|
|
136
116
|
ConsumptionSiteContract.prototype['updated_at'] = undefined;
|
|
137
117
|
var _default = ConsumptionSiteContract;
|
|
138
118
|
exports["default"] = _default;
|
|
@@ -4,21 +4,15 @@ 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
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
-
|
|
14
10
|
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); } }
|
|
15
|
-
|
|
16
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* The ConsumptionSiteContractImport model module.
|
|
20
14
|
* @module model/ConsumptionSiteContractImport
|
|
21
|
-
* @version 1.10.
|
|
15
|
+
* @version 1.10.4
|
|
22
16
|
*/
|
|
23
17
|
var ConsumptionSiteContractImport = /*#__PURE__*/function () {
|
|
24
18
|
/**
|
|
@@ -30,16 +24,14 @@ var ConsumptionSiteContractImport = /*#__PURE__*/function () {
|
|
|
30
24
|
*/
|
|
31
25
|
function ConsumptionSiteContractImport(consumerId, startDate, endDate) {
|
|
32
26
|
_classCallCheck(this, ConsumptionSiteContractImport);
|
|
33
|
-
|
|
34
27
|
ConsumptionSiteContractImport.initialize(this, consumerId, startDate, endDate);
|
|
35
28
|
}
|
|
29
|
+
|
|
36
30
|
/**
|
|
37
31
|
* Initializes the fields of this object.
|
|
38
32
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
39
33
|
* Only for internal use.
|
|
40
34
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
35
|
_createClass(ConsumptionSiteContractImport, null, [{
|
|
44
36
|
key: "initialize",
|
|
45
37
|
value: function initialize(obj, consumerId, startDate, endDate) {
|
|
@@ -47,6 +39,7 @@ var ConsumptionSiteContractImport = /*#__PURE__*/function () {
|
|
|
47
39
|
obj['start_date'] = startDate;
|
|
48
40
|
obj['end_date'] = endDate;
|
|
49
41
|
}
|
|
42
|
+
|
|
50
43
|
/**
|
|
51
44
|
* Constructs a <code>ConsumptionSiteContractImport</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
45
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -54,47 +47,39 @@ var ConsumptionSiteContractImport = /*#__PURE__*/function () {
|
|
|
54
47
|
* @param {module:model/ConsumptionSiteContractImport} obj Optional instance to populate.
|
|
55
48
|
* @return {module:model/ConsumptionSiteContractImport} The populated <code>ConsumptionSiteContractImport</code> instance.
|
|
56
49
|
*/
|
|
57
|
-
|
|
58
50
|
}, {
|
|
59
51
|
key: "constructFromObject",
|
|
60
52
|
value: function constructFromObject(data, obj) {
|
|
61
53
|
if (data) {
|
|
62
54
|
obj = obj || new ConsumptionSiteContractImport();
|
|
63
|
-
|
|
64
55
|
if (data.hasOwnProperty('consumer_id')) {
|
|
65
56
|
obj['consumer_id'] = _ApiClient["default"].convertToType(data['consumer_id'], 'String');
|
|
66
57
|
}
|
|
67
|
-
|
|
68
58
|
if (data.hasOwnProperty('start_date')) {
|
|
69
59
|
obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
|
|
70
60
|
}
|
|
71
|
-
|
|
72
61
|
if (data.hasOwnProperty('end_date')) {
|
|
73
62
|
obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
|
|
74
63
|
}
|
|
75
64
|
}
|
|
76
|
-
|
|
77
65
|
return obj;
|
|
78
66
|
}
|
|
79
67
|
}]);
|
|
80
|
-
|
|
81
68
|
return ConsumptionSiteContractImport;
|
|
82
69
|
}();
|
|
83
70
|
/**
|
|
84
71
|
* @member {String} consumer_id
|
|
85
72
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
73
|
ConsumptionSiteContractImport.prototype['consumer_id'] = undefined;
|
|
74
|
+
|
|
89
75
|
/**
|
|
90
76
|
* @member {Date} start_date
|
|
91
77
|
*/
|
|
92
|
-
|
|
93
78
|
ConsumptionSiteContractImport.prototype['start_date'] = undefined;
|
|
79
|
+
|
|
94
80
|
/**
|
|
95
81
|
* @member {Date} end_date
|
|
96
82
|
*/
|
|
97
|
-
|
|
98
83
|
ConsumptionSiteContractImport.prototype['end_date'] = undefined;
|
|
99
84
|
var _default = ConsumptionSiteContractImport;
|
|
100
85
|
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 ConsumptionSiteCreate model module.
|
|
22
15
|
* @module model/ConsumptionSiteCreate
|
|
23
|
-
* @version 1.10.
|
|
16
|
+
* @version 1.10.4
|
|
24
17
|
*/
|
|
25
18
|
var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
26
19
|
/**
|
|
@@ -32,16 +25,14 @@ var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
|
32
25
|
*/
|
|
33
26
|
function ConsumptionSiteCreate(location, name, eic) {
|
|
34
27
|
_classCallCheck(this, ConsumptionSiteCreate);
|
|
35
|
-
|
|
36
28
|
ConsumptionSiteCreate.initialize(this, location, name, eic);
|
|
37
29
|
}
|
|
30
|
+
|
|
38
31
|
/**
|
|
39
32
|
* Initializes the fields of this object.
|
|
40
33
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
34
|
* Only for internal use.
|
|
42
35
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
36
|
_createClass(ConsumptionSiteCreate, null, [{
|
|
46
37
|
key: "initialize",
|
|
47
38
|
value: function initialize(obj, location, name, eic) {
|
|
@@ -49,6 +40,7 @@ var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
|
49
40
|
obj['name'] = name;
|
|
50
41
|
obj['eic'] = eic;
|
|
51
42
|
}
|
|
43
|
+
|
|
52
44
|
/**
|
|
53
45
|
* Constructs a <code>ConsumptionSiteCreate</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
46
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -56,140 +48,122 @@ var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
|
56
48
|
* @param {module:model/ConsumptionSiteCreate} obj Optional instance to populate.
|
|
57
49
|
* @return {module:model/ConsumptionSiteCreate} The populated <code>ConsumptionSiteCreate</code> instance.
|
|
58
50
|
*/
|
|
59
|
-
|
|
60
51
|
}, {
|
|
61
52
|
key: "constructFromObject",
|
|
62
53
|
value: function constructFromObject(data, obj) {
|
|
63
54
|
if (data) {
|
|
64
55
|
obj = obj || new ConsumptionSiteCreate();
|
|
65
|
-
|
|
66
56
|
if (data.hasOwnProperty('id')) {
|
|
67
57
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
68
58
|
}
|
|
69
|
-
|
|
70
59
|
if (data.hasOwnProperty('consumer')) {
|
|
71
60
|
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
72
61
|
}
|
|
73
|
-
|
|
74
62
|
if (data.hasOwnProperty('grid_operator')) {
|
|
75
63
|
obj['grid_operator'] = _ApiClient["default"].convertToType(data['grid_operator'], 'String');
|
|
76
64
|
}
|
|
77
|
-
|
|
78
65
|
if (data.hasOwnProperty('retailer')) {
|
|
79
66
|
obj['retailer'] = _ApiClient["default"].convertToType(data['retailer'], 'String');
|
|
80
67
|
}
|
|
81
|
-
|
|
82
68
|
if (data.hasOwnProperty('issuer')) {
|
|
83
69
|
obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String');
|
|
84
70
|
}
|
|
85
|
-
|
|
86
71
|
if (data.hasOwnProperty('location')) {
|
|
87
72
|
obj['location'] = _Location["default"].constructFromObject(data['location']);
|
|
88
73
|
}
|
|
89
|
-
|
|
90
74
|
if (data.hasOwnProperty('name')) {
|
|
91
75
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
92
76
|
}
|
|
93
|
-
|
|
94
77
|
if (data.hasOwnProperty('site_logo')) {
|
|
95
78
|
obj['site_logo'] = _ApiClient["default"].convertToType(data['site_logo'], 'String');
|
|
96
79
|
}
|
|
97
|
-
|
|
98
80
|
if (data.hasOwnProperty('eic')) {
|
|
99
81
|
obj['eic'] = _ApiClient["default"].convertToType(data['eic'], 'String');
|
|
100
82
|
}
|
|
101
|
-
|
|
102
83
|
if (data.hasOwnProperty('blockchain_account_address')) {
|
|
103
84
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
104
85
|
}
|
|
105
|
-
|
|
106
86
|
if (data.hasOwnProperty('is_active')) {
|
|
107
87
|
obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
|
|
108
88
|
}
|
|
109
|
-
|
|
110
89
|
if (data.hasOwnProperty('created_at')) {
|
|
111
90
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
112
91
|
}
|
|
113
|
-
|
|
114
92
|
if (data.hasOwnProperty('updated_at')) {
|
|
115
93
|
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
116
94
|
}
|
|
117
95
|
}
|
|
118
|
-
|
|
119
96
|
return obj;
|
|
120
97
|
}
|
|
121
98
|
}]);
|
|
122
|
-
|
|
123
99
|
return ConsumptionSiteCreate;
|
|
124
100
|
}();
|
|
125
101
|
/**
|
|
126
102
|
* @member {String} id
|
|
127
103
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
104
|
ConsumptionSiteCreate.prototype['id'] = undefined;
|
|
105
|
+
|
|
131
106
|
/**
|
|
132
107
|
* @member {String} consumer
|
|
133
108
|
*/
|
|
134
|
-
|
|
135
109
|
ConsumptionSiteCreate.prototype['consumer'] = undefined;
|
|
110
|
+
|
|
136
111
|
/**
|
|
137
112
|
* @member {String} grid_operator
|
|
138
113
|
*/
|
|
139
|
-
|
|
140
114
|
ConsumptionSiteCreate.prototype['grid_operator'] = undefined;
|
|
115
|
+
|
|
141
116
|
/**
|
|
142
117
|
* @member {String} retailer
|
|
143
118
|
*/
|
|
144
|
-
|
|
145
119
|
ConsumptionSiteCreate.prototype['retailer'] = undefined;
|
|
120
|
+
|
|
146
121
|
/**
|
|
147
122
|
* @member {String} issuer
|
|
148
123
|
*/
|
|
149
|
-
|
|
150
124
|
ConsumptionSiteCreate.prototype['issuer'] = undefined;
|
|
125
|
+
|
|
151
126
|
/**
|
|
152
127
|
* @member {module:model/Location} location
|
|
153
128
|
*/
|
|
154
|
-
|
|
155
129
|
ConsumptionSiteCreate.prototype['location'] = undefined;
|
|
130
|
+
|
|
156
131
|
/**
|
|
157
132
|
* Required. 150 characters or fewer.
|
|
158
133
|
* @member {String} name
|
|
159
134
|
*/
|
|
160
|
-
|
|
161
135
|
ConsumptionSiteCreate.prototype['name'] = undefined;
|
|
136
|
+
|
|
162
137
|
/**
|
|
163
138
|
* @member {String} site_logo
|
|
164
139
|
*/
|
|
165
|
-
|
|
166
140
|
ConsumptionSiteCreate.prototype['site_logo'] = undefined;
|
|
141
|
+
|
|
167
142
|
/**
|
|
168
143
|
* Required. 30 characters or fewer.
|
|
169
144
|
* @member {String} eic
|
|
170
145
|
*/
|
|
171
|
-
|
|
172
146
|
ConsumptionSiteCreate.prototype['eic'] = undefined;
|
|
147
|
+
|
|
173
148
|
/**
|
|
174
149
|
* @member {String} blockchain_account_address
|
|
175
150
|
*/
|
|
176
|
-
|
|
177
151
|
ConsumptionSiteCreate.prototype['blockchain_account_address'] = undefined;
|
|
152
|
+
|
|
178
153
|
/**
|
|
179
154
|
* True if organization is active. Default True.
|
|
180
155
|
* @member {Boolean} is_active
|
|
181
156
|
*/
|
|
182
|
-
|
|
183
157
|
ConsumptionSiteCreate.prototype['is_active'] = undefined;
|
|
158
|
+
|
|
184
159
|
/**
|
|
185
160
|
* @member {Date} created_at
|
|
186
161
|
*/
|
|
187
|
-
|
|
188
162
|
ConsumptionSiteCreate.prototype['created_at'] = undefined;
|
|
163
|
+
|
|
189
164
|
/**
|
|
190
165
|
* @member {Date} updated_at
|
|
191
166
|
*/
|
|
192
|
-
|
|
193
167
|
ConsumptionSiteCreate.prototype['updated_at'] = undefined;
|
|
194
168
|
var _default = ConsumptionSiteCreate;
|
|
195
169
|
exports["default"] = _default;
|