Class: Worldline::Connect::SDK::V1::Domain::ThirdPartyData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::ThirdPartyData
- Defined in:
- lib/worldline/connect/sdk/v1/domain/third_party_data.rb
Instance Attribute Summary collapse
-
#payment_product863 ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData
The current value of payment_product863.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#payment_product863 ⇒ Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData
Returns the current value of payment_product863.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/third_party_data.rb', line 14 def payment_product863 @payment_product863 end |
Instance Method Details
#from_hash(hash) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/worldline/connect/sdk/v1/domain/third_party_data.rb', line 25 def from_hash(hash) super if hash.has_key? 'paymentProduct863' raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct863']] unless hash['paymentProduct863'].is_a? Hash @payment_product863 = Worldline::Connect::SDK::V1::Domain::PaymentProduct863ThirdPartyData.new_from_hash(hash['paymentProduct863']) end end |
#to_h ⇒ Hash
19 20 21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/third_party_data.rb', line 19 def to_h hash = super hash['paymentProduct863'] = @payment_product863.to_h unless @payment_product863.nil? hash end |