public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
calculateSessionValidity() |
static Amount |
createAmount(BigDecimal amount,
String currency)
Returns an Amount struct to use on requests
|
static Amount |
createAmount(String amount,
String currency)
Returns an Amount struct to use on requests
|
static int |
getDecimalPlaces(String currency) |
static <T> String |
implode(String glue,
List<T> list) |
static String |
toIndentedString(Object o)
Convert the given object to string with each line indented by 4 spaces
(except the first line).
|
public static Amount createAmount(String amount, String currency)
amount - currency - public static Amount createAmount(BigDecimal amount, String currency)
amount - currency - public static int getDecimalPlaces(String currency)
public static String toIndentedString(Object o)
public static String calculateSessionValidity()
Copyright © 2017. All rights reserved.