Class: PaypalServerSdk::VenmoWalletCustomerInformation
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- PaypalServerSdk::VenmoWalletCustomerInformation
- Defined in:
- lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb
Overview
The details about a customer in PayPal’s system of record.
Instance Attribute Summary collapse
-
#email_address ⇒ String
The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the
@
sign. -
#id ⇒ String
The unique ID for a customer generated by PayPal.
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(id: SKIP, email_address: SKIP) ⇒ VenmoWalletCustomerInformation
constructor
A new instance of VenmoWalletCustomerInformation.
Methods inherited from BaseModel
Constructor Details
#initialize(id: SKIP, email_address: SKIP) ⇒ VenmoWalletCustomerInformation
Returns a new instance of VenmoWalletCustomerInformation.
45 46 47 48 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 45 def initialize(id: SKIP, email_address: SKIP) @id = id unless id == SKIP @email_address = email_address unless email_address == SKIP end |
Instance Attribute Details
#email_address ⇒ String
The internationalized email address.<blockquote><strong>Note:</strong> Up to 64 characters are allowed before and 255 characters are allowed after the @
sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @
sign exists.</blockquote>
22 23 24 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 22 def email_address @email_address end |
#id ⇒ String
The unique ID for a customer generated by PayPal.
14 15 16 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 14 def id @id end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 51 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash.key?('id') ? hash['id'] : SKIP email_address = hash.key?('email_address') ? hash['email_address'] : SKIP # Create object from extracted values. VenmoWalletCustomerInformation.new(id: id, email_address: email_address) end |
.names ⇒ Object
A mapping from model property names to API property names.
25 26 27 28 29 30 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 25 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['email_address'] = 'email_address' @_hash end |
.nullables ⇒ Object
An array for nullable fields
41 42 43 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 41 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
33 34 35 36 37 38 |
# File 'lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb', line 33 def self.optionals %w[ id email_address ] end |