Skip to content

1.2.0

Compare
Choose a tag to compare
@delias-silva delias-silva released this 18 Sep 11:32
· 192 commits to master since this release
1592e88
  • Addition of MPRequestOptions to allow configure each request (configure access token, add headers, configure timeouts)
var customHeaders = new Dictionary<String, String>();
customHeaders.Add("x-test", "test");

var requestOptions = new MPRequestOptions
{
        AccessToken = "YOUR_ACCESS_TOKEN",
        Retries = 2,
        Timeout = 10000,
        CustomHeaders = customHeaders
};

var payment = new Payment();
...
payment.Save(requestOptions);
  • Addition of DiscountCampaign class to allow find a valid discount
  • Added the functionality of saving customer card using the card token
var card = new Card
{
        CustomerId = "CUSTOMER_ID",
        Token = "CARD_TOKEN"
};
card.Save();
  • Change the type of StreetNumber property from string to int in Customer.Address
  • Adjust Refund method in Payment