Class: OnlinePayments::SDK::Domain::NetworkTokenData
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::NetworkTokenData
- Defined in:
- lib/onlinepayments/sdk/domain/network_token_data.rb
Instance Attribute Summary collapse
-
#cardholder_name ⇒ String
The current value of cardholder_name.
-
#cryptogram ⇒ String
The current value of cryptogram.
-
#eci ⇒ Integer
The current value of eci.
-
#network_token ⇒ String
The current value of network_token.
-
#scheme_token_requestor_id ⇒ String
The current value of scheme_token_requestor_id.
-
#token_expiry_date ⇒ String
The current value of token_expiry_date.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#cardholder_name ⇒ String
Returns the current value of cardholder_name.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 15 def cardholder_name @cardholder_name end |
#cryptogram ⇒ String
Returns the current value of cryptogram.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 15 def cryptogram @cryptogram end |
#eci ⇒ Integer
Returns the current value of eci.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 15 def eci @eci end |
#network_token ⇒ String
Returns the current value of network_token.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 15 def network_token @network_token end |
#scheme_token_requestor_id ⇒ String
Returns the current value of scheme_token_requestor_id.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 15 def scheme_token_requestor_id @scheme_token_requestor_id end |
#token_expiry_date ⇒ String
Returns the current value of token_expiry_date.
15 16 17 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 15 def token_expiry_date @token_expiry_date end |
Instance Method Details
#from_hash(hash) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 41 def from_hash(hash) super if hash.has_key? 'cardholderName' @cardholder_name = hash['cardholderName'] end if hash.has_key? 'cryptogram' @cryptogram = hash['cryptogram'] end if hash.has_key? 'eci' @eci = hash['eci'] end if hash.has_key? 'networkToken' @network_token = hash['networkToken'] end if hash.has_key? 'schemeTokenRequestorId' @scheme_token_requestor_id = hash['schemeTokenRequestorId'] end if hash.has_key? 'tokenExpiryDate' @token_expiry_date = hash['tokenExpiryDate'] end end |
#to_h ⇒ Hash
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/onlinepayments/sdk/domain/network_token_data.rb', line 30 def to_h hash = super hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil? hash['cryptogram'] = @cryptogram unless @cryptogram.nil? hash['eci'] = @eci unless @eci.nil? hash['networkToken'] = @network_token unless @network_token.nil? hash['schemeTokenRequestorId'] = @scheme_token_requestor_id unless @scheme_token_requestor_id.nil? hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil? hash end |