Newer Version Available
PaymentLineItem Class
Namespace
Example
1public with sharing class MessagingPaymentLineItems {
2
3 @InvocableMethod
4 public static List<List<RichMessaging.PaymentLineItem>> getLineItems() {
5 Double amount = 0.25;
6 List<List<RichMessaging.PaymentLineItem>> result = new List<List<RichMessaging.PaymentLineItem>>();
7 RichMessaging.PaymentLineItem pizza = new RichMessaging.PaymentLineItem('pizza', amount);
8 RichMessaging.PaymentLineItem pasta = new RichMessaging.PaymentLineItem('pasta', amount);
9 pizza.statusValue = RichMessaging.PaymentItemStatus.FinalCost;
10 pasta.statusValue = RichMessaging.PaymentItemStatus.FinalCost;
11
12 List<RichMessaging.PaymentLineItem> options = new List<RichMessaging.PaymentLineItem>{
13 pizza, pasta
14 };
15 result.add(options);
16 return result;
17 }
18
19}PaymentLineItem Constructors
The following are constructors for PaymentLineItem.
PaymentLineItem(label, amount, timing)
Signature
public PaymentLineItem(String label, Double amount, RichMessaging.AbstractTiming timing)
Parameters
- label
- Type: String
- The label of the payment line item.
- amount
- Type: Double
- The amount of the payment line item.
- timing
- Type: RichMessaging.AbstractTiming
- The timing of the payment line item.
PaymentLineItem Properties
The following are properties for PaymentLineItem.
amount
Signature
public Double amount {get; set;}
Property Value
Type: Double
amountValue
Signature
public Double amountValue {get; set;}
Property Value
Type: Double
automaticReloadPaymentThresholdAmount
Signature
public Double automaticReloadPaymentThresholdAmount {get; set;}
Property Value
Type: Double
automaticReloadPaymentThresholdAmountValue
Signature
public Double automaticReloadPaymentThresholdAmountValue {get; set;}
Property Value
Type: Double
label
Signature
public String label {get; set;}
Property Value
Type: String
labelValue
Signature
public String labelValue {get; set;}
Property Value
Type: String
lineItemType
Signature
public String lineItemType {get; set;}
Property Value
Type: String
status
Signature
public String status {get; set;}
Property Value
Type: String
statusValue
Signature
public RichMessaging.PaymentItemStatus statusValue {get; set;}
Property Value
timing
Signature
public RichMessaging.AbstractTiming timing {get; set;}