Package io.voucherify.client.model
Class LoyaltiesEarningRulesDisableResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesDisableResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesDisableResponseBody
extends Object
Response body schema for **POST** `v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/disable`
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON.static enumGets or Sets validityDayOfWeek -
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 Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidityDayOfWeekItem(LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum validityDayOfWeekItem) automationId(String automationId) createdAt(OffsetDateTime createdAt) booleanexpirationDate(String expirationDate) Create an instance of LoyaltiesEarningRulesDisableResponseBody given an JSON stringA flag to toggle the earning rule on or off.For internal use by Voucherify.Timestamp representing the date and time when the earning rule was created.Get customEventgetEvent()Get eventExpiration date defines when the earning rule expires.getId()Assigned by the Voucherify API, identifies the earning rule object.Get loyaltyGet loyaltyTierThe metadata object stores all custom attributes assigned to the earning rule.The type of the object represented by JSON.Get segmentGet sourceStart date defines when the earning rule starts to be active.Timestamp representing the date and time when the earning rule was last updated in ISO 8601 format.Integer array corresponding to the particular days of the week in which the voucher is valid.Get validityHoursGet validityTimeframeinthashCode()voidvoidsetAutomationId(String automationId) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetExpirationDate(String expirationDate) voidvoidvoidvoidsetMetadata(Object metadata) voidvoidvoidvoidsetStartDate(String startDate) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetValidityDayOfWeek(List<LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) voidsetValidityHours(ValidityHours validityHours) voidsetValidityTimeframe(ValidityTimeframe validityTimeframe) toJson()Convert an instance of LoyaltiesEarningRulesDisableResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) validityDayOfWeek(List<LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) validityHours(ValidityHours validityHours) validityTimeframe(ValidityTimeframe validityTimeframe)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_LOYALTY
- See Also:
-
SERIALIZED_NAME_EVENT
- See Also:
-
SERIALIZED_NAME_CUSTOM_EVENT
- See Also:
-
SERIALIZED_NAME_SEGMENT
- See Also:
-
SERIALIZED_NAME_LOYALTY_TIER
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_AUTOMATION_ID
- See Also:
-
SERIALIZED_NAME_START_DATE
- See Also:
-
SERIALIZED_NAME_EXPIRATION_DATE
- See Also:
-
SERIALIZED_NAME_VALIDITY_TIMEFRAME
- See Also:
-
SERIALIZED_NAME_VALIDITY_DAY_OF_WEEK
- See Also:
-
SERIALIZED_NAME_VALIDITY_HOURS
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesDisableResponseBody
public LoyaltiesEarningRulesDisableResponseBody()
-
-
Method Details
-
id
-
getId
Assigned by the Voucherify API, identifies the earning rule object.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the earning rule was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
loyalty
public LoyaltiesEarningRulesDisableResponseBody loyalty(LoyaltiesEarningRulesDisableResponseBodyLoyalty loyalty) -
getLoyalty
Get loyalty- Returns:
- loyalty
-
setLoyalty
-
event
-
getEvent
Get event- Returns:
- event
-
setEvent
-
customEvent
public LoyaltiesEarningRulesDisableResponseBody customEvent(LoyaltiesEarningRulesDisableResponseBodyCustomEvent customEvent) -
getCustomEvent
Get customEvent- Returns:
- customEvent
-
setCustomEvent
-
segment
public LoyaltiesEarningRulesDisableResponseBody segment(LoyaltiesEarningRulesDisableResponseBodySegment segment) -
getSegment
Get segment- Returns:
- segment
-
setSegment
-
loyaltyTier
public LoyaltiesEarningRulesDisableResponseBody loyaltyTier(LoyaltiesEarningRulesDisableResponseBodyLoyaltyTier loyaltyTier) -
getLoyaltyTier
Get loyaltyTier- Returns:
- loyaltyTier
-
setLoyaltyTier
-
source
public LoyaltiesEarningRulesDisableResponseBody source(LoyaltiesEarningRulesDisableResponseBodySource source) -
getSource
Get source- Returns:
- source
-
setSource
-
_object
public LoyaltiesEarningRulesDisableResponseBody _object(LoyaltiesEarningRulesDisableResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by JSON. Default is earning_rule.- Returns:
- _object
-
setObject
-
automationId
-
getAutomationId
For internal use by Voucherify.- Returns:
- automationId
-
setAutomationId
-
startDate
-
getStartDate
Start date defines when the earning rule starts to be active. Activation timestamp is presented in the ISO 8601 format. The earning rule is inactive before this date. If you do not define the start date for an earning rule, it will inherit the campaign start date by default.- Returns:
- startDate
-
setStartDate
-
expirationDate
-
getExpirationDate
Expiration date defines when the earning rule expires. Expiration timestamp is presented in the ISO 8601 format. The earning rule is inactive after this date. If you do not define the expiration date for an earning rule, it will inherit the campaign expiration date by default.- Returns:
- expirationDate
-
setExpirationDate
-
validityTimeframe
public LoyaltiesEarningRulesDisableResponseBody validityTimeframe(ValidityTimeframe validityTimeframe) -
getValidityTimeframe
Get validityTimeframe- Returns:
- validityTimeframe
-
setValidityTimeframe
-
validityDayOfWeek
public LoyaltiesEarningRulesDisableResponseBody validityDayOfWeek(List<LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) -
addValidityDayOfWeekItem
public LoyaltiesEarningRulesDisableResponseBody addValidityDayOfWeekItem(LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum validityDayOfWeekItem) -
getValidityDayOfWeek
@Nullable public List<LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum> getValidityDayOfWeek()Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday- Returns:
- validityDayOfWeek
-
setValidityDayOfWeek
public void setValidityDayOfWeek(List<LoyaltiesEarningRulesDisableResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) -
validityHours
-
getValidityHours
Get validityHours- Returns:
- validityHours
-
setValidityHours
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the earning rule. A set of key/value pairs that you can attach to an earning rule object. It can be useful for storing additional information about the earning rule in a structured format.- Returns:
- metadata
-
setMetadata
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the earning rule was last updated in ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
active
-
getActive
A flag to toggle the earning rule on or off. You can disable an earning rule even though it's within the active period defined by the start_date and expiration_date of the campaign or the earning rule's own start_date and expiration_date.- Returns:
- active
-
setActive
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesEarningRulesDisableResponseBody fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesDisableResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesDisableResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesDisableResponseBody
-
toJson
Convert an instance of LoyaltiesEarningRulesDisableResponseBody to an JSON string- Returns:
- JSON string
-