Skip to content

Commit 82cf7b4

Browse files
feature/INT-1695 - Add verification attempt-assets endpoints and card scheduled_activation_date (#671)
* Add verification attempt-assets endpoints and card scheduled_activation_date * Integration tests * Potential fix for pull request finding 'CodeQL / Spurious Javadoc @PARAM tags' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for pull request finding 'CodeQL / Spurious Javadoc @PARAM tags' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Test currency fix --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e5b3620 commit 82cf7b4

77 files changed

Lines changed: 3097 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/main/java/com/checkout/ApiClient.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public interface ApiClient {
2828

2929
<T extends HttpMetadata> CompletableFuture<T> patchAsync(String path, SdkAuthorization authorization, Class<T> responseType, Object request, String idempotencyKey);
3030

31+
<T extends HttpMetadata> CompletableFuture<T> patchAsync(String path, SdkAuthorization authorization, Class<T> responseType, Object request, String idempotencyKey, IHeaders headers);
32+
3133
CompletableFuture<? extends HttpMetadata> postAsync(String path, SdkAuthorization authorization, Map<Integer, Class<? extends HttpMetadata>> resultTypeMappings, Object request, String idempotencyKey);
3234

3335
CompletableFuture<EmptyResponse> deleteAsync(String path, SdkAuthorization authorization);
@@ -53,6 +55,8 @@ public interface ApiClient {
5355

5456
<T extends HttpMetadata> T patch(String path, SdkAuthorization authorization, Class<T> responseType, Object request, String idempotencyKey);
5557

58+
<T extends HttpMetadata> T patch(String path, SdkAuthorization authorization, Class<T> responseType, Object request, String idempotencyKey, IHeaders headers);
59+
5660
<T extends HttpMetadata> T patch(String path, SdkAuthorization authorization, Type type, Object request, String idempotencyKey);
5761

5862
<T extends HttpMetadata> T post(String path, SdkAuthorization authorization, Class<T> responseType, Object request, String idempotencyKey);

‎src/main/java/com/checkout/ApiClientImpl.java‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ public <T extends HttpMetadata> CompletableFuture<T> patchAsync(final String pat
9595
);
9696
}
9797

98+
@Override
99+
public <T extends HttpMetadata> CompletableFuture<T> patchAsync(final String path, final SdkAuthorization authorization, final Class<T> responseType, final Object request, final String idempotencyKey, final IHeaders headers) {
100+
validateParams(PATH, path, AUTHORIZATION, authorization);
101+
return executeAsyncOrSync(
102+
() -> patch(path, authorization, responseType, request, idempotencyKey, headers),
103+
() -> sendRequestAsync(PATCH, path, authorization, request, idempotencyKey, responseType, headers)
104+
);
105+
}
106+
98107
@Override
99108
public <T extends HttpMetadata> CompletableFuture<T> patchAsync(final String path, final SdkAuthorization authorization, final Type type, final Object request, final String idempotencyKey) {
100109
validateParams(PATH, path, AUTHORIZATION, authorization, "type", type, "request", request);
@@ -368,6 +377,12 @@ public <T extends HttpMetadata> T patch(final String path, final SdkAuthorizatio
368377
return sendRequestSync(PATCH, path, authorization, request, idempotencyKey, responseType);
369378
}
370379

380+
@Override
381+
public <T extends HttpMetadata> T patch(final String path, final SdkAuthorization authorization, final Class<T> responseType, final Object request, final String idempotencyKey, final IHeaders headers) {
382+
validateParams(PATH, path, AUTHORIZATION, authorization);
383+
return sendRequestSync(PATCH, path, authorization, request, idempotencyKey, responseType, headers);
384+
}
385+
371386
@Override
372387
public <T extends HttpMetadata> T patch(final String path, final SdkAuthorization authorization, final Type type, final Object request, final String idempotencyKey) {
373388
validateParams(PATH, path, AUTHORIZATION, authorization, "type", type, "request", request);

‎src/main/java/com/checkout/identities/addressdocumentverification/AddressDocumentVerificationClient.java‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
import com.checkout.identities.addressdocumentverification.requests.AddressDocumentVerificationAttemptRequest;
44
import com.checkout.identities.addressdocumentverification.requests.AddressDocumentVerificationRequest;
55
import com.checkout.identities.addressdocumentverification.responses.AddressDocumentVerificationAttemptResponse;
6+
import com.checkout.identities.addressdocumentverification.responses.AddressDocumentVerificationAttemptAssetsResponse;
67
import com.checkout.identities.addressdocumentverification.responses.AddressDocumentVerificationAttemptsResponse;
78
import com.checkout.identities.addressdocumentverification.responses.AddressDocumentVerificationReportResponse;
89
import com.checkout.identities.addressdocumentverification.responses.AddressDocumentVerificationResponse;
910

11+
import com.checkout.identities.entities.AttemptAssetsQueryFilter;
12+
import com.checkout.identities.entities.AttemptsQueryFilter;
13+
1014
import java.util.concurrent.CompletableFuture;
1115

1216
/**
@@ -55,6 +59,15 @@ public interface AddressDocumentVerificationClient {
5559
*/
5660
CompletableFuture<AddressDocumentVerificationAttemptsResponse> getAddressDocumentVerificationAttempts(String addressDocumentVerificationId);
5761

62+
/**
63+
* Retrieve a page of address document verification attempts
64+
*
65+
* @param addressDocumentVerificationId the address document verification ID
66+
* @param queryFilter the pagination query parameters (skip and limit)
67+
* @return a {@link CompletableFuture} containing the {@link AddressDocumentVerificationAttemptsResponse}
68+
*/
69+
CompletableFuture<AddressDocumentVerificationAttemptsResponse> getAddressDocumentVerificationAttempts(String addressDocumentVerificationId, AttemptsQueryFilter queryFilter);
70+
5871
/**
5972
* Retrieve a specific address document verification attempt
6073
*
@@ -72,6 +85,17 @@ public interface AddressDocumentVerificationClient {
7285
*/
7386
CompletableFuture<AddressDocumentVerificationReportResponse> getAddressDocumentVerificationReport(String addressDocumentVerificationId);
7487

88+
/**
89+
* Retrieve the assets (the document image) uploaded for an address document verification attempt.
90+
* Beta.
91+
*
92+
* @param addressDocumentVerificationId the address document verification ID
93+
* @param attemptId the attempt ID
94+
* @param queryFilter the pagination query parameters (skip and limit)
95+
* @return a {@link CompletableFuture} containing the {@link AddressDocumentVerificationAttemptAssetsResponse}
96+
*/
97+
CompletableFuture<AddressDocumentVerificationAttemptAssetsResponse> getAddressDocumentVerificationAttemptAssets(String addressDocumentVerificationId, String attemptId, AttemptAssetsQueryFilter queryFilter);
98+
7599
// Synchronous methods
76100

77101
/**
@@ -115,6 +139,15 @@ public interface AddressDocumentVerificationClient {
115139
*/
116140
AddressDocumentVerificationAttemptsResponse getAddressDocumentVerificationAttemptsSync(String addressDocumentVerificationId);
117141

142+
/**
143+
* Retrieve a page of address document verification attempts
144+
*
145+
* @param addressDocumentVerificationId the address document verification ID
146+
* @param queryFilter the pagination query parameters (skip and limit)
147+
* @return the {@link AddressDocumentVerificationAttemptsResponse}
148+
*/
149+
AddressDocumentVerificationAttemptsResponse getAddressDocumentVerificationAttemptsSync(String addressDocumentVerificationId, AttemptsQueryFilter queryFilter);
150+
118151
/**
119152
* Retrieve a specific address document verification attempt
120153
*
@@ -131,4 +164,15 @@ public interface AddressDocumentVerificationClient {
131164
* @return the {@link AddressDocumentVerificationReportResponse}
132165
*/
133166
AddressDocumentVerificationReportResponse getAddressDocumentVerificationReportSync(String addressDocumentVerificationId);
167+
168+
/**
169+
* Retrieve the assets (the document image) uploaded for an address document verification attempt.
170+
* Beta.
171+
*
172+
* @param addressDocumentVerificationId the address document verification ID
173+
* @param attemptId the attempt ID
174+
* @param queryFilter the pagination query parameters (skip and limit)
175+
* @return the {@link AddressDocumentVerificationAttemptAssetsResponse}
176+
*/
177+
AddressDocumentVerificationAttemptAssetsResponse getAddressDocumentVerificationAttemptAssetsSync(String addressDocumentVerificationId, String attemptId, AttemptAssetsQueryFilter queryFilter);
134178
}

0 commit comments

Comments
 (0)