Class: Worldline::Connect::SDK::V1::Domain::RedirectPaymentMethodSpecificOutput

Inherits:
AbstractPaymentMethodSpecificOutput show all
Defined in:
lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractPaymentMethodSpecificOutput

#payment_product_id

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#bank_account_bbanWorldline::Connect::SDK::V1::Domain::BankAccountBban

Returns the current value of bank_account_bban.

Returns:



28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28

def 
  @bank_account_bban
end

#bank_account_ibanWorldline::Connect::SDK::V1::Domain::BankAccountIban

Returns the current value of bank_account_iban.

Returns:



28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_output.rb', line 28

def 
  @bank_account_iban
end

#bicString

Returns the current value of bic.

Returns:

  • (String)

    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_resultsWorldline::Connect::SDK::V1::Domain::FraudResults

Returns the current value of fraud_results.

Returns:



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_outputWorldline::Connect::SDK::V1::Domain::PaymentProduct3201SpecificOutput

Returns the current value of payment_product3201_specific_output.

Returns:



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_outputWorldline::Connect::SDK::V1::Domain::PaymentProduct806SpecificOutput

Returns the current value of payment_product806_specific_output.

Returns:



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_outputWorldline::Connect::SDK::V1::Domain::PaymentProduct836SpecificOutput

Returns the current value of payment_product836_specific_output.

Returns:



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_outputWorldline::Connect::SDK::V1::Domain::PaymentProduct840SpecificOutput

Returns the current value of payment_product840_specific_output.

Returns:



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

#tokenString

Returns the current value of token.

Returns:

  • (String)

    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_hHash

Returns:

  • (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