From 94478d3231ae33cb06e4d57179cc1cb1dc4e0e4c Mon Sep 17 00:00:00 2001 From: Christopher Rogers Date: Mon, 8 Sep 2014 17:17:42 -0700 Subject: [PATCH] Adds BillingInfo#amazon_billing_agreement_id support Signed-off-by: Christopher Rogers --- lib/recurly/billing_info.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/recurly/billing_info.rb b/lib/recurly/billing_info.rb index 3f59c9fb9..7c92b0e2f 100644 --- a/lib/recurly/billing_info.rb +++ b/lib/recurly/billing_info.rb @@ -26,12 +26,13 @@ class BillingInfo < Resource first_six last_four paypal_billing_agreement_id + amazon_billing_agreement_id number verification_value token_id ) - # @return ["credit_card", "paypal", nil] The type of billing info. + # @return ["credit_card", "paypal", "amazon", nil] The type of billing info. attr_reader :type # @return [String] @@ -39,7 +40,7 @@ def inspect attributes = self.class.attribute_names case type when 'credit_card' - attributes -= %w(paypal_billing_agreement_id) + attributes -= %w(paypal_billing_agreement_id amazon_billing_agreement_id) when 'paypal' attributes -= %w( card_type year month start_year start_month issue_number