Class: Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificInput
- Inherits:
-
AbstractSepaDirectDebitPaymentMethodSpecificInput
- Object
- Ingenico::Connect::SDK::DataObject
- Definitions::AbstractPaymentMethodSpecificInput
- AbstractSepaDirectDebitPaymentMethodSpecificInput
- Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentMethodSpecificInput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#date_collect ⇒ Object
String.
-
#direct_debit_text ⇒ Object
String.
-
#is_recurring ⇒ Object
true/false.
- #payment_product771_specific_input ⇒ Object
-
#recurring_payment_sequence_indicator ⇒ Object
String.
-
#token ⇒ Object
String.
-
#tokenize ⇒ Object
true/false.
Attributes inherited from Definitions::AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#date_collect ⇒ Object
String
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 15 def date_collect @date_collect end |
#direct_debit_text ⇒ Object
String
18 19 20 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 18 def direct_debit_text @direct_debit_text end |
#is_recurring ⇒ Object
true/false
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 21 def is_recurring @is_recurring end |
#payment_product771_specific_input ⇒ Object
24 25 26 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 24 def payment_product771_specific_input @payment_product771_specific_input end |
#recurring_payment_sequence_indicator ⇒ Object
String
27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 27 def recurring_payment_sequence_indicator @recurring_payment_sequence_indicator end |
#token ⇒ Object
String
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 30 def token @token end |
#tokenize ⇒ Object
true/false
33 34 35 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 33 def tokenize @tokenize end |
Instance Method Details
#from_hash(hash) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 47 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?('paymentProduct771SpecificInput') if !(hash['paymentProduct771SpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificInput']] end @payment_product771_specific_input = Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput.new_from_hash(hash['paymentProduct771SpecificInput']) 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_h ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb', line 35 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, 'paymentProduct771SpecificInput', @payment_product771_specific_input) add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator) add_to_hash(hash, 'token', @token) add_to_hash(hash, 'tokenize', @tokenize) hash end |