Class: PaypalServerSdk::GooglePayCardAttributes
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- PaypalServerSdk::GooglePayCardAttributes
- Defined in:
- lib/paypal_server_sdk/models/google_pay_card_attributes.rb
Overview
Additional attributes associated with the use of this card.
Instance Attribute Summary collapse
-
#verification ⇒ CardVerification
The API caller can opt in to verify the card through PayPal offered verification services (e.g. Smart Dollar Auth, 3DS).
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(verification: SKIP) ⇒ GooglePayCardAttributes
constructor
A new instance of GooglePayCardAttributes.
Methods inherited from BaseModel
Constructor Details
#initialize(verification: SKIP) ⇒ GooglePayCardAttributes
Returns a new instance of GooglePayCardAttributes.
36 37 38 |
# File 'lib/paypal_server_sdk/models/google_pay_card_attributes.rb', line 36 def initialize(verification: SKIP) @verification = verification unless verification == SKIP end |
Instance Attribute Details
#verification ⇒ CardVerification
The API caller can opt in to verify the card through PayPal offered verification services (e.g. Smart Dollar Auth, 3DS).
15 16 17 |
# File 'lib/paypal_server_sdk/models/google_pay_card_attributes.rb', line 15 def verification @verification end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
41 42 43 44 45 46 47 48 49 |
# File 'lib/paypal_server_sdk/models/google_pay_card_attributes.rb', line 41 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. verification = CardVerification.from_hash(hash['verification']) if hash['verification'] # Create object from extracted values. GooglePayCardAttributes.new(verification: verification) end |
.names ⇒ Object
A mapping from model property names to API property names.
18 19 20 21 22 |
# File 'lib/paypal_server_sdk/models/google_pay_card_attributes.rb', line 18 def self.names @_hash = {} if @_hash.nil? @_hash['verification'] = 'verification' @_hash end |
.nullables ⇒ Object
An array for nullable fields
32 33 34 |
# File 'lib/paypal_server_sdk/models/google_pay_card_attributes.rb', line 32 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
25 26 27 28 29 |
# File 'lib/paypal_server_sdk/models/google_pay_card_attributes.rb', line 25 def self.optionals %w[ verification ] end |