class Beaver::CreditCard1
CreditCard1
Model.
Attributes
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [CardBrandEnum]
TODO: Write general description for this method @return [CardEntryTypeEnum]
TODO: Write general description for this method @return [HolderResp]
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [Integer]
TODO: Write general description for this method @return [Integer]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [VirtualTerminalModeEnum]
Public Class Methods
Creates an instance of the object from a hash.
# File lib/beaver/models/credit_card1.rb, line 116 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. card_holder = HolderResp.from_hash(hash['card_holder']) if hash['card_holder'] expiration_month = hash['expiration_month'] expiration_year = hash['expiration_year'] card_on_file = hash['card_on_file'] recurring = hash['recurring'] cvv_provided = hash['cvv_provided'] auto_update = hash['auto_update'] backing_display_name = hash['backing_display_name'] bin = hash['bin'] card_brand = hash['card_brand'] card_entry_type = hash['card_entry_type'] display_name = hash['display_name'] last_four = hash['last_four'] virtual_terminal_mode = hash['virtual_terminal_mode'] # Create object from extracted values. CreditCard1.new(card_holder, expiration_month, expiration_year, card_on_file, recurring, cvv_provided, auto_update, backing_display_name, bin, card_brand, card_entry_type, display_name, last_four, virtual_terminal_mode) end
A mapping from model property names to API property names.
# File lib/beaver/models/credit_card1.rb, line 66 def self.names @_hash = {} if @_hash.nil? @_hash['auto_update'] = 'auto_update' @_hash['backing_display_name'] = 'backing_display_name' @_hash['bin'] = 'bin' @_hash['card_brand'] = 'card_brand' @_hash['card_entry_type'] = 'card_entry_type' @_hash['card_holder'] = 'card_holder' @_hash['display_name'] = 'display_name' @_hash['expiration_month'] = 'expiration_month' @_hash['expiration_year'] = 'expiration_year' @_hash['last_four'] = 'last_four' @_hash['virtual_terminal_mode'] = 'virtual_terminal_mode' @_hash['card_on_file'] = 'card_on_file' @_hash['recurring'] = 'recurring' @_hash['cvv_provided'] = 'cvv_provided' @_hash end
# File lib/beaver/models/credit_card1.rb, line 85 def initialize(card_holder = nil, expiration_month = nil, expiration_year = nil, card_on_file = nil, recurring = nil, cvv_provided = nil, auto_update = nil, backing_display_name = nil, bin = nil, card_brand = nil, card_entry_type = nil, display_name = nil, last_four = nil, virtual_terminal_mode = nil) @auto_update = auto_update @backing_display_name = backing_display_name @bin = bin @card_brand = card_brand @card_entry_type = card_entry_type @card_holder = card_holder @display_name = display_name @expiration_month = expiration_month @expiration_year = expiration_year @last_four = last_four @virtual_terminal_mode = virtual_terminal_mode @card_on_file = card_on_file @recurring = recurring @cvv_provided = cvv_provided end