Skip to content

1.5.0 (stable) / 2017-06-07

Choose a tag to compare

@bhelx bhelx released this 07 Jun 22:36

This brings us up to API v2.6

  • Added account balance endpoint #234 (issue #233)
  • Added plan and subscription changes #232
  • Fixing NullReferenceException in List() functions #231
  • Fixed a probable NRE in Plans.List() #230
  • Remove X-Records header #236

Upgrade Notes

This release will upgrade us to API version 2.6. There are two breaking changes related to this:

  1. To speed up your listing requests we’re no longer automatically computing the record counts for each requests. For our larger sites this could halve the response time. So in this release, we are removing the RecurlyList#Capacity method.
    to be cached for you. For more info see PR #324.
  2. For POST /v2/subscriptions Sending null for total_billing_cycles attribute will now override plan total_billing_cycles setting and will make subscription renew forever.
    Omitting the attribute will cause the setting to default to the value of plan total_billing_cycles.

There is a 3rd breaking change that was actually introduced in 1.4.5. The Account.Address property will no longer be pre-initialized so we no longer support this form. This will result in a NullReferenceException on the second line:

var account = new Account("asbcd123456");
account.Address.Address1 = "123 Canal St";
account.Address.City = "New Orleans";

The quick way to fix this is to initialize the address before setting its fields:

var account = new Account("asbcd123456");
account.Address = new Address(); // initialize Address first
account.Address.Address1 = "123 Canal St";
account.Address.City = "New Orleans";