Class: Worldline::Acquiring::SDK::V1::Domain::SubsequentCardOnFileData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::SubsequentCardOnFileData
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb
Instance Attribute Summary collapse
-
#card_on_file_initiator ⇒ String
The current value of card_on_file_initiator.
-
#initial_scheme_transaction_id ⇒ String
The current value of initial_scheme_transaction_id.
-
#transaction_type ⇒ String
The current value of transaction_type.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#card_on_file_initiator ⇒ String
Returns the current value of card_on_file_initiator.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 14 def card_on_file_initiator @card_on_file_initiator end |
#initial_scheme_transaction_id ⇒ String
Returns the current value of initial_scheme_transaction_id.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 14 def initial_scheme_transaction_id @initial_scheme_transaction_id end |
#transaction_type ⇒ String
Returns the current value of transaction_type.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 14 def transaction_type @transaction_type end |
Instance Method Details
#from_hash(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 31 def from_hash(hash) super if hash.has_key? 'cardOnFileInitiator' @card_on_file_initiator = hash['cardOnFileInitiator'] end if hash.has_key? 'initialSchemeTransactionId' @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] end if hash.has_key? 'transactionType' @transaction_type = hash['transactionType'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/worldline/acquiring/sdk/v1/domain/subsequent_card_on_file_data.rb', line 23 def to_h hash = super hash['cardOnFileInitiator'] = @card_on_file_initiator unless @card_on_file_initiator.nil? hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil? hash['transactionType'] = @transaction_type unless @transaction_type.nil? hash end |