Skip to content
Merged
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
8 changes: 4 additions & 4 deletions sdk-generation-log/management.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"service": "management",
"project": "java",
"generatedAt": "2026-06-01T09:45:27Z",
"openapiCommitSha": "c0822241f611e20376f72b279f2b3e67dea27a43",
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
"libraryCommitSha": "b2ec3b93864e9e4a5548fa7e77fccd50da77ec2f"
"generatedAt": "2026-07-21T13:17:05Z",
"openapiCommitSha": "c2ff0637d25d1c34aa1b19113e1b4e5eaa289960",
"automationCommitSha": "0c108bd8050cf480d2710b78b770afdfbdd89397",
"libraryCommitSha": "eebe7978ae86e44506c5a2dc292a119d58212d88"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
/*
* Management API
*
* The version of the OpenAPI document: 3
*
*
* 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.management;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
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.*;

/** AssociatedPaymentMethod */
@JsonPropertyOrder({
AssociatedPaymentMethod.JSON_PROPERTY_ENABLED,
AssociatedPaymentMethod.JSON_PROPERTY_ID,
AssociatedPaymentMethod.JSON_PROPERTY_TYPE
})
public class AssociatedPaymentMethod {
public static final String JSON_PROPERTY_ENABLED = "enabled";
private Boolean enabled;

/** Mark when the attribute has been explicitly set. */
private boolean isSetEnabled = false;

public static final String JSON_PROPERTY_ID = "id";
private String id;

/** Mark when the attribute has been explicitly set. */
private boolean isSetId = false;

public static final String JSON_PROPERTY_TYPE = "type";
private String type;

/** Mark when the attribute has been explicitly set. */
private boolean isSetType = false;

/**
* Sets whether attributes with null values should be explicitly included in the JSON payload.
* Default is false.
*/
@JsonIgnore private boolean includeNullValues = false;

public AssociatedPaymentMethod() {}

Check failure on line 53 in src/main/java/com/adyen/model/management/AssociatedPaymentMethod.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-java-api-library&issues=AZ-E1mdE1YFO5dkud3Ty&open=AZ-E1mdE1YFO5dkud3Ty&pullRequest=2004

/**
* Indicates whether the payment method is enabled (**true**) or disabled (**false**).
*
* @param enabled Indicates whether the payment method is enabled (**true**) or disabled
* (**false**).
* @return the current {@code AssociatedPaymentMethod} instance, allowing for method chaining
*/
public AssociatedPaymentMethod enabled(Boolean enabled) {
this.enabled = enabled;
isSetEnabled = true; // mark as set
return this;
}

/**
* Indicates whether the payment method is enabled (**true**) or disabled (**false**).
*
* @return enabled Indicates whether the payment method is enabled (**true**) or disabled
* (**false**).
*/
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getEnabled() {
return enabled;
}

/**
* Indicates whether the payment method is enabled (**true**) or disabled (**false**).
*
* @param enabled Indicates whether the payment method is enabled (**true**) or disabled
* (**false**).
*/
@JsonProperty(JSON_PROPERTY_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
isSetEnabled = true; // mark as set
}

/**
* The identifier of the payment method.
*
* @param id The identifier of the payment method.
* @return the current {@code AssociatedPaymentMethod} instance, allowing for method chaining
*/
public AssociatedPaymentMethod id(String id) {
this.id = id;
isSetId = true; // mark as set
return this;
}

/**
* The identifier of the payment method.
*
* @return id The identifier of the payment method.
*/
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}

/**
* The identifier of the payment method.
*
* @param id The identifier of the payment method.
*/
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(String id) {
this.id = id;
isSetId = true; // mark as set
}

/**
* Payment method
* [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
*
* @param type Payment method
* [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
* @return the current {@code AssociatedPaymentMethod} instance, allowing for method chaining
*/
public AssociatedPaymentMethod type(String type) {
this.type = type;
isSetType = true; // mark as set
return this;
}

/**
* Payment method
* [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
*
* @return type Payment method
* [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() {
return type;
}

/**
* Payment method
* [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
*
* @param type Payment method
* [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(String type) {
this.type = type;
isSetType = true; // mark as set
}

/**
* Configures whether null values are explicitly serialized in the JSON payload. Default is false.
*/
public AssociatedPaymentMethod includeNullValues(boolean includeNullValues) {
this.includeNullValues = includeNullValues;
return this;
}

/** Returns whether null values are explicitly serialized in the JSON payload. */
public boolean isIncludeNullValues() {
return includeNullValues;
}

/**
* Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
*/
public void setIncludeNullValues(boolean includeNullValues) {
this.includeNullValues = includeNullValues;
}

/** Return true if this AssociatedPaymentMethod object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AssociatedPaymentMethod associatedPaymentMethod = (AssociatedPaymentMethod) o;
return Objects.equals(this.enabled, associatedPaymentMethod.enabled)
&& Objects.equals(this.isSetEnabled, associatedPaymentMethod.isSetEnabled)
&& Objects.equals(this.id, associatedPaymentMethod.id)
&& Objects.equals(this.isSetId, associatedPaymentMethod.isSetId)
&& Objects.equals(this.type, associatedPaymentMethod.type)
&& Objects.equals(this.isSetType, associatedPaymentMethod.isSetType);
}

@Override
public int hashCode() {
return Objects.hash(enabled, isSetEnabled, id, isSetId, type, isSetType);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssociatedPaymentMethod {\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}

/** Returns a map of properties to be merged into the JSON payload as explicit null values. */
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonAnyGetter
public Map<String, Object> getExplicitNulls() {
if (!this.includeNullValues) {
return Collections.emptyMap();
}

Map<String, Object> nulls = new HashMap<>();

if (isSetEnabled) {
addIfNull(nulls, JSON_PROPERTY_ENABLED, this.enabled);
}
if (isSetId) {
addIfNull(nulls, JSON_PROPERTY_ID, this.id);
}
if (isSetType) {
addIfNull(nulls, JSON_PROPERTY_TYPE, this.type);
}

return nulls;
}

// add to map when value is null
private void addIfNull(Map<String, Object> map, String key, Object value) {
if (value == null) {
map.put(key, null);
}
}

/**
* Create an instance of AssociatedPaymentMethod given an JSON string
*
* @param jsonString JSON string
* @return An instance of AssociatedPaymentMethod
* @throws JsonProcessingException if the JSON string is invalid with respect to
* AssociatedPaymentMethod
*/
public static AssociatedPaymentMethod fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, AssociatedPaymentMethod.class);
}

/**
* Convert an instance of AssociatedPaymentMethod 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,58 @@
/*
* Management API
*
* The version of the OpenAPI document: 3
*
*
* 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.management;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.*;
import java.util.logging.Logger;

/** Gets or Sets CampaignStatusTransition */
public enum CampaignStatusTransition {
ACTIVATE("activate"),

END("end");

private static final Logger LOG = Logger.getLogger(CampaignStatusTransition.class.getName());

private String value;

CampaignStatusTransition(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static CampaignStatusTransition fromValue(String value) {
for (CampaignStatusTransition b : CampaignStatusTransition.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"CampaignStatusTransition: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(CampaignStatusTransition.values()));

Check warning on line 55 in src/main/java/com/adyen/model/management/CampaignStatusTransition.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Invoke method(s) only conditionally. Use the built-in formatting to construct this argument.

See more on https://sonarcloud.io/project/issues?id=Adyen_adyen-java-api-library&issues=AZ-E1mlO1YFO5dkud3T8&open=AZ-E1mlO1YFO5dkud3T8&pullRequest=2004
return null;
}
}
Loading
Loading