Package io.voucherify.client.model
Class LoyaltiesMembersTransfersCreateResponseBodyPublish
java.lang.Object
io.voucherify.client.model.LoyaltiesMembersTransfersCreateResponseBodyPublish
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesMembersTransfersCreateResponseBodyPublish
extends Object
This object stores a summary of publish events: an events counter and an endpoint which can be called to return details of each event. A publication is required for loyalty cards and referral codes. This object gets updated whenever a voucher has been published. Publication means assigning a code to a particular customer. Typically, a publication is made by distributing your codes to your customers, e.g. through Export to MailChimp or publish voucher API method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented is by default list. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntriesItem(String entriesItem) booleanCreate an instance of LoyaltiesMembersTransfersCreateResponseBodyPublish given an JSON stringgetCount()Publication events counter.Get entriesThe 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()voidvoidsetEntries(List<String> entries) voidvoidtoJson()Convert an instance of LoyaltiesMembersTransfersCreateResponseBodyPublish to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_COUNT
- See Also:
-
SERIALIZED_NAME_ENTRIES
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesMembersTransfersCreateResponseBodyPublish
public LoyaltiesMembersTransfersCreateResponseBodyPublish()
-
-
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
-
entries
-
addEntriesItem
-
getEntries
Get entries- Returns:
- entries
-
setEntries
-
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 LoyaltiesMembersTransfersCreateResponseBodyPublish fromJson(String jsonString) throws IOException Create an instance of LoyaltiesMembersTransfersCreateResponseBodyPublish given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesMembersTransfersCreateResponseBodyPublish
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesMembersTransfersCreateResponseBodyPublish
-
toJson
Convert an instance of LoyaltiesMembersTransfersCreateResponseBodyPublish to an JSON string- Returns:
- JSON string
-