v2.1.3
Release Notes
- Changed
Payment.routeMinimumfrom double to string - Added test to demonstrate
Payment.routeMinimumusage - Bumped up the version number and added README
BREAKING CHANGE
The Payment.routeMinimum variable type is now string. Previously it was double.
This change has been made to conform to how our API responds and to be consistent with Recipient.routeMinimum variable.
The PaymentTest.cs test class has been updated to include an example of how to use the new variable: https://github.com/trolley/dotnet-sdk/blob/main/tests/PaymentTest.cs#L90C1-L94C14
Usage Before
Assert.IsTrue(payment.routeMinimum>0);
Usage After
if(payment.routeMinimum != null){
Assert.IsTrue(Convert.ToDouble(payment.routeMinimum)>0);
}else{
Assert.IsNull(payment.routeMinimum);
}
We hope this change makes your development experience better. Please reach out to us on developers@trolley.com if you have any questions.