Class: GustoEmbedded::Models::Shared::PayScheduleUpdateRequest
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayScheduleUpdateRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/pay_schedule_update_request.rb
Overview
Request body for updating a pay schedule. Sent in the pay_schedule_update root key. Version is required for optimistic concurrency. Pay schedules may be automatically adjusted if an onboarded company misses their first pay date; see [Create a pay schedule](docs.gusto.com/embedded-payroll/docs/create-a-pay-schedule).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(version:, auto_payroll: nil, frequency: nil, anchor_pay_date: nil, anchor_end_of_pay_period: nil, day_1: nil, day_2: nil, custom_name: nil) ⇒ PayScheduleUpdateRequest
constructor
A new instance of PayScheduleUpdateRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(version:, auto_payroll: nil, frequency: nil, anchor_pay_date: nil, anchor_end_of_pay_period: nil, day_1: nil, day_2: nil, custom_name: nil) ⇒ PayScheduleUpdateRequest
Returns a new instance of PayScheduleUpdateRequest.
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/gusto_embedded/models/shared/pay_schedule_update_request.rb', line 37 def initialize(version:, auto_payroll: nil, frequency: nil, anchor_pay_date: nil, anchor_end_of_pay_period: nil, day_1: nil, day_2: nil, custom_name: nil) @version = version @auto_payroll = auto_payroll @frequency = frequency @anchor_pay_date = anchor_pay_date @anchor_end_of_pay_period = anchor_end_of_pay_period @day_1 = day_1 @day_2 = day_2 @custom_name = custom_name end |
Instance Method Details
#==(other) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/pay_schedule_update_request.rb', line 49 def ==(other) return false unless other.is_a? self.class return false unless @version == other.version return false unless @auto_payroll == other.auto_payroll return false unless @frequency == other.frequency return false unless @anchor_pay_date == other.anchor_pay_date return false unless @anchor_end_of_pay_period == other.anchor_end_of_pay_period return false unless @day_1 == other.day_1 return false unless @day_2 == other.day_2 return false unless @custom_name == other.custom_name true end |