- Made Gift Card RedeemedAt, DeliveredAt and CanceledAt nullable PR
- Change Usage dates to UTC PR
- Standardize line endings PR
- Changed Invoice Refunds for Credit Memo API changes PR
- Fixed tests based on credit memo changes PR
This release brings us up to API version 2.16. Refunding multiple adjustments requires use of the new Invoice#RefundOptions class.
- Added clean and release scripts PR
- Updated README with config and .Net target instructions PR
- Fixed release script PR
- Escape user supplied input commit
- Check for empty and null strings commit
- Fix compiler warnings PR
- Allow updating custom fields through /notes endpoint
- Add ability to update an invoice
- Remove reference to unused ruleset
- Upgrade .NET 4.7 and scripts folder
- Allow test script to run a single method
- Fix integration tests so they all pass
This release brings us up to API version 2.14. The build now targets .NET v4.7. Please make sure that you update your application appropriately.
- Upgrade mono to fix TLS issue
- 2.13 Custom Fields Support
- Add PoNumber to Purchases Serializer
- Allow nulls in BillingInfo
Fixes a regression issue introduced in 1.12.1
- Issue parsing Account#billing_info
This release brings us to API version 2.13 but does not have any breaking changes.
- Allow programmer to set gateway code per purchase
- Add link to all_transactions on Invoice
- Subscription Terms
- Subscription.Coupon throws an ArgumentNullException if couponCode is null. Now returns null.
- Fix Usages Id parsing bug
- Transaction should parse embedded account
- Make Subscription#RemainingBillingCycles writeable
- Use EnumTransportCase for RefundMethod
- Fix unit amount in cents for usage add ons
- Expose subs accountcode to avoid unnecessary api requests
###Upgrade Notes
SubscriptionAddOn#UnitAmountInCents was changed to nullable type. If you do not read this value, no change is needed.
- API v2.12 changes
- Fix typo in Subscription#Pause
- Add missing RevenueScheduleType values
- API v2.11 Changes
- Fix InvoiceCollection#credit_invoices parsing
- API v2.10 changes
This version brings us up to API version 2.10. There are quite a few breaking changes:
When creating or failing invoices, we now return an InvoiceCollection object rather than an Invoice. If you wish to upgrade your application without changing functionality, we recommend that you use the ChargeInvoice
property on the InvoiceCollection to get the charge Invoice. Example:
// Change this:
var invoice = account.InvoicePendingCharges();
// To this
var invoiceCollection = account.InvoicePendingCharges();
var invoice = invoiceCollection.ChargeInvoice;
// Invoice.MarkFailed now returns a new collection
// Change this
invoice.MarkFailed();
// To this
var invoiceCollection = invoice.MarkFailed();
var failedInvoice = invoiceCollection.ChargeInvoice;
If you want to preserve functionality, change any use of Invoice#SubtotalAfterDiscountInCents
to Invoice#SubtotalInCents
. If you were previously using Invoice#SubtotalInCents
, this has been changed to Invoice#SubtotalBeforeDiscountInCents
.
The RefundOrderPriority
enum was changed to RefundMethod
. Change use of RefundOrderPriority.Credit
to RefundMethod.CreditFirst
and RefundOrderPriority.Transaction
to RefundMethod.TransactionFirst
.
If you are checking Invoice#State
anywhere, you will want to check that you have the new correct values. collected
has changed to paid
and open
has changed to pending
. Example:
// Change this
if (invoice.State == Invoice.InvoiceState.Collected) {
// To this
if (invoice.State == Invoice.InvoiceState.Paid) {
// Change this
if (invoice.State == Invoice.InvoiceState.Open) {
// To this
if (invoice.State == Invoice.InvoiceState.Pending) {
If you are using Subscription#Invoice
on subscription previews, you will need to change this to use Subscription#InvoiceCollection
. To keep functionality the same:
// Change this
subscription.Preview();
var invoice = subscription.Invoice;
// To this
subscription.Preview();
var invoice = subscription.InvoiceCollection.ChargeInvoice;
- Fix unit amounts exceptions when using percentage addons
- Add filter to InvoiceList, redemption updated_at
- Changed Coupon.Id from int to long
- Implement Account Acquisition
There is one very small breaking change. Coupon.Id changed from an int
to a long
. Your code will require a change if you explicitly reference it as an int.
- Set errors variable to a default instance of the Errors class
- Handle empty revenue_schedule_type
- Add missing 'DinersClub' credit card type
- Fix creation of an empty invoice when InvoiceList is empty
- Make optional ints nullable
- API v2.9 changes
- Fix revenue_schedule_type spelling
This version brings us up to API version 2.9. There is a small set of breaking changes coming from PR #263. These properties have been converted to nullable so you may have to unwrap them to use them:
- AddOn#DefaultQuantity
- Plan#PlanIntervalLength
- Plan#TrialIntervalLength
- GiftCard#BalanceInCents
- Adds giftcard redeem endpoint
- Update the README with
Overview
section - Make TrialRequiresBillingInfo an optional
- Implements missing
revenue_schedule_type
There is one small breaking change in this API version. TrialRequiresBillingInfo
is now an optional so you will have to unwrap it to use it.
This release will upgrade us to API version 2.8.
- ImportedTrial flag on Subscription
- Purchases Notes Changes
There are two breaking changes in this API version you must consider.
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.
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:
// You must set the currency here
var purchase = new Purchase(accountCode, currency);
var adj = new Adjustment(4000, "HD Camera", 5);
// You can no longer set the currency on the adjustment level
adj.Currency = currency;
purchase.Adjustments.Add(adj);
- Fix Subscription#Postpone datetime format bug
- Gift Card Support
- Purchases Endpoint Support
This release will upgrade us to API version 2.7. There is only 1 breaking change in this library.
Invoice
will now use an enum for the CollectionMethod
property instead of a string. The enum has 2 values (Automatic and Manual). Example:
// Setting
invoice.CollectionMethod = Invoice.Collection.Manual;
// Getting
if (invoice.CollectionMethod == Invoice.Collection.Automatic)
{
// do something
}
- Fixed NullReference error on List() when page size = 1
- Added account balance endpoint
- Added plan and subscription changes
- Fixing NullReferenceException in List() functions
- Fixed a probable NRE in Plans.List()
- Remove X-Records Header and RecurlyList #Capacity method
This release will upgrade us to API version 2.6. There are two breaking changes:
- 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. - For
POST /v2/subscriptions
Sendingnull
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
.
- Removing
trial_requires_billing_info
from Plan (which is in api 2.6)
- API 2.5 additions
- Sorting and Filtering parameters
- Refactored Invoice/PreviewPendingCharges to be able to specify notes
- Automated export feature #221
- Modified overridden gethashcode to work on null references #220
- Add missing enum values #215
- Write amazon_billing_agreement_id #209
- Added support for new invoice and transactions states for ACH billing #212
Fixes a bug in 1.4.6. Please prefer this release.
- Fix TotalBillingCycles nil value #206
- Fix null Datetime Xml reading for Adjustment StartDate and UpdatedAt #199
- Parse transaction_error #200
- Updated test project to use latest version of Xunit #202
- Add total_billing_cycles reader #203
- allow addresses to be null, and don't force-create one when fetching #186
- Update BillingInfo.cs (Adding PayPal) #191
- Add Invoice Create and Preview data #193
- Make PoNumber always available to write on Subscription #194
- fixed; Allow skip trial period by setting date in the past
- added; Add .vscode to gitignore
- added; UsageList class
- fixed; NetTerms null exception for manual subscriptions
- added; Subscription.SubscriptionState.Failed
- added; Support for free trial coupons
- added; Allow
UsageTimestamp
to be null (defaults to server time)
- fixed; nil parsing error on usage creation
This release brings us to API version 2.3
- added;
PlanCode
public reader on Subscription - fixed; bug with updating an AddOn
- fixed; TLS preferences missing constants
- added;
cc_emails
toAccount
- fixed;
Adjustment#Get
and related tests - added;
Currency
attribute onBillingInfo
- added; Changes for API v2.2
- added;
PaymentMethod
attribute onTransaction
- added; new optional config loading with
SettingsManager
- added; error case for http status code 400
- added; Usage based billing support
- fixed; invoice reader on
Subscription
- Retargeting to .NET version 4.5 for TLS headers
- added; explicit TLS 1.2 and 1.1 settings
- fixed;
Add(planAddOnCode, quantity)
method ofSubscriptionAddOnList
- added;
Open
state toSubscription
- fixed; Subscription Pending integration test
- fixed; referencing an
Invoice
from aSubscription
returns the invoice
- Fixes bad build
- added; multiple redemption support
GetRedemptions
forInvoice
- added; description readers to
Coupon
ReadXml - added;
PreviewChange
method forSubscription
- added;
Update()
andRestore()
paths toCoupon
- added; Bulk and Unique Coupons support
- added; Coupon default to SingleCode
- added;
SetupFeeAccountingCode
toPlan
- added;
SubscriptionUuid
toCouponRedemption
- added;
AppliesToNonPlanCharges
attributeCoupon
- added;
Coupons
toSubscription
- added;
uuid
toCouponRedemption
- added;
GetActiveRedemptions
toAccount
- added;
X-Api-Version
to2.1
- added;
RedemptionResource
toCoupon
- added;
MaxRedemptionsPerAccount
toCoupon
- fixed;
AddOn.GetHashCode()
exception - fixed; Don't send billing info when token present
- added;
Duration
toCoupon
- added;
TemporalUnit
toCoupon
- added;
TemporalAmount
toCoupon
- fixed; Parse embedded invoice on subscription/preview
- added;
bulk
param toPostpone
call onSubscription
- fixed; no content returning from the server will no longer throw "Root element is missing"
- added;
TaxRegion
toInvoice
- added;
ProductCode
toAdjustment
- added; ability to specify either credit or transaction priority on refunds
- added; ability to give a
Transaction
aDescription
- added;
TaxExempt
,TaxCode
,AccountingCode
toTransaction
- added;
BankAccountAuthorizedAt
toSubscription
- added;
IpAddress
toTransaction
- added; bank account fields to
BillingInfo
AccountType
(Checking
orSavings
)RoutingNumber
AccountNumber
LastFour
NameOnAccount
- added;
invoice.InvoiceNumberPrefix
andinvoice.InvoiceNumberWithPrefix()
- added;
transaction.GetInvoice()
- added;
invoice.GetOriginalInvoice()
- added;
TaxType
,TaxRate
,TaxRegion
on Adjustment
- fixed; nil VatLocationValid on Account would throw a parse error
- added;
subscription.UpdateNotes
will update the subscription's notes - added;
subscription.CustomerNotes
,subscription.TermsAndConditions
,subscription.VatReverseChargeNotes
- added;
invoice.CustomerNotes
,invoice.TermsAndConditions
,invoice.VatReverseChargeNotes
- added; invoice address on previews
- added;
invoice.OriginalInvoiceNumber
- added; VatLocationValid to Account
- fixed; clearing subscription addons from subscription
- added; Open Amount Refunds to Invoice
- added; invoice previews
- added; subscription address on previews
- added; entity use code on accounts
- added; amazon and paypal billing agreement id support
- fixed; keep add on unit amount when adding to a subscription
- updated; make the List.Clear() and List.RemoveAt() methods public
- fixed; change subscription to Manual if Automatic collecting when posting a Subscription
- fixed; Subscription.postpone() now sends the correct date/time format
- fixed; change subscription to Manual if Automatic collecting
- fixed; SubscriptionAddOnList.Add is now public recurly#27
- docs; added BillingInfo TokenId example
- fixed; creating accounts w/o address
- updated; user agent
- updated; handle more error details
- added; support for BillingInfo tokens
- tests; Updates UpdateBillingInfoWithToken test to expect a 404
- tests; add missing fixtures
- docs; add NuGet instructions
- removed; account.CreateAdjustment(). use account.NewAdjustment() instead
- changed; Recurly.Exception -> Recurly.RecurlyException #21
- changed; Invoice#Refund() now returns a new Invoice object
- changed; Invoice.CreateAt is now nullable
- changed; plan.CreateAddOn() -> plan.NewAddOn()
- fixed; duplicate Coupon.Plans triggered by API response
- fixed; missing plan error
- fixed; Invoice.Transactions duplicates triggered by API response
- fixed; RecurlyList.Capacity when no Items exist
- fixed; Invoices.List() returning all invoices
- added; more List methods to RecurlyList
- added; Subscription#Addons.Add now supports more handy overloads
- added; support for multiple Refunds
- added; more flexible Refund constructors
- added; more support for returned properties in Invoice API responses
- added; make Now the default timeframe for Subscription#ChangeSubsciption()
- added; Subscription.Preview() support
- added; Invoice.TaxRate
- added; Invoice.TaxType
- added; Subscription.TaxType
- added; Subscription.TaxRate
- added; Subscription.TaxInCents
- added; Vat and TaxExempt Account properties
- added; permit setting Adjustment properties on the instance
- added; account.NewAdjustment()
- added; allow users to set Adjustment.TaxExempt
- docs; update examples
- docs; subscription.AddOns.Add() overloads
- docs; fix configSection
- tests; remove redundant test
- tests; wait for API to respond
- tests; added for multiple refunds
- tests; added for Subscription#Preview()
- tests; updating Account with tax & vat
- subscription; fix total_billing_cycles retrieval
- subscription addons; fixed Create & Update
- tests; Subscription w/ Coupons
- tests; subscription update improvements
- docs; updated intellisense
- changed; AddOn.UnitAmountInCents Dictionary now implicit
- fixed; Subscription; duplicate info written to xml
- fixed; AddOn add_on_code in generated xml
- fixed; AddOn.Create with UnitAmountInCents
- fixed; AddOn.Create url
- docs; updated
- tests; added Subscription create with Plan & change
- complete rewrite
- added; API v2 support