class Beaver::InterchangePlus
The interchange plus pricing model for credit cards to collect platform markup fees.
Attributes
fixed_fee_markup_amount[RW]
The fixed markup fee amount. @return [Integer]
variable_fee_markup_bps[RW]
The basis points to calculate variable markup fee amount. @return [Integer]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/interchange_plus.rb, line 33 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. fixed_fee_markup_amount = hash['fixed_fee_markup_amount'] variable_fee_markup_bps = hash['variable_fee_markup_bps'] # Create object from extracted values. InterchangePlus.new(fixed_fee_markup_amount, variable_fee_markup_bps) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/interchange_plus.rb, line 19 def self.names @_hash = {} if @_hash.nil? @_hash['fixed_fee_markup_amount'] = 'fixed_fee_markup_amount' @_hash['variable_fee_markup_bps'] = 'variable_fee_markup_bps' @_hash end
new(fixed_fee_markup_amount = nil, variable_fee_markup_bps = nil)
click to toggle source
# File lib/beaver/models/interchange_plus.rb, line 26 def initialize(fixed_fee_markup_amount = nil, variable_fee_markup_bps = nil) @fixed_fee_markup_amount = fixed_fee_markup_amount @variable_fee_markup_bps = variable_fee_markup_bps end