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

/**
* The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/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).
* 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 @@ -58,10 +60,12 @@ public Amount currency(String currency) {

/**
* The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/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).
* 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 @@ -71,10 +75,12 @@ public String getCurrency() {

/**
* The three-character [ISO currency
* code](https://docs.adyen.com/development-resources/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).
* 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 @@ -84,11 +90,11 @@ public void setCurrency(String currency) {
}

/**
* The amount of the transaction, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes).
* 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
* units](https://docs.adyen.com/development-resources/currency-codes).
* @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
*/
public Amount value(Long value) {
Expand All @@ -98,11 +104,11 @@ public Amount value(Long value) {
}

/**
* The amount of the transaction, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes).
* 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
* units](https://docs.adyen.com/development-resources/currency-codes).
* @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)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -111,11 +117,11 @@ public Long getValue() {
}

/**
* The amount of the transaction, in [minor
* units](https://docs.adyen.com/development-resources/currency-codes).
* 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
* units](https://docs.adyen.com/development-resources/currency-codes).
* @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)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/adyen/CheckoutTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ public void testForwardCardDetails() throws Exception {

CheckoutForwardResponse response = recurringApi.forward(checkoutForwardRequest);

assertNull(response.getStoredPaymentMethodId()); // card is not tokenized
assertNull(response.getStoredPaymentMethodId()); // card is not tokenized
assertNotNull(response.getResponse());
assertEquals(200, (int) response.getResponse().getStatus());
assertTrue(response.getResponse().getBody().contains("PAYMENT_METHOD_ID"));
Expand Down