class DwollaSwagger::CreateFundingSourceRequest

Attributes

account_number[RW]
channels[RW]
name[RW]
routing_number[RW]
type[RW]
verified[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/dwolla_swagger/models/create_funding_source_request.rb, line 6
def self.attribute_map
  {
    
    #
    :'_links' => :'_links',
    
    #
    :'routing_number' => :'routingNumber',
    
    #
    :'account_number' => :'accountNumber',
    
    #
    :'type' => :'type',
    
    #
    :'name' => :'name',
    
    #
    :'verified' => :'verified',
    
    #
    :'channels' => :'channels'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/dwolla_swagger/models/create_funding_source_request.rb, line 47
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'_links']
    @_links = attributes[:'_links']
  end
  
  if attributes[:'routingNumber']
    @routing_number = attributes[:'routingNumber']
  end
  
  if attributes[:'accountNumber']
    @account_number = attributes[:'accountNumber']
  end
  
  if attributes[:'type']
    @type = attributes[:'type']
  end
  
  if attributes[:'name']
    @name = attributes[:'name']
  end
  
  if attributes[:'verified']
    @verified = attributes[:'verified']
  end
  
  if attributes[:'channels']
    if (value = attributes[:'channels']).is_a?(Array)
      @channels = value
    end
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/dwolla_swagger/models/create_funding_source_request.rb, line 34
def self.swagger_types
  {
    :'_links' => :'object',
    :'routing_number' => :'string',
    :'account_number' => :'string',
    :'type' => :'string',
    :'name' => :'string',
    :'verified' => :'boolean',
    :'channels' => :'array[string]'
    
  }
end