class Ingenico::Connect::SDK::Domain::Payment::CardRecurrenceDetails
@attr [String] end_date
@attr [Integer] min_frequency
@attr [String] recurring_payment_sequence_indicator
Attributes
end_date[RW]
min_frequency[RW]
recurring_payment_sequence_indicator[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/payment/card_recurrence_details.rb, line 31 def from_hash(hash) super if hash.has_key? 'endDate' @end_date = hash['endDate'] end if hash.has_key? 'minFrequency' @min_frequency = hash['minFrequency'] end if hash.has_key? 'recurringPaymentSequenceIndicator' @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/card_recurrence_details.rb, line 23 def to_h hash = super hash['endDate'] = @end_date unless @end_date.nil? hash['minFrequency'] = @min_frequency unless @min_frequency.nil? hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil? hash end