Class: Ingenico::Direct::SDK::Domain::OrderTypeInformation
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::OrderTypeInformation
- Defined in:
- lib/ingenico/direct/sdk/domain/order_type_information.rb
Instance Attribute Summary collapse
-
#purchase_type ⇒ String
The current value of purchase_type.
-
#transaction_type ⇒ String
The current value of transaction_type.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#purchase_type ⇒ String
Returns the current value of purchase_type.
12 13 14 |
# File 'lib/ingenico/direct/sdk/domain/order_type_information.rb', line 12 def purchase_type @purchase_type end |
#transaction_type ⇒ String
Returns the current value of transaction_type.
12 13 14 |
# File 'lib/ingenico/direct/sdk/domain/order_type_information.rb', line 12 def transaction_type @transaction_type end |
Instance Method Details
#from_hash(hash) ⇒ Object
24 25 26 27 28 |
# File 'lib/ingenico/direct/sdk/domain/order_type_information.rb', line 24 def from_hash(hash) super @purchase_type = hash['purchaseType'] if hash.key? 'purchaseType' @transaction_type = hash['transactionType'] if hash.key? 'transactionType' end |
#to_h ⇒ Hash
17 18 19 20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/order_type_information.rb', line 17 def to_h hash = super hash['purchaseType'] = @purchase_type unless @purchase_type.nil? hash['transactionType'] = @transaction_type unless @transaction_type.nil? hash end |