Record Class OrderInfo
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.OrderInfo
- All Implemented Interfaces:
Serializable,ApiResult
public record OrderInfo(@Nullable String name, @Nullable String phoneNumber, @Nullable String email, @Nullable ShippingAddress shippingAddress)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrderInfo(@Nullable String name, @Nullable String phoneNumber, @Nullable String email, @Nullable ShippingAddress shippingAddress) Creates an instance of aOrderInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable StringReturns the value of thephoneNumberrecord component.@Nullable ShippingAddressReturns the value of theshippingAddressrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderInfo
public OrderInfo(@Nullable @Nullable String name, @Nullable @Nullable String phoneNumber, @Nullable @Nullable String email, @Nullable @Nullable ShippingAddress shippingAddress) Creates an instance of aOrderInforecord class.- Parameters:
name- the value for thenamerecord componentphoneNumber- the value for thephoneNumberrecord componentemail- the value for theemailrecord componentshippingAddress- the value for theshippingAddressrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
- the value of the
phoneNumberrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
shippingAddress
Returns the value of theshippingAddressrecord component.- Returns:
- the value of the
shippingAddressrecord component
-