Releases: recurly/recurly-client-python
Version 2.7.0 November 20, 2017
- Implement API version 2.9 changes
Upgrade Notes
This version bumps us to API version 2.9. There are a few breaking changes.
-
The
subscription
link on an instance ofAdjustment
is now only created if adjustment is
originating from a subscription plan charge, setup fee, add on, trial or proration credit.
It is no longer created for other adjustments. -
Instances of
Transaction
andInvoice
no longer have asubscription
link and you
must now use thesubscriptions
link.
Version 2.6.2 November 9, 2017
- Fix SSRF: do not use urljoin, quote uuids. Commit: 049c746
Version 2.5.1 November 9, 2017
- Fix SSRF: do not use urljoin, quote uuids. Commit: 049c746
Version 2.4.5 November 9, 2017
- Fix SSRF: do not use urljoin, quote uuids. Commit: 049c746
Version 2.3.1 November 9, 2017
- Fix SSRF: do not use urljoin, quote uuids. Commit: 049c746
Version 2.2.22 November 9, 2017
- Fix SSRF: do not use urljoin, quote uuids. Commit: 049c746
Version 2.1.16 November 9, 2017
- Fix SSRF: do not use urljoin, quote uuids. Commit: 049c746
Version 2.6.1 October 26, 2017
- Added missing attributes on Delivery resource PR #214 Issue #213
Version 2.6.0 October 12, 2017
This brings us to API version 2.8.
- imported_trial flag on Subscription PR
- Purchases endpoint PR
- Support multiple suberrors per field in ValidationError PR
Upgrade Notes
There are two breaking changes in this API version you must consider.
Country Codes
All country
fields must now contain valid 2 letter ISO 3166 country codes. If your country code fails validation, you will receive a validation error. This affects any endpoint where an address is collected.
Purchase Currency
The purchases endpoint can create and invoice multiple adjustments at once but our invoices can only contain items in one currency. To make this explicit the currency can no longer be provided on an adjustment, it must be set once for the entire purchase:
purchase = recurly.Purchase(
# The purchase object is the only place you can set the currency:
currency = 'USD',
account = recurly.Account(
account_code = 'someone',
),
adjustments = [
# Remove this currency
# You can no longer set the currency on adjustment level
recurly.Adjustment(currency='USD', unit_amount_in_cents=1000, description='Item 1',
quantity=1),
]
)
Version 2.5.0 April 17, 2017
Upgrade Notes
This release will upgrade us to API version 2.6. There are two breaking changes:
- To speed up your listing requests we’re no long automatically computing the record counts for each requests. For our larger sites this could halve the response time. If you still need a count it will be computed with a separate request. You can no longer use
len()
on aPage
. From now on you must explicitly call thecount()
class method on a Page. See PR #202 for more information. - For
POST /v2/subscriptions
SendingNone
fortotal_billing_cycles
attribute will now override plantotal_billing_cycles
setting and will make subscription renew forever.
Omitting the attribute will cause the setting to default to the value of plantotal_billing_cycles
.