green_link_api 1.0.0 → 1.1.1
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 +72 -33
- package/dist/ApiClient.js +70 -24
- package/dist/api/BlockchainApi.js +283 -0
- package/dist/api/EnergyAssetsApi.js +196 -44
- package/dist/api/EnergyDataApi.js +354 -46
- package/dist/api/HealthCheckApi.js +68 -0
- package/dist/api/LicensedProductionSitesOnEpiasApi.js +69 -0
- package/dist/api/LocationsApi.js +10 -10
- package/dist/api/LogsApi.js +428 -0
- package/dist/api/MaintenanceCheckApi.js +68 -0
- package/dist/api/OrganizationprofilesApi.js +8 -8
- package/dist/api/OrganizationsApi.js +47 -47
- package/dist/api/SchemaApi.js +6 -6
- package/dist/api/SentryDebugApi.js +68 -0
- package/dist/api/UsersApi.js +74 -256
- package/dist/index.js +267 -67
- package/dist/model/BlockchainTransaction.js +172 -0
- package/dist/model/Consumer.js +7 -7
- package/dist/model/ConsumptionDataFileList.js +132 -0
- package/dist/model/ConsumptionDataFromRetailerRequest.js +110 -0
- package/dist/model/{RestAuthDetail.js → ConsumptionDataFromRetailerResponse.js} +26 -21
- package/dist/model/ConsumptionDataPointCreate.js +12 -12
- package/dist/model/ConsumptionDataPointListOrDetail.js +21 -14
- package/dist/model/ConsumptionDataPointUpdate.js +12 -12
- package/dist/model/ConsumptionSite.js +20 -21
- package/dist/model/ConsumptionSiteCreate.js +195 -0
- package/dist/model/ConsumptionSiteFileUpload.js +133 -0
- package/dist/model/{TokenRefresh.js → ConsumptionSiteFromRetailer.js} +25 -33
- package/dist/model/ConsumptionSiteListOrDetail.js +15 -33
- package/dist/model/ConsumptionSiteMany.js +195 -0
- package/dist/model/ContentTypeEnum.js +54 -0
- package/dist/model/EmissionFactor.js +6 -8
- package/dist/model/EnergySourceEnum.js +1 -1
- package/dist/model/EnergySourcePreference.js +2 -2
- package/dist/model/GetFromEpias.js +98 -0
- package/dist/model/GridOperator.js +6 -6
- package/dist/model/Issuer.js +6 -6
- package/dist/model/Location.js +6 -8
- package/dist/model/Login.js +2 -2
- package/dist/model/MatchRequest.js +299 -0
- package/dist/model/{CountryEnum.js → MatchTypeEnum.js} +12 -12
- package/dist/model/MatchedEnergyDataPoint.js +13 -14
- package/dist/model/MatchingConsumerRequest.js +122 -0
- package/dist/model/{MatchingRequest.js → MatchingSiteRequest.js} +32 -21
- package/dist/model/OrganizationTypeEnum.js +1 -1
- package/dist/model/PaginatedConsumerList.js +2 -2
- package/dist/model/PaginatedConsumptionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedConsumptionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedEmissionFactorList.js +2 -2
- package/dist/model/PaginatedEnergySourcePreferenceList.js +2 -2
- package/dist/model/PaginatedGridOperatorList.js +2 -2
- package/dist/model/PaginatedIssuerList.js +2 -2
- package/dist/model/PaginatedLocationList.js +2 -2
- package/dist/model/PaginatedMatchRequestList.js +104 -0
- package/dist/model/PaginatedMatchedEnergyDataPointList.js +2 -2
- package/dist/model/PaginatedProducerList.js +2 -2
- package/dist/model/PaginatedProductionDataFromEpiasRequestList.js +104 -0
- package/dist/model/PaginatedProductionDataPointListOrDetailList.js +2 -2
- package/dist/model/PaginatedProductionSiteListOrDetailList.js +2 -2
- package/dist/model/PaginatedRetailerList.js +2 -2
- package/dist/model/PaginatedSmartContractList.js +104 -0
- package/dist/model/PaginatedUnprocessedRowList.js +104 -0
- package/dist/model/PaginatedUploadedFileList.js +104 -0
- package/dist/model/PaginatedUserList.js +2 -2
- package/dist/model/PatchedConsumer.js +7 -7
- package/dist/model/PatchedConsumptionDataPointUpdate.js +12 -12
- package/dist/model/PatchedConsumptionSite.js +15 -16
- package/dist/model/PatchedEmissionFactor.js +5 -7
- package/dist/model/PatchedEnergySourcePreference.js +2 -2
- package/dist/model/PatchedGridOperator.js +6 -6
- package/dist/model/PatchedIssuer.js +6 -6
- package/dist/model/PatchedLocation.js +5 -7
- package/dist/model/PatchedProducer.js +6 -6
- package/dist/model/PatchedProductionDataPointUpdate.js +13 -13
- package/dist/model/{PatchedProductionSite.js → PatchedProductionSiteUpdate.js} +60 -45
- package/dist/model/PatchedRetailer.js +16 -6
- package/dist/model/PatchedSmartContract.js +134 -0
- package/dist/model/PatchedUser.js +13 -2
- package/dist/model/PatchedUserDetail.js +13 -2
- package/dist/model/PriorityEnum.js +7 -1
- package/dist/model/Producer.js +6 -6
- package/dist/model/ProductionDataFileList.js +132 -0
- package/dist/model/ProductionDataFromEpiasRequest.js +167 -0
- package/dist/model/ProductionDataPointCreate.js +13 -13
- package/dist/model/ProductionDataPointListOrDetail.js +24 -21
- package/dist/model/ProductionDataPointUpdate.js +13 -13
- package/dist/model/ProductionSite.js +37 -24
- package/dist/model/ProductionSiteFileUpload.js +177 -0
- package/dist/model/ProductionSiteListOrDetail.js +30 -43
- package/dist/model/ProductionSiteUpdate.js +245 -0
- package/dist/model/Register.js +18 -6
- package/dist/model/Retailer.js +16 -6
- package/dist/model/SmartContract.js +139 -0
- package/dist/model/StatusEnum.js +52 -0
- package/dist/model/{VerifyEmail.js → Token.js} +19 -18
- package/dist/model/TypeEnum.js +52 -0
- package/dist/model/UnprocessedRow.js +140 -0
- package/dist/model/UploadedFile.js +154 -0
- package/dist/model/User.js +13 -2
- package/dist/model/UserDetail.js +13 -2
- package/package.json +4 -4
- package/dist/model/JWT.js +0 -103
- package/dist/model/PasswordChange.js +0 -100
- package/dist/model/PasswordReset.js +0 -79
- package/dist/model/PasswordResetConfirm.js +0 -112
- package/dist/model/TechnologyOrFuelTypeEnum.js +0 -170
- package/dist/model/TokenVerify.js +0 -78
|
@@ -0,0 +1,172 @@
|
|
|
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 _StatusEnum = _interopRequireDefault(require("./StatusEnum"));
|
|
11
|
+
|
|
12
|
+
var _TypeEnum = _interopRequireDefault(require("./TypeEnum"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
|
|
18
|
+
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); } }
|
|
19
|
+
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The BlockchainTransaction model module.
|
|
24
|
+
* @module model/BlockchainTransaction
|
|
25
|
+
* @version 1.1.1
|
|
26
|
+
*/
|
|
27
|
+
var BlockchainTransaction = /*#__PURE__*/function () {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new <code>BlockchainTransaction</code>.
|
|
30
|
+
* @alias module:model/BlockchainTransaction
|
|
31
|
+
* @param tokenIds {Array.<Number>}
|
|
32
|
+
* @param energyAmounts {Array.<Number>}
|
|
33
|
+
* @param status {module:model/StatusEnum}
|
|
34
|
+
* @param type {module:model/TypeEnum}
|
|
35
|
+
*/
|
|
36
|
+
function BlockchainTransaction(tokenIds, energyAmounts, status, type) {
|
|
37
|
+
_classCallCheck(this, BlockchainTransaction);
|
|
38
|
+
|
|
39
|
+
BlockchainTransaction.initialize(this, tokenIds, energyAmounts, status, type);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
_createClass(BlockchainTransaction, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj, tokenIds, energyAmounts, status, type) {
|
|
51
|
+
obj['token_ids'] = tokenIds;
|
|
52
|
+
obj['energy_amounts'] = energyAmounts;
|
|
53
|
+
obj['status'] = status;
|
|
54
|
+
obj['type'] = type;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>BlockchainTransaction</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/BlockchainTransaction} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/BlockchainTransaction} The populated <code>BlockchainTransaction</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new BlockchainTransaction();
|
|
69
|
+
|
|
70
|
+
if (data.hasOwnProperty('id')) {
|
|
71
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (data.hasOwnProperty('production_site_blockchain_account_address')) {
|
|
75
|
+
obj['production_site_blockchain_account_address'] = _ApiClient["default"].convertToType(data['production_site_blockchain_account_address'], 'String');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (data.hasOwnProperty('consumption_site_blockchain_account_address')) {
|
|
79
|
+
obj['consumption_site_blockchain_account_address'] = _ApiClient["default"].convertToType(data['consumption_site_blockchain_account_address'], 'String');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (data.hasOwnProperty('token_ids')) {
|
|
83
|
+
obj['token_ids'] = _ApiClient["default"].convertToType(data['token_ids'], ['Number']);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (data.hasOwnProperty('energy_amounts')) {
|
|
87
|
+
obj['energy_amounts'] = _ApiClient["default"].convertToType(data['energy_amounts'], ['Number']);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (data.hasOwnProperty('status')) {
|
|
91
|
+
obj['status'] = _StatusEnum["default"].constructFromObject(data['status']);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (data.hasOwnProperty('type')) {
|
|
95
|
+
obj['type'] = _TypeEnum["default"].constructFromObject(data['type']);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (data.hasOwnProperty('hash')) {
|
|
99
|
+
obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (data.hasOwnProperty('created_at')) {
|
|
103
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (data.hasOwnProperty('updated_at')) {
|
|
107
|
+
obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return obj;
|
|
112
|
+
}
|
|
113
|
+
}]);
|
|
114
|
+
|
|
115
|
+
return BlockchainTransaction;
|
|
116
|
+
}();
|
|
117
|
+
/**
|
|
118
|
+
* @member {String} id
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
BlockchainTransaction.prototype['id'] = undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Production site's blockchain account address.
|
|
125
|
+
* @member {String} production_site_blockchain_account_address
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
BlockchainTransaction.prototype['production_site_blockchain_account_address'] = undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Consuption site's blockchain account address.
|
|
131
|
+
* @member {String} consumption_site_blockchain_account_address
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
BlockchainTransaction.prototype['consumption_site_blockchain_account_address'] = undefined;
|
|
135
|
+
/**
|
|
136
|
+
* @member {Array.<Number>} token_ids
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
BlockchainTransaction.prototype['token_ids'] = undefined;
|
|
140
|
+
/**
|
|
141
|
+
* @member {Array.<Number>} energy_amounts
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
BlockchainTransaction.prototype['energy_amounts'] = undefined;
|
|
145
|
+
/**
|
|
146
|
+
* @member {module:model/StatusEnum} status
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
BlockchainTransaction.prototype['status'] = undefined;
|
|
150
|
+
/**
|
|
151
|
+
* @member {module:model/TypeEnum} type
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
BlockchainTransaction.prototype['type'] = undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Hash of blockchain transaction.
|
|
157
|
+
* @member {String} hash
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
BlockchainTransaction.prototype['hash'] = undefined;
|
|
161
|
+
/**
|
|
162
|
+
* @member {Date} created_at
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
BlockchainTransaction.prototype['created_at'] = undefined;
|
|
166
|
+
/**
|
|
167
|
+
* @member {Date} updated_at
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
BlockchainTransaction.prototype['updated_at'] = undefined;
|
|
171
|
+
var _default = BlockchainTransaction;
|
|
172
|
+
exports["default"] = _default;
|
package/dist/model/Consumer.js
CHANGED
|
@@ -15,12 +15,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
15
15
|
|
|
16
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
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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
19
|
|
|
20
20
|
/**
|
|
21
21
|
* The Consumer model module.
|
|
22
22
|
* @module model/Consumer
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.1.1
|
|
24
24
|
*/
|
|
25
25
|
var Consumer = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
@@ -77,8 +77,8 @@ var Consumer = /*#__PURE__*/function () {
|
|
|
77
77
|
obj['blockchain_account_address'] = _ApiClient["default"].convertToType(data['blockchain_account_address'], 'String');
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
80
|
+
if (data.hasOwnProperty('website_url')) {
|
|
81
|
+
obj['website_url'] = _ApiClient["default"].convertToType(data['website_url'], 'String');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
if (data.hasOwnProperty('is_active')) {
|
|
@@ -132,10 +132,10 @@ Consumer.prototype['location'] = undefined;
|
|
|
132
132
|
Consumer.prototype['blockchain_account_address'] = undefined;
|
|
133
133
|
/**
|
|
134
134
|
* Not required. 200 characters or fewer.
|
|
135
|
-
* @member {String}
|
|
135
|
+
* @member {String} website_url
|
|
136
136
|
*/
|
|
137
137
|
|
|
138
|
-
Consumer.prototype['
|
|
138
|
+
Consumer.prototype['website_url'] = undefined;
|
|
139
139
|
/**
|
|
140
140
|
* True if organization is active. Default True.
|
|
141
141
|
* @member {Boolean} is_active
|
|
@@ -148,7 +148,7 @@ Consumer.prototype['is_active'] = undefined;
|
|
|
148
148
|
|
|
149
149
|
Consumer.prototype['retailer'] = undefined;
|
|
150
150
|
/**
|
|
151
|
-
* Distance in
|
|
151
|
+
* Distance in kilometers. If not assigned then max distance is not used to restrict matching.
|
|
152
152
|
* @member {Number} energy_source_max_distance
|
|
153
153
|
*/
|
|
154
154
|
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
|
|
14
|
+
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
|
+
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
|
+
/**
|
|
19
|
+
* The ConsumptionDataFileList model module.
|
|
20
|
+
* @module model/ConsumptionDataFileList
|
|
21
|
+
* @version 1.1.1
|
|
22
|
+
*/
|
|
23
|
+
var ConsumptionDataFileList = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ConsumptionDataFileList</code>.
|
|
26
|
+
* @alias module:model/ConsumptionDataFileList
|
|
27
|
+
* @param fileList {Array.<String>}
|
|
28
|
+
* @param consumer {String}
|
|
29
|
+
* @param eicColumnName {String}
|
|
30
|
+
* @param consumptionStartColumnName {String}
|
|
31
|
+
* @param amountConsumedColumnName {String}
|
|
32
|
+
*/
|
|
33
|
+
function ConsumptionDataFileList(fileList, consumer, eicColumnName, consumptionStartColumnName, amountConsumedColumnName) {
|
|
34
|
+
_classCallCheck(this, ConsumptionDataFileList);
|
|
35
|
+
|
|
36
|
+
ConsumptionDataFileList.initialize(this, fileList, consumer, eicColumnName, consumptionStartColumnName, amountConsumedColumnName);
|
|
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(ConsumptionDataFileList, null, [{
|
|
46
|
+
key: "initialize",
|
|
47
|
+
value: function initialize(obj, fileList, consumer, eicColumnName, consumptionStartColumnName, amountConsumedColumnName) {
|
|
48
|
+
obj['file_list'] = fileList;
|
|
49
|
+
obj['consumer'] = consumer;
|
|
50
|
+
obj['eic_column_name'] = eicColumnName;
|
|
51
|
+
obj['consumption_start_column_name'] = consumptionStartColumnName;
|
|
52
|
+
obj['amount_consumed_column_name'] = amountConsumedColumnName;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>ConsumptionDataFileList</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/ConsumptionDataFileList} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/ConsumptionDataFileList} The populated <code>ConsumptionDataFileList</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new ConsumptionDataFileList();
|
|
67
|
+
|
|
68
|
+
if (data.hasOwnProperty('file_list')) {
|
|
69
|
+
obj['file_list'] = _ApiClient["default"].convertToType(data['file_list'], ['String']);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (data.hasOwnProperty('consumer')) {
|
|
73
|
+
obj['consumer'] = _ApiClient["default"].convertToType(data['consumer'], 'String');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (data.hasOwnProperty('eic_column_name')) {
|
|
77
|
+
obj['eic_column_name'] = _ApiClient["default"].convertToType(data['eic_column_name'], 'String');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (data.hasOwnProperty('consumption_start_column_name')) {
|
|
81
|
+
obj['consumption_start_column_name'] = _ApiClient["default"].convertToType(data['consumption_start_column_name'], 'String');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (data.hasOwnProperty('amount_consumed_column_name')) {
|
|
85
|
+
obj['amount_consumed_column_name'] = _ApiClient["default"].convertToType(data['amount_consumed_column_name'], 'String');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (data.hasOwnProperty('timezone')) {
|
|
89
|
+
obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
}]);
|
|
96
|
+
|
|
97
|
+
return ConsumptionDataFileList;
|
|
98
|
+
}();
|
|
99
|
+
/**
|
|
100
|
+
* @member {Array.<String>} file_list
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
ConsumptionDataFileList.prototype['file_list'] = undefined;
|
|
105
|
+
/**
|
|
106
|
+
* @member {String} consumer
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
ConsumptionDataFileList.prototype['consumer'] = undefined;
|
|
110
|
+
/**
|
|
111
|
+
* @member {String} eic_column_name
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
ConsumptionDataFileList.prototype['eic_column_name'] = undefined;
|
|
115
|
+
/**
|
|
116
|
+
* @member {String} consumption_start_column_name
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
ConsumptionDataFileList.prototype['consumption_start_column_name'] = undefined;
|
|
120
|
+
/**
|
|
121
|
+
* @member {String} amount_consumed_column_name
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
ConsumptionDataFileList.prototype['amount_consumed_column_name'] = undefined;
|
|
125
|
+
/**
|
|
126
|
+
* @member {String} timezone
|
|
127
|
+
* @default 'Europe/Istanbul'
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
ConsumptionDataFileList.prototype['timezone'] = 'Europe/Istanbul';
|
|
131
|
+
var _default = ConsumptionDataFileList;
|
|
132
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
|
|
14
|
+
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
|
+
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
|
+
/**
|
|
19
|
+
* The ConsumptionDataFromRetailerRequest model module.
|
|
20
|
+
* @module model/ConsumptionDataFromRetailerRequest
|
|
21
|
+
* @version 1.1.1
|
|
22
|
+
*/
|
|
23
|
+
var ConsumptionDataFromRetailerRequest = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>ConsumptionDataFromRetailerRequest</code>.
|
|
26
|
+
* @alias module:model/ConsumptionDataFromRetailerRequest
|
|
27
|
+
* @param listOfEic {Array.<String>}
|
|
28
|
+
* @param startDatetime {Date}
|
|
29
|
+
* @param endDatetime {Date}
|
|
30
|
+
*/
|
|
31
|
+
function ConsumptionDataFromRetailerRequest(listOfEic, startDatetime, endDatetime) {
|
|
32
|
+
_classCallCheck(this, ConsumptionDataFromRetailerRequest);
|
|
33
|
+
|
|
34
|
+
ConsumptionDataFromRetailerRequest.initialize(this, listOfEic, startDatetime, endDatetime);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Initializes the fields of this object.
|
|
38
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
39
|
+
* Only for internal use.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
_createClass(ConsumptionDataFromRetailerRequest, null, [{
|
|
44
|
+
key: "initialize",
|
|
45
|
+
value: function initialize(obj, listOfEic, startDatetime, endDatetime) {
|
|
46
|
+
obj['list_of_eic'] = listOfEic;
|
|
47
|
+
obj['start_datetime'] = startDatetime;
|
|
48
|
+
obj['end_datetime'] = endDatetime;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>ConsumptionDataFromRetailerRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/ConsumptionDataFromRetailerRequest} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/ConsumptionDataFromRetailerRequest} The populated <code>ConsumptionDataFromRetailerRequest</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new ConsumptionDataFromRetailerRequest();
|
|
63
|
+
|
|
64
|
+
if (data.hasOwnProperty('list_of_eic')) {
|
|
65
|
+
obj['list_of_eic'] = _ApiClient["default"].convertToType(data['list_of_eic'], ['String']);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (data.hasOwnProperty('start_datetime')) {
|
|
69
|
+
obj['start_datetime'] = _ApiClient["default"].convertToType(data['start_datetime'], 'Date');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (data.hasOwnProperty('end_datetime')) {
|
|
73
|
+
obj['end_datetime'] = _ApiClient["default"].convertToType(data['end_datetime'], 'Date');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (data.hasOwnProperty('preview')) {
|
|
77
|
+
obj['preview'] = _ApiClient["default"].convertToType(data['preview'], 'Boolean');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return obj;
|
|
82
|
+
}
|
|
83
|
+
}]);
|
|
84
|
+
|
|
85
|
+
return ConsumptionDataFromRetailerRequest;
|
|
86
|
+
}();
|
|
87
|
+
/**
|
|
88
|
+
* @member {Array.<String>} list_of_eic
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
ConsumptionDataFromRetailerRequest.prototype['list_of_eic'] = undefined;
|
|
93
|
+
/**
|
|
94
|
+
* @member {Date} start_datetime
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
ConsumptionDataFromRetailerRequest.prototype['start_datetime'] = undefined;
|
|
98
|
+
/**
|
|
99
|
+
* @member {Date} end_datetime
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
ConsumptionDataFromRetailerRequest.prototype['end_datetime'] = undefined;
|
|
103
|
+
/**
|
|
104
|
+
* @member {Boolean} preview
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
ConsumptionDataFromRetailerRequest.prototype['preview'] = false;
|
|
109
|
+
var _default = ConsumptionDataFromRetailerRequest;
|
|
110
|
+
exports["default"] = _default;
|
|
@@ -13,22 +13,23 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
13
13
|
|
|
14
14
|
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
15
|
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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 ConsumptionDataFromRetailerResponse model module.
|
|
20
|
+
* @module model/ConsumptionDataFromRetailerResponse
|
|
21
|
+
* @version 1.1.1
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var ConsumptionDataFromRetailerResponse = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
* Constructs a new <code>
|
|
26
|
-
* @alias module:model/
|
|
25
|
+
* Constructs a new <code>ConsumptionDataFromRetailerResponse</code>.
|
|
26
|
+
* @alias module:model/ConsumptionDataFromRetailerResponse
|
|
27
|
+
* @param detail {Object.<String, Object>}
|
|
27
28
|
*/
|
|
28
|
-
function
|
|
29
|
-
_classCallCheck(this,
|
|
29
|
+
function ConsumptionDataFromRetailerResponse(detail) {
|
|
30
|
+
_classCallCheck(this, ConsumptionDataFromRetailerResponse);
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
ConsumptionDataFromRetailerResponse.initialize(this, detail);
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Initializes the fields of this object.
|
|
@@ -37,25 +38,29 @@ var RestAuthDetail = /*#__PURE__*/function () {
|
|
|
37
38
|
*/
|
|
38
39
|
|
|
39
40
|
|
|
40
|
-
_createClass(
|
|
41
|
+
_createClass(ConsumptionDataFromRetailerResponse, null, [{
|
|
41
42
|
key: "initialize",
|
|
42
|
-
value: function initialize(obj) {
|
|
43
|
+
value: function initialize(obj, detail) {
|
|
44
|
+
obj['detail'] = detail;
|
|
45
|
+
}
|
|
43
46
|
/**
|
|
44
|
-
* Constructs a <code>
|
|
47
|
+
* Constructs a <code>ConsumptionDataFromRetailerResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
45
48
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
46
49
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
47
|
-
* @param {module:model/
|
|
48
|
-
* @return {module:model/
|
|
50
|
+
* @param {module:model/ConsumptionDataFromRetailerResponse} obj Optional instance to populate.
|
|
51
|
+
* @return {module:model/ConsumptionDataFromRetailerResponse} The populated <code>ConsumptionDataFromRetailerResponse</code> instance.
|
|
49
52
|
*/
|
|
50
53
|
|
|
51
54
|
}, {
|
|
52
55
|
key: "constructFromObject",
|
|
53
56
|
value: function constructFromObject(data, obj) {
|
|
54
57
|
if (data) {
|
|
55
|
-
obj = obj || new
|
|
58
|
+
obj = obj || new ConsumptionDataFromRetailerResponse();
|
|
56
59
|
|
|
57
60
|
if (data.hasOwnProperty('detail')) {
|
|
58
|
-
obj['detail'] = _ApiClient["default"].convertToType(data['detail'],
|
|
61
|
+
obj['detail'] = _ApiClient["default"].convertToType(data['detail'], {
|
|
62
|
+
'String': Object
|
|
63
|
+
});
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
66
|
|
|
@@ -63,13 +68,13 @@ var RestAuthDetail = /*#__PURE__*/function () {
|
|
|
63
68
|
}
|
|
64
69
|
}]);
|
|
65
70
|
|
|
66
|
-
return
|
|
71
|
+
return ConsumptionDataFromRetailerResponse;
|
|
67
72
|
}();
|
|
68
73
|
/**
|
|
69
|
-
* @member {String} detail
|
|
74
|
+
* @member {Object.<String, Object>} detail
|
|
70
75
|
*/
|
|
71
76
|
|
|
72
77
|
|
|
73
|
-
|
|
74
|
-
var _default =
|
|
78
|
+
ConsumptionDataFromRetailerResponse.prototype['detail'] = undefined;
|
|
79
|
+
var _default = ConsumptionDataFromRetailerResponse;
|
|
75
80
|
exports["default"] = _default;
|
|
@@ -7,18 +7,20 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
9
|
|
|
10
|
+
var _SmartContract = _interopRequireDefault(require("./SmartContract"));
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
15
|
|
|
14
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); } }
|
|
15
17
|
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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; }
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
21
|
* The ConsumptionDataPointCreate model module.
|
|
20
22
|
* @module model/ConsumptionDataPointCreate
|
|
21
|
-
* @version 1.
|
|
23
|
+
* @version 1.1.1
|
|
22
24
|
*/
|
|
23
25
|
var ConsumptionDataPointCreate = /*#__PURE__*/function () {
|
|
24
26
|
/**
|
|
@@ -129,16 +131,16 @@ var ConsumptionDataPointCreate = /*#__PURE__*/function () {
|
|
|
129
131
|
obj['consumption_end'] = _ApiClient["default"].convertToType(data['consumption_end'], 'Date');
|
|
130
132
|
}
|
|
131
133
|
|
|
132
|
-
if (data.hasOwnProperty('
|
|
133
|
-
obj['
|
|
134
|
+
if (data.hasOwnProperty('tx')) {
|
|
135
|
+
obj['tx'] = _ApiClient["default"].convertToType(data['tx'], 'String');
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
if (data.hasOwnProperty('is_settlement_data')) {
|
|
137
139
|
obj['is_settlement_data'] = _ApiClient["default"].convertToType(data['is_settlement_data'], 'Boolean');
|
|
138
140
|
}
|
|
139
141
|
|
|
140
|
-
if (data.hasOwnProperty('
|
|
141
|
-
obj['
|
|
142
|
+
if (data.hasOwnProperty('minter_contract')) {
|
|
143
|
+
obj['minter_contract'] = _ApiClient["default"].convertToType(data['minter_contract'], _SmartContract["default"]);
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
if (data.hasOwnProperty('created_at')) {
|
|
@@ -254,11 +256,10 @@ ConsumptionDataPointCreate.prototype['consumption_start'] = undefined;
|
|
|
254
256
|
|
|
255
257
|
ConsumptionDataPointCreate.prototype['consumption_end'] = undefined;
|
|
256
258
|
/**
|
|
257
|
-
*
|
|
258
|
-
* @member {String} consumption_tx_hash
|
|
259
|
+
* @member {String} tx
|
|
259
260
|
*/
|
|
260
261
|
|
|
261
|
-
ConsumptionDataPointCreate.prototype['
|
|
262
|
+
ConsumptionDataPointCreate.prototype['tx'] = undefined;
|
|
262
263
|
/**
|
|
263
264
|
* True if settlement data. Default False.
|
|
264
265
|
* @member {Boolean} is_settlement_data
|
|
@@ -266,11 +267,10 @@ ConsumptionDataPointCreate.prototype['consumption_tx_hash'] = undefined;
|
|
|
266
267
|
|
|
267
268
|
ConsumptionDataPointCreate.prototype['is_settlement_data'] = undefined;
|
|
268
269
|
/**
|
|
269
|
-
*
|
|
270
|
-
* @member {String} token_contract_address
|
|
270
|
+
* @member {module:model/SmartContract} minter_contract
|
|
271
271
|
*/
|
|
272
272
|
|
|
273
|
-
ConsumptionDataPointCreate.prototype['
|
|
273
|
+
ConsumptionDataPointCreate.prototype['minter_contract'] = undefined;
|
|
274
274
|
/**
|
|
275
275
|
* @member {Date} created_at
|
|
276
276
|
*/
|