-
Notifications
You must be signed in to change notification settings - Fork 146
Add support for WWW-Authenticate header (SCA associations management) #1585
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
Draft
gcatanese
wants to merge
5
commits into
main
Choose a base branch
from
sca-header-handling
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,797
−122
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
248 changes: 248 additions & 0 deletions
248
src/main/java/com/adyen/model/balanceplatform/ApproveAssociationRequest.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,248 @@ | ||
| /* | ||
| * Configuration API | ||
| * | ||
| * The version of the OpenAPI document: 2 | ||
| * | ||
| * | ||
| * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
| * https://openapi-generator.tech | ||
| * Do not edit the class manually. | ||
| */ | ||
|
|
||
| package com.adyen.model.balanceplatform; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
| import com.fasterxml.jackson.core.JsonProcessingException; | ||
| import java.util.*; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| /** ApproveAssociationRequest */ | ||
| @JsonPropertyOrder({ | ||
| ApproveAssociationRequest.JSON_PROPERTY_ENTITY_ID, | ||
| ApproveAssociationRequest.JSON_PROPERTY_ENTITY_TYPE, | ||
| ApproveAssociationRequest.JSON_PROPERTY_SCA_DEVICE_IDS, | ||
| ApproveAssociationRequest.JSON_PROPERTY_STATUS | ||
| }) | ||
| public class ApproveAssociationRequest { | ||
| public static final String JSON_PROPERTY_ENTITY_ID = "entityId"; | ||
| private String entityId; | ||
|
|
||
| public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType"; | ||
| private ScaEntityType entityType; | ||
|
|
||
| public static final String JSON_PROPERTY_SCA_DEVICE_IDS = "scaDeviceIds"; | ||
| private List<String> scaDeviceIds; | ||
|
|
||
| public static final String JSON_PROPERTY_STATUS = "status"; | ||
| private AssociationStatus status; | ||
|
|
||
| public ApproveAssociationRequest() {} | ||
|
|
||
| /** | ||
| * The unique identifier of the entity. | ||
| * | ||
| * @param entityId The unique identifier of the entity. | ||
| * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining | ||
| */ | ||
| public ApproveAssociationRequest entityId(String entityId) { | ||
| this.entityId = entityId; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * The unique identifier of the entity. | ||
| * | ||
| * @return entityId The unique identifier of the entity. | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_ENTITY_ID) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public String getEntityId() { | ||
| return entityId; | ||
| } | ||
|
|
||
| /** | ||
| * The unique identifier of the entity. | ||
| * | ||
| * @param entityId The unique identifier of the entity. | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_ENTITY_ID) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setEntityId(String entityId) { | ||
| this.entityId = entityId; | ||
| } | ||
|
|
||
| /** | ||
| * entityType | ||
| * | ||
| * @param entityType | ||
| * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining | ||
| */ | ||
| public ApproveAssociationRequest entityType(ScaEntityType entityType) { | ||
| this.entityType = entityType; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get entityType | ||
| * | ||
| * @return entityType | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public ScaEntityType getEntityType() { | ||
| return entityType; | ||
| } | ||
|
|
||
| /** | ||
| * entityType | ||
| * | ||
| * @param entityType | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setEntityType(ScaEntityType entityType) { | ||
| this.entityType = entityType; | ||
| } | ||
|
|
||
| /** | ||
| * List of device ids associated to the entity that will be approved. | ||
| * | ||
| * @param scaDeviceIds List of device ids associated to the entity that will be approved. | ||
| * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining | ||
| */ | ||
| public ApproveAssociationRequest scaDeviceIds(List<String> scaDeviceIds) { | ||
| this.scaDeviceIds = scaDeviceIds; | ||
| return this; | ||
| } | ||
|
|
||
| public ApproveAssociationRequest addScaDeviceIdsItem(String scaDeviceIdsItem) { | ||
| if (this.scaDeviceIds == null) { | ||
| this.scaDeviceIds = new ArrayList<>(); | ||
| } | ||
| this.scaDeviceIds.add(scaDeviceIdsItem); | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * List of device ids associated to the entity that will be approved. | ||
| * | ||
| * @return scaDeviceIds List of device ids associated to the entity that will be approved. | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_SCA_DEVICE_IDS) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public List<String> getScaDeviceIds() { | ||
| return scaDeviceIds; | ||
| } | ||
|
|
||
| /** | ||
| * List of device ids associated to the entity that will be approved. | ||
| * | ||
| * @param scaDeviceIds List of device ids associated to the entity that will be approved. | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_SCA_DEVICE_IDS) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setScaDeviceIds(List<String> scaDeviceIds) { | ||
| this.scaDeviceIds = scaDeviceIds; | ||
| } | ||
|
|
||
| /** | ||
| * status | ||
| * | ||
| * @param status | ||
| * @return the current {@code ApproveAssociationRequest} instance, allowing for method chaining | ||
| */ | ||
| public ApproveAssociationRequest status(AssociationStatus status) { | ||
| this.status = status; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get status | ||
| * | ||
| * @return status | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_STATUS) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public AssociationStatus getStatus() { | ||
| return status; | ||
| } | ||
|
|
||
| /** | ||
| * status | ||
| * | ||
| * @param status | ||
| */ | ||
| @JsonProperty(JSON_PROPERTY_STATUS) | ||
| @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
| public void setStatus(AssociationStatus status) { | ||
| this.status = status; | ||
| } | ||
|
|
||
| /** Return true if this ApproveAssociationRequest object is equal to o. */ | ||
| @Override | ||
| public boolean equals(Object o) { | ||
| if (this == o) { | ||
| return true; | ||
| } | ||
| if (o == null || getClass() != o.getClass()) { | ||
| return false; | ||
| } | ||
| ApproveAssociationRequest approveAssociationRequest = (ApproveAssociationRequest) o; | ||
| return Objects.equals(this.entityId, approveAssociationRequest.entityId) | ||
| && Objects.equals(this.entityType, approveAssociationRequest.entityType) | ||
| && Objects.equals(this.scaDeviceIds, approveAssociationRequest.scaDeviceIds) | ||
| && Objects.equals(this.status, approveAssociationRequest.status); | ||
| } | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| return Objects.hash(entityId, entityType, scaDeviceIds, status); | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| StringBuilder sb = new StringBuilder(); | ||
| sb.append("class ApproveAssociationRequest {\n"); | ||
| sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); | ||
| sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); | ||
| sb.append(" scaDeviceIds: ").append(toIndentedString(scaDeviceIds)).append("\n"); | ||
| sb.append(" status: ").append(toIndentedString(status)).append("\n"); | ||
| sb.append("}"); | ||
| return sb.toString(); | ||
| } | ||
|
|
||
| /** | ||
| * Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
| */ | ||
| private String toIndentedString(Object o) { | ||
| if (o == null) { | ||
| return "null"; | ||
| } | ||
| return o.toString().replace("\n", "\n "); | ||
| } | ||
|
|
||
| /** | ||
| * Create an instance of ApproveAssociationRequest given an JSON string | ||
| * | ||
| * @param jsonString JSON string | ||
| * @return An instance of ApproveAssociationRequest | ||
| * @throws JsonProcessingException if the JSON string is invalid with respect to | ||
| * ApproveAssociationRequest | ||
| */ | ||
| public static ApproveAssociationRequest fromJson(String jsonString) | ||
| throws JsonProcessingException { | ||
| return JSON.getMapper().readValue(jsonString, ApproveAssociationRequest.class); | ||
| } | ||
|
|
||
| /** | ||
| * Convert an instance of ApproveAssociationRequest to an JSON string | ||
| * | ||
| * @return JSON string | ||
| */ | ||
| public String toJson() throws JsonProcessingException { | ||
| return JSON.getMapper().writeValueAsString(this); | ||
| } | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant imports:
java.util.*already includesArrayListandList, so the explicit imports on lines 19-20 are unnecessary.