Class: Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificInput

Inherits:
SepaDirectDebitPaymentMethodSpecificInputBase show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb

Instance Attribute Summary collapse

Attributes inherited from SepaDirectDebitPaymentMethodSpecificInputBase

#payment_product771_specific_input

Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput

#payment_product_id

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#date_collectObject

String



14
15
16
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 14

def date_collect
  @date_collect
end

#direct_debit_textObject

String



17
18
19
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 17

def direct_debit_text
  @direct_debit_text
end

#is_recurringObject

true/false



20
21
22
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 20

def is_recurring
  @is_recurring
end

#recurring_payment_sequence_indicatorObject

String



23
24
25
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 23

def recurring_payment_sequence_indicator
  @recurring_payment_sequence_indicator
end

#tokenObject

String



26
27
28
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 26

def token
  @token
end

#tokenizeObject

true/false



29
30
31
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 29

def tokenize
  @tokenize
end

Instance Method Details

#from_hash(hash) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 42

def from_hash(hash)
  super
  if hash.has_key?('dateCollect')
    @date_collect = hash['dateCollect']
  end
  if hash.has_key?('directDebitText')
    @direct_debit_text = hash['directDebitText']
  end
  if hash.has_key?('isRecurring')
    @is_recurring = hash['isRecurring']
  end
  if hash.has_key?('recurringPaymentSequenceIndicator')
    @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
  end
  if hash.has_key?('token')
    @token = hash['token']
  end
  if hash.has_key?('tokenize')
    @tokenize = hash['tokenize']
  end
end

#to_hObject



31
32
33
34
35
36
37
38
39
40
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 31

def to_h
  hash = super
  add_to_hash(hash, 'dateCollect', @date_collect)
  add_to_hash(hash, 'directDebitText', @direct_debit_text)
  add_to_hash(hash, 'isRecurring', @is_recurring)
  add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator)
  add_to_hash(hash, 'token', @token)
  add_to_hash(hash, 'tokenize', @tokenize)
  hash
end