Method: Zaala::API::AuthorizationResponse.from_message
- Defined in:
- lib/zaala/api/types.rb
.from_message(h) ⇒ Object
665 666 667 668 669 670 671 672 |
# File 'lib/zaala/api/types.rb', line 665 def self.(h) AuthorizationResponse.new({ identifier: Zaala::API::ResponseIdentifier.(h[:identifier]), decision: Zaala::API::Decision.(h[:decision]), installment_plan: h[:installmentPlan] ? Zaala::API::InstallmentPlan.(h[:installmentPlan]) : nil, info: h[:info] ? Zaala::API::Info.(h[:info]) : nil, }) end |