Record Class PaymentProviderActionResource.PaymentRequest
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.onlinepayment.impl.actions.PaymentProviderActionResource.PaymentRequest
- Enclosing class:
PaymentProviderActionResource
-
Constructor Summary
ConstructorsConstructorDescriptionPaymentRequest(long paymentMethod, String successRedirectUrl, String failedRedirectUrl, String cancelledRedirectUrl) Creates an instance of aPaymentRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelledRedirectUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedRedirectUrlrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thepaymentMethodrecord component.Returns the value of thesuccessRedirectUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PaymentRequest
public PaymentRequest(long paymentMethod, String successRedirectUrl, String failedRedirectUrl, String cancelledRedirectUrl) Creates an instance of aPaymentRequestrecord class.- Parameters:
paymentMethod- the value for thepaymentMethodrecord componentsuccessRedirectUrl- the value for thesuccessRedirectUrlrecord componentfailedRedirectUrl- the value for thefailedRedirectUrlrecord componentcancelledRedirectUrl- the value for thecancelledRedirectUrlrecord 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 '=='. -
paymentMethod
public long paymentMethod()Returns the value of thepaymentMethodrecord component.- Returns:
- the value of the
paymentMethodrecord component
-
successRedirectUrl
Returns the value of thesuccessRedirectUrlrecord component.- Returns:
- the value of the
successRedirectUrlrecord component
-
failedRedirectUrl
Returns the value of thefailedRedirectUrlrecord component.- Returns:
- the value of the
failedRedirectUrlrecord component
-
cancelledRedirectUrl
Returns the value of thecancelledRedirectUrlrecord component.- Returns:
- the value of the
cancelledRedirectUrlrecord component
-