Class: Worldline::Connect::SDK::V1::Domain::RedirectPaymentMethodSpecificOutput
- Inherits:
-
AbstractPaymentMethodSpecificOutput
- Object
- Domain::DataObject
- AbstractPaymentMethodSpecificOutput
- Worldline::Connect::SDK::V1::Domain::RedirectPaymentMethodSpecificOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb
Instance Attribute Summary collapse
-
#bank_account_bban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountBban
The current value of bank_account_bban.
-
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
The current value of bank_account_iban.
-
#bic ⇒ String
The current value of bic.
-
#fraud_results ⇒ Worldline::Connect::SDK::V1::Domain::FraudResults
The current value of fraud_results.
-
#payment_product3201_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct3201SpecificOutput
The current value of payment_product3201_specific_output.
-
#payment_product806_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct806SpecificOutput
The current value of payment_product806_specific_output.
-
#payment_product836_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct836SpecificOutput
The current value of payment_product836_specific_output.
-
#payment_product840_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct840SpecificOutput
The current value of payment_product840_specific_output.
-
#token ⇒ String
The current value of token.
Attributes inherited from AbstractPaymentMethodSpecificOutput
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bank_account_bban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountBban
Returns the current value of bank_account_bban.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def bank_account_bban @bank_account_bban end |
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
Returns the current value of bank_account_iban.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def bank_account_iban @bank_account_iban end |
#bic ⇒ String
Returns the current value of bic.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def bic @bic end |
#fraud_results ⇒ Worldline::Connect::SDK::V1::Domain::FraudResults
Returns the current value of fraud_results.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def fraud_results @fraud_results end |
#payment_product3201_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct3201SpecificOutput
Returns the current value of payment_product3201_specific_output.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def payment_product3201_specific_output @payment_product3201_specific_output end |
#payment_product806_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct806SpecificOutput
Returns the current value of payment_product806_specific_output.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def payment_product806_specific_output @payment_product806_specific_output end |
#payment_product836_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct836SpecificOutput
Returns the current value of payment_product836_specific_output.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def payment_product836_specific_output @payment_product836_specific_output end |
#payment_product840_specific_output ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct840SpecificOutput
Returns the current value of payment_product840_specific_output.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def payment_product840_specific_output @payment_product840_specific_output end |
#token ⇒ String
Returns the current value of token.
28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28 def token @token end |
Instance Method Details
#from_hash(hash) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 63 def from_hash(hash) super if hash.has_key? 'bankAccountBban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash @bank_account_bban = Worldline::Connect::SDK::V1::Domain::BankAccountBban.new_from_hash(hash['bankAccountBban']) end if hash.has_key? 'bankAccountIban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash @bank_account_iban = Worldline::Connect::SDK::V1::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban']) end if hash.has_key? 'bic' @bic = hash['bic'] end if hash.has_key? 'fraudResults' raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash @fraud_results = Worldline::Connect::SDK::V1::Domain::FraudResults.new_from_hash(hash['fraudResults']) end if hash.has_key? 'paymentProduct3201SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3201SpecificOutput']] unless hash['paymentProduct3201SpecificOutput'].is_a? Hash @payment_product3201_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct3201SpecificOutput.new_from_hash(hash['paymentProduct3201SpecificOutput']) end if hash.has_key? 'paymentProduct806SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct806SpecificOutput']] unless hash['paymentProduct806SpecificOutput'].is_a? Hash @payment_product806_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct806SpecificOutput.new_from_hash(hash['paymentProduct806SpecificOutput']) end if hash.has_key? 'paymentProduct836SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct836SpecificOutput']] unless hash['paymentProduct836SpecificOutput'].is_a? Hash @payment_product836_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct836SpecificOutput.new_from_hash(hash['paymentProduct836SpecificOutput']) end if hash.has_key? 'paymentProduct840SpecificOutput' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificOutput']] unless hash['paymentProduct840SpecificOutput'].is_a? Hash @payment_product840_specific_output = Worldline::Connect::SDK::V1::Domain::PaymentProduct840SpecificOutput.new_from_hash(hash['paymentProduct840SpecificOutput']) end if hash.has_key? 'token' @token = hash['token'] end end |
#to_h ⇒ Hash
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 49 def to_h hash = super hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil? hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil? hash['bic'] = @bic unless @bic.nil? hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil? hash['paymentProduct3201SpecificOutput'] = @payment_product3201_specific_output.to_h unless @payment_product3201_specific_output.nil? hash['paymentProduct806SpecificOutput'] = @payment_product806_specific_output.to_h unless @payment_product806_specific_output.nil? hash['paymentProduct836SpecificOutput'] = @payment_product836_specific_output.to_h unless @payment_product836_specific_output.nil? hash['paymentProduct840SpecificOutput'] = @payment_product840_specific_output.to_h unless @payment_product840_specific_output.nil? hash['token'] = @token unless @token.nil? hash end |