Class: Ingenico::Connect::SDK::Domain::Payment::PaymentAccountOnFile
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::PaymentAccountOnFile
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb
Instance Attribute Summary collapse
-
#create_date ⇒ String
The current value of create_date.
-
#number_of_card_on_file_creation_attempts_last24_hours ⇒ Integer
The current value of number_of_card_on_file_creation_attempts_last24_hours.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#create_date ⇒ String
13 14 15 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb', line 13 def create_date @create_date end |
#number_of_card_on_file_creation_attempts_last24_hours ⇒ Integer
13 14 15 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb', line 13 def number_of_card_on_file_creation_attempts_last24_hours @number_of_card_on_file_creation_attempts_last24_hours end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb', line 27 def from_hash(hash) super if hash.has_key? 'createDate' @create_date = hash['createDate'] end if hash.has_key? 'numberOfCardOnFileCreationAttemptsLast24Hours' @number_of_card_on_file_creation_attempts_last24_hours = hash['numberOfCardOnFileCreationAttemptsLast24Hours'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb', line 20 def to_h hash = super hash['createDate'] = @create_date unless @create_date.nil? hash['numberOfCardOnFileCreationAttemptsLast24Hours'] = @number_of_card_on_file_creation_attempts_last24_hours unless @number_of_card_on_file_creation_attempts_last24_hours.nil? hash end |