Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Oct 9, 2024
1 parent a88d7ab commit 8a2c2f7
Show file tree
Hide file tree
Showing 14 changed files with 916 additions and 248 deletions.
74 changes: 73 additions & 1 deletion src/main/java/com/adyen/model/checkout/CardDetailsResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,21 @@
*/
@JsonPropertyOrder({
CardDetailsResponse.JSON_PROPERTY_BRANDS,
CardDetailsResponse.JSON_PROPERTY_FUNDING_SOURCE,
CardDetailsResponse.JSON_PROPERTY_IS_CARD_COMMERCIAL,
CardDetailsResponse.JSON_PROPERTY_ISSUING_COUNTRY_CODE
})

public class CardDetailsResponse {
public static final String JSON_PROPERTY_BRANDS = "brands";
private List<CardBrandDetails> brands = null;

public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource";
private String fundingSource;

public static final String JSON_PROPERTY_IS_CARD_COMMERCIAL = "isCardCommercial";
private Boolean isCardCommercial;

public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODE = "issuingCountryCode";
private String issuingCountryCode;

Expand Down Expand Up @@ -86,6 +94,66 @@ public void setBrands(List<CardBrandDetails> brands) {
}


public CardDetailsResponse fundingSource(String fundingSource) {
this.fundingSource = fundingSource;
return this;
}

/**
* The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.
* @return fundingSource
**/
@ApiModelProperty(value = "The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.")
@JsonProperty(JSON_PROPERTY_FUNDING_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getFundingSource() {
return fundingSource;
}


/**
* The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.
*
* @param fundingSource
*/
@JsonProperty(JSON_PROPERTY_FUNDING_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFundingSource(String fundingSource) {
this.fundingSource = fundingSource;
}


public CardDetailsResponse isCardCommercial(Boolean isCardCommercial) {
this.isCardCommercial = isCardCommercial;
return this;
}

/**
* Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.
* @return isCardCommercial
**/
@ApiModelProperty(value = "Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.")
@JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Boolean getIsCardCommercial() {
return isCardCommercial;
}


/**
* Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.
*
* @param isCardCommercial
*/
@JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsCardCommercial(Boolean isCardCommercial) {
this.isCardCommercial = isCardCommercial;
}


public CardDetailsResponse issuingCountryCode(String issuingCountryCode) {
this.issuingCountryCode = issuingCountryCode;
return this;
Expand Down Expand Up @@ -129,19 +197,23 @@ public boolean equals(Object o) {
}
CardDetailsResponse cardDetailsResponse = (CardDetailsResponse) o;
return Objects.equals(this.brands, cardDetailsResponse.brands) &&
Objects.equals(this.fundingSource, cardDetailsResponse.fundingSource) &&
Objects.equals(this.isCardCommercial, cardDetailsResponse.isCardCommercial) &&
Objects.equals(this.issuingCountryCode, cardDetailsResponse.issuingCountryCode);
}

@Override
public int hashCode() {
return Objects.hash(brands, issuingCountryCode);
return Objects.hash(brands, fundingSource, isCardCommercial, issuingCountryCode);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CardDetailsResponse {\n");
sb.append(" brands: ").append(toIndentedString(brands)).append("\n");
sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n");
sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n");
sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public CreateOrderRequest expiresAt(String expiresAt) {
}

/**
* The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
* The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
* @return expiresAt
**/
@ApiModelProperty(value = "The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.")
@ApiModelProperty(value = "The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.")
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand All @@ -103,7 +103,7 @@ public String getExpiresAt() {


/**
* The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
* The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
*
* @param expiresAt
*/
Expand Down
83 changes: 80 additions & 3 deletions src/main/java/com/adyen/model/checkout/FundRecipient.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
FundRecipient.JSON_PROPERTY_SUB_MERCHANT,
FundRecipient.JSON_PROPERTY_TELEPHONE_NUMBER,
FundRecipient.JSON_PROPERTY_WALLET_IDENTIFIER,
FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID
FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID,
FundRecipient.JSON_PROPERTY_WALLET_PURPOSE
})

public class FundRecipient {
Expand Down Expand Up @@ -82,6 +83,50 @@ public class FundRecipient {
public static final String JSON_PROPERTY_WALLET_OWNER_TAX_ID = "walletOwnerTaxId";
private String walletOwnerTaxId;

/**
* The purpose of a digital wallet transaction
*/
public enum WalletPurposeEnum {
IDENTIFIEDBOLETO("identifiedBoleto"),

TRANSFERDIFFERENTWALLET("transferDifferentWallet"),

TRANSFEROWNWALLET("transferOwnWallet"),

TRANSFERSAMEWALLET("transferSameWallet"),

UNIDENTIFIEDBOLETO("unidentifiedBoleto");

private String value;

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

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

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

@JsonCreator
public static WalletPurposeEnum fromValue(String value) {
for (WalletPurposeEnum b : WalletPurposeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose";
private WalletPurposeEnum walletPurpose;

public FundRecipient() {
}

Expand Down Expand Up @@ -415,6 +460,36 @@ public void setWalletOwnerTaxId(String walletOwnerTaxId) {
}


public FundRecipient walletPurpose(WalletPurposeEnum walletPurpose) {
this.walletPurpose = walletPurpose;
return this;
}

/**
* The purpose of a digital wallet transaction
* @return walletPurpose
**/
@ApiModelProperty(value = "The purpose of a digital wallet transaction")
@JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public WalletPurposeEnum getWalletPurpose() {
return walletPurpose;
}


/**
* The purpose of a digital wallet transaction
*
* @param walletPurpose
*/
@JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setWalletPurpose(WalletPurposeEnum walletPurpose) {
this.walletPurpose = walletPurpose;
}


/**
* Return true if this FundRecipient object is equal to o.
*/
Expand All @@ -437,12 +512,13 @@ public boolean equals(Object o) {
Objects.equals(this.subMerchant, fundRecipient.subMerchant) &&
Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) &&
Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) &&
Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId);
Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) &&
Objects.equals(this.walletPurpose, fundRecipient.walletPurpose);
}

@Override
public int hashCode() {
return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId);
return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId, walletPurpose);
}

@Override
Expand All @@ -460,6 +536,7 @@ public String toString() {
sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
sb.append(" walletIdentifier: ").append(toIndentedString(walletIdentifier)).append("\n");
sb.append(" walletOwnerTaxId: ").append(toIndentedString(walletOwnerTaxId)).append("\n");
sb.append(" walletPurpose: ").append(toIndentedString(walletPurpose)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
79 changes: 78 additions & 1 deletion src/main/java/com/adyen/model/checkout/PayToDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,26 @@
*/
@JsonPropertyOrder({
PayToDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
PayToDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
PayToDetails.JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER,
PayToDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
PayToDetails.JSON_PROPERTY_TYPE
})

public class PayToDetails {
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
private String checkoutAttemptId;

public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
@Deprecated
private String recurringDetailReference;

public static final String JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER = "shopperAccountIdentifier";
private String shopperAccountIdentifier;

public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
private String storedPaymentMethodId;

/**
* **payto**
*/
Expand Down Expand Up @@ -112,6 +121,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) {
}


@Deprecated
public PayToDetails recurringDetailReference(String recurringDetailReference) {
this.recurringDetailReference = recurringDetailReference;
return this;
}

/**
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
* @return recurringDetailReference
* @deprecated
**/
@Deprecated
@ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
@JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getRecurringDetailReference() {
return recurringDetailReference;
}


/**
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
*
* @param recurringDetailReference
*/
@Deprecated
@JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecurringDetailReference(String recurringDetailReference) {
this.recurringDetailReference = recurringDetailReference;
}


public PayToDetails shopperAccountIdentifier(String shopperAccountIdentifier) {
this.shopperAccountIdentifier = shopperAccountIdentifier;
return this;
Expand Down Expand Up @@ -142,6 +185,36 @@ public void setShopperAccountIdentifier(String shopperAccountIdentifier) {
}


public PayToDetails storedPaymentMethodId(String storedPaymentMethodId) {
this.storedPaymentMethodId = storedPaymentMethodId;
return this;
}

/**
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
* @return storedPaymentMethodId
**/
@ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
@JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getStoredPaymentMethodId() {
return storedPaymentMethodId;
}


/**
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
*
* @param storedPaymentMethodId
*/
@JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStoredPaymentMethodId(String storedPaymentMethodId) {
this.storedPaymentMethodId = storedPaymentMethodId;
}


public PayToDetails type(TypeEnum type) {
this.type = type;
return this;
Expand Down Expand Up @@ -185,21 +258,25 @@ public boolean equals(Object o) {
}
PayToDetails payToDetails = (PayToDetails) o;
return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) &&
Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) &&
Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) &&
Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) &&
Objects.equals(this.type, payToDetails.type);
}

@Override
public int hashCode() {
return Objects.hash(checkoutAttemptId, shopperAccountIdentifier, type);
return Objects.hash(checkoutAttemptId, recurringDetailReference, shopperAccountIdentifier, storedPaymentMethodId, type);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PayToDetails {\n");
sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
sb.append(" shopperAccountIdentifier: ").append(toIndentedString(shopperAccountIdentifier)).append("\n");
sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Loading

0 comments on commit 8a2c2f7

Please sign in to comment.