-
Notifications
You must be signed in to change notification settings - Fork 35
feature/INT-1632 SDK update - Latests changes in payments and other updates #602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
773d946
SDK update - Latests changes in payments and other updates + unit and…
david-ruiz-cko 5a1c75a
Revert interceptor HttpClientTransport, we do not want to alter user …
david-ruiz-cko cc9c10a
Small fine tune, PaymentPlan expiry to string
david-ruiz-cko e661eb7
Fixed tests: expiry field to string for PaymentPlan class
david-ruiz-cko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/java/com/checkout/accounts/EntityRequirementDetailsResponse.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package com.checkout.accounts; | ||
|
|
||
| import com.google.gson.annotations.SerializedName; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import lombok.ToString; | ||
|
|
||
| import java.util.Map; | ||
|
|
||
| /** | ||
| * Detailed information about a single requirement. | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
Check noticeCode scanning / CodeQL Missing Override annotation Note
This method overrides
EntityRequirementListItem.canEqual Error loading related location Loading |
||
| @ToString(callSuper = true) | ||
| public final class EntityRequirementDetailsResponse extends EntityRequirementListItem { | ||
|
|
||
| /** | ||
| * A user-facing explanation of what is needed to resolve the requirement. | ||
| * [Optional] | ||
| */ | ||
| private String message; | ||
|
|
||
| /** | ||
| * JSON Schema that the value supplied to PUT /accounts/entities/{id}/requirements/{requirementId} | ||
| * must conform to. The shape varies by requirement type (for example: an identity document upload, | ||
| * a free-text response, or a structured object). May be {@code null} if no schema is registered | ||
| * for the requirement's field. | ||
| * [Optional] | ||
| */ | ||
| @SerializedName("_schema") | ||
| private Map<String, Object> schema; | ||
| } | ||
96 changes: 96 additions & 0 deletions
96
src/main/java/com/checkout/accounts/EntityRequirementListItem.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| package com.checkout.accounts; | ||
|
|
||
| import com.checkout.common.Resource; | ||
| import com.google.gson.annotations.SerializedName; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import lombok.ToString; | ||
|
|
||
| import java.time.Instant; | ||
| import java.util.Map; | ||
|
|
||
| /** | ||
| * A pending requirement that the sub-entity must resolve to remain compliant or unlock capabilities. | ||
| */ | ||
| @Data | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
Check noticeCode scanning / CodeQL Missing Override annotation Note
This method overrides
Resource.canEqual Error loading related location Loading |
||
|
david-ruiz-cko marked this conversation as resolved.
Dismissed
|
||
| @ToString(callSuper = true) | ||
| public class EntityRequirementListItem extends Resource { | ||
|
|
||
| /** | ||
| * The unique identifier of the requirement. | ||
| * [Optional] | ||
| */ | ||
| private String id; | ||
|
|
||
| /** | ||
| * The ID of the resource (sub-entity or representative) the requirement applies to. | ||
| * [Optional] | ||
| */ | ||
| private String resource; | ||
|
|
||
| /** | ||
| * The type of resource the requirement applies to derived from the resource's URN. | ||
| * Common values include {@code company}, {@code individual}, and {@code representative}. | ||
| * Defaults to {@code entity} if the URN cannot be parsed. | ||
| * [Optional] | ||
| */ | ||
| @SerializedName("resource_type") | ||
| private String resourceType; | ||
|
|
||
| /** | ||
| * The reason the requirement was raised. | ||
| * [Optional] | ||
| * Enum: "periodic_review" "attestation" | ||
| */ | ||
| private EntityRequirementReason reason; | ||
|
|
||
| /** | ||
| * Priority level of this requirement. {@code high} by default, {@code critical} if deadline | ||
| * is within 7 days. | ||
| * [Optional] | ||
| * Enum: "high" "critical" | ||
| */ | ||
| private EntityRequirementPriority priority; | ||
|
|
||
| /** | ||
| * The date and time, in ISO 8601 UTC format, by which the requirement must be resolved. | ||
| * [Optional] | ||
| * Format: date-time (RFC 3339) | ||
| */ | ||
| private Instant deadline; | ||
|
|
||
| /** | ||
| * The schema-registry URN identifying the field this requirement applies to. | ||
| * Format: {@code urn:object:{resource_type}#{resource_id}#field:{field_name}}. | ||
| * [Optional] | ||
| */ | ||
| private String urn; | ||
|
|
||
| /** | ||
| * Dot-notation path of the field on the resource that needs to be supplied or updated. | ||
| * May be {@code null} for ad-hoc requirements (such as additional documents or free-text | ||
| * responses) that do not map to a specific field on the entity. | ||
| * [Optional] | ||
| */ | ||
| @SerializedName("field_path") | ||
| private String fieldPath; | ||
|
|
||
| /** | ||
| * The schema-registry URN of the field, from the public mapping definition. | ||
| * May be {@code null} if no mapping exists. | ||
| * [Optional] | ||
| */ | ||
| @SerializedName("field_urn") | ||
| private String fieldUrn; | ||
|
|
||
| /** | ||
| * Optional metadata from the property mapping definition. Shape varies by requirement. | ||
| * [Optional] | ||
| */ | ||
| private Map<String, Object> metadata; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.