Repository navigation
Commit d628aff
authored
Release - 7.1.0 (#552)
This release introduces improved handling of request serialization and adds support for new identity-related API clients. The most significant update is the refactoring of the transport layer to support both JSON and form-encoded requests, making it more flexible for different content types. Additionally, several new clients for identity verification and screening have been integrated into the main API interface.
### Transport layer improvements
* Refactored `ApacheHttpClientTransport` to accept an `Object` as the request payload, allowing both JSON and `UrlEncodedFormEntity` form-encoded requests. Added logic to serialize objects to JSON or pass form entities directly, and set the appropriate `Content-Type` header. (`src/main/java/com/checkout/ApacheHttpClientTransport.java`) [[1]](diffhunk://#diff-3b863271ae76c2c75fc4ab50e731525ce851c694ee144332dd038c68e2873e44R91-R102) [[2]](diffhunk://#diff-3b863271ae76c2c75fc4ab50e731525ce851c694ee144332dd038c68e2873e44R238-R260) [[3]](diffhunk://#diff-3b863271ae76c2c75fc4ab50e731525ce851c694ee144332dd038c68e2873e44L265-R303)
* Updated `ApiClientImpl` methods to pass raw request objects to the transport layer instead of pre-serializing them, aligning with the new transport interface. (`src/main/java/com/checkout/ApiClientImpl.java`) [[1]](diffhunk://#diff-17788e6798031a3a75095fb61f03d1a3c404d2b6a6960c446262cfaae5d2688cL130-R130) [[2]](diffhunk://#diff-17788e6798031a3a75095fb61f03d1a3c404d2b6a6960c446262cfaae5d2688cL234-R234) [[3]](diffhunk://#diff-17788e6798031a3a75095fb61f03d1a3c404d2b6a6960c446262cfaae5d2688cL346-R346) [[4]](diffhunk://#diff-17788e6798031a3a75095fb61f03d1a3c404d2b6a6960c446262cfaae5d2688cL396-R396)
### Identity API client integration
* Added new identity-related clients (`FaceAuthenticationClient`, `ApplicantClient`, `IdentityVerificationClient`, `IdDocumentVerificationClient`, `AmlScreeningClient`) to `CheckoutApi` and `CheckoutApiImpl`, including their instantiation and interface methods. (`src/main/java/com/checkout/CheckoutApi.java`, `src/main/java/com/checkout/CheckoutApiImpl.java`) [[1]](diffhunk://#diff-9241579b48dfbc8729f69d42cd3fc2532b3ce2868663f46a307fc3b73638ef57R12-R16) [[2]](diffhunk://#diff-9241579b48dfbc8729f69d42cd3fc2532b3ce2868663f46a307fc3b73638ef57R77-R86) [[3]](diffhunk://#diff-9e68f52b37d22f45b3135eb0837bed690d1e0be8740b6ced9b5a65c94dafd478R21-R30) [[4]](diffhunk://#diff-9e68f52b37d22f45b3135eb0837bed690d1e0be8740b6ced9b5a65c94dafd478R84-R88) [[5]](diffhunk://#diff-9e68f52b37d22f45b3135eb0837bed690d1e0be8740b6ced9b5a65c94dafd478R116-R120) [[6]](diffhunk://#diff-9e68f52b37d22f45b3135eb0837bed690d1e0be8740b6ced9b5a65c94dafd478R221-R235)
### Supporting changes
* Updated imports in `GsonSerializer.java` to support form-encoded serialization, including `UrlEncodedFormEntity` and related classes. (`src/main/java/com/checkout/GsonSerializer.java`) [[1]](diffhunk://#diff-9b967a13c2a5016ea0995c3b77a5b750b221cf2d49970df6815d52970d5a73d8R46-R53) [[2]](diffhunk://#diff-9b967a13c2a5016ea0995c3b77a5b750b221cf2d49970df6815d52970d5a73d8L57)
These changes enhance the SDK's flexibility for handling different request types and expand its functionality for identity verification workflows.1 parent fa86d65 commit d628aff
3 files changed
Lines changed: 22 additions & 2 deletions
File tree
- src
- main/java/com/checkout
- test/java/com/checkout/accounts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
242 | 255 | | |
243 | 256 | | |
244 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
0 commit comments