Package io.voucherify.client.model
Class PublicationsCreateResponseBody
java.lang.Object
io.voucherify.client.model.PublicationsCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PublicationsCreateResponseBody
extends Object
PublicationsCreateResponseBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the publication was originated.static classstatic enumThe type of the object represented by the JSON.static enumStatus of the publication attempt. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVouchersIdItem(String vouchersIdItem) addVouchersItem(String vouchersItem) createdAt(OffsetDateTime createdAt) customer(CustomerWithSummaryLoyaltyReferrals customer) customerId(String customerId) booleanCreate an instance of PublicationsCreateResponseBody given an JSON stringHow the publication was originated.Timestamp representing the date and time when the publication was created.Get customerUnique customer ID of the customer receiving the publication.getId()Unique publication ID, assigned by Voucherify.The metadata object stores all custom attributes assigned to the publication.The type of the object represented by the JSON.Status of the publication attempt.The merchant's publication ID if it is different from the Voucherify publication ID.Customer's `source_id`.Get voucherContains the unique voucher codes that was assigned by Voucherify.Contains the unique internal voucher ID that was assigned by Voucherify.inthashCode()voidvoidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetCustomerId(String customerId) voidvoidsetMetadata(Object metadata) voidvoidvoidsetSourceId(String sourceId) voidsetTrackingId(String trackingId) voidsetVoucher(Voucher voucher) voidsetVouchers(List<String> vouchers) voidsetVouchersId(List<String> vouchersId) toJson()Convert an instance of PublicationsCreateResponseBody to an JSON stringtoString()trackingId(String trackingId) vouchersId(List<String> vouchersId)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CUSTOMER_ID
- See Also:
-
SERIALIZED_NAME_TRACKING_ID
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_CHANNEL
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_VOUCHERS_ID
- See Also:
-
SERIALIZED_NAME_VOUCHER
- See Also:
-
SERIALIZED_NAME_VOUCHERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublicationsCreateResponseBody
public PublicationsCreateResponseBody()
-
-
Method Details
-
id
-
getId
Unique publication ID, assigned by Voucherify.- Returns:
- id
-
setId
-
_object
-
getObject
The type of the object represented by the JSON. This object stores information about the `publication`.- Returns:
- _object
-
setObject
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the publication was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
customerId
-
getCustomerId
Unique customer ID of the customer receiving the publication.- Returns:
- customerId
-
setCustomerId
-
trackingId
-
getTrackingId
Customer's `source_id`.- Returns:
- trackingId
-
setTrackingId
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the publication. A set of key/value pairs that you can attach to a publication object. It can be useful for storing additional information about the publication in a structured format.- Returns:
- metadata
-
setMetadata
-
channel
-
getChannel
How the publication was originated. It can be your own custom channel or an example value provided here.- Returns:
- channel
-
setChannel
-
sourceId
-
getSourceId
The merchant's publication ID if it is different from the Voucherify publication ID. It's an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service.- Returns:
- sourceId
-
setSourceId
-
result
-
getResult
Status of the publication attempt.- Returns:
- result
-
setResult
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
vouchersId
-
addVouchersIdItem
-
getVouchersId
Contains the unique internal voucher ID that was assigned by Voucherify.- Returns:
- vouchersId
-
setVouchersId
-
voucher
-
getVoucher
Get voucher- Returns:
- voucher
-
setVoucher
-
vouchers
-
addVouchersItem
-
getVouchers
Contains the unique voucher codes that was assigned by Voucherify.- Returns:
- vouchers
-
setVouchers
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PublicationsCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicationsCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to PublicationsCreateResponseBody
-
toJson
Convert an instance of PublicationsCreateResponseBody to an JSON string- Returns:
- JSON string
-