public class AlipayBarcodePaymentCancel
extends PaymentCancel
Holds data required when cancelling an alipay barcode payment.
@JvmOverloads public AlipayBarcodePaymentCancel(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String barcode, int sendAttempt, int quantity, @Nullable java.lang.String paypointId)
Holds data required when cancelling an alipay barcode 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.barcode
- The barcode value generated by the customer's Alipay app and scanned by the merchant.sendAttempt
- An incrementing count of the number of attempts to send this barcode for this payment. Defaults to 1 if not provided.quantity
- Quantity of the commodity in the payment. This value is shown in the consumer's transaction records list from Alipay. Defaults to 1 if not provided.paypointId
- Identifier for the paypoint on which the action should or has been performed on.@JvmOverloads public AlipayBarcodePaymentCancel(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String barcode, int sendAttempt, int quantity)
Holds data required when cancelling an alipay barcode 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.barcode
- The barcode value generated by the customer's Alipay app and scanned by the merchant.sendAttempt
- An incrementing count of the number of attempts to send this barcode for this payment. Defaults to 1 if not provided.quantity
- Quantity of the commodity in the payment. This value is shown in the consumer's transaction records list from Alipay. Defaults to 1 if not provided.@JvmOverloads public AlipayBarcodePaymentCancel(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String barcode, int sendAttempt)
Holds data required when cancelling an alipay barcode 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.barcode
- The barcode value generated by the customer's Alipay app and scanned by the merchant.sendAttempt
- An incrementing count of the number of attempts to send this barcode for this payment. Defaults to 1 if not provided.@JvmOverloads public AlipayBarcodePaymentCancel(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String barcode)
Holds data required when cancelling an alipay barcode 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.barcode
- The barcode value generated by the customer's Alipay app and scanned by the merchant.@NotNull public com.worldpay.websocket.api.payment.ApiInstrumentType getType$module()
@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 getBarcode()
The barcode value generated by the customer
's Alipay app and scanned by the merchant.
public int getSendAttempt()
An incrementing count of the number of attempts to send this barcode for this payment.
Defaults to 1 if not provided.
public int getQuantity()
Quantity of the commodity in the payment.
This value is shown in the consumer's transaction records list from Alipay. Defaults to 1 if not provided.
@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 barcode value generated by the customer
's Alipay app and scanned by the merchant.
public int component4()
An incrementing count of the number of attempts to send this barcode for this payment.
Defaults to 1 if not provided.
public int component5()
Quantity of the commodity in the payment.
This value is shown in the consumer's transaction records list from Alipay. Defaults to 1 if not provided.
@Nullable public java.lang.String component6()
Identifier for the paypoint on which the action should or has been performed on.
@NotNull public AlipayBarcodePaymentCancel copy(@NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String gatewayTransactionReference, @NotNull java.lang.String barcode, int sendAttempt, int quantity, @Nullable java.lang.String paypointId)
Holds data required when cancelling an alipay barcode payment.
@NotNull public java.lang.String toString()
Holds data required when cancelling an alipay barcode payment.
public int hashCode()
Holds data required when cancelling an alipay barcode payment.
public boolean equals(@Nullable java.lang.Object p)
Holds data required when cancelling an alipay barcode payment.