class Ingenico::Direct::SDK::Domain::OrderTypeInformation
@attr [String] purchase_type
@attr [String] transaction_type
Attributes
purchase_type[RW]
transaction_type[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# 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