Skip to content

Commit

Permalink
Merge pull request #46 from recurly/billing-agreements
Browse files Browse the repository at this point in the history
Adds PayPal and Amazon billing agreement support
  • Loading branch information
cbarton committed Sep 18, 2014
2 parents f8ebe81 + 333932f commit 11c90e2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Library/BillingInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public enum CreditCardType : short
/// <summary>
/// Paypal Billing Agreement ID
/// </summary>
public string BillingAgreementId { get; set; }
public string PaypalBillingAgreementId { get; set; }

/// <summary>
/// Amazon Billing Agreement ID
/// </summary>
public string AmazonBillingAgreementId { get; set; }

private string _cardNumber;

Expand Down Expand Up @@ -246,8 +251,12 @@ internal override void ReadXml(XmlTextReader reader)
LastFour = reader.ReadElementContentAsString();
break;

case "billing_agreement_id":
BillingAgreementId = reader.ReadElementContentAsString();
case "paypal_billing_agreement_id":
PaypalBillingAgreementId = reader.ReadElementContentAsString();
break;

case "amazon_billing_agreement_id":
AmazonBillingAgreementId = reader.ReadElementContentAsString();
break;
}
}
Expand Down

0 comments on commit 11c90e2

Please sign in to comment.