Package io.voucherify.client.model
Class LoyaltiesEarningRulesCreateResponseBodySource
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesCreateResponseBodySource
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesCreateResponseBodySource
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 LoyaltiesEarningRulesCreateResponseBodySource 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 LoyaltiesEarningRulesCreateResponseBodySource 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
-
LoyaltiesEarningRulesCreateResponseBodySource
public LoyaltiesEarningRulesCreateResponseBodySource()
-
-
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 LoyaltiesEarningRulesCreateResponseBodySource objectType(LoyaltiesEarningRulesCreateResponseBodySource.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 LoyaltiesEarningRulesCreateResponseBodySource fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesCreateResponseBodySource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesCreateResponseBodySource
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesCreateResponseBodySource
-
toJson
Convert an instance of LoyaltiesEarningRulesCreateResponseBodySource to an JSON string- Returns:
- JSON string
-