class Io::Flow::V0::Models::BankAccountInfoUsa

Attributes

account_number[R]
routing_number[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32160
def initialize(incoming={})
  super(:discriminator => BankAccountInfo::Types::BANK_ACCOUNT_INFO_USA)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:routing_number, :account_number], 'BankAccountInfoUsa')
  @routing_number = HttpClient::Preconditions.assert_class('routing_number', opts.delete(:routing_number), String)
  @account_number = HttpClient::Preconditions.assert_class('account_number', opts.delete(:account_number), String)
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32172
def copy(incoming={})
  BankAccountInfoUsa.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
subtype_to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32176
def subtype_to_hash
  {
    :routing_number => routing_number,
    :account_number => account_number
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 32168
def to_json
  JSON.dump(to_hash)
end