test/test_data.rb in stripe-1.35.1 vs test/test_data.rb in stripe-1.36.0

- old
+ new

@@ -162,11 +162,10 @@ :object => 'list', :url => '/v1/charges' } end - def make_dispute(params={}) id = params[:id] || 'dp_test_dispute' { :id => id, :charge => "ch_test_charge", @@ -669,8 +668,65 @@ def make_paid_order(params={}) make_order.merge({ :status => "paid", :charge => make_charge, }).merge(params) + end + + def country_spec_array + { + :object => "list", + :url => "/v1/country_specs", + :data => [ + make_country_spec, + make_country_spec, + make_country_spec, + ] + } + end + + def make_country_spec(params={}) + { + :id => "US", + :object => "country_spec", + :supported_bank_account_currencies => { + :usd => ["US"] + }, + :supported_payment_currencies => [ + "usd", "aed", "afn", "all" + ], + :supported_payment_methods => [ + "alipay", + "card", + "stripe" + ], + :verification_fields => + { + :individual => { + :minimum => [ + "external_account", + "legal_entity.address.city", + "tos_acceptance.date", + "tos_acceptance.ip" + ], + :additional => [ + "legal_entity.personal_id_number", + "legal_entity.verification.document" + ] + }, + :company => { + :minimum => [ + "external_account", + "legal_entity.address.city", + "legal_entity.address.line1", + "tos_acceptance.ip" + ], + :additional => [ + "legal_entity.personal_id_number", + "legal_entity.verification.document" + ] + } + } + }.merge(params) end end end