Package io.voucherify.client.model
Class VouchersListResponseBody
java.lang.Object
io.voucherify.client.model.VouchersListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VouchersListResponseBody
extends Object
Response body schema for **GET** `v1/vouchers`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIdentifies the name of the attribute that contains the array of voucher objects.static enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVouchersItem(VoucherWithCategories vouchersItem) booleanstatic VouchersListResponseBodyCreate an instance of VouchersListResponseBody given an JSON stringIdentifies the name of the attribute that contains the array of voucher objects.The type of the object represented by JSON.getTotal()Returns how many vouchers in the project meet the limits defined by the query parameter definitions.A dictionary that contains an array of vouchers.inthashCode()voidvoidvoidvoidsetVouchers(List<VoucherWithCategories> vouchers) toJson()Convert an instance of VouchersListResponseBody to an JSON stringtoString()vouchers(List<VoucherWithCategories> vouchers)
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_VOUCHERS
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VouchersListResponseBody
public VouchersListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of voucher objects.- Returns:
- dataRef
-
setDataRef
-
vouchers
-
addVouchersItem
-
getVouchers
A dictionary that contains an array of vouchers. Each entry in the array is a separate voucher object.- Returns:
- vouchers
-
setVouchers
-
total
-
getTotal
Returns how many vouchers in the project meet the limits defined by the query parameter definitions.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of VouchersListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VouchersListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to VouchersListResponseBody
-
toJson
Convert an instance of VouchersListResponseBody to an JSON string- Returns:
- JSON string
-