class Beaver::ContactlessPaymentsReq

The request schema for modifying contactless payments configuration settings.

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]

Determines if contactless payments are enabled. @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_req.rb, line 36
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.
  ContactlessPaymentsReq.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_req.rb, line 22
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_req.rb, line 29
def initialize(enabled = nil,
               credit_debit_preference = nil)
  @enabled = enabled
  @credit_debit_preference = credit_debit_preference
end