Commit bdb8cdd4 authored by Daniel Podaru's avatar Daniel Podaru
Browse files

Add `currency` attribute to customer

parent 6ad891de
......@@ -32,6 +32,7 @@ module StripeMock
delinquent: false,
discount: nil,
account_balance: 0,
currency: nil,
sources: {
object: "list",
total_count: sources.size,
......
......@@ -30,6 +30,7 @@ module StripeMock
charges[id] = Data.mock_charge(:id => id, :customer => cus[:id], :amount => sub[:plan][:amount])
cus[:subscriptions][:total_count] = (cus[:subscriptions][:total_count] || 0) + 1
cus[:subscriptions][:data].unshift sub
cus[:currency] = sub[:plan][:currency]
end
def delete_subscription_from_customer(cus, subscription)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment