Class: Zaala::API::SubmissionResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Zaala::API::SubmissionResponse
- Defined in:
- lib/zaala/api/types.rb
Class Method Summary collapse
Class Method Details
.from_message(h) ⇒ Object
711 712 713 714 715 716 717 718 |
# File 'lib/zaala/api/types.rb', line 711 def self.(h) SubmissionResponse.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 |