Skip to content

Commit 4f13c88

Browse files
authored
Merge pull request #22 from Gusto/speakeasy-sdk-regen-1741638147
chore: 🐝 Update SDK - Generate Client 0.2.7
2 parents 4f1a306 + 7e43eca commit 4f13c88

15 files changed

+70
-23
lines changed

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ speakeasyVersion: 1.513.4
22
sources:
33
GustoEmbedded-OAS:
44
sourceNamespace: gusto-embedded-oas
5-
sourceRevisionDigest: sha256:d661ff26bb0a242ff59a9d58a363b8c31315c29497c7c12af93aa413e2779dba
6-
sourceBlobDigest: sha256:c74fe36dfe2890a62b0e21dd7b86c20bcbcbc1828103960f71bc924f5f9fb514
5+
sourceRevisionDigest: sha256:26358b5611bc3042ec0a712ad85e2fe78a1ba57cab8b2da9321b935c764c5015
6+
sourceBlobDigest: sha256:7b2bbcb8d3bdcd6446bae498e44025f28511f8c3ad9970897b2c4897f5ff3275
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741307234
9+
- speakeasy-sdk-regen-1741638147
1010
- "2024-04-01"
1111
targets:
1212
gusto-embedded:
1313
source: GustoEmbedded-OAS
1414
sourceNamespace: gusto-embedded-oas
15-
sourceRevisionDigest: sha256:d661ff26bb0a242ff59a9d58a363b8c31315c29497c7c12af93aa413e2779dba
16-
sourceBlobDigest: sha256:c74fe36dfe2890a62b0e21dd7b86c20bcbcbc1828103960f71bc924f5f9fb514
15+
sourceRevisionDigest: sha256:26358b5611bc3042ec0a712ad85e2fe78a1ba57cab8b2da9321b935c764c5015
16+
sourceBlobDigest: sha256:7b2bbcb8d3bdcd6446bae498e44025f28511f8c3ad9970897b2c4897f5ff3275
1717
codeSamplesNamespace: gusto-embedded-oas-code-samples
18-
codeSamplesRevisionDigest: sha256:b3b29ff93829fd0ef24aaac3a930e89716f9515a3d61f0412da5a5dc4f991d64
18+
codeSamplesRevisionDigest: sha256:9590d7b92b885e41f2066529ad563bacf56e564dad77261fb2f2bd701dd89971
1919
workflow:
2020
workflowVersion: 1.0.0
21-
speakeasyVersion: latest
21+
speakeasyVersion: 1.513.4
2222
sources:
2323
GustoEmbedded-OAS:
2424
inputs:

gusto_embedded/.speakeasy/gen.lock

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8eb78f74-a965-461b-96d6-fcfa1cb6186a
33
management:
4-
docChecksum: c4bbb668676635dabb3d2be600272902
4+
docChecksum: faf71a2fd549ee108515b43e930d0e1c
55
docVersion: "2024-04-01"
66
speakeasyVersion: 1.513.4
77
generationVersion: 2.545.4
8-
releaseVersion: 0.2.6
9-
configChecksum: 07b59bfff94b3f00c47978f8f17ac80c
8+
releaseVersion: 0.2.7
9+
configChecksum: c9a70ab80ed635d2c2657d1a2d5c3a11
1010
repoURL: https://github.com/Gusto/gusto-ruby-client.git
1111
repoSubDirectory: gusto_embedded
1212
installationURL: https://github.com/Gusto/gusto-ruby-client -d gusto_embedded
@@ -789,6 +789,7 @@ generatedFiles:
789789
- docs/models/operations/workaddress.md
790790
- docs/models/shared/accounttype.md
791791
- docs/models/shared/accruingtimeoffhour.md
792+
- docs/models/shared/accruingtimeoffhourobject.md
792793
- docs/models/shared/achtransaction.md
793794
- docs/models/shared/achtransactionrecipienttype.md
794795
- docs/models/shared/activecompanies.md
@@ -1959,6 +1960,7 @@ generatedFiles:
19591960
- lib/gusto_embedded/models/shared.rb
19601961
- lib/gusto_embedded/models/shared/account_type.rb
19611962
- lib/gusto_embedded/models/shared/accruing_time_off_hour.rb
1963+
- lib/gusto_embedded/models/shared/accruing_time_off_hour_object.rb
19621964
- lib/gusto_embedded/models/shared/ach_transaction.rb
19631965
- lib/gusto_embedded/models/shared/ach_transaction_recipient_type.rb
19641966
- lib/gusto_embedded/models/shared/active_companies.rb
@@ -6379,7 +6381,7 @@ examples:
63796381
application/json: {"regular_hours_worked": 30.25, "overtime_hours_worked": 10, "double_overtime_hours_worked": 0, "pto_hours_used": 5.5, "sick_hours_used": 0}
63806382
responses:
63816383
"200":
6382-
application/json: [{"time_off_policy_uuid": "c3a15554-f124-415d-b2c4-90b430fd8eb1", "hours": "3.2"}, {"time_off_policy_uuid": "386fc48d-52d2-4009-87b3-368f74f6b3df", "hours": "6.0"}]
6384+
application/json: {"hours_earned": []}
63836385
Basic:
63846386
parameters:
63856387
path:

