class Beaver::ContactlessPayments

The response schema for contactless payments configuration.

Attributes

credit_debit_preference[RW]

Determines how the terminal should prefer to charge contactless cards. “credit” is the EMV default, selecting the highest priority application in the card (which is the credit application). Debit preferred attempts to select debit network application on the card first. @return [CreditDebitPreferenceEnum]

enabled[RW]

TODO: Write general description for this method @return [Boolean]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/contactless_payments.rb, line 35
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  enabled = hash['enabled']
  credit_debit_preference = hash['credit_debit_preference']

  # Create object from extracted values.
  ContactlessPayments.new(enabled,
                          credit_debit_preference)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/contactless_payments.rb, line 21
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['enabled'] = 'enabled'
  @_hash['credit_debit_preference'] = 'credit_debit_preference'
  @_hash
end
new(enabled = nil, credit_debit_preference = nil) click to toggle source
# File lib/beaver/models/contactless_payments.rb, line 28
def initialize(enabled = nil,
               credit_debit_preference = nil)
  @enabled = enabled
  @credit_debit_preference = credit_debit_preference
end