Class: OnlinePayments::SDK::Domain::ShowFormData

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/show_form_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#payment_product11OnlinePayments::SDK::Domain::PaymentProduct11?

Returns the current value of payment_product11.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product11
  @payment_product11
end

#payment_product3012OnlinePayments::SDK::Domain::PaymentProduct3012?

Returns the current value of payment_product3012.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product3012
  @payment_product3012
end

#payment_product350OnlinePayments::SDK::Domain::PaymentProduct350?

Returns the current value of payment_product350.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product350
  @payment_product350
end

#payment_product5001OnlinePayments::SDK::Domain::PaymentProduct5001?

Returns the current value of payment_product5001.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product5001
  @payment_product5001
end

#payment_product5404OnlinePayments::SDK::Domain::PaymentProduct5404?

Returns the current value of payment_product5404.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product5404
  @payment_product5404
end

#payment_product5407OnlinePayments::SDK::Domain::PaymentProduct5407?

Returns the current value of payment_product5407.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product5407
  @payment_product5407
end

#payment_product5412OnlinePayments::SDK::Domain::PaymentProduct5412?

Returns the current value of payment_product5412.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product5412
  @payment_product5412
end

#payment_product840OnlinePayments::SDK::Domain::PaymentProduct840?

Returns the current value of payment_product840.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def payment_product840
  @payment_product840
end

#pending_authenticationOnlinePayments::SDK::Domain::PendingAuthentication?

Returns the current value of pending_authentication.

Returns:



27
28
29
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 27

def pending_authentication
  @pending_authentication
end

Instance Method Details

#from_hash(hash) ⇒ Object



62
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
100
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 62

def from_hash(hash)
  super
  if hash.has_key? 'paymentProduct11'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct11']] unless hash['paymentProduct11'].is_a? Hash
    @payment_product11 = OnlinePayments::SDK::Domain::PaymentProduct11.new_from_hash(hash['paymentProduct11'])
  end
  if hash.has_key? 'paymentProduct3012'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3012']] unless hash['paymentProduct3012'].is_a? Hash
    @payment_product3012 = OnlinePayments::SDK::Domain::PaymentProduct3012.new_from_hash(hash['paymentProduct3012'])
  end
  if hash.has_key? 'paymentProduct350'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct350']] unless hash['paymentProduct350'].is_a? Hash
    @payment_product350 = OnlinePayments::SDK::Domain::PaymentProduct350.new_from_hash(hash['paymentProduct350'])
  end
  if hash.has_key? 'paymentProduct5001'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001']] unless hash['paymentProduct5001'].is_a? Hash
    @payment_product5001 = OnlinePayments::SDK::Domain::PaymentProduct5001.new_from_hash(hash['paymentProduct5001'])
  end
  if hash.has_key? 'paymentProduct5404'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5404']] unless hash['paymentProduct5404'].is_a? Hash
    @payment_product5404 = OnlinePayments::SDK::Domain::PaymentProduct5404.new_from_hash(hash['paymentProduct5404'])
  end
  if hash.has_key? 'paymentProduct5407'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407']] unless hash['paymentProduct5407'].is_a? Hash
    @payment_product5407 = OnlinePayments::SDK::Domain::PaymentProduct5407.new_from_hash(hash['paymentProduct5407'])
  end
  if hash.has_key? 'paymentProduct5412'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5412']] unless hash['paymentProduct5412'].is_a? Hash
    @payment_product5412 = OnlinePayments::SDK::Domain::PaymentProduct5412.new_from_hash(hash['paymentProduct5412'])
  end
  if hash.has_key? 'paymentProduct840'
    raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840']] unless hash['paymentProduct840'].is_a? Hash
    @payment_product840 = OnlinePayments::SDK::Domain::PaymentProduct840.new_from_hash(hash['paymentProduct840'])
  end
  if hash.has_key? 'pendingAuthentication'
    raise TypeError, "value '%s' is not a Hash" % [hash['pendingAuthentication']] unless hash['pendingAuthentication'].is_a? Hash
    @pending_authentication = OnlinePayments::SDK::Domain::PendingAuthentication.new_from_hash(hash['pendingAuthentication'])
  end
end

#to_hHash

Returns:

  • (Hash)


48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/onlinepayments/sdk/domain/show_form_data.rb', line 48

def to_h
  hash = super
  hash['paymentProduct11'] = @payment_product11.to_h unless @payment_product11.nil?
  hash['paymentProduct3012'] = @payment_product3012.to_h unless @payment_product3012.nil?
  hash['paymentProduct350'] = @payment_product350.to_h unless @payment_product350.nil?
  hash['paymentProduct5001'] = @payment_product5001.to_h unless @payment_product5001.nil?
  hash['paymentProduct5404'] = @payment_product5404.to_h unless @payment_product5404.nil?
  hash['paymentProduct5407'] = @payment_product5407.to_h unless @payment_product5407.nil?
  hash['paymentProduct5412'] = @payment_product5412.to_h unless @payment_product5412.nil?
  hash['paymentProduct840'] = @payment_product840.to_h unless @payment_product840.nil?
  hash['pendingAuthentication'] = @pending_authentication.to_h unless @pending_authentication.nil?
  hash
end