Class: Adyen::REST::AuthorisePayment::ListRecurringDetailsResponse
- Inherits:
-
Response
- Object
- Response
- Adyen::REST::AuthorisePayment::ListRecurringDetailsResponse
- Defined in:
- lib/adyen/rest/authorise_payment.rb
Overview
The Response class implements some extensions for the list recurring details call.
Instance Attribute Summary
Attributes inherited from Response
#attributes, #http_response, #prefix
Instance Method Summary collapse
-
#details ⇒ Array
Returns a list of recurring details.
-
#references ⇒ Array
Returns a list of recurring details references.
Methods inherited from Response
#[], #has_attribute?, #initialize, #psp_reference
Constructor Details
This class inherits a constructor from Adyen::REST::Response
Instance Method Details
#details ⇒ Array
Returns a list of recurring details
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 |
#references ⇒ Array
Returns a list of recurring details references
201 202 203 |
# File 'lib/adyen/rest/authorise_payment.rb', line 201 def references details.map { |detail| detail[:recurring_detail_reference] } end |