Class: Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForResponse
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForResponse
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb
Instance Attribute Summary collapse
-
#pan_last4_digits ⇒ String
The current value of pan_last4_digits.
-
#pin_retry_counter ⇒ Integer
The current value of pin_retry_counter.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#pan_last4_digits ⇒ String
Returns the current value of pan_last4_digits.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb', line 13 def pan_last4_digits @pan_last4_digits end |
#pin_retry_counter ⇒ Integer
Returns the current value of pin_retry_counter.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb', line 13 def pin_retry_counter @pin_retry_counter end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb', line 27 def from_hash(hash) super if hash.has_key? 'panLast4Digits' @pan_last4_digits = hash['panLast4Digits'] end if hash.has_key? 'pinRetryCounter' @pin_retry_counter = hash['pinRetryCounter'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb', line 20 def to_h hash = super hash['panLast4Digits'] = @pan_last4_digits unless @pan_last4_digits.nil? hash['pinRetryCounter'] = @pin_retry_counter unless @pin_retry_counter.nil? hash end |