Package com.adyen.model.acswebhooks
Class PurchaseInfo
- java.lang.Object
-
- com.adyen.model.acswebhooks.PurchaseInfo
-
public class PurchaseInfo extends Object
PurchaseInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATEstatic StringJSON_PROPERTY_MERCHANT_NAMEstatic StringJSON_PROPERTY_ORIGINAL_AMOUNT
-
Constructor Summary
Constructors Constructor Description PurchaseInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PurchaseInfodate(String date)Date of the purchase.booleanequals(Object o)Return true if this PurchaseInfo object is equal to o.static PurchaseInfofromJson(String jsonString)Create an instance of PurchaseInfo given an JSON stringStringgetDate()Date of the purchase.StringgetMerchantName()Name of the merchant.AmountgetOriginalAmount()originalAmountinthashCode()PurchaseInfomerchantName(String merchantName)Name of the merchant.PurchaseInfooriginalAmount(Amount originalAmount)originalAmountvoidsetDate(String date)Date of the purchase.voidsetMerchantName(String merchantName)Name of the merchant.voidsetOriginalAmount(Amount originalAmount)originalAmountStringtoJson()Convert an instance of PurchaseInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DATE
public static final String JSON_PROPERTY_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_NAME
public static final String JSON_PROPERTY_MERCHANT_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORIGINAL_AMOUNT
public static final String JSON_PROPERTY_ORIGINAL_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
date
public PurchaseInfo date(String date)
Date of the purchase.- Parameters:
date-- Returns:
- the current
PurchaseInfoinstance, allowing for method chaining
-
getDate
public String getDate()
Date of the purchase.- Returns:
- date
-
setDate
public void setDate(String date)
Date of the purchase.- Parameters:
date-
-
merchantName
public PurchaseInfo merchantName(String merchantName)
Name of the merchant.- Parameters:
merchantName-- Returns:
- the current
PurchaseInfoinstance, allowing for method chaining
-
getMerchantName
public String getMerchantName()
Name of the merchant.- Returns:
- merchantName
-
setMerchantName
public void setMerchantName(String merchantName)
Name of the merchant.- Parameters:
merchantName-
-
originalAmount
public PurchaseInfo originalAmount(Amount originalAmount)
originalAmount- Parameters:
originalAmount-- Returns:
- the current
PurchaseInfoinstance, allowing for method chaining
-
getOriginalAmount
public Amount getOriginalAmount()
originalAmount- Returns:
- originalAmount
-
setOriginalAmount
public void setOriginalAmount(Amount originalAmount)
originalAmount- Parameters:
originalAmount-
-
equals
public boolean equals(Object o)
Return true if this PurchaseInfo object is equal to o.
-
fromJson
public static PurchaseInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PurchaseInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PurchaseInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PurchaseInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PurchaseInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-