Class CardOrderItem


  • public class CardOrderItem
    extends Object
    CardOrderItem
    • Constructor Detail

      • CardOrderItem

        public CardOrderItem()
    • Method Detail

      • getBalancePlatform

        public String getBalancePlatform()
        The unique identifier of the balance platform.
        Returns:
        balancePlatform
      • setBalancePlatform

        public void setBalancePlatform​(String balancePlatform)
      • cardOrderItemReference

        public CardOrderItem cardOrderItemReference​(String cardOrderItemReference)
      • getCardOrderItemReference

        public String getCardOrderItemReference()
        The unique identifier of the card order.
        Returns:
        cardOrderItemReference
      • setCardOrderItemReference

        public void setCardOrderItemReference​(String cardOrderItemReference)
      • getCreationDate

        public OffsetDateTime getCreationDate()
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(OffsetDateTime creationDate)
      • getId

        public String getId()
        The ID of the resource.
        Returns:
        id
      • setId

        public void setId​(String id)
      • paymentInstrumentReference

        public CardOrderItem paymentInstrumentReference​(String paymentInstrumentReference)
      • getPaymentInstrumentReference

        public String getPaymentInstrumentReference()
        The unique identifier of the payment instrument related to the card order.
        Returns:
        paymentInstrumentReference
      • setPaymentInstrumentReference

        public void setPaymentInstrumentReference​(String paymentInstrumentReference)
      • getShippingMethod

        public String getShippingMethod()
        Shipping method used to deliver the card or the PIN.
        Returns:
        shippingMethod
      • setShippingMethod

        public void setShippingMethod​(String shippingMethod)
      • 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 CardOrderItem
      • fromJson

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

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