Package io.voucherify.client.model
Class ClientValidationsValidateRequestBodyOptions
java.lang.Object
io.voucherify.client.model.ClientValidationsValidateRequestBodyOptions
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientValidationsValidateRequestBodyOptions
extends Object
Configure parameters returned in the response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets expand -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientValidationsValidateRequestBodyOptions given an JSON stringThe expand array lets you configure the parameters included in the response.inthashCode()voidtoJson()Convert an instance of ClientValidationsValidateRequestBodyOptions to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EXPAND
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClientValidationsValidateRequestBodyOptions
public ClientValidationsValidateRequestBodyOptions()
-
-
Method Details
-
expand
-
addExpandItem
public ClientValidationsValidateRequestBodyOptions addExpandItem(ClientValidationsValidateRequestBodyOptions.ExpandEnum expandItem) -
getExpand
The expand array lets you configure the parameters 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. | | [\"category\"] | - Returns an expanded `categories` object, showing details about the category. |- Returns:
- expand
-
setExpand
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ClientValidationsValidateRequestBodyOptions fromJson(String jsonString) throws IOException Create an instance of ClientValidationsValidateRequestBodyOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientValidationsValidateRequestBodyOptions
- Throws:
IOException- if the JSON string is invalid with respect to ClientValidationsValidateRequestBodyOptions
-
toJson
Convert an instance of ClientValidationsValidateRequestBodyOptions to an JSON string- Returns:
- JSON string
-