class Adyen::REST::ReauthoriseRecurringPayment::Request

Public Class Methods

new(action, attributes, options) click to toggle source
Calls superclass method Adyen::REST::Request::new
   # File lib/adyen/rest/authorise_recurring_payment.rb
21 def initialize(action, attributes, options)
22   attributes[:recurring] ||= { contract: 'RECURRING' }
23   attributes[:shopper_interaction] ||= 'ContAuth'
24   attributes[:selected_recurring_detail_reference] ||= 'LATEST'
25   super(action, attributes, options)
26   @required_attributes += ['paymentRequest.shopperEmail',
27     'paymentRequest.shopperReference',
28     'paymentRequest.recurring.contract',
29     'paymentRequest.shopperInteraction'
30   ]
31 end