Record Class RefundedPayment
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.RefundedPayment
- All Implemented Interfaces:
Serializable,ApiResult
public record RefundedPayment(@NotNull String currency, int totalAmount, @NotNull String invoicePayload, @NotNull String telegramPaymentChargeId, @Nullable String providerPaymentChargeId)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRefundedPayment(@NotNull String currency, int totalAmount, @NotNull String invoicePayload, @NotNull String telegramPaymentChargeId, @Nullable String providerPaymentChargeId) Creates an instance of aRefundedPaymentrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcurrency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull StringReturns the value of theinvoicePayloadrecord component.@Nullable StringReturns the value of theproviderPaymentChargeIdrecord component.@NotNull StringReturns the value of thetelegramPaymentChargeIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalAmountrecord component.
-
Constructor Details
-
RefundedPayment
public RefundedPayment(@NotNull @NotNull String currency, int totalAmount, @NotNull @NotNull String invoicePayload, @NotNull @NotNull String telegramPaymentChargeId, @Nullable @Nullable String providerPaymentChargeId) Creates an instance of aRefundedPaymentrecord class.- Parameters:
currency- the value for thecurrencyrecord componenttotalAmount- the value for thetotalAmountrecord componentinvoicePayload- the value for theinvoicePayloadrecord componenttelegramPaymentChargeId- the value for thetelegramPaymentChargeIdrecord componentproviderPaymentChargeId- the value for theproviderPaymentChargeIdrecord 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 '=='. -
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
-
telegramPaymentChargeId
Returns the value of thetelegramPaymentChargeIdrecord component.- Returns:
- the value of the
telegramPaymentChargeIdrecord component
-
providerPaymentChargeId
Returns the value of theproviderPaymentChargeIdrecord component.- Returns:
- the value of the
providerPaymentChargeIdrecord component
-