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