Class: Zaala::API::AuthorizationRequest
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Zaala::API::AuthorizationRequest
- Defined in:
- lib/zaala/api/types.rb
Overview
The AuthorizationRequest class represents the request parameter of the PreAuthorize and the Authorize service call. It contains all information needed to make a preauthorization/authorization.
Instance Method Summary collapse
Instance Method Details
#to_message ⇒ Object
638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/zaala/api/types.rb', line 638 def m = { identifier: identifier., personalData: personal_data., invoiceAddress: invoice_address., additionalData: additional_data., } m[:requestedAmount] = requested_amount unless requested_amount.nil? m[:deliveryAddress] = delivery_address unless delivery_address.nil? m[:basket] = basket unless basket.nil? m[:token] = token unless token.nil? m[:attachments] = .map(&:to_message) unless .nil? m end |