gusto_embedded_client 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfd0b05d63aeae4f9da0b4ee05fe5f4712524c3923550d95794be17384915fe3
4
- data.tar.gz: 42e22e2f02079903d50ac72b4062cb0ae23971ce02a27410601578f6a0439e58
3
+ metadata.gz: 7b1f96dfb5e07ffec42f81e655a4556aabc7ef9009bbf2d4816d7ca744546ef1
4
+ data.tar.gz: 712a4e3e64565dd960046d989c5bbd8eefd8440f0c3aa64446bdaa7d511658b1
5
5
  SHA512:
6
- metadata.gz: 48f415bcbd12194c8c4279d07a368faccffa74aacbff38eca98ea4a4151cc33d3262348c9a13f5d64a4b0ecea8267b3e53844f3c180ab65af2f59395dd9ac595
7
- data.tar.gz: 20d57878e751c03a179c38e36e97091497f0c56c5706021cfedd75878720e746ce1f9f3355dff703acbcb1e4b01daafe63d88284e832ee3d027e432713ee5ead
6
+ metadata.gz: ab5b0aed246e607fbe8278f1f03ce3d25fc4e676fb9db3cd7430368ab079c261edba393cbf24c628bdf0bb8897c52e2643e8e814e46ee10f43130e6579a7ddb0
7
+ data.tar.gz: d08656092dab8db8f3d717c7527969ef160f07efe5efabdce3280e12ed8ef95bd67b3685a4ff12d5bb7cbc63221acb5b365e4b9aee0ebf8cbb3266a26df328a8
@@ -18,7 +18,7 @@ module GustoEmbedded
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # Example response
21
- field :accruing_time_off_hour_object, T.nilable(T::Array[::GustoEmbedded::Shared::AccruingTimeOffHour])
21
+ field :accruing_time_off_hour_object, T.nilable(::GustoEmbedded::Shared::AccruingTimeOffHourObject)
22
22
  # Unprocessable Entity
23
23
  #
24
24
  # This may happen when the body of your request contains errors such as `invalid_attribute_value`, or the request fails due to an `invalid_operation`. See the [Errors Categories](https://docs.gusto.com/embedded-payroll/docs/error-categories) guide for more details.
@@ -26,7 +26,7 @@ module GustoEmbedded
26
26
  field :unprocessable_entity_error_object, T.nilable(::GustoEmbedded::Shared::UnprocessableEntityErrorObject)
27
27
 
28
28
 
29
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, accruing_time_off_hour_object: T.nilable(T::Array[::GustoEmbedded::Shared::AccruingTimeOffHour]), unprocessable_entity_error_object: T.nilable(::GustoEmbedded::Shared::UnprocessableEntityErrorObject)).void }
29
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, accruing_time_off_hour_object: T.nilable(::GustoEmbedded::Shared::AccruingTimeOffHourObject), unprocessable_entity_error_object: T.nilable(::GustoEmbedded::Shared::UnprocessableEntityErrorObject)).void }
30
30
  def initialize(content_type: nil, raw_response: nil, status_code: nil, accruing_time_off_hour_object: nil, unprocessable_entity_error_object: nil)
31
31
  @content_type = content_type
32
32
  @raw_response = raw_response
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module GustoEmbedded
8
+ module Shared
9
+
10
+ # Example response
11
+ class AccruingTimeOffHourObject < ::Crystalline::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :hours_earned, T::Array[::GustoEmbedded::Shared::AccruingTimeOffHour], { 'format_json': { 'letter_case': ::GustoEmbedded::Utils.field_name('hours_earned') } }
16
+
17
+
18
+ sig { params(hours_earned: T::Array[::GustoEmbedded::Shared::AccruingTimeOffHour]).void }
19
+ def initialize(hours_earned: nil)
20
+ @hours_earned = hours_earned
21
+ end
22
+ end
23
+ end
24
+ end
@@ -210,6 +210,7 @@ module GustoEmbedded
210
210
  autoload :EmployeePayStub, 'gusto_embedded/models/shared/employee_pay_stub.rb'
211
211
  autoload :EmployeeCheckNumberMapping, 'gusto_embedded/models/shared/employee_check_number_mapping.rb'
212
212
  autoload :PayrollCheck, 'gusto_embedded/models/shared/payroll_check.rb'
213
+ autoload :AccruingTimeOffHourObject, 'gusto_embedded/models/shared/accruing_time_off_hour_object.rb'
213
214
  autoload :AccruingTimeOffHour, 'gusto_embedded/models/shared/accruing_time_off_hour.rb'
214
215
  autoload :PolicyType, 'gusto_embedded/models/shared/policy_type.rb'
215
216
  autoload :TimeOffPolicyEmployees, 'gusto_embedded/models/shared/time_off_policy_employees.rb'
@@ -46,9 +46,9 @@ module GustoEmbedded
46
46
  end
47
47
  @language = 'ruby'
48
48
  @openapi_doc_version = '2024-04-01'
49
- @sdk_version = '0.2.6'
49
+ @sdk_version = '0.2.7'
50
50
  @gen_version = '2.545.4'
51
- @user_agent = 'speakeasy-sdk/ruby 0.2.6 2.545.4 2024-04-01 gusto_embedded_client'
51
+ @user_agent = 'speakeasy-sdk/ruby 0.2.7 2.545.4 2024-04-01 gusto_embedded_client'
52
52
  end
53
53
 
54
54
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -75,7 +75,7 @@ module GustoEmbedded
75
75
  )
76
76
  if r.status == 200
77
77
  if Utils.match_content_type(content_type, 'application/json')
78
- out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), T::Array[::GustoEmbedded::Shared::AccruingTimeOffHour])
78
+ out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::GustoEmbedded::Shared::AccruingTimeOffHourObject)
79
79
  res.accruing_time_off_hour_object = out
80
80
  end
81
81
  elsif r.status == 422
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gusto_embedded_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto
@@ -959,6 +959,7 @@ files:
959
959
  - lib/gusto_embedded/models/shared.rb
960
960
  - lib/gusto_embedded/models/shared/account_type.rb
961
961
  - lib/gusto_embedded/models/shared/accruing_time_off_hour.rb
962
+ - lib/gusto_embedded/models/shared/accruing_time_off_hour_object.rb
962
963
  - lib/gusto_embedded/models/shared/ach_transaction.rb
963
964
  - lib/gusto_embedded/models/shared/ach_transaction_recipient_type.rb
964
965
  - lib/gusto_embedded/models/shared/active_companies.rb