lib/fake_stripe.rb in fake_stripe-0.0.9 vs lib/fake_stripe.rb in fake_stripe-0.0.10
- old
+ new
@@ -7,9 +7,12 @@
extend Configuration
VALID_CARD_NUMBER = '4242424242424242'
STRIPE_OBJECTS = %w{card charge coupon customer invoice invoiceitem plan
recipient refund subscription token transfer}.freeze
+ CARD_OBJECT_TYPE = "card"
+ BANK_ACCOUNT_OBJECT_TYPE = "bank_account"
+
STRIPE_OBJECTS.each do |object|
define_singleton_method "#{object}_count" do
instance_variable_get("@#{object}_count")
end