gusto_embedded/.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: true
1616
oAuth2PasswordEnabled: true
1717
ruby:
18-
version: 0.2.6
18+
version: 0.2.7
1919
author: Gusto
2020
description: Ruby Client SDK Generated by Speakeasy
2121
flattenGlobalSecurity: false

gusto_embedded/Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
gusto_embedded_client (0.2.6)
4+
gusto_embedded_client (0.2.7)
55
faraday
66
faraday-multipart
77
rack

gusto_embedded/RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,14 @@ Based on:
5858
### Generated
5959
- [ruby v0.2.6] gusto_embedded
6060
### Releases
61-
- [Ruby Gems v0.2.6] https://rubygems.org/gems/gusto_embedded_client/versions/0.2.6 - gusto_embedded
61+
- [Ruby Gems v0.2.6] https://rubygems.org/gems/gusto_embedded_client/versions/0.2.6 - gusto_embedded
62+
63+
## 2025-03-10 21:58:15
64+
### Changes
65+
Based on:
66+
- OpenAPI Doc
67+
- Speakeasy CLI 1.513.4 (2.545.4) https://github.com/speakeasy-api/speakeasy
68+
### Generated
69+
- [ruby v0.2.7] gusto_embedded
70+
### Releases
71+
- [Ruby Gems v0.2.7] https://rubygems.org/gems/gusto_embedded_client/versions/0.2.7 - gusto_embedded

gusto_embedded/docs/models/operations/postv1payrollspayrollidcalculateaccruingtimeoffhoursresponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
1010
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11-
| `accruing_time_off_hour_object` | T::Array<[::GustoEmbedded::Shared::AccruingTimeOffHour](../../models/shared/accruingtimeoffhour.md)> | :heavy_minus_sign: | Example response |
11+
| `accruing_time_off_hour_object` | [T.nilable(::GustoEmbedded::Shared::AccruingTimeOffHourObject)](../../models/shared/accruingtimeoffhourobject.md) | :heavy_minus_sign: | Example response |
1212
| `unprocessable_entity_error_object` | [T.nilable(::GustoEmbedded::Shared::UnprocessableEntityErrorObject)](../../models/shared/unprocessableentityerrorobject.md) | :heavy_minus_sign: | Unprocessable Entity <br/> <br/>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.<br/> |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AccruingTimeOffHourObject
2+
3+
Example response
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
10+
| `hours_earned` | T::Array<[::GustoEmbedded::Shared::AccruingTimeOffHour](../../models/shared/accruingtimeoffhour.md)> | :heavy_check_mark: | N/A |

