Package io.voucherify.client.model
Class CampaignsVouchersCreateCombinedResponseBodyPublish
java.lang.Object
io.voucherify.client.model.CampaignsVouchersCreateCombinedResponseBodyPublish
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignsVouchersCreateCombinedResponseBodyPublish
extends Object
Stores a summary of publication events: an event counter and endpoint to return details of each event. Publication is an assignment of a code to a customer, e.g. through a distribution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of CampaignsVouchersCreateCombinedResponseBodyPublish given an JSON stringgetCount()Publication events counter.The type of the object represented is by default `list`.getUrl()The endpoint where this list of publications can be accessed using a **GET** method.inthashCode()voidvoidvoidtoJson()Convert an instance of CampaignsVouchersCreateCombinedResponseBodyPublish to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_COUNT
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CampaignsVouchersCreateCombinedResponseBodyPublish
public CampaignsVouchersCreateCombinedResponseBodyPublish()
-
-
Method Details
-
_object
-
getObject
The type of the object represented is by default `list`. To get this list, you need to make a call to the endpoint returned in the `url` attribute.- Returns:
- _object
-
setObject
-
count
-
getCount
Publication events counter.- Returns:
- count
-
setCount
-
url
-
getUrl
The endpoint where this list of publications can be accessed using a **GET** method. `/v1/vouchers/{voucher_code}/publications`- Returns:
- url
-
setUrl
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static CampaignsVouchersCreateCombinedResponseBodyPublish fromJson(String jsonString) throws IOException Create an instance of CampaignsVouchersCreateCombinedResponseBodyPublish given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CampaignsVouchersCreateCombinedResponseBodyPublish
- Throws:
IOException- if the JSON string is invalid with respect to CampaignsVouchersCreateCombinedResponseBodyPublish
-
toJson
Convert an instance of CampaignsVouchersCreateCombinedResponseBodyPublish to an JSON string- Returns:
- JSON string
-