Class: Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForResponse

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#pan_last4_digitsString

Returns the current value of pan_last4_digits.

Returns:

  • (String)

    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_counterInteger

Returns the current value of pin_retry_counter.

Returns:

  • (Integer)

    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_hHash

Returns:

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