This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DateFormat { | |
| private static final Map<String, Integer> MONTHS = new Map<String, Integer> { | |
| 'Jan' => 1, 'Feb' => 2, 'Mar' => 3, 'Apr' => 4, 'May' => 5, 'Jun' => 6, | |
| 'Jul' => 7, 'Aug' => 8, 'Sep' => 9, 'Oct' => 10, 'Nov' => 11, 'Dec' => 12 | |
| }; | |
| public static Datetime fromRFC1123(String x) { | |
| String[] dateParts = x.split('[\\s:]'); | |
| Integer year = Integer.valueOf(dateParts[3]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Utility{ | |
| public static String getUrl(){ | |
| return ApexPages.currentPage().getUrl(); | |
| } | |
| public static String getIpAddress(){ | |
| return ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP'); | |
| } | |
| public static String getUserAgent(){ | |
| return ApexPages.currentPage().getHeaders().get('USER-AGENT'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "dto": { | |
| "recurring": { | |
| "amounts": [ | |
| { | |
| "description": "Huge Support", | |
| "amount": 50, | |
| "isEnabled": true | |
| }, | |
| { |