Skip to content

Commit 7fb721c

Browse files
Use camelCase for MeterResponse deserialization
Updated StringSerialiser.Deserialise to use SerialiserOptions with camelCase formatting when deserializing MeterResponse, ensuring correct mapping of JSON property names.
1 parent 25666e1 commit 7fb721c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TransactionProcessor.BusinessLogic/OperatorInterfaces/PataPawaPrePay/PataPawaPrePayProxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private Result<OperatorResponse> CreateFromLogon(String responseContent){
183183

184184
private Result<OperatorResponse> CreateFromMeter(String responseContent)
185185
{
186-
MeterResponse meterResponse = StringSerialiser.Deserialise<MeterResponse>(responseContent);
186+
MeterResponse meterResponse = StringSerialiser.Deserialise<MeterResponse>(responseContent, new SerialiserOptions(SerialiserPropertyFormat.CamelCase));
187187

188188
if (meterResponse.Status != 0)
189189
{

0 commit comments

Comments
 (0)