Class: Worldline::Connect::SDK::V1::Domain::GetIINDetailsRequest
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::GetIINDetailsRequest
- Defined in:
- lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb
Instance Attribute Summary collapse
-
#bin ⇒ String
The current value of bin.
-
#payment_context ⇒ Worldline::Connect::SDK::V1::Domain::PaymentContext
The current value of payment_context.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bin ⇒ String
Returns the current value of bin.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb', line 15 def bin @bin end |
#payment_context ⇒ Worldline::Connect::SDK::V1::Domain::PaymentContext
Returns the current value of payment_context.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb', line 15 def payment_context @payment_context end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb', line 29 def from_hash(hash) super if hash.has_key? 'bin' @bin = hash['bin'] end if hash.has_key? 'paymentContext' raise TypeError, "value '%s' is not a Hash" % [hash['paymentContext']] unless hash['paymentContext'].is_a? Hash @payment_context = Worldline::Connect::SDK::V1::Domain::PaymentContext.new_from_hash(hash['paymentContext']) end end |
#to_h ⇒ Hash
22 23 24 25 26 27 |
# File 'lib/worldline/connect/sdk/v1/domain/get_iin_details_request.rb', line 22 def to_h hash = super hash['bin'] = @bin unless @bin.nil? hash['paymentContext'] = @payment_context.to_h unless @payment_context.nil? hash end |