gusto_embedded/docs/sdks/employees/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ s = ::GustoEmbedded::Client.new(
120120
res = s.employees.create_historical(company_uuid="<id>", historical_employee_body=::GustoEmbedded::Shared::HistoricalEmployeeBody.new(
121121
first_name: "Cortez",
122122
last_name: "Dickens",
123-
date_of_birth: "1995-12-06",
123+
date_of_birth: "1995-12-07",
124124
ssn: "<value>",
125125
work_address: ::GustoEmbedded::Shared::WorkAddress.new(),
126126
home_address: ::GustoEmbedded::Shared::HistoricalEmployeeBodyHomeAddress.new(

gusto_embedded/docs/sdks/historicalemployees/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ res = s.historical_employees.update(company_uuid="<id>", historical_employee_uui
2828
version: "<value>",
2929
first_name: "Ruthe",
3030
last_name: "Hegmann",
31-
date_of_birth: "2006-08-25",
31+
date_of_birth: "2006-08-26",
3232
ssn: "<value>",
3333
work_address: ::GustoEmbedded::Operations::WorkAddress.new(),
3434
home_address: ::GustoEmbedded::Operations::PutV1HistoricalEmployeesHomeAddress.new(

gusto_embedded/gusto_embedded_client.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
44

55
Gem::Specification.new do |s|
66
s.name = 'gusto_embedded_client'
7-
s.version = '0.2.6'
7+
s.version = '0.2.7'
88
s.platform = Gem::Platform::RUBY
99
s.licenses = ['Apache-2.0']
1010
s.summary = ''

gusto_embedded/lib/gusto_embedded/models/operations/post_v1_payrolls_payroll_id_calculate_accruing_time_off_hours_response.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ class PostV1PayrollsPayrollIdCalculateAccruingTimeOffHoursResponse < ::Crystalli
1818
# HTTP response status code for this operation
1919
field :status_code, ::Integer
2020
# 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)
2222
# Unprocessable Entity
2323
#
2424
# 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.
2525
#
2626
field :unprocessable_entity_error_object, T.nilable(::GustoEmbedded::Shared::UnprocessableEntityErrorObject)
2727

2828

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 }
3030
def initialize(content_type: nil, raw_response: nil, status_code: nil, accruing_time_off_hour_object: nil, unprocessable_entity_error_object: nil)
3131
@content_type = content_type
3232
@raw_response = raw_response

gusto_embedded/lib/gusto_embedded/models/shared.rb

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ module Shared
210210
autoload :EmployeePayStub, 'gusto_embedded/models/shared/employee_pay_stub.rb'
211211
autoload :EmployeeCheckNumberMapping, 'gusto_embedded/models/shared/employee_check_number_mapping.rb'
212212
autoload :PayrollCheck, 'gusto_embedded/models/shared/payroll_check.rb'
213+
autoload :AccruingTimeOffHourObject, 'gusto_embedded/models/shared/accruing_time_off_hour_object.rb'
213214
autoload :AccruingTimeOffHour, 'gusto_embedded/models/shared/accruing_time_off_hour.rb'
214215
autoload :PolicyType, 'gusto_embedded/models/shared/policy_type.rb'
215216
autoload :TimeOffPolicyEmployees, 'gusto_embedded/models/shared/time_off_policy_employees.rb'
Original file line numberDiff line numberDiff line change
@@ -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

gusto_embedded/lib/gusto_embedded/sdkconfiguration.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def initialize(client, security, security_source, server_url, server)
4646
end
4747
@language = 'ruby'
4848
@openapi_doc_version = '2024-04-01'
49-
@sdk_version = '0.2.6'
49+
@sdk_version = '0.2.7'
5050
@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'
5252
end
5353

5454
sig { returns([String, T::Hash[Symbol, String]]) }

gusto_embedded/lib/gusto_embedded/timeoffpolicies.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def calculate_accruing_time_off_hours(payroll_id, employee_id, request_body, x_g
7575
)
7676
if r.status == 200
7777
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)
7979
res.accruing_time_off_hour_object = out
8080
end
8181
elsif r.status == 422

0 commit comments

Comments
 (0)