Warning

public final class Warning

There were some errors or events during the transaction, but the API has still returned a response. Container for all warnings.

Parameters

code

The code of a warning.

description

A detail information of what happened.

originalPrice
newPrice
changedAmount
changedPercentage

The changed percentage. In the sample 2.97 means the changed percentage is 2.97%.

Constructors

Link copied to clipboard
public Warning Warning(String code, String description, Money originalPrice, Money newPrice, Money changedAmount, String changedPercentage)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final Money changedAmount
Link copied to clipboard
@Valid()
private final String changedPercentage
Link copied to clipboard
@Valid()
private final String code
Link copied to clipboard
@Valid()
private final String description
Link copied to clipboard
@Valid()
private final Money newPrice
Link copied to clipboard
@Valid()
private final Money originalPrice

Functions

Link copied to clipboard
public final static Warning.Builder builder()
Link copied to clipboard
public final Money getChangedAmount()
Link copied to clipboard
Link copied to clipboard
public final String getCode()
Link copied to clipboard
public final String getDescription()
Link copied to clipboard
public final Money getNewPrice()
Link copied to clipboard
public final Money getOriginalPrice()
Link copied to clipboard
public final Warning.Builder toBuilder()