Package io.voucherify.client.model
Class LoyaltyMemberPublish
java.lang.Object
io.voucherify.client.model.LoyaltyMemberPublish
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyMemberPublish
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](OpenAPI.json/paths/~1publications/post) -->[publish voucher](ref:create-publication) API method. <!-- title: My Table Title --> | Required | Optional | | -------- | :------: | | `type`:`LOYALTY_CARD` | `type`:`DISCOUNT_VOUCHER` | | `is_referral_code`:`true` | `type`:`GIFT_VOUCHER` |
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LoyaltyMemberPublishCreate an instance of LoyaltyMemberPublish given an JSON stringgetCount()Publication event 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 LoyaltyMemberPublish 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
-
LoyaltyMemberPublish
public LoyaltyMemberPublish()
-
-
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 event 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
Create an instance of LoyaltyMemberPublish given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyMemberPublish
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyMemberPublish
-
toJson
Convert an instance of LoyaltyMemberPublish to an JSON string- Returns:
- JSON string
-