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
30 changes: 18 additions & 12 deletions src/main/java/com/adyen/model/configurationwebhooks/Amount.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ public Amount() {}

/**
* The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the
* amount.
*
* @param currency The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the
* amount.
* @return the current {@code Amount} instance, allowing for method chaining
*/
public Amount currency(String currency) {
Expand All @@ -43,10 +45,12 @@ public Amount currency(String currency) {

/**
* The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the
* amount.
*
* @return currency The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the
* amount.
*/
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -56,10 +60,12 @@ public String getCurrency() {

/**
* The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the
* amount.
*
* @param currency The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
* code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the
* amount.
*/
@JsonProperty(JSON_PROPERTY_CURRENCY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -68,10 +74,10 @@ public void setCurrency(String currency) {
}

/**
* The amount of the transaction, in [minor
* The numeric value of the amount, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*
* @param value The amount of the transaction, in [minor
* @param value The numeric value of the amount, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
* @return the current {@code Amount} instance, allowing for method chaining
*/
Expand All @@ -81,10 +87,10 @@ public Amount value(Long value) {
}

/**
* The amount of the transaction, in [minor
* The numeric value of the amount, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*
* @return value The amount of the transaction, in [minor
* @return value The numeric value of the amount, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*/
@JsonProperty(JSON_PROPERTY_VALUE)
Expand All @@ -94,10 +100,10 @@ public Long getValue() {
}

/**
* The amount of the transaction, in [minor
* The numeric value of the amount, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*
* @param value The amount of the transaction, in [minor
* @param value The numeric value of the amount, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*/
@JsonProperty(JSON_PROPERTY_VALUE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
BulkAddress.JSON_PROPERTY_LINE2,
BulkAddress.JSON_PROPERTY_LINE3,
BulkAddress.JSON_PROPERTY_MOBILE,
BulkAddress.JSON_PROPERTY_NAME,
BulkAddress.JSON_PROPERTY_POSTAL_CODE,
BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE,
BulkAddress.JSON_PROPERTY_STREET
Expand Down Expand Up @@ -60,6 +61,9 @@ public class BulkAddress {
public static final String JSON_PROPERTY_MOBILE = "mobile";
private String mobile;

public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode";
private String postalCode;

Expand Down Expand Up @@ -377,6 +381,39 @@ public void setMobile(String mobile) {
this.mobile = mobile;
}

/**
* The recipient’s name (person or contact), for example ‘John Doe’.
*
* @param name The recipient’s name (person or contact), for example ‘John Doe’.
* @return the current {@code BulkAddress} instance, allowing for method chaining
*/
public BulkAddress name(String name) {
this.name = name;
return this;
}

/**
* The recipient’s name (person or contact), for example ‘John Doe’.
*
* @return name The recipient’s name (person or contact), for example ‘John Doe’.
*/
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}

/**
* The recipient’s name (person or contact), for example ‘John Doe’.
*
* @param name The recipient’s name (person or contact), for example ‘John Doe’.
*/
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}

/**
* The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all
* other countries.
Expand Down Expand Up @@ -507,6 +544,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.line2, bulkAddress.line2)
&& Objects.equals(this.line3, bulkAddress.line3)
&& Objects.equals(this.mobile, bulkAddress.mobile)
&& Objects.equals(this.name, bulkAddress.name)
&& Objects.equals(this.postalCode, bulkAddress.postalCode)
&& Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince)
&& Objects.equals(this.street, bulkAddress.street);
Expand All @@ -524,6 +562,7 @@ public int hashCode() {
line2,
line3,
mobile,
name,
postalCode,
stateOrProvince,
street);
Expand All @@ -542,6 +581,7 @@ public String toString() {
sb.append(" line2: ").append(toIndentedString(line2)).append("\n");
sb.append(" line3: ").append(toIndentedString(line3)).append("\n");
sb.append(" mobile: ").append(toIndentedString(mobile)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" stateOrProvince: ").append(toIndentedString(stateOrProvince)).append("\n");
sb.append(" street: ").append(toIndentedString(street)).append("\n");
Expand Down
Loading