Class: GustoEmbedded::Models::Shared::SignatoryInviteRequest

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

Overview

Request body for inviting a signatory.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(first_name:, last_name:, email:, middle_initial: nil, title: nil, phone: nil, birthday: nil, ssn: nil, home_address: nil) ⇒ SignatoryInviteRequest

Returns a new instance of SignatoryInviteRequest.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/gusto_embedded/models/shared/signatory_invite_request.rb', line 35

def initialize(first_name:, last_name:, email:, middle_initial: nil, title: nil, phone: nil, birthday: nil, ssn: nil, home_address: nil)
  @first_name = first_name
  @last_name = last_name
  @email = email
  @middle_initial = middle_initial
  @title = title
  @phone = phone
  @birthday = birthday
  @ssn = ssn
  @home_address = home_address
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/gusto_embedded/models/shared/signatory_invite_request.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @email == other.email
  return false unless @middle_initial == other.middle_initial
  return false unless @title == other.title
  return false unless @phone == other.phone
  return false unless @birthday == other.birthday
  return false unless @ssn == other.ssn
  return false unless @home_address == other.home_address
  true
end