Skip to content

v2.1.3

Choose a tag to compare

@Aman-Aalam Aman-Aalam released this 19 Jul 16:05
· 1 commit to main since this release
1476cbc

Release Notes

  • Changed Payment.routeMinimum from double to string
  • Added test to demonstrate Payment.routeMinimum usage
  • 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.