Skip to content

Commit

Permalink
Merge pull request #149 from recurly/amazon-payments
Browse files Browse the repository at this point in the history
Adds BillingInfo#amazon_billing_agreement_id support
  • Loading branch information
cbarton committed Sep 10, 2014
2 parents 633df6f + 94478d3 commit 0242691
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/recurly/billing_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,21 @@ 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]
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
Expand Down

0 comments on commit 0242691

Please sign in to comment.