Class OrderSummary

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public class OrderSummary
     implements Parcelable
                        

    Class to configure order summary screen content

    • Constructor Detail

      • OrderSummary

        OrderSummary(LinkedHashMap<String, Double> orderItems, Double orderTotal, String paymentDetails, String paymentBrand)
        Default constructor for creating OrderSummary object
        Parameters:
        orderItems - order items with localized labels and amount, e.g.
        orderTotal - total amount of the order, e.g.
        paymentDetails - payment method details, e.g.
        paymentBrand - payment brand constant
      • OrderSummary

        OrderSummary(LinkedHashMap<String, Double> orderItems, Double orderTotal, PaymentData googlePaymentData)
        Constructor for creating OrderSummary object from Google Pay PaymentData response object
        Parameters:
        orderItems - order items with localized labels and amount, e.g.
        orderTotal - total amount of the order, e.g.
        googlePaymentData - PaymentData response object