def payment_transaction_to_request(payment_transaction)
      request_fields = {}

      request_fields_definition.each do |field_name, property_path, _|
        field_value = PropertyAccessor.get_value payment_transaction, property_path

        if field_value
          request_fields[field_name] = field_value
        end
      end

      Request.new request_fields
    end
def payment_transaction_to_request(payment_transaction)
      request_fields = {}

      request_fields_definition.each do |field_name, property_path, _|
        field_value = PropertyAccessor.get_value payment_transaction, property_path

        if field_value
          request_fields[field_name] = field_value
        end
      end

      Request.new request_fields
    end
Creates request from payment transaction

 @param    payment_transaction   [PaymentTransaction]    Payment transaction for request constructing

 @return                         [Request]               Request object