Record Class TransactionPartnerAffiliateProgram
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.TransactionPartnerAffiliateProgram
- All Implemented Interfaces:
Serializable, ApiResult, TransactionPartner
public record TransactionPartnerAffiliateProgram(@Nullable User sponsorUser, int commissionPerMille)
extends Record
implements TransactionPartner
- See Also:
-
Field Summary
Fields inherited from interface TransactionPartner
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionTransactionPartnerAffiliateProgram(@Nullable User sponsorUser, int commissionPerMille) Creates an instance of aTransactionPartnerAffiliateProgramrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecommissionPerMillerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable UserReturns the value of thesponsorUserrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
TransactionPartnerAffiliateProgram
public TransactionPartnerAffiliateProgram(@Nullable @Nullable User sponsorUser, int commissionPerMille) Creates an instance of aTransactionPartnerAffiliateProgramrecord class.- Parameters:
sponsorUser- the value for thesponsorUserrecord componentcommissionPerMille- the value for thecommissionPerMillerecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceTransactionPartner
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sponsorUser
Returns the value of thesponsorUserrecord component.- Returns:
- the value of the
sponsorUserrecord component
-
commissionPerMille
public int commissionPerMille()Returns the value of thecommissionPerMillerecord component.- Returns:
- the value of the
commissionPerMillerecord component
-