Package io.voucherify.client.model
Class LoyaltiesMembersCreateRequestBody
java.lang.Object
io.voucherify.client.model.LoyaltiesMembersCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesMembersCreateRequestBody
extends Object
Request body schema for assigning a loyalty card to a customer using **POST** `/loyalties/{campaignId}/members`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesMembersCreateRequestBody given an JSON stringSpecify 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 voucher being published.inthashCode()voidsetChannel(String channel) voidsetCustomer(Customer customer) voidsetMetadata(Object metadata) voidsetSourceId(String sourceId) voidsetVoucher(String voucher) toJson()Convert an instance of LoyaltiesMembersCreateRequestBody 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesMembersCreateRequestBody
public LoyaltiesMembersCreateRequestBody()
-
-
Method Details
-
voucher
-
getVoucher
Code of 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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltiesMembersCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesMembersCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesMembersCreateRequestBody
-
toJson
Convert an instance of LoyaltiesMembersCreateRequestBody to an JSON string- Returns:
- JSON string
-