Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot authored Aug 15, 2024
1 parent 4b07395 commit 0e60426
Show file tree
Hide file tree
Showing 45 changed files with 3,870 additions and 144 deletions.
38 changes: 37 additions & 1 deletion src/main/java/com/adyen/model/checkout/AchDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
AchDetails.JSON_PROPERTY_OWNER_NAME,
AchDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
AchDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
AchDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID,
AchDetails.JSON_PROPERTY_TYPE
})

Expand Down Expand Up @@ -117,6 +118,9 @@ public static BankAccountTypeEnum fromValue(String value) {
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
private String storedPaymentMethodId;

public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId";
private String transferInstrumentId;

/**
* **ach**
*/
Expand Down Expand Up @@ -432,6 +436,36 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) {
}


public AchDetails transferInstrumentId(String transferInstrumentId) {
this.transferInstrumentId = transferInstrumentId;
return this;
}

/**
* The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
* @return transferInstrumentId
**/
@ApiModelProperty(value = "The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.")
@JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getTransferInstrumentId() {
return transferInstrumentId;
}


/**
* The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
*
* @param transferInstrumentId
*/
@JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTransferInstrumentId(String transferInstrumentId) {
this.transferInstrumentId = transferInstrumentId;
}


public AchDetails type(TypeEnum type) {
this.type = type;
return this;
Expand Down Expand Up @@ -483,12 +517,13 @@ public boolean equals(Object o) {
Objects.equals(this.ownerName, achDetails.ownerName) &&
Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference) &&
Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId) &&
Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId) &&
Objects.equals(this.type, achDetails.type);
}

@Override
public int hashCode() {
return Objects.hash(bankAccountNumber, bankAccountType, bankLocationId, checkoutAttemptId, encryptedBankAccountNumber, encryptedBankLocationId, ownerName, recurringDetailReference, storedPaymentMethodId, type);
return Objects.hash(bankAccountNumber, bankAccountType, bankLocationId, checkoutAttemptId, encryptedBankAccountNumber, encryptedBankLocationId, ownerName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type);
}

@Override
Expand All @@ -504,6 +539,7 @@ public String toString() {
sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n");
sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
176 changes: 176 additions & 0 deletions src/main/java/com/adyen/model/checkout/Amounts.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
/*
* Adyen Checkout API
*
* The version of the OpenAPI document: 71
*
*
* 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.checkout;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;


/**
* Amounts
*/
@JsonPropertyOrder({
Amounts.JSON_PROPERTY_CURRENCY,
Amounts.JSON_PROPERTY_VALUES
})

public class Amounts {
public static final String JSON_PROPERTY_CURRENCY = "currency";
private String currency;

public static final String JSON_PROPERTY_VALUES = "values";
private List<Long> values = new ArrayList<>();

public Amounts() {
}

public Amounts currency(String currency) {
this.currency = currency;
return this;
}

/**
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
* @return currency
**/
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).")
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getCurrency() {
return currency;
}


/**
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
*
* @param currency
*/
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCurrency(String currency) {
this.currency = currency;
}


public Amounts values(List<Long> values) {
this.values = values;
return this;
}

public Amounts addValuesItem(Long valuesItem) {
this.values.add(valuesItem);
return this;
}

/**
* The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).
* @return values
**/
@ApiModelProperty(required = true, value = "The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).")
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public List<Long> getValues() {
return values;
}


/**
* The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).
*
* @param values
*/
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List<Long> values) {
this.values = values;
}


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

@Override
public int hashCode() {
return Objects.hash(currency, values);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Amounts {\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" values: ").append(toIndentedString(values)).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 Amounts given an JSON string
*
* @param jsonString JSON string
* @return An instance of Amounts
* @throws JsonProcessingException if the JSON string is invalid with respect to Amounts
*/
public static Amounts fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, Amounts.class);
}
/**
* Convert an instance of Amounts 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
Expand Up @@ -37,6 +37,7 @@
BacsDirectDebitDetails.JSON_PROPERTY_HOLDER_NAME,
BacsDirectDebitDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
BacsDirectDebitDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
BacsDirectDebitDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID,
BacsDirectDebitDetails.JSON_PROPERTY_TYPE
})

Expand All @@ -60,6 +61,9 @@ public class BacsDirectDebitDetails {
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
private String storedPaymentMethodId;

public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID = "transferInstrumentId";
private String transferInstrumentId;

/**
* **directdebit_GB**
*/
Expand Down Expand Up @@ -283,6 +287,36 @@ public void setStoredPaymentMethodId(String storedPaymentMethodId) {
}


public BacsDirectDebitDetails transferInstrumentId(String transferInstrumentId) {
this.transferInstrumentId = transferInstrumentId;
return this;
}

/**
* The unique identifier of your user&#39;s verified transfer instrument, which you can use to top up their balance accounts.
* @return transferInstrumentId
**/
@ApiModelProperty(value = "The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.")
@JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getTransferInstrumentId() {
return transferInstrumentId;
}


/**
* The unique identifier of your user&#39;s verified transfer instrument, which you can use to top up their balance accounts.
*
* @param transferInstrumentId
*/
@JsonProperty(JSON_PROPERTY_TRANSFER_INSTRUMENT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTransferInstrumentId(String transferInstrumentId) {
this.transferInstrumentId = transferInstrumentId;
}


public BacsDirectDebitDetails type(TypeEnum type) {
this.type = type;
return this;
Expand Down Expand Up @@ -331,12 +365,13 @@ public boolean equals(Object o) {
Objects.equals(this.holderName, bacsDirectDebitDetails.holderName) &&
Objects.equals(this.recurringDetailReference, bacsDirectDebitDetails.recurringDetailReference) &&
Objects.equals(this.storedPaymentMethodId, bacsDirectDebitDetails.storedPaymentMethodId) &&
Objects.equals(this.transferInstrumentId, bacsDirectDebitDetails.transferInstrumentId) &&
Objects.equals(this.type, bacsDirectDebitDetails.type);
}

@Override
public int hashCode() {
return Objects.hash(bankAccountNumber, bankLocationId, checkoutAttemptId, holderName, recurringDetailReference, storedPaymentMethodId, type);
return Objects.hash(bankAccountNumber, bankLocationId, checkoutAttemptId, holderName, recurringDetailReference, storedPaymentMethodId, transferInstrumentId, type);
}

@Override
Expand All @@ -349,6 +384,7 @@ public String toString() {
sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n");
sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
sb.append(" transferInstrumentId: ").append(toIndentedString(transferInstrumentId)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Loading

0 comments on commit 0e60426

Please sign in to comment.