test/test_data.rb in stripe-1.20.0 vs test/test_data.rb in stripe-1.20.1
- old
+ new
@@ -101,11 +101,11 @@
:livemode => false,
:object => "customer",
:id => id,
:default_card => "cc_test_card",
:created => 1304114758,
- :cards => test_card_array(id),
+ :sources => test_customer_card_array(id),
:metadata => {},
:subscriptions => test_subscription_array(id)
}.merge(params)
end
@@ -149,18 +149,26 @@
:object => 'list',
:url => '/v1/charges'
}
end
- def test_card_array(customer_id)
+ def test_recipient_card_array(recipient_id)
{
:data => [test_card, test_card, test_card],
:object => 'list',
- :url => '/v1/customers/' + customer_id + '/cards'
+ :url => '/v1/recipients/' + recipient_id + '/cards'
}
end
+ def test_customer_card_array(customer_id)
+ {
+ :data => [test_card, test_card, test_card],
+ :object => 'list',
+ :url => '/v1/customers/' + customer_id + '/sources'
+ }
+ end
+
def test_card(params={})
{
:type => "Visa",
:last4 => "4242",
:exp_month => 11,
@@ -328,10 +336,10 @@
:name => "Stripe User",
:type => "individual",
:livemode => false,
:object => "recipient",
:id => "rp_test_recipient",
- :cards => test_card_array(id),
+ :cards => test_recipient_card_array(id),
:default_card => "debit_test_card",
:active_account => {
:last4 => "6789",
:bank_name => "STRIPE TEST BANK",
:country => "US",