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 customerGet metadataThe 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
-
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
-
setCustomer
-
metadata
-
getMetadata
-
setMetadata
-
channel
-
getChannel
-
setChannel
-
campaign
-
getCampaign
-
setCampaign
-
equals
-
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
-