Class CreateOrderRequest


  • public class CreateOrderRequest
    extends Object
    CreateOrderRequest
    • Constructor Detail

      • CreateOrderRequest

        public CreateOrderRequest()
    • Method Detail

      • getAmount

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

        public void setAmount​(Amount amount)
        amount
        Parameters:
        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)
        The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
        Parameters:
        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)
        The merchant account identifier, with which you want to process the order.
        Parameters:
        merchantAccount -
      • getReference

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

        public void setReference​(String reference)
        A custom reference identifying the order.
        Parameters:
        reference -
      • equals

        public boolean equals​(Object o)
        Return true if this CreateOrderRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static CreateOrderRequest fromJson​(String jsonString)
                                           throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CreateOrderRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateOrderRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CreateOrderRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CreateOrderRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException