-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExchangeRatesWrappers.cls
51 lines (43 loc) · 1.7 KB
/
ExchangeRatesWrappers.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/********************************************************************************************************************
* @ClassName : ExchangeRatesWrappers
* @Description : Wrapper class for storing exchange rates related wrappers
********************************************************************************************************************/
public class ExchangeRatesWrappers {
//Wrapper class for Exchange Rates Data Table
public class ExchangeRatesTableWrapper {
@AuraEnabled
public List<ExchangeRatesWrapper> exchangeRates {get;set;}
@AuraEnabled
public List<CurrencyPicklistWrapper> currencyOptions {get; set;}
@AuraEnabled
public String status {get; set;}
@AuraEnabled
public String message {get; set;}
}
//Wrapper class for Exchange Rates Data
public class ExchangeRatesWrapper{
@AuraEnabled
public String baseCurrencyCode {get;set;}
@AuraEnabled
public String targetCurrencyCode {get;set;}
@AuraEnabled
public String rate {get;set;}
public ExchangeRatesWrapper(){
}
public ExchangeRatesWrapper(String baseCurrencyCode, String targetCurrencyCode, String rate){
this.baseCurrencyCode = baseCurrencyCode;
this.targetCurrencyCode = targetCurrencyCode;
this.rate = rate;
}
}
//Wrapper class for Currency Picklist
public class CurrencyPicklistWrapper{
@AuraEnabled
public String code {get; set;}
@AuraEnabled
public Boolean selected {get; set;}
public CurrencyPicklistWrapper(String code){
this.code = code;
}
}
}