Class: Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentMethodSpecificInput
- Inherits:
-
AbstractSepaDirectDebitPaymentMethodSpecificInput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificInput
- AbstractSepaDirectDebitPaymentMethodSpecificInput
- Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentMethodSpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb
Instance Attribute Summary collapse
-
#date_collect ⇒ String
The current value of date_collect.
-
#direct_debit_text ⇒ String
The current value of direct_debit_text.
-
#is_recurring ⇒ true/false
The current value of is_recurring.
-
#payment_product771_specific_input ⇒ Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentProduct771SpecificInput
The current value of payment_product771_specific_input.
-
#recurring_payment_sequence_indicator ⇒ String
The current value of recurring_payment_sequence_indicator.
-
#requires_approval ⇒ true/false
The current value of requires_approval.
-
#token ⇒ String
The current value of token.
-
#tokenize ⇒ true/false
The current value of tokenize.
Attributes inherited from AbstractPaymentMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#date_collect ⇒ String
Returns the current value of date_collect.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def date_collect @date_collect end |
#direct_debit_text ⇒ String
Returns the current value of direct_debit_text.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def direct_debit_text @direct_debit_text end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def is_recurring @is_recurring end |
#payment_product771_specific_input ⇒ Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentProduct771SpecificInput
Returns the current value of payment_product771_specific_input.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def payment_product771_specific_input @payment_product771_specific_input end |
#recurring_payment_sequence_indicator ⇒ String
Returns the current value of recurring_payment_sequence_indicator.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def recurring_payment_sequence_indicator @recurring_payment_sequence_indicator end |
#requires_approval ⇒ true/false
Returns the current value of requires_approval.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def requires_approval @requires_approval end |
#token ⇒ String
Returns the current value of token.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def token @token end |
#tokenize ⇒ true/false
Returns the current value of tokenize.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 21 def tokenize @tokenize end |
Instance Method Details
#from_hash(hash) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 53 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' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificInput']] unless hash['paymentProduct771SpecificInput'].is_a? Hash @payment_product771_specific_input = Worldline::Connect::SDK::V1::Domain::SepaDirectDebitPaymentProduct771SpecificInput.new_from_hash(hash['paymentProduct771SpecificInput']) end if hash.has_key? 'recurringPaymentSequenceIndicator' @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator'] end if hash.has_key? 'requiresApproval' @requires_approval = hash['requiresApproval'] end if hash.has_key? 'token' @token = hash['token'] end if hash.has_key? 'tokenize' @tokenize = hash['tokenize'] end end |
#to_h ⇒ Hash
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/worldline/connect/sdk/v1/domain/sepa_direct_debit_payment_method_specific_input.rb', line 40 def to_h hash = super hash['dateCollect'] = @date_collect unless @date_collect.nil? hash['directDebitText'] = @direct_debit_text unless @direct_debit_text.nil? hash['isRecurring'] = @is_recurring unless @is_recurring.nil? hash['paymentProduct771SpecificInput'] = @payment_product771_specific_input.to_h unless @payment_product771_specific_input.nil? hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil? hash['requiresApproval'] = @requires_approval unless @requires_approval.nil? hash['token'] = @token unless @token.nil? hash['tokenize'] = @tokenize unless @tokenize.nil? hash end |