Class: GustoEmbedded::Models::Shared::PlaidProcessorTokenRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/plaid_processor_token_request.rb

Overview

Request body for creating a verified company bank account from a Plaid processor token.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(owner_type:, owner_id:, processor_token:) ⇒ PlaidProcessorTokenRequest

Returns a new instance of PlaidProcessorTokenRequest.



23
24
25
26
27
# File 'lib/gusto_embedded/models/shared/plaid_processor_token_request.rb', line 23

def initialize(owner_type:, owner_id:, processor_token:)
  @owner_type = owner_type
  @owner_id = owner_id
  @processor_token = processor_token
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/plaid_processor_token_request.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @owner_type == other.owner_type
  return false unless @owner_id == other.owner_id
  return false unless @processor_token == other.processor_token
  true
end