Record Class ShippingQuery
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ShippingQuery
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
ConstructorsConstructorDescriptionShippingQuery(String id, User from, String invoicePayload, ShippingAddress shippingAddress) Creates an instance of aShippingQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinvoicePayloadrecord component.Returns the value of theshippingAddressrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShippingQuery
Creates an instance of aShippingQueryrecord class.- Parameters:
id- the value for theidrecord componentfrom- the value for thefromrecord componentinvoicePayload- the value for theinvoicePayloadrecord componentshippingAddress- the value for theshippingAddressrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
invoicePayload
Returns the value of theinvoicePayloadrecord component.- Returns:
- the value of the
invoicePayloadrecord component
-
shippingAddress
Returns the value of theshippingAddressrecord component.- Returns:
- the value of the
shippingAddressrecord component
-