Class CustomerSummaryOrders

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CustomerSummaryOrders extends Object
CustomerSummaryOrders
  • Field Details

  • Constructor Details

    • CustomerSummaryOrders

      public CustomerSummaryOrders()
  • Method Details

    • totalAmount

      public CustomerSummaryOrders totalAmount(Integer totalAmount)
    • getTotalAmount

      @Nullable public Integer getTotalAmount()
      The total amount spent by the customer. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(Integer totalAmount)
    • totalCount

      public CustomerSummaryOrders totalCount(Integer totalCount)
    • getTotalCount

      @Nullable public Integer getTotalCount()
      Total number of orders made by the customer.
      Returns:
      totalCount
    • setTotalCount

      public void setTotalCount(Integer totalCount)
    • averageAmount

      public CustomerSummaryOrders averageAmount(Integer averageAmount)
    • getAverageAmount

      @Nullable public Integer getAverageAmount()
      Average amount spent on orders. `total_amount` ÷ `total_count`. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      averageAmount
    • setAverageAmount

      public void setAverageAmount(Integer averageAmount)
    • lastOrderAmount

      public CustomerSummaryOrders lastOrderAmount(Integer lastOrderAmount)
    • getLastOrderAmount

      @Nullable public Integer getLastOrderAmount()
      Amount spent on last order. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      lastOrderAmount
    • setLastOrderAmount

      public void setLastOrderAmount(Integer lastOrderAmount)
    • lastOrderDate

      public CustomerSummaryOrders lastOrderDate(OffsetDateTime lastOrderDate)
    • getLastOrderDate

      @Nullable public OffsetDateTime getLastOrderDate()
      Timestamp representing the date and time of the customer's last order in ISO 8601 format.
      Returns:
      lastOrderDate
    • setLastOrderDate

      public void setLastOrderDate(OffsetDateTime lastOrderDate)
    • 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 CustomerSummaryOrders fromJson(String jsonString) throws IOException
      Create an instance of CustomerSummaryOrders given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CustomerSummaryOrders
      Throws:
      IOException - if the JSON string is invalid with respect to CustomerSummaryOrders
    • toJson

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