Package io.voucherify.client.model
Class ValidationsValidateRequestBodyOptions
java.lang.Object
io.voucherify.client.model.ValidationsValidateRequestBodyOptions
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationsValidateRequestBodyOptions
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 ValidationsValidateRequestBodyOptions given an JSON stringThe expand array lets you configure the parameters included in the response.inthashCode()voidtoJson()Convert an instance of ValidationsValidateRequestBodyOptions to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_EXPAND
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidationsValidateRequestBodyOptions
public ValidationsValidateRequestBodyOptions()
-
-
Method Details
-
expand
public ValidationsValidateRequestBodyOptions expand(List<ValidationsValidateRequestBodyOptions.ExpandEnum> expand) -
addExpandItem
public ValidationsValidateRequestBodyOptions addExpandItem(ValidationsValidateRequestBodyOptions.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
Create an instance of ValidationsValidateRequestBodyOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationsValidateRequestBodyOptions
- Throws:
IOException- if the JSON string is invalid with respect to ValidationsValidateRequestBodyOptions
-
toJson
Convert an instance of ValidationsValidateRequestBodyOptions to an JSON string- Returns:
- JSON string
-