Class: Adyen::REST::AuthorisePayment::ListRecurringDetailsResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/adyen/rest/authorise_payment.rb

Overview

The Response class implements some extensions for the list recurring details call.

See Also:

Instance Attribute Summary

Attributes inherited from Response

#attributes, #http_response, #prefix

Instance Method Summary collapse

Methods inherited from Response

#[], #has_attribute?, #initialize, #psp_reference

Constructor Details

This class inherits a constructor from Adyen::REST::Response

Instance Method Details

#detailsArray

Returns a list of recurring details

Returns:

  • (Array)

    A not empty array if there is at least a recurring detail



185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/adyen/rest/authorise_payment.rb', line 185

def details
  mapped_attributes = {
    :recurring_detail_reference => "recurringDetailReference",
    :creation_date => "creationDate",
    :variant => "variant",
    :card_holder_name => "card.holderName",
    :card_expiry_month => "card.expiryMonth",
    :card_expiry_year => "card.expiryYear",
    :card_number => "card.number"
  }

  map_response_list("details", mapped_attributes)
end

#referencesArray

Returns a list of recurring details references

Returns:

  • (Array)

    A not empty array if there is at least a recurring detail reference



201
202
203
# File 'lib/adyen/rest/authorise_payment.rb', line 201

def references
  details.map { |detail| detail[:recurring_detail_reference] }
end