Class RedemptionsRedeemRequestBodyOptions

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

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

  • Constructor Details

    • RedemptionsRedeemRequestBodyOptions

      public RedemptionsRedeemRequestBodyOptions()
  • 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

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

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