Now you can use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[4] pry(main)> Stripe::CountrySpec.retrieve("US") | |
#<Stripe::CountrySpec id=US 0x00000a> JSON: { | |
"id": "US", | |
"object": "country_spec", | |
"supported_bank_account_currencies": { | |
"usd": [ | |
"US" | |
] | |
}, | |
"supported_payment_currencies": [ | |
"usd", | |
"aed", | |
"afn", | |
"..." | |
], | |
"supported_payment_methods": [ | |
"alipay", | |
"card", | |
"stripe" | |
], | |
"verification_fields": { | |
"individual": { | |
"minimum": [ | |
"external_account", | |
"legal_entity.address.city", | |
"legal_entity.address.line1", | |
"legal_entity.address.postal_code", | |
"legal_entity.address.state", | |
"legal_entity.dob.day", | |
"legal_entity.dob.month", | |
"legal_entity.dob.year", | |
"legal_entity.first_name", | |
"legal_entity.last_name", | |
"legal_entity.ssn_last_4", | |
"legal_entity.type", | |
"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", | |
"legal_entity.address.postal_code", | |
"legal_entity.address.state", | |
"legal_entity.business_name", | |
"legal_entity.business_tax_id", | |
"legal_entity.dob.day", | |
"legal_entity.dob.month", | |
"legal_entity.dob.year", | |
"legal_entity.first_name", | |
"legal_entity.last_name", | |
"legal_entity.ssn_last_4", | |
"legal_entity.type", | |
"tos_acceptance.date", | |
"tos_acceptance.ip" | |
], | |
"additional": [ | |
"legal_entity.personal_id_number", | |
"legal_entity.verification.document" | |
] | |
} | |
} | |
} |
https://github.com/stripe/stripe-ruby/commit/f8532d225e20cb6ded2bd9a672a6d8a0479b80ba
Awesome!
ReplyDelete