Record Class PreCheckoutQuery
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.PreCheckoutQuery
- All Implemented Interfaces:
Serializable,ApiResult
public record PreCheckoutQuery(String id, User from, String currency, int totalAmount, String invoicePayload, @Nullable String shippingOptionId, @Nullable OrderInfo orderInfo)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrency()Returns the value of thecurrencyrecord component.final 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.@Nullable OrderInfoReturns the value of theorderInforecord component.@Nullable StringReturns the value of theshippingOptionIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalAmountrecord component.
-
Constructor Details
-
PreCheckoutQuery
public PreCheckoutQuery(String id, User from, String currency, int totalAmount, String invoicePayload, @Nullable @Nullable String shippingOptionId, @Nullable @Nullable OrderInfo orderInfo) Creates an instance of aPreCheckoutQueryrecord class.- Parameters:
id- the value for theidrecord componentfrom- the value for thefromrecord componentcurrency- the value for thecurrencyrecord componenttotalAmount- the value for thetotalAmountrecord componentinvoicePayload- the value for theinvoicePayloadrecord componentshippingOptionId- the value for theshippingOptionIdrecord componentorderInfo- the value for theorderInforecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
totalAmount
public int totalAmount()Returns the value of thetotalAmountrecord component.- Returns:
- the value of the
totalAmountrecord component
-
invoicePayload
Returns the value of theinvoicePayloadrecord component.- Returns:
- the value of the
invoicePayloadrecord component
-
shippingOptionId
Returns the value of theshippingOptionIdrecord component.- Returns:
- the value of the
shippingOptionIdrecord component
-
orderInfo
Returns the value of theorderInforecord component.- Returns:
- the value of the
orderInforecord component
-