Class: Worldline::Acquiring::SDK::V1::Domain::PaymentMethodData
- Inherits:
-
PaymentMethodDataBase
- Object
- Domain::DataObject
- PaymentMethodDataBase
- Worldline::Acquiring::SDK::V1::Domain::PaymentMethodData
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/payment_method_data.rb
Instance Attribute Summary collapse
-
#issuing_country_code ⇒ String
The current value of issuing_country_code.
Attributes inherited from PaymentMethodDataBase
#masked_identifier, #scheme, #scheme_brand
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#issuing_country_code ⇒ String
Returns the current value of issuing_country_code.
12 13 14 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data.rb', line 12 def issuing_country_code @issuing_country_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data.rb', line 23 def from_hash(hash) super if hash.has_key? 'issuingCountryCode' @issuing_country_code = hash['issuingCountryCode'] end end |
#to_h ⇒ Hash
17 18 19 20 21 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data.rb', line 17 def to_h hash = super hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil? hash end |