Class: FinchAPI::Models::Provider::AuthenticationMethod::SupportedFields::Company

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/finch-api/models/provider.rb

Overview

def initialize: (Hash | FinchAPI::BaseModel) -> void

Defined Under Namespace

Classes: Accounts, Departments, Entity, Locations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subtype: nil, type: nil) ⇒ Company

Returns a new instance of Company.

Parameters:

  • subtype (Boolean) (defaults to: nil)
  • type (Boolean) (defaults to: nil)


11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/finch-api/models/provider.rb', line 11

def initialize(
  id: nil,
  accounts: nil,
  departments: nil,
  ein: nil,
  entity: nil,
  legal_name: nil,
  locations: nil,
  primary_email: nil,
  primary_phone_number: nil,
  **
)
  super
end

Instance Attribute Details

#einBoolean?

Returns:

  • (Boolean, nil)


298
# File 'lib/finch-api/models/provider.rb', line 298

optional :ein, FinchAPI::BooleanModel

#idBoolean?

Returns:

  • (Boolean, nil)


269
# File 'lib/finch-api/models/provider.rb', line 269

optional :id, FinchAPI::BooleanModel

Returns:

  • (Boolean, nil)


317
# File 'lib/finch-api/models/provider.rb', line 317

optional :legal_name, FinchAPI::BooleanModel

#name=(value) ⇒ Boolean (writeonly)

Returns:

  • (Boolean)


2
3
4
# File 'lib/finch-api/models/provider.rb', line 2

def name=(value)
  @name = value
end

#primary_emailBoolean?

Returns:

  • (Boolean, nil)


336
# File 'lib/finch-api/models/provider.rb', line 336

optional :primary_email, FinchAPI::BooleanModel

#primary_phone_numberBoolean?

Returns:

  • (Boolean, nil)


345
# File 'lib/finch-api/models/provider.rb', line 345

optional :primary_phone_number, FinchAPI::BooleanModel

#routing_number=(value) ⇒ Boolean (writeonly)

Returns:

  • (Boolean)


2
3
4
# File 'lib/finch-api/models/provider.rb', line 2

def routing_number=(value)
  @routing_number = value
end

#type=(value) ⇒ Boolean (writeonly)

Returns:

  • (Boolean)


2
3
4
# File 'lib/finch-api/models/provider.rb', line 2

def type=(value)
  @type = value
end