Package com.adyen.model.transfers
Class ExecutionDate
- java.lang.Object
-
- com.adyen.model.transfers.ExecutionDate
-
public class ExecutionDate extends Object
ExecutionDate
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATEstatic StringJSON_PROPERTY_TIMEZONE
-
Constructor Summary
Constructors Constructor Description ExecutionDate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionDatedate(LocalDate date)The date when the transfer will be processed.booleanequals(Object o)Return true if this ExecutionDate object is equal to o.static ExecutionDatefromJson(String jsonString)Create an instance of ExecutionDate given an JSON stringLocalDategetDate()The date when the transfer will be processed.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetTimezone()The timezone that applies to the execution date.inthashCode()ExecutionDateincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetDate(LocalDate date)The date when the transfer will be processed.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTimezone(String timezone)The timezone that applies to the execution date.ExecutionDatetimezone(String timezone)The timezone that applies to the execution date.StringtoJson()Convert an instance of ExecutionDate to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DATE
public static final String JSON_PROPERTY_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMEZONE
public static final String JSON_PROPERTY_TIMEZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
date
public ExecutionDate date(LocalDate date)
The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31- Parameters:
date- The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31- Returns:
- the current
ExecutionDateinstance, allowing for method chaining
-
getDate
public LocalDate getDate()
The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31- Returns:
- date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
-
setDate
public void setDate(LocalDate date)
The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31- Parameters:
date- The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
-
timezone
public ExecutionDate timezone(String timezone)
The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.- Parameters:
timezone- The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.- Returns:
- the current
ExecutionDateinstance, allowing for method chaining
-
getTimezone
public String getTimezone()
The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.- Returns:
- timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
-
setTimezone
public void setTimezone(String timezone)
The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.- Parameters:
timezone- The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
-
includeNullValues
public ExecutionDate includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ExecutionDate object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static ExecutionDate fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ExecutionDate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExecutionDate
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ExecutionDate
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ExecutionDate to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-