Class CheckoutCreateOrderRequest


  • public class CheckoutCreateOrderRequest
    extends Object
    CheckoutCreateOrderRequest
    • Constructor Detail

      • CheckoutCreateOrderRequest

        public CheckoutCreateOrderRequest()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • getExpiresAt

        public String getExpiresAt()
        The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
        Returns:
        expiresAt
      • setExpiresAt

        public void setExpiresAt​(String expiresAt)
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account identifier, with which you want to process the order.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getReference

        public String getReference()
        A custom reference identifying the order.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CheckoutCreateOrderRequest
      • fromJson

        public static CheckoutCreateOrderRequest fromJson​(String jsonString)
                                                   throws IOException
        Create an instance of CheckoutCreateOrderRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CheckoutCreateOrderRequest
        Throws:
        IOException - if the JSON string is invalid with respect to CheckoutCreateOrderRequest
      • toJson

        public String toJson()
        Convert an instance of CheckoutCreateOrderRequest to an JSON string
        Returns:
        JSON string