public class CardPaymentCancel
extends PaymentCancel
Holds data required when cancelling a card payment.
@JvmOverloads public CardPaymentCancel(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String cardNumber, @NotNull CardDate cardExpiryDate, @Nullable java.lang.String paypointId)
Holds data required when cancelling a card payment.
merchantTransactionReference
- The transaction reference defined by the merchant to uniquely identify the payment.gatewayTransactionReference
- The Payment Gateway Transaction Reference (PGTR) of the payment to cancel.cardNumber
- The masked card number of the card used in the original payment to check against.cardExpiryDate
- The expiry date (MM/YY) )of the card used in the original payment to check against.paypointId
- Identifier for the paypoint on which the action should or has been performed on.@JvmOverloads public CardPaymentCancel(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String cardNumber, @NotNull CardDate cardExpiryDate)
Holds data required when cancelling a card payment.
merchantTransactionReference
- The transaction reference defined by the merchant to uniquely identify the payment.gatewayTransactionReference
- The Payment Gateway Transaction Reference (PGTR) of the payment to cancel.cardNumber
- The masked card number of the card used in the original payment to check against.cardExpiryDate
- The expiry date (MM/YY) )of the card used in the original payment to check against.@NotNull public com.worldpay.websocket.api.payment.ApiInstrumentType getType$module()
@NotNull public java.lang.String toString()
@NotNull public java.lang.String getMerchantTransactionReference()
The transaction reference defined by the merchant to uniquely identify the payment.
@NotNull public java.lang.String getGatewayTransactionReference()
The Payment Gateway Transaction Reference
(PGTR) of the payment to cancel.
@NotNull public java.lang.String getCardNumber()
The masked card number of the card used in the original payment to check against.
@NotNull public CardDate getCardExpiryDate()
The expiry date
(MM/YY) )of the card used in the original payment to check against.
@Nullable public java.lang.String getPaypointId()
Identifier for the paypoint on which the action should or has been performed on.
@NotNull public java.lang.String component1()
The transaction reference defined by the merchant to uniquely identify the payment.
@NotNull public java.lang.String component2()
The Payment Gateway Transaction Reference
(PGTR) of the payment to cancel.
@NotNull public java.lang.String component3()
The masked card number of the card used in the original payment to check against.
@NotNull public CardDate component4()
The expiry date
(MM/YY) )of the card used in the original payment to check against.
@Nullable public java.lang.String component5()
Identifier for the paypoint on which the action should or has been performed on.
@NotNull public CardPaymentCancel copy(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String cardNumber, @NotNull CardDate cardExpiryDate, @Nullable java.lang.String paypointId)
Holds data required when cancelling a card payment.
public int hashCode()
Holds data required when cancelling a card payment.
public boolean equals(@Nullable java.lang.Object p)
Holds data required when cancelling a card payment.