test/test_data.rb in stripe-1.36.1 vs test/test_data.rb in stripe-1.36.2

- old
+ new

@@ -54,11 +54,11 @@ def make_balance_transaction_array { :data => [make_balance_transaction, make_balance_transaction, make_balance_transaction], :object => "list", - :url => "/v1/balance/history" + :resource_url => "/v1/balance/history" } end def make_application_fee(params={}) id = params[:id] || 'fee_test_fee' @@ -91,19 +91,19 @@ def make_application_fee_array { :data => [make_application_fee, make_application_fee, make_application_fee], :object => 'list', - :url => '/v1/application_fees' + :resource_url => '/v1/application_fees' } end def make_application_fee_refund_array(fee_id) { :data => [make_application_fee_refund, make_application_fee_refund, make_application_fee_refund], :object => 'list', - :url => '/v1/application_fees/' + fee_id + '/refunds' + :resource_url => '/v1/application_fees/' + fee_id + '/refunds' } end def make_customer(params={}) id = params[:id] || 'c_test_customer' @@ -124,11 +124,11 @@ def make_customer_array { :data => [make_customer, make_customer, make_customer], :object => 'list', - :url => '/v1/customers' + :resource_url => '/v1/customers' } end def make_charge(params={}) id = params[:id] || 'ch_test_charge' @@ -158,11 +158,11 @@ def make_charge_array { :data => [make_charge, make_charge, make_charge], :object => 'list', - :url => '/v1/charges' + :resource_url => '/v1/charges' } end def make_dispute(params={}) id = params[:id] || 'dp_test_dispute' @@ -182,27 +182,27 @@ def make_dispute_array { :data => [make_dispute, make_dispute, make_dispute], :object => 'list', - :url => '/v1/disputes' + :resource_url => '/v1/disputes' } end def make_recipient_card_array(recipient_id) { :data => [make_card, make_card, make_card], :object => 'list', - :url => '/v1/recipients/' + recipient_id + '/cards' + :resource_url => '/v1/recipients/' + recipient_id + '/cards' } end def make_customer_card_array(customer_id) { :data => [make_card, make_card, make_card], :object => 'list', - :url => '/v1/customers/' + customer_id + '/sources' + :resource_url => '/v1/customers/' + customer_id + '/sources' } end def make_card(params={}) { @@ -233,20 +233,20 @@ :object => "file_upload", :id => "fil_test_file", :created => 1403047735, :size => 4908, :purpose => params[:purpose] || "dispute_evidence", - :url => nil, + :resource_url => nil, :type => nil, } end def make_file_array { :data => [make_file, make_file, make_file], :object => 'list', - :url => '/v1/files' + :resource_url => '/v1/files' } end #FIXME nested overrides would be better than hardcoding plan_id def make_subscription(params = {}) @@ -285,29 +285,29 @@ def make_subscription_array(customer_id) { :data => [make_subscription, make_subscription, make_subscription], :object => 'list', - :url => '/v1/customers/' + customer_id + '/subscriptions' + :resource_url => '/v1/customers/' + customer_id + '/subscriptions' } end def make_refund_array(charge=nil) p = charge ? {:charge => charge} : {} { :data => [make_refund(p), make_refund(p), make_refund(p)], :object => 'list', - :url => charge ? "/v1/charges/#{charge}/refunds" : '/v1/refunds' + :resource_url => charge ? "/v1/charges/#{charge}/refunds" : '/v1/refunds' } end def make_reversal_array(transfer_id) { :data => [make_reversal, make_reversal, make_reversal], :object => 'list', - :url => '/v1/transfers/' + transfer_id + '/reversals' + :resource_url => '/v1/transfers/' + transfer_id + '/reversals' } end def make_invoice { @@ -364,11 +364,11 @@ def make_invoice_customer_array { :data => [make_invoice], :object => 'list', - :url => '/v1/invoices?customer=test_customer' + :resource_url => '/v1/invoices?customer=test_customer' } end def make_recipient(params={}) id = params[:id] || 'rp_test_recipient' @@ -394,11 +394,11 @@ def make_recipient_array { :data => [make_recipient, make_recipient, make_recipient], :object => 'list', - :url => '/v1/recipients' + :resource_url => '/v1/recipients' } end def make_transfer(params={}) { @@ -425,11 +425,11 @@ def make_transfer_array { :data => [make_transfer, make_transfer, make_transfer], :object => 'list', - :url => '/v1/transfers' + :resource_url => '/v1/transfers' } end def make_canceled_transfer make_transfer.merge({ @@ -464,11 +464,11 @@ def make_bitcoin_receiver_array { :data => [make_bitcoin_receiver, make_bitcoin_receiver, make_bitcoin_receiver], :object => 'list', - :url => '/v1/bitcoin/receivers' + :resource_url => '/v1/bitcoin/receivers' } end def make_bitcoin_transaction(params={}) { @@ -483,11 +483,11 @@ def make_bitcoin_transaction_array { :data => [make_bitcoin_transaction, make_bitcoin_transaction, make_bitcoin_transaction], :object => 'list', - :url => "/v1/bitcoin/receivers/btcrcv_test_receiver/transactions" + :resource_url => "/v1/bitcoin/receivers/btcrcv_test_receiver/transactions" } end def make_invalid_api_key_error { @@ -565,11 +565,11 @@ end def make_product_array { :object => "list", - :url => "/v1/products", + :resource_url => "/v1/products", :data => [ make_product, make_product, make_product, ], @@ -600,11 +600,11 @@ end def make_sku_array(product_id, params={}) { :object => "list", - :url => "/v1/skus", + :resource_url => "/v1/skus", :data => [ make_sku(:product => product_id), make_sku(:product => product_id), make_sku(:product => product_id), ] @@ -654,11 +654,11 @@ end def make_order_array(params={}) { :object => "list", - :url => "/v1/orders", + :resource_url => "/v1/orders", :data => [ make_order, make_order, make_order, ] @@ -673,11 +673,11 @@ end def country_spec_array { :object => "list", - :url => "/v1/country_specs", + :resource_url => "/v1/country_specs", :data => [ make_country_spec, make_country_spec, make_country_spec, ] @@ -707,10 +707,10 @@ "legal_entity.address.city", "tos_acceptance.date", "tos_acceptance.ip" ], :additional => [ - "legal_entity.personal_id_number", + "legal_entity.personal_id_number", "legal_entity.verification.document" ] }, :company => { :minimum => [