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
193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/adyen/rest/authorise_payment.rb', line 193 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("recurringDetailsResult.details", mapped_attributes) end |
#references ⇒ Array
Returns a list of recurring details references
209 210 211 |
# File 'lib/adyen/rest/authorise_payment.rb', line 209 def references details.map { |detail| detail[:recurring_detail_reference] } end |