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