Package io.voucherify.client.model
Class EarningRuleSource
java.lang.Object
io.voucherify.client.model.EarningRuleSource
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class EarningRuleSource
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 TypeMethodDescriptionbooleanstatic EarningRuleSourceCreate an instance of EarningRuleSource 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()objectType(EarningRuleSource.ObjectTypeEnum objectType) voidvoidsetObjectId(String objectId) voidsetObjectType(EarningRuleSource.ObjectTypeEnum objectType) toJson()Convert an instance of EarningRuleSource 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
-
EarningRuleSource
public EarningRuleSource()
-
-
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
-
getObjectType
Defines the object associated with the earning rule. Defaults to `campaign`.- Returns:
- objectType
-
setObjectType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of EarningRuleSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EarningRuleSource
- Throws:
IOException- if the JSON string is invalid with respect to EarningRuleSource
-
toJson
Convert an instance of EarningRuleSource to an JSON string- Returns:
- JSON string
-