Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/*
* 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;

/** ApproveAssociationResponse */
@JsonPropertyOrder({ApproveAssociationResponse.JSON_PROPERTY_SCA_ASSOCIATIONS})
public class ApproveAssociationResponse {
public static final String JSON_PROPERTY_SCA_ASSOCIATIONS = "scaAssociations";
private List<Association> scaAssociations;

public ApproveAssociationResponse() {}

/**
* The list of associations.
*
* @param scaAssociations The list of associations.
* @return the current {@code ApproveAssociationResponse} instance, allowing for method chaining
*/
public ApproveAssociationResponse scaAssociations(List<Association> scaAssociations) {
this.scaAssociations = scaAssociations;
return this;
}

public ApproveAssociationResponse addScaAssociationsItem(Association scaAssociationsItem) {
if (this.scaAssociations == null) {
this.scaAssociations = new ArrayList<>();
}
this.scaAssociations.add(scaAssociationsItem);
return this;
}

/**
* The list of associations.
*
* @return scaAssociations The list of associations.
*/
@JsonProperty(JSON_PROPERTY_SCA_ASSOCIATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Association> getScaAssociations() {
return scaAssociations;
}

/**
* The list of associations.
*
* @param scaAssociations The list of associations.
*/
@JsonProperty(JSON_PROPERTY_SCA_ASSOCIATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setScaAssociations(List<Association> scaAssociations) {
this.scaAssociations = scaAssociations;
}

/** Return true if this ApproveAssociationResponse object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApproveAssociationResponse approveAssociationResponse = (ApproveAssociationResponse) o;
return Objects.equals(this.scaAssociations, approveAssociationResponse.scaAssociations);
}

@Override
public int hashCode() {
return Objects.hash(scaAssociations);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApproveAssociationResponse {\n");
sb.append(" scaAssociations: ").append(toIndentedString(scaAssociations)).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 ApproveAssociationResponse given an JSON string
*
* @param jsonString JSON string
* @return An instance of ApproveAssociationResponse
* @throws JsonProcessingException if the JSON string is invalid with respect to
* ApproveAssociationResponse
*/
public static ApproveAssociationResponse fromJson(String jsonString)
throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, ApproveAssociationResponse.class);
}

/**
* Convert an instance of ApproveAssociationResponse to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
Loading
Loading