Class: Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#end_dateString

Returns the current value of end_date.

Returns:

  • (String)

    the current value of end_date



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb', line 15

def end_date
  @end_date
end

#min_frequencyInteger

Returns the current value of min_frequency.

Returns:

  • (Integer)

    the current value of min_frequency



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb', line 15

def min_frequency
  @min_frequency
end

#recurring_payment_sequence_indicatorString

Returns the current value of recurring_payment_sequence_indicator.

Returns:

  • (String)

    the current value of recurring_payment_sequence_indicator



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb', line 15

def recurring_payment_sequence_indicator
  @recurring_payment_sequence_indicator
end

Instance Method Details

#from_hash(hash) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb', line 32

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_hHash

Returns:

  • (Hash)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb', line 24

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