You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[cancel](docs/sdks/payrolls/README.md#cancel) - Cancel a payroll
649
662
*[getPayStub](docs/sdks/payrolls/README.md#getpaystub) - Get an employee pay stub (pdf)
650
663
*[getPayStubs](docs/sdks/payrolls/README.md#getpaystubs) - Get an employee's pay stubs
@@ -807,7 +820,7 @@ public class Application {
807
820
.call();
808
821
809
822
if (res.object().isPresent()) {
810
-
// handle response
823
+
System.out.println(res.object().get());
811
824
}
812
825
} catch (GustoEmbeddedException ex) { // all SDK exceptions inherit from GustoEmbeddedException
813
826
@@ -848,7 +861,7 @@ public class Application {
848
861
**Primary error:**
849
862
*[`GustoEmbeddedException`](./src/main/java/models/errors/GustoEmbeddedException.java): The base class for HTTP error responses.
850
863
851
-
<details><summary>Less common errors (12)</summary>
864
+
<details><summary>Less common errors (11)</summary>
852
865
853
866
<br />
854
867
@@ -858,12 +871,11 @@ public class Application {
858
871
many more subclasses in the JDK platform).
859
872
860
873
**Inherit from [`GustoEmbeddedException`](./src/main/java/models/errors/GustoEmbeddedException.java)**:
861
-
*[`com.gusto.embedded_api.models.errors.UnprocessableEntityErrorObject`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.UnprocessableEntityErrorObject.java): Unprocessable Entity 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. Applicable to 164 of 277 methods.*
862
-
*[`com.gusto.embedded_api.models.errors.NotFoundErrorObject`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.NotFoundErrorObject.java): Not Found The requested resource does not exist. Make sure the provided ID/UUID is valid. Status code `404`. Applicable to 4 of 277 methods.*
863
-
*[`com.gusto.embedded_api.models.errors.PostV1CompaniesCompanyIdPeopleBatchesResponseBody`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.PostV1CompaniesCompanyIdPeopleBatchesResponseBody.java): conflict - idempotency key already used. Status code `409`. Applicable to 1 of 277 methods.*
864
-
*[`com.gusto.embedded_api.models.errors.GetCompaniesCompanyUuidContractorPaymentsPreviewResponseBody`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.GetCompaniesCompanyUuidContractorPaymentsPreviewResponseBody.java): Unprocessable Entity (WebDAV). Status code `422`. Applicable to 1 of 277 methods.*
865
-
*[`com.gusto.embedded_api.models.errors.DeleteV1CompanyBenefitsCompanyBenefitIdResponseBody`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.DeleteV1CompanyBenefitsCompanyBenefitIdResponseBody.java): Unprocessable Entity. Status code `422`. Applicable to 1 of 277 methods.*
866
-
*[`com.gusto.embedded_api.models.errors.CompanySuspensionCreationErrors`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.CompanySuspensionCreationErrors.java): Unprocessable Entity 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. Status code `422`. Applicable to 1 of 277 methods.*
874
+
*[`com.gusto.embedded_api.models.errors.UnprocessableEntityErrorObject`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.UnprocessableEntityErrorObject.java): Unprocessable Entity 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. Applicable to 144 of 280 methods.*
875
+
*[`com.gusto.embedded_api.models.errors.NotFoundErrorObject`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.NotFoundErrorObject.java): Not Found The requested resource does not exist. Make sure the provided ID/UUID is valid. Applicable to 101 of 280 methods.*
876
+
*[`com.gusto.embedded_api.models.errors.PostV1CompaniesCompanyIdPeopleBatchesResponseBody`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.PostV1CompaniesCompanyIdPeopleBatchesResponseBody.java): conflict - idempotency key already used. Status code `409`. Applicable to 1 of 280 methods.*
877
+
*[`com.gusto.embedded_api.models.errors.GetCompaniesCompanyUuidContractorPaymentsPreviewResponseBody`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.GetCompaniesCompanyUuidContractorPaymentsPreviewResponseBody.java): Unprocessable Entity (WebDAV). Status code `422`. Applicable to 1 of 280 methods.*
878
+
*[`com.gusto.embedded_api.models.errors.CompanySuspensionCreationErrors`](./src/main/java/models/errors/com.gusto.embedded_api.models.errors.CompanySuspensionCreationErrors.java): Unprocessable Entity 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. Status code `422`. Applicable to 1 of 280 methods.*
867
879
868
880
869
881
</details>
@@ -907,7 +919,7 @@ public class Application {
907
919
.call();
908
920
909
921
if (res.object().isPresent()) {
910
-
// handle response
922
+
System.out.println(res.object().get());
911
923
}
912
924
}
913
925
}
@@ -938,7 +950,7 @@ public class Application {
938
950
.call();
939
951
940
952
if (res.object().isPresent()) {
941
-
// handle response
953
+
System.out.println(res.object().get());
942
954
}
943
955
}
944
956
}
@@ -1115,6 +1127,36 @@ __NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging
1115
1127
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
1116
1128
<!-- End Debugging [debug] -->
1117
1129
1130
+
<!-- Start Jackson Configuration [jackson] -->
1131
+
## Jackson Configuration
1132
+
1133
+
The SDK ships with a pre-configured Jackson [`ObjectMapper`][jackson-databind] accessible via
1134
+
`JSON.getMapper()`. It is set up with type modules, strict deserializers, and the feature flags
1135
+
needed for full SDK compatibility (including ISO-8601 `OffsetDateTime` serialization):
0 commit comments