Package io.voucherify.client.model
Class PublicationsListResponseBodyPublicationsItem
java.lang.Object
io.voucherify.client.model.PublicationsListResponseBodyPublicationsItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PublicationsListResponseBodyPublicationsItem
extends Object
PublicationsListResponseBodyPublicationsItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSON.static enumGets or Sets result -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVouchersIdItem(String vouchersIdItem) addVouchersItem(String vouchersItem) createdAt(OffsetDateTime createdAt) customer(CustomerWithSummaryLoyaltyReferrals customer) customerId(String customerId) booleanfailureCode(String failureCode) failureMessage(String failureMessage) Create an instance of PublicationsListResponseBodyPublicationsItem 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.Generic reason as to why the create publication operation failed.This parameter will provide more expanded reason as to why the create publication operation failed.getId()Unique publication ID, assigned by Voucherify.Get metadataThe type of the object represented by the JSON.Get resultThe merchant's publication ID if it is different from the Voucherify publication ID.Customer's `source_id`.Get voucherContains the voucher IDs that was assigned by Voucherify.Contains the unique internal voucher IDs that was assigned by Voucherify.inthashCode()voidsetChannel(String channel) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetCustomerId(String customerId) voidsetFailureCode(String failureCode) voidsetFailureMessage(String failureMessage) voidvoidvoidvoidvoidsetSourceId(String sourceId) voidsetTrackingId(String trackingId) voidsetVoucher(ListPublicationsItemVoucher voucher) voidsetVouchers(List<String> vouchers) voidsetVouchersId(List<String> vouchersId) toJson()Convert an instance of PublicationsListResponseBodyPublicationsItem to an JSON stringtoString()trackingId(String trackingId) voucher(ListPublicationsItemVoucher voucher) 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_CUSTOMER
- See Also:
-
SERIALIZED_NAME_VOUCHERS
- See Also:
-
SERIALIZED_NAME_VOUCHERS_ID
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_VOUCHER
- See Also:
-
SERIALIZED_NAME_FAILURE_CODE
- See Also:
-
SERIALIZED_NAME_FAILURE_MESSAGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublicationsListResponseBodyPublicationsItem
public PublicationsListResponseBodyPublicationsItem()
-
-
Method Details
-
id
-
getId
Unique publication ID, assigned by Voucherify.- Returns:
- id
-
setId
-
_object
public PublicationsListResponseBodyPublicationsItem _object(PublicationsListResponseBodyPublicationsItem.ObjectEnum _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
public PublicationsListResponseBodyPublicationsItem metadata(PublicationsListResponseBodyPublicationsItemMetadata metadata) -
getMetadata
Get metadata- 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
-
customer
public PublicationsListResponseBodyPublicationsItem customer(CustomerWithSummaryLoyaltyReferrals customer) -
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
vouchers
-
addVouchersItem
-
getVouchers
Contains the voucher IDs that was assigned by Voucherify. and Contains the unique voucher codes that was assigned by Voucherify.- Returns:
- vouchers
-
setVouchers
-
vouchersId
-
addVouchersIdItem
-
getVouchersId
Contains the unique internal voucher IDs that was assigned by Voucherify.- Returns:
- vouchersId
-
setVouchersId
-
result
-
getResult
Get result- Returns:
- result
-
setResult
-
voucher
-
getVoucher
Get voucher- Returns:
- voucher
-
setVoucher
-
failureCode
-
getFailureCode
Generic reason as to why the create publication operation failed.- Returns:
- failureCode
-
setFailureCode
-
failureMessage
-
getFailureMessage
This parameter will provide more expanded reason as to why the create publication operation failed.- Returns:
- failureMessage
-
setFailureMessage
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static PublicationsListResponseBodyPublicationsItem fromJson(String jsonString) throws IOException Create an instance of PublicationsListResponseBodyPublicationsItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicationsListResponseBodyPublicationsItem
- Throws:
IOException- if the JSON string is invalid with respect to PublicationsListResponseBodyPublicationsItem
-
toJson
Convert an instance of PublicationsListResponseBodyPublicationsItem to an JSON string- Returns:
- JSON string
-