Package io.voucherify.client.model
Class PublicationsCreateRequestBody
java.lang.Object
io.voucherify.client.model.PublicationsCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PublicationsCreateRequestBody
extends Object
PublicationsCreateRequestBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncampaign(CreatePublicationCampaign campaign) booleanCreate an instance of PublicationsCreateRequestBody given an JSON stringGet campaignSpecify the distribution channel.Get customerThe metadata object stores all custom attributes assigned to the publication.The merchant's publication ID if it is different from the Voucherify publication ID.Code of the voucher being published.inthashCode()voidsetCampaign(CreatePublicationCampaign campaign) voidsetChannel(String channel) voidsetCustomer(Customer customer) voidsetMetadata(Object metadata) voidsetSourceId(String sourceId) voidsetVoucher(String voucher) toJson()Convert an instance of PublicationsCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_VOUCHER
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_CHANNEL
- See Also:
-
SERIALIZED_NAME_CAMPAIGN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublicationsCreateRequestBody
public PublicationsCreateRequestBody()
-
-
Method Details
-
voucher
-
getVoucher
Code of the voucher being published.- Returns:
- voucher
-
setVoucher
-
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. If `source_id` is provided only 1 voucher can be published per request.- Returns:
- sourceId
-
setSourceId
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
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
Specify the distribution channel.- Returns:
- channel
-
setChannel
-
campaign
-
getCampaign
Get campaign- Returns:
- campaign
-
setCampaign
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PublicationsCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicationsCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to PublicationsCreateRequestBody
-
toJson
Convert an instance of PublicationsCreateRequestBody to an JSON string- Returns:
- JSON string
-