Package io.voucherify.client.model
Class ReferralProgramRefereeReward
java.lang.Object
io.voucherify.client.model.ReferralProgramRefereeReward
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ReferralProgramRefereeReward
extends Object
Defines the referee reward.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of reward. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ReferralProgramRefereeRewardCreate an instance of ReferralProgramRefereeReward given an JSON stringDefine the number of `points` to add to a loyalty card or `credits` to the balance on a gift card.Get relatedObjectParentgetType()Type of reward.inthashCode()relatedObjectParent(ReferralProgramRefereeRewardRelatedObjectParent relatedObjectParent) voidvoidsetRelatedObjectParent(ReferralProgramRefereeRewardRelatedObjectParent relatedObjectParent) voidtoJson()Convert an instance of ReferralProgramRefereeReward to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_RELATED_OBJECT_PARENT
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ReferralProgramRefereeReward
public ReferralProgramRefereeReward()
-
-
Method Details
-
getRelatedObjectParent
Get relatedObjectParent- Returns:
- relatedObjectParent
-
setRelatedObjectParent
public void setRelatedObjectParent(ReferralProgramRefereeRewardRelatedObjectParent relatedObjectParent) -
type
-
getType
Type of reward.- Returns:
- type
-
setType
-
amount
-
getAmount
Define the number of `points` to add to a loyalty card or `credits` to the balance on a gift card. In case of the gift card, the value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.- Returns:
- amount
-
setAmount
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ReferralProgramRefereeReward given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReferralProgramRefereeReward
- Throws:
IOException- if the JSON string is invalid with respect to ReferralProgramRefereeReward
-
toJson
Convert an instance of ReferralProgramRefereeReward to an JSON string- Returns:
- JSON string