green_link_api 1.9.3 → 1.10.0
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 +11 -6
- package/dist/ApiClient.js +2 -2
- package/dist/api/BlockchainApi.js +1 -1
- package/dist/api/EnergyAssetsApi.js +244 -72
- package/dist/api/EnergyDataApi.js +5 -3
- package/dist/api/HealthCheckApi.js +1 -1
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +1 -1
- package/dist/api/LocationsApi.js +1 -1
- package/dist/api/LogsApi.js +1 -1
- package/dist/api/MaintenanceCheckApi.js +1 -1
- package/dist/api/OrganizationprofilesApi.js +1 -1
- package/dist/api/OrganizationsApi.js +1 -1
- package/dist/api/SchemaApi.js +1 -1
- package/dist/api/SentryDebugApi.js +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/index.js +22 -14
- package/dist/model/Activities.js +1 -1
- package/dist/model/BlockchainTransaction.js +1 -1
- package/dist/model/Consumer.js +10 -1
- package/dist/model/ConsumptionDataFileList.js +1 -1
- package/dist/model/ConsumptionDataFromRetailerRequest.js +1 -1
- package/dist/model/ConsumptionDataPointCreate.js +1 -1
- package/dist/model/ConsumptionDataPointListOrDetail.js +1 -1
- package/dist/model/ConsumptionDataPointUpdate.js +1 -1
- package/dist/model/ConsumptionSite.js +1 -1
- package/dist/model/ConsumptionSiteContract.js +138 -0
- package/dist/model/{ConsumptionSiteFromRetailer.js → ConsumptionSiteContractImport.js} +38 -28
- package/dist/model/ConsumptionSiteCreate.js +1 -1
- package/dist/model/ConsumptionSiteFileUpload.js +1 -1
- package/dist/model/ConsumptionSiteListOrDetail.js +1 -1
- package/dist/model/EmissionFactor.js +1 -1
- package/dist/model/EnergySourcePreference.js +1 -1
- package/dist/model/GetFromEpias.js +1 -1
- package/dist/model/GridOperator.js +1 -1
- package/dist/model/ImportRequest.js +16 -16
- package/dist/model/ImportedEnergyDataPoint.js +10 -10
- package/dist/model/Issuer.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login.js +1 -1
- package/dist/model/MatchRequest.js +1 -1
- package/dist/model/MatchedEnergyDataPoint.js +1 -1
- package/dist/model/MatchingConsumerRequest.js +1 -1
- package/dist/model/MatchingSiteRequest.js +1 -1
- package/dist/model/PaginatedActivitiesList.js +1 -1
- package/dist/model/PaginatedConsumerList.js +1 -1
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedConsumptionSiteContractList.js +104 -0
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedEmissionFactorList.js +1 -1
- package/dist/model/PaginatedEnergySourcePreferenceList.js +1 -1
- package/dist/model/PaginatedGridOperatorList.js +1 -1
- package/dist/model/PaginatedImportRequestList.js +1 -1
- package/dist/model/PaginatedImportedEnergyDataPointList.js +1 -1
- package/dist/model/PaginatedIssuerList.js +1 -1
- package/dist/model/PaginatedLocationList.js +1 -1
- package/dist/model/PaginatedMatchRequestList.js +1 -1
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +1 -1
- package/dist/model/PaginatedProducerList.js +1 -1
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +1 -1
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +1 -1
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +1 -1
- package/dist/model/PaginatedRetailerList.js +1 -1
- package/dist/model/PaginatedSmartContractList.js +1 -1
- package/dist/model/PaginatedUnprocessedRowList.js +1 -1
- package/dist/model/PaginatedUploadedCertificateListorDetailList.js +1 -1
- package/dist/model/PaginatedUploadedFileList.js +1 -1
- package/dist/model/PaginatedUserList.js +1 -1
- package/dist/model/PatchedConsumer.js +10 -1
- package/dist/model/PatchedConsumptionDataPointUpdate.js +1 -1
- package/dist/model/PatchedConsumptionSite.js +1 -1
- package/dist/model/PatchedEmissionFactor.js +1 -1
- package/dist/model/PatchedEnergySourcePreference.js +1 -1
- package/dist/model/PatchedGridOperator.js +1 -1
- package/dist/model/PatchedIssuer.js +1 -1
- package/dist/model/PatchedLocation.js +1 -1
- package/dist/model/PatchedProducer.js +1 -1
- package/dist/model/PatchedProductionDataPointUpdate.js +1 -1
- package/dist/model/PatchedProductionSiteUpdate.js +1 -1
- package/dist/model/PatchedRetailer.js +1 -1
- package/dist/model/PatchedSmartContract.js +1 -1
- package/dist/model/PatchedUser.js +1 -1
- package/dist/model/PatchedUserDetail.js +1 -1
- package/dist/model/Producer.js +1 -1
- package/dist/model/ProductionDataFileList.js +1 -1
- package/dist/model/ProductionDataFromEpiasRequest.js +1 -1
- package/dist/model/ProductionDataPointCreate.js +1 -1
- package/dist/model/ProductionDataPointListOrDetail.js +1 -1
- package/dist/model/ProductionDataPointUpdate.js +1 -1
- package/dist/model/ProductionSite.js +1 -1
- package/dist/model/ProductionSiteFileUpload.js +1 -1
- package/dist/model/ProductionSiteListOrDetail.js +1 -1
- package/dist/model/ProductionSiteUpdate.js +1 -1
- package/dist/model/Register.js +1 -1
- package/dist/model/Retailer.js +1 -1
- package/dist/model/SmartContract.js +1 -1
- package/dist/model/Token.js +1 -1
- package/dist/model/UnprocessedRow.js +1 -1
- package/dist/model/UploadedCertificate.js +1 -1
- package/dist/model/UploadedCertificateListorDetail.js +1 -1
- package/dist/model/UploadedFile.js +1 -1
- package/dist/model/User.js +1 -1
- package/dist/model/UserDetail.js +1 -1
- package/package.json +1 -1
- package/dist/model/ConsumptionSiteMany.js +0 -195
package/dist/api/SchemaApi.js
CHANGED
package/dist/api/UsersApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -69,34 +69,34 @@ Object.defineProperty(exports, "ConsumptionSite", {
|
|
|
69
69
|
return _ConsumptionSite["default"];
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
Object.defineProperty(exports, "
|
|
72
|
+
Object.defineProperty(exports, "ConsumptionSiteContract", {
|
|
73
73
|
enumerable: true,
|
|
74
74
|
get: function get() {
|
|
75
|
-
return
|
|
75
|
+
return _ConsumptionSiteContract["default"];
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
Object.defineProperty(exports, "
|
|
78
|
+
Object.defineProperty(exports, "ConsumptionSiteContractImport", {
|
|
79
79
|
enumerable: true,
|
|
80
80
|
get: function get() {
|
|
81
|
-
return
|
|
81
|
+
return _ConsumptionSiteContractImport["default"];
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
Object.defineProperty(exports, "
|
|
84
|
+
Object.defineProperty(exports, "ConsumptionSiteCreate", {
|
|
85
85
|
enumerable: true,
|
|
86
86
|
get: function get() {
|
|
87
|
-
return
|
|
87
|
+
return _ConsumptionSiteCreate["default"];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
Object.defineProperty(exports, "
|
|
90
|
+
Object.defineProperty(exports, "ConsumptionSiteFileUpload", {
|
|
91
91
|
enumerable: true,
|
|
92
92
|
get: function get() {
|
|
93
|
-
return
|
|
93
|
+
return _ConsumptionSiteFileUpload["default"];
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
Object.defineProperty(exports, "
|
|
96
|
+
Object.defineProperty(exports, "ConsumptionSiteListOrDetail", {
|
|
97
97
|
enumerable: true,
|
|
98
98
|
get: function get() {
|
|
99
|
-
return
|
|
99
|
+
return _ConsumptionSiteListOrDetail["default"];
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "ContentTypeEnum", {
|
|
@@ -285,6 +285,12 @@ Object.defineProperty(exports, "PaginatedConsumptionDataPointListOrDetailList",
|
|
|
285
285
|
return _PaginatedConsumptionDataPointListOrDetailList["default"];
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
|
+
Object.defineProperty(exports, "PaginatedConsumptionSiteContractList", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function get() {
|
|
291
|
+
return _PaginatedConsumptionSiteContractList["default"];
|
|
292
|
+
}
|
|
293
|
+
});
|
|
288
294
|
Object.defineProperty(exports, "PaginatedConsumptionSiteListOrDetailList", {
|
|
289
295
|
enumerable: true,
|
|
290
296
|
get: function get() {
|
|
@@ -672,16 +678,16 @@ var _ConsumptionDataPointUpdate = _interopRequireDefault(require("./model/Consum
|
|
|
672
678
|
|
|
673
679
|
var _ConsumptionSite = _interopRequireDefault(require("./model/ConsumptionSite"));
|
|
674
680
|
|
|
681
|
+
var _ConsumptionSiteContract = _interopRequireDefault(require("./model/ConsumptionSiteContract"));
|
|
682
|
+
|
|
683
|
+
var _ConsumptionSiteContractImport = _interopRequireDefault(require("./model/ConsumptionSiteContractImport"));
|
|
684
|
+
|
|
675
685
|
var _ConsumptionSiteCreate = _interopRequireDefault(require("./model/ConsumptionSiteCreate"));
|
|
676
686
|
|
|
677
687
|
var _ConsumptionSiteFileUpload = _interopRequireDefault(require("./model/ConsumptionSiteFileUpload"));
|
|
678
688
|
|
|
679
|
-
var _ConsumptionSiteFromRetailer = _interopRequireDefault(require("./model/ConsumptionSiteFromRetailer"));
|
|
680
|
-
|
|
681
689
|
var _ConsumptionSiteListOrDetail = _interopRequireDefault(require("./model/ConsumptionSiteListOrDetail"));
|
|
682
690
|
|
|
683
|
-
var _ConsumptionSiteMany = _interopRequireDefault(require("./model/ConsumptionSiteMany"));
|
|
684
|
-
|
|
685
691
|
var _ContentTypeEnum = _interopRequireDefault(require("./model/ContentTypeEnum"));
|
|
686
692
|
|
|
687
693
|
var _EacTypeEnum = _interopRequireDefault(require("./model/EacTypeEnum"));
|
|
@@ -726,6 +732,8 @@ var _PaginatedConsumerList = _interopRequireDefault(require("./model/PaginatedCo
|
|
|
726
732
|
|
|
727
733
|
var _PaginatedConsumptionDataPointListOrDetailList = _interopRequireDefault(require("./model/PaginatedConsumptionDataPointListOrDetailList"));
|
|
728
734
|
|
|
735
|
+
var _PaginatedConsumptionSiteContractList = _interopRequireDefault(require("./model/PaginatedConsumptionSiteContractList"));
|
|
736
|
+
|
|
729
737
|
var _PaginatedConsumptionSiteListOrDetailList = _interopRequireDefault(require("./model/PaginatedConsumptionSiteListOrDetailList"));
|
|
730
738
|
|
|
731
739
|
var _PaginatedEmissionFactorList = _interopRequireDefault(require("./model/PaginatedEmissionFactorList"));
|
package/dist/model/Activities.js
CHANGED
|
@@ -22,7 +22,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
22
22
|
/**
|
|
23
23
|
* The BlockchainTransaction model module.
|
|
24
24
|
* @module model/BlockchainTransaction
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.10.0
|
|
26
26
|
*/
|
|
27
27
|
var BlockchainTransaction = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
package/dist/model/Consumer.js
CHANGED
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The Consumer model module.
|
|
22
22
|
* @module model/Consumer
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.10.0
|
|
24
24
|
*/
|
|
25
25
|
var Consumer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -93,6 +93,10 @@ var Consumer = /*#__PURE__*/function () {
|
|
|
93
93
|
obj['energy_source_max_distance'] = _ApiClient["default"].convertToType(data['energy_source_max_distance'], 'Number');
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
if (data.hasOwnProperty('partner_id')) {
|
|
97
|
+
obj['partner_id'] = _ApiClient["default"].convertToType(data['partner_id'], 'String');
|
|
98
|
+
}
|
|
99
|
+
|
|
96
100
|
if (data.hasOwnProperty('created_at')) {
|
|
97
101
|
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
98
102
|
}
|
|
@@ -153,6 +157,11 @@ Consumer.prototype['retailer'] = undefined;
|
|
|
153
157
|
*/
|
|
154
158
|
|
|
155
159
|
Consumer.prototype['energy_source_max_distance'] = undefined;
|
|
160
|
+
/**
|
|
161
|
+
* @member {String} partner_id
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
Consumer.prototype['partner_id'] = undefined;
|
|
156
165
|
/**
|
|
157
166
|
* @member {Date} created_at
|
|
158
167
|
*/
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFileList model module.
|
|
20
20
|
* @module model/ConsumptionDataFileList
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.10.0
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionDataFromRetailerRequest model module.
|
|
20
20
|
* @module model/ConsumptionDataFromRetailerRequest
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.10.0
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionDataFromRetailerRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionDataPointCreate model module.
|
|
22
22
|
* @module model/ConsumptionDataPointCreate
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.10.0
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionDataPointCreate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -30,7 +30,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
30
30
|
/**
|
|
31
31
|
* The ConsumptionDataPointListOrDetail model module.
|
|
32
32
|
* @module model/ConsumptionDataPointListOrDetail
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.10.0
|
|
34
34
|
*/
|
|
35
35
|
var ConsumptionDataPointListOrDetail = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionDataPointUpdate model module.
|
|
22
22
|
* @module model/ConsumptionDataPointUpdate
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.10.0
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionDataPointUpdate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSite model module.
|
|
22
22
|
* @module model/ConsumptionSite
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.10.0
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSite = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
var _ConsumptionSite = _interopRequireDefault(require("./ConsumptionSite"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
16
|
+
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
|
+
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
|
+
/**
|
|
21
|
+
* The ConsumptionSiteContract model module.
|
|
22
|
+
* @module model/ConsumptionSiteContract
|
|
23
|
+
* @version 1.10.0
|
|
24
|
+
*/
|
|
25
|
+
var ConsumptionSiteContract = /*#__PURE__*/function () {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new <code>ConsumptionSiteContract</code>.
|
|
28
|
+
* @alias module:model/ConsumptionSiteContract
|
|
29
|
+
* @param consumptionSite {module:model/ConsumptionSite}
|
|
30
|
+
* @param startDate {Date}
|
|
31
|
+
* @param endDate {Date}
|
|
32
|
+
*/
|
|
33
|
+
function ConsumptionSiteContract(consumptionSite, startDate, endDate) {
|
|
34
|
+
_classCallCheck(this, ConsumptionSiteContract);
|
|
35
|
+
|
|
36
|
+
ConsumptionSiteContract.initialize(this, consumptionSite, startDate, endDate);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
_createClass(ConsumptionSiteContract, null, [{
|
|
46
|
+
key: "initialize",
|
|
47
|
+
value: function initialize(obj, consumptionSite, startDate, endDate) {
|
|
48
|
+
obj['consumption_site'] = consumptionSite;
|
|
49
|
+
obj['start_date'] = startDate;
|
|
50
|
+
obj['end_date'] = endDate;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>ConsumptionSiteContract</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/ConsumptionSiteContract} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ConsumptionSiteContract} The populated <code>ConsumptionSiteContract</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new ConsumptionSiteContract();
|
|
65
|
+
|
|
66
|
+
if (data.hasOwnProperty('id')) {
|
|
67
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (data.hasOwnProperty('consumption_site')) {
|
|
71
|
+
obj['consumption_site'] = _ConsumptionSite["default"].constructFromObject(data['consumption_site']);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (data.hasOwnProperty('amount_consumed')) {
|
|
75
|
+
obj['amount_consumed'] = _ApiClient["default"].convertToType(data['amount_consumed'], 'String');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('start_date')) {
|
|
79
|
+
obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('end_date')) {
|
|
83
|
+
obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('created_at')) {
|
|
87
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
91
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return obj;
|
|
96
|
+
}
|
|
97
|
+
}]);
|
|
98
|
+
|
|
99
|
+
return ConsumptionSiteContract;
|
|
100
|
+
}();
|
|
101
|
+
/**
|
|
102
|
+
* @member {String} id
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
ConsumptionSiteContract.prototype['id'] = undefined;
|
|
107
|
+
/**
|
|
108
|
+
* @member {module:model/ConsumptionSite} consumption_site
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
ConsumptionSiteContract.prototype['consumption_site'] = undefined;
|
|
112
|
+
/**
|
|
113
|
+
* @member {String} amount_consumed
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
ConsumptionSiteContract.prototype['amount_consumed'] = undefined;
|
|
117
|
+
/**
|
|
118
|
+
* @member {Date} start_date
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
ConsumptionSiteContract.prototype['start_date'] = undefined;
|
|
122
|
+
/**
|
|
123
|
+
* @member {Date} end_date
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
ConsumptionSiteContract.prototype['end_date'] = undefined;
|
|
127
|
+
/**
|
|
128
|
+
* @member {Date} created_at
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
ConsumptionSiteContract.prototype['created_at'] = undefined;
|
|
132
|
+
/**
|
|
133
|
+
* @member {Date} updated_at
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
ConsumptionSiteContract.prototype['updated_at'] = undefined;
|
|
137
|
+
var _default = ConsumptionSiteContract;
|
|
138
|
+
exports["default"] = _default;
|
|
@@ -16,21 +16,22 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
16
16
|
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
17
|
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
20
|
-
* @module model/
|
|
21
|
-
* @version 1.
|
|
19
|
+
* The ConsumptionSiteContractImport model module.
|
|
20
|
+
* @module model/ConsumptionSiteContractImport
|
|
21
|
+
* @version 1.10.0
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var ConsumptionSiteContractImport = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
* Constructs a new <code>
|
|
26
|
-
* @alias module:model/
|
|
27
|
-
* @param partnerId {String} Required. 30 characters or fewer.
|
|
25
|
+
* Constructs a new <code>ConsumptionSiteContractImport</code>.
|
|
26
|
+
* @alias module:model/ConsumptionSiteContractImport
|
|
28
27
|
* @param consumerId {String}
|
|
28
|
+
* @param startDate {Date}
|
|
29
|
+
* @param endDate {Date}
|
|
29
30
|
*/
|
|
30
|
-
function
|
|
31
|
-
_classCallCheck(this,
|
|
31
|
+
function ConsumptionSiteContractImport(consumerId, startDate, endDate) {
|
|
32
|
+
_classCallCheck(this, ConsumptionSiteContractImport);
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
ConsumptionSiteContractImport.initialize(this, consumerId, startDate, endDate);
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* Initializes the fields of this object.
|
|
@@ -39,52 +40,61 @@ var ConsumptionSiteFromRetailer = /*#__PURE__*/function () {
|
|
|
39
40
|
*/
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
_createClass(
|
|
43
|
+
_createClass(ConsumptionSiteContractImport, null, [{
|
|
43
44
|
key: "initialize",
|
|
44
|
-
value: function initialize(obj,
|
|
45
|
-
obj['partner_id'] = partnerId;
|
|
45
|
+
value: function initialize(obj, consumerId, startDate, endDate) {
|
|
46
46
|
obj['consumer_id'] = consumerId;
|
|
47
|
+
obj['start_date'] = startDate;
|
|
48
|
+
obj['end_date'] = endDate;
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
49
|
-
* Constructs a <code>
|
|
51
|
+
* Constructs a <code>ConsumptionSiteContractImport</code> from a plain JavaScript object, optionally creating a new instance.
|
|
50
52
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
51
53
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
52
|
-
* @param {module:model/
|
|
53
|
-
* @return {module:model/
|
|
54
|
+
* @param {module:model/ConsumptionSiteContractImport} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/ConsumptionSiteContractImport} The populated <code>ConsumptionSiteContractImport</code> instance.
|
|
54
56
|
*/
|
|
55
57
|
|
|
56
58
|
}, {
|
|
57
59
|
key: "constructFromObject",
|
|
58
60
|
value: function constructFromObject(data, obj) {
|
|
59
61
|
if (data) {
|
|
60
|
-
obj = obj || new
|
|
61
|
-
|
|
62
|
-
if (data.hasOwnProperty('partner_id')) {
|
|
63
|
-
obj['partner_id'] = _ApiClient["default"].convertToType(data['partner_id'], 'String');
|
|
64
|
-
}
|
|
62
|
+
obj = obj || new ConsumptionSiteContractImport();
|
|
65
63
|
|
|
66
64
|
if (data.hasOwnProperty('consumer_id')) {
|
|
67
65
|
obj['consumer_id'] = _ApiClient["default"].convertToType(data['consumer_id'], 'String');
|
|
68
66
|
}
|
|
67
|
+
|
|
68
|
+
if (data.hasOwnProperty('start_date')) {
|
|
69
|
+
obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (data.hasOwnProperty('end_date')) {
|
|
73
|
+
obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
|
|
74
|
+
}
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
return obj;
|
|
72
78
|
}
|
|
73
79
|
}]);
|
|
74
80
|
|
|
75
|
-
return
|
|
81
|
+
return ConsumptionSiteContractImport;
|
|
76
82
|
}();
|
|
77
83
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @member {String} partner_id
|
|
84
|
+
* @member {String} consumer_id
|
|
80
85
|
*/
|
|
81
86
|
|
|
82
87
|
|
|
83
|
-
|
|
88
|
+
ConsumptionSiteContractImport.prototype['consumer_id'] = undefined;
|
|
84
89
|
/**
|
|
85
|
-
* @member {
|
|
90
|
+
* @member {Date} start_date
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
ConsumptionSiteContractImport.prototype['start_date'] = undefined;
|
|
94
|
+
/**
|
|
95
|
+
* @member {Date} end_date
|
|
86
96
|
*/
|
|
87
97
|
|
|
88
|
-
|
|
89
|
-
var _default =
|
|
98
|
+
ConsumptionSiteContractImport.prototype['end_date'] = undefined;
|
|
99
|
+
var _default = ConsumptionSiteContractImport;
|
|
90
100
|
exports["default"] = _default;
|
|
@@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20
20
|
/**
|
|
21
21
|
* The ConsumptionSiteCreate model module.
|
|
22
22
|
* @module model/ConsumptionSiteCreate
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.10.0
|
|
24
24
|
*/
|
|
25
25
|
var ConsumptionSiteCreate = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The ConsumptionSiteFileUpload model module.
|
|
20
20
|
* @module model/ConsumptionSiteFileUpload
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.10.0
|
|
22
22
|
*/
|
|
23
23
|
var ConsumptionSiteFileUpload = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -24,7 +24,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
24
24
|
/**
|
|
25
25
|
* The ConsumptionSiteListOrDetail model module.
|
|
26
26
|
* @module model/ConsumptionSiteListOrDetail
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.10.0
|
|
28
28
|
*/
|
|
29
29
|
var ConsumptionSiteListOrDetail = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
|
@@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
/**
|
|
19
19
|
* The EmissionFactor model module.
|
|
20
20
|
* @module model/EmissionFactor
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.10.0
|
|
22
22
|
*/
|
|
23
23
|
var EmissionFactor = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -22,7 +22,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
22
22
|
/**
|
|
23
23
|
* The EnergySourcePreference model module.
|
|
24
24
|
* @module model/EnergySourcePreference
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.10.0
|
|
26
26
|
*/
|
|
27
27
|
var EnergySourcePreference = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
|
@@ -22,21 +22,21 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
22
22
|
/**
|
|
23
23
|
* The ImportRequest model module.
|
|
24
24
|
* @module model/ImportRequest
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.10.0
|
|
26
26
|
*/
|
|
27
27
|
var ImportRequest = /*#__PURE__*/function () {
|
|
28
28
|
/**
|
|
29
29
|
* Constructs a new <code>ImportRequest</code>.
|
|
30
30
|
* @alias module:model/ImportRequest
|
|
31
|
-
* @param
|
|
32
|
-
* @param
|
|
31
|
+
* @param consumptionStart {Date}
|
|
32
|
+
* @param consumptionEnd {Date}
|
|
33
33
|
* @param consumer {module:model/Consumer}
|
|
34
34
|
* @param username {String}
|
|
35
35
|
*/
|
|
36
|
-
function ImportRequest(
|
|
36
|
+
function ImportRequest(consumptionStart, consumptionEnd, consumer, username) {
|
|
37
37
|
_classCallCheck(this, ImportRequest);
|
|
38
38
|
|
|
39
|
-
ImportRequest.initialize(this,
|
|
39
|
+
ImportRequest.initialize(this, consumptionStart, consumptionEnd, consumer, username);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Initializes the fields of this object.
|
|
@@ -47,9 +47,9 @@ var ImportRequest = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
_createClass(ImportRequest, null, [{
|
|
49
49
|
key: "initialize",
|
|
50
|
-
value: function initialize(obj,
|
|
51
|
-
obj['
|
|
52
|
-
obj['
|
|
50
|
+
value: function initialize(obj, consumptionStart, consumptionEnd, consumer, username) {
|
|
51
|
+
obj['consumption_start'] = consumptionStart;
|
|
52
|
+
obj['consumption_end'] = consumptionEnd;
|
|
53
53
|
obj['consumer'] = consumer;
|
|
54
54
|
obj['username'] = username;
|
|
55
55
|
}
|
|
@@ -71,12 +71,12 @@ var ImportRequest = /*#__PURE__*/function () {
|
|
|
71
71
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
if (data.hasOwnProperty('
|
|
75
|
-
obj['
|
|
74
|
+
if (data.hasOwnProperty('consumption_start')) {
|
|
75
|
+
obj['consumption_start'] = _ApiClient["default"].convertToType(data['consumption_start'], 'Date');
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if (data.hasOwnProperty('
|
|
79
|
-
obj['
|
|
78
|
+
if (data.hasOwnProperty('consumption_end')) {
|
|
79
|
+
obj['consumption_end'] = _ApiClient["default"].convertToType(data['consumption_end'], 'Date');
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
if (data.hasOwnProperty('consumer')) {
|
|
@@ -129,15 +129,15 @@ var ImportRequest = /*#__PURE__*/function () {
|
|
|
129
129
|
|
|
130
130
|
ImportRequest.prototype['id'] = undefined;
|
|
131
131
|
/**
|
|
132
|
-
* @member {Date}
|
|
132
|
+
* @member {Date} consumption_start
|
|
133
133
|
*/
|
|
134
134
|
|
|
135
|
-
ImportRequest.prototype['
|
|
135
|
+
ImportRequest.prototype['consumption_start'] = undefined;
|
|
136
136
|
/**
|
|
137
|
-
* @member {Date}
|
|
137
|
+
* @member {Date} consumption_end
|
|
138
138
|
*/
|
|
139
139
|
|
|
140
|
-
ImportRequest.prototype['
|
|
140
|
+
ImportRequest.prototype['consumption_end'] = undefined;
|
|
141
141
|
/**
|
|
142
142
|
* @member {module:model/Consumer} consumer
|
|
143
143
|
*/
|