Class: GustoEmbedded::Models::Shared::SignatoryUpdateRequest

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

Overview

Request body for updating a signatory. Email cannot be updated.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

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

Returns a new instance of SignatoryUpdateRequest.



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

def initialize(version:, first_name: nil, middle_initial: nil, last_name: nil, title: nil, phone: nil, birthday: nil, ssn: nil, home_address: nil)
  @version = version
  @first_name = first_name
  @middle_initial = middle_initial
  @last_name = last_name
  @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_update_request.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @first_name == other.first_name
  return false unless @middle_initial == other.middle_initial
  return false unless @last_name == other.last_name
  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