com.anywherecommerce.android.sdk.util
Class TransactionUtility
-
java.lang.Object
-
com.anywherecommerce.android.sdk.util.TransactionUtility
-
public abstract class <span class="typeNameLabel">TransactionUtility</span> extends java.lang.Object
Constructor Summary
Constructor and Description`<span class="memberNameLink">
Method Summary
Modifier and TypeMethod and Description`static double````
<span class="memberNameLink">
calculatePercentageAmount(double amount,
double percentage,
int decimalPlaces)
``
static java.lang.String````
calculatePercentageAmount(java.lang.String amount,
java.lang.String percentage,
int decimalPlaces)
` `static java.math.BigDecimal
ConvertToDecimal(java.lang.String amt)
static double``
ConvertToDouble(java.lang.String amt)
static double````
ConvertToDouble(java.lang.String amt,
int decimalPlaces)
``
static java.lang.Object````
deserialize(java.lang.String[][] values,
java.lang.Class transactionClass)
` `static java.lang.String
formatMaskedPANForDisplay(java.lang.String maskedPAN)
static java.lang.String``
formatPercentageForDisplay(java.lang.String rate)
static java.lang.String``
generateTransactionIDForPropayTerminal()
static java.lang.String``
getLastFourDigits(java.lang.String cardNum)
static java.lang.String``
getNewTransactionID()
static java.lang.String````
RoundAmount(java.lang.Double amount,
int decimalPlaces)
` `static java.lang.String[][]
serialize(java.lang.Object transaction)
static java.util.Date``
stringDateToDateObject(java.lang.String date)`
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Constructor Detail
TransactionUtility
`public TransactionUtility()`
Method Detail
getNewTransactionID
`public static java.lang.String getNewTransactionID()`
generateTransactionIDForPropayTerminal
`public static java.lang.String generateTransactionIDForPropayTerminal()`
formatMaskedPANForDisplay
`public static java.lang.String formatMaskedPANForDisplay(java.lang.String maskedPAN)`
getLastFourDigits
`public static java.lang.String getLastFourDigits(java.lang.String cardNum)`
ConvertToDouble
`public static double ConvertToDouble(java.lang.String amt)`
ConvertToDouble
```
public static double ConvertToDouble(java.lang.String amt,
int decimalPlaces)
```
ConvertToDecimal
`public static java.math.BigDecimal ConvertToDecimal(java.lang.String amt)`
RoundAmount
```
public static java.lang.String RoundAmount(java.lang.Double amount,
int decimalPlaces)
```
calculatePercentageAmount
```
public static java.lang.String calculatePercentageAmount(java.lang.String amount,
java.lang.String percentage,
int decimalPlaces)
```
calculatePercentageAmount
```
public static double calculatePercentageAmount(double amount,
double percentage,
int decimalPlaces)
```
formatPercentageForDisplay
`public static java.lang.String formatPercentageForDisplay(java.lang.String rate)`
serialize
`public static java.lang.String[][] serialize(java.lang.Object transaction)`
deserialize
```
public static java.lang.Object deserialize(java.lang.String[][] values,
java.lang.Class transactionClass)
```
stringDateToDateObject
`public static java.util.Date stringDateToDateObject(java.lang.String date)`