Sha256: 5b1fd4cac9557e723fc0ed0bccef03eb67c9795183a283b2809071880eef7dce

Contents?: true

Size: 1.32 KB

Versions: 8

Compression:

Stored size: 1.32 KB

Contents

module DwollaSwagger
  # 
  class CreateFundingSourceRequest < BaseObject
    attr_accessor :routing_number, :account_number, :type, :name
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'routing_number' => :'routingNumber',
        
        # 
        :'account_number' => :'accountNumber',
        
        # 
        :'type' => :'type',
        
        # 
        :'name' => :'name'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'routing_number' => :'string',
        :'account_number' => :'string',
        :'type' => :'string',
        :'name' => :'string'
        
      }
    end

    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[:'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
      
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dwolla_swagger-1.0.7 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.6 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.5 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.4 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.3 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.2 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.1 lib/dwolla_swagger/models/create_funding_source_request.rb
dwolla_swagger-1.0.0 lib/dwolla_swagger/models/create_funding_source_request.rb