Class: GustoEmbedded::Models::Shared::SignatoryCreateRequest
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::SignatoryCreateRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/signatory_create_request.rb
Overview
Request body for creating a signatory with complete information. All listed required fields must be provided.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(first_name:, last_name:, title:, phone:, birthday:, email:, ssn:, home_address:, middle_initial: nil) ⇒ SignatoryCreateRequest
constructor
A new instance of SignatoryCreateRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(first_name:, last_name:, title:, phone:, birthday:, email:, ssn:, home_address:, middle_initial: nil) ⇒ SignatoryCreateRequest
Returns a new instance of SignatoryCreateRequest.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gusto_embedded/models/shared/signatory_create_request.rb', line 35 def initialize(first_name:, last_name:, title:, phone:, birthday:, email:, ssn:, home_address:, middle_initial: nil) @first_name = first_name @last_name = last_name @title = title @phone = phone @birthday = birthday @email = email @ssn = ssn @home_address = home_address @middle_initial = middle_initial 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_create_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 @title == other.title return false unless @phone == other.phone return false unless @birthday == other.birthday return false unless @email == other.email return false unless @ssn == other.ssn return false unless @home_address == other.home_address return false unless @middle_initial == other.middle_initial true end |