zUtil Class
The zUtil
class is a collection of common utility methods in Order Builder.
zUtil Class Methods
The zUtil
class includes the following global methods.
Method Signature | Description |
---|---|
zUtil () | Constructs an instance of zUtil class. |
static Decimal getDeltaMonths | Returns the number of months between getMonths(newStartDate, endDate) and getMonths(oldStartDate, endDate) . |
static Decimal getMonths | Returns the number of months between the startDate and the endDate . |
static String getZuoraDate | Returns the value of For example, if the Salesforce user has a time zone offset of +8, |
static String getZuoraDate | Returns the value of pDateTime as a string in the format, "yyyy-MM-ddTHH:mm:ssZ" where "Z" is the offset of the user's time zone. |
static String getZuoraDateOnly | Returns the value of pDate as a string in the format, "yyyy-MM-dd". |
| Returns the value of pDateTime as a a string in the format, "yyyy-MM-dd". |
static String hidePassword | Masks a plain-text password. Any sub-string that matches "<password>.{0,}</password>" is replaced with "<password>******</password>". |
static Boolean isMultiCurrency | Returns true if the organization is a multi-currency organization. |
static Boolean isNumber | Returns true if the value is an integer or a float. |