Closed aqbalahmad closed 3 years ago
Correct. Despite the name being plural, it should be signular. Here's the java code on the server.
public TariffPropertyType getPropertyTypes() {
return propertyTypes;
}
public void setPropertyTypes(TariffPropertyType propertyTypes) {
this.propertyTypes = propertyTypes;
}
Correct. Despite the name being plural, it should be signular. Here's the java code on the server.
public TariffPropertyType getPropertyTypes() { return propertyTypes; } public void setPropertyTypes(TariffPropertyType propertyTypes) { this.propertyTypes = propertyTypes; }
Hi @jasonriley
We are still getting propertyTypes in the response from tariff API. It should be propertyType based on changes in this PR. Please look into this ASAP.
It is blocker for this issue.
Here's an example from a real tariff. What is the issue here?
"properties": [
{
"keyName": "isNEM2",
"quantityKey": null,
"displayName": "Is NEM2 Tariff",
"family": "billing",
"keyspace": "electricity",
"description": "Is this a California NEM 2.0 tariff. True is a NEM 2.0 tariff, false is NOT a NEM 2.0 tariff.",
"dataType": "BOOLEAN",
"propertyTypes": "APPLICABILITY",
"operator": "=",
"propertyValue": "false",
"isDefault": true
},
I believe the SDK code should be ...
propertyTypes: TariffPropertyType;
We are not changing the server side. Its been that way for 8 years and all our customers use it.
Ok, I'll change the SDK code for this and merge.