Class: Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForDcc
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForDcc
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc.rb
Instance Attribute Summary collapse
-
#terminal_country_code ⇒ String
The current value of terminal_country_code.
-
#terminal_id ⇒ String
The current value of terminal_id.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#terminal_country_code ⇒ String
Returns the current value of terminal_country_code.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc.rb', line 13 def terminal_country_code @terminal_country_code end |
#terminal_id ⇒ String
Returns the current value of terminal_id.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc.rb', line 13 def terminal_id @terminal_id 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_dcc.rb', line 27 def from_hash(hash) super if hash.has_key? 'terminalCountryCode' @terminal_country_code = hash['terminalCountryCode'] end if hash.has_key? 'terminalId' @terminal_id = hash['terminalId'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc.rb', line 20 def to_h hash = super hash['terminalCountryCode'] = @terminal_country_code unless @terminal_country_code.nil? hash['terminalId'] = @terminal_id unless @terminal_id.nil? hash end |