Class VoucherTransactionDetailsOrder

java.lang.Object
io.voucherify.client.model.VoucherTransactionDetailsOrder

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherTransactionDetailsOrder extends Object
Contains information about the original order.
  • Field Details

  • Constructor Details

    • VoucherTransactionDetailsOrder

      public VoucherTransactionDetailsOrder()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Unique order ID.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public VoucherTransactionDetailsOrder sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      The merchant's order ID if it is different from the Voucherify order ID. It is really useful in case of integration between multiple systems. It can be an order ID from CRM, database or 3rd party service.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

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

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