Class: Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::CardRecurrenceDetails
- Defined in:
- lib/worldline/connect/sdk/v1/domain/card_recurrence_details.rb
Instance Attribute Summary collapse
-
#end_date ⇒ String
The current value of end_date.
-
#min_frequency ⇒ Integer
The current value of min_frequency.
-
#recurring_payment_sequence_indicator ⇒ String
The current value of recurring_payment_sequence_indicator.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#end_date ⇒ String
Returns 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_frequency ⇒ Integer
Returns 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_indicator ⇒ String
Returns 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_h ⇒ 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 |