test/test_data.rb in stripe-1.27.2 vs test/test_data.rb in stripe-1.28.0
- old
+ new
@@ -14,10 +14,18 @@
def m.code; @stripe_values[:code]; end
def m.headers; @stripe_values[:headers]; end
m
end
+ def make_account(params={})
+ {
+ :charges_enabled => false,
+ :details_submitted => false,
+ :email => "test+bindings@stripe.com",
+ }.merge(params)
+ end
+
def make_balance(params={})
{
:pending => [
{:amount => 12345, :currency => "usd"}
],
@@ -313,14 +321,15 @@
:closed => false,
:currency => 'usd',
:customer => 'c_test_customer',
:date => 1349738950,
:lines => {
- "invoiceitems" => [
+ :object => 'list',
+ :data => [
{
:id => 'ii_test_invoice_item',
- :object => '',
+ :object => 'invoiceitem',
:livemode => false,
:amount => 1000,
:currency => 'usd',
:customer => 'c_test_customer',
:date => 1349738950,
@@ -336,10 +345,10 @@
:subtotal => 1000,
:total => 1000,
:charge => nil,
:discount => nil,
:ending_balance => nil,
- :next_payemnt_attempt => 1349825350,
+ :next_payment_attempt => 1349825350,
}
end
def make_paid_invoice
make_invoice.merge({