Record Class PaymentProviderActionResource.PaymentRequest
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.onlinepayment.impl.actions.PaymentProviderActionResource.PaymentRequest
- Enclosing class:
PaymentProviderActionResource
-
Constructor Summary
ConstructorDescriptionPaymentRequest
(long paymentMethod, String successRedirectUrl, String failedRedirectUrl, String cancelledRedirectUrl) Creates an instance of aPaymentRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancelledRedirectUrl
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefailedRedirectUrl
record component.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thepaymentMethod
record component.Returns the value of thesuccessRedirectUrl
record component.final String
toString()
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 aPaymentRequest
record class.- Parameters:
paymentMethod
- the value for thepaymentMethod
record componentsuccessRedirectUrl
- the value for thesuccessRedirectUrl
record componentfailedRedirectUrl
- the value for thefailedRedirectUrl
record componentcancelledRedirectUrl
- the value for thecancelledRedirectUrl
record 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 thepaymentMethod
record component.- Returns:
- the value of the
paymentMethod
record component
-
successRedirectUrl
Returns the value of thesuccessRedirectUrl
record component.- Returns:
- the value of the
successRedirectUrl
record component
-
failedRedirectUrl
Returns the value of thefailedRedirectUrl
record component.- Returns:
- the value of the
failedRedirectUrl
record component
-
cancelledRedirectUrl
Returns the value of thecancelledRedirectUrl
record component.- Returns:
- the value of the
cancelledRedirectUrl
record component
-