1.5.0 (stable) / 2017-06-07
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:
- 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#Capacitymethod.
to be cached for you. For more info see PR #324. - For
POST /v2/subscriptionsSendingnullfortotal_billing_cyclesattribute will now override plantotal_billing_cyclessetting and will make subscription renew forever.
Omitting the attribute will cause the setting to default to the value of plantotal_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";