Class ClientRedemptionsRedeemRequestBodyOptions

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ClientRedemptionsRedeemRequestBodyOptions extends Object
Configure parameters returned in the response.
  • Field Details

  • Constructor Details

    • ClientRedemptionsRedeemRequestBodyOptions

      public ClientRedemptionsRedeemRequestBodyOptions()
  • Method Details

    • expand

    • addExpandItem

    • getExpand

      Expand array lets you configure params included in the response. Depending on the strings included in the array, the response will contain different details. | **Expand Option** | **Response Body** | |:---|:---| | [\"order\"] | - Same response as fallback response (without an options object).<br>- Order data with calculated discounts are listed in each child redeemable object.<br>- Metadata not included for each discount type. | | [\"redeemable\"] | Expands redeemable objects by including `metadata` for each discount type. | | [\"order\", \"redeemable\"] | - Order data with calculated discounts are listed in each child redeemable object.<br>- Includes `metadata` for each discount type. | | [\"redeemable\", \"redemption\", \"category\"] | - Returns each discount type's `metadata` in each child redemption object.<br>- Returns redemption object `metadata`.<br>- Returns an expanded `categories` object, showing details about the category. |
      Returns:
      expand
    • setExpand

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

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