Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uprespond_to? :business_tax_id= #392
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
remi-stripe
Mar 10, 2016
Contributor
@msroot The business_tax_id can be set via the API but it's never returned afterwards. It's considered sensitive information the same way you can set the card number via the API and not retrieve it.
To confirm that you have set that value in the past we surface business_tax_id_provided as you mentioned which allows you to check whether it's been set or not.
|
@msroot The To confirm that you have set that value in the past we surface |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
msroot
Mar 10, 2016
Contributor
@remistr thank for your response
I know same will happen with ssn_last_4_provided personal_id_number_provided
but what i am saying is why doent respond as a method
account.legal_entity.respond_to? :business_tax_id=
|
@remistr thank for your response I know same will happen with but what i am saying is why doent respond as a method
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
brandur
Mar 10, 2016
Contributor
but what i am saying is why doent respond as a method
Hey @msroot, this works via the sometimes useful and highly questionable Ruby metaprogramming feature of method_missing. Here's a link to the responsible code for inspection. I'm not crazy about the design, but it's what we have for now :)
Anyway, I'm closing this issue out for now. Let me know if you have any other questions. (And thanks @remistr!)
Hey @msroot, this works via the sometimes useful and highly questionable Ruby metaprogramming feature of Anyway, I'm closing this issue out for now. Let me know if you have any other questions. (And thanks @remistr!) |
msroot commentedMar 10, 2016
Hi
I am trying to set a value to an account but doent respond_to
business_tax_idwith another field it works:
[21] pry(#<Grape::Endpoint>)> account.legal_entity.address.respond_to? :city==> truebut with
business_tax_id[10] pry(#<Grape::Endpoint>)> account.legal_entity.respond_to? :business_tax_id==> falseALSO:
How is it possible not to
respond_to? :business_tax_id=but here its works?[15] pry(#<Grape::Endpoint>)> account.legal_entity.business_tax_id = "123456789"=> "123456789"[16] pry(#<Grape::Endpoint>)> account.save; nil=> nil[17] pry(#<Grape::Endpoint>)> account.legal_entity.business_tax_id_provided=> true