Package io.voucherify.client.model
Class LoyaltiesEarningRulesDisableResponseBodySource
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesDisableResponseBodySource
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesDisableResponseBodySource
extends Object
Contains the custom earning rule name and parent campaign.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDefines the object associated with the earning rule. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesEarningRulesDisableResponseBodySource given an JSON stringName of the earning rule.A unique campaign identifier assigned by the Voucherify API.Defines the object associated with the earning rule.inthashCode()voidvoidsetObjectId(String objectId) voidtoJson()Convert an instance of LoyaltiesEarningRulesDisableResponseBodySource to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_BANNER
- See Also:
-
SERIALIZED_NAME_OBJECT_ID
- See Also:
-
SERIALIZED_NAME_OBJECT_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesDisableResponseBodySource
public LoyaltiesEarningRulesDisableResponseBodySource()
-
-
Method Details
-
banner
-
getBanner
Name of the earning rule. This is displayed as a header for the earning rule in the Dashboard.- Returns:
- banner
-
setBanner
-
objectId
-
getObjectId
A unique campaign identifier assigned by the Voucherify API.- Returns:
- objectId
-
setObjectId
-
objectType
public LoyaltiesEarningRulesDisableResponseBodySource objectType(LoyaltiesEarningRulesDisableResponseBodySource.ObjectTypeEnum objectType) -
getObjectType
Defines the object associated with the earning rule. Defaults to `campaign`.- Returns:
- objectType
-
setObjectType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesEarningRulesDisableResponseBodySource fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesDisableResponseBodySource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesDisableResponseBodySource
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesDisableResponseBodySource
-
toJson
Convert an instance of LoyaltiesEarningRulesDisableResponseBodySource to an JSON string- Returns:
- JSON string
-