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, @Nullable java.lang.Integer sendAttempt, @Nullable java.lang.Integer 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, @Nullable java.lang.Integer sendAttempt, @Nullable java.lang.Integer 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, @Nullable java.lang.Integer 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.
@Nullable public java.lang.Integer getSendAttempt()
An incrementing count of the number of attempts to send this barcode for this payment.
Defaults to 1 if not provided.
@Nullable public java.lang.Integer 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.
@Nullable public java.lang.Integer component4()
An incrementing count of the number of attempts to send this barcode for this payment.
Defaults to 1 if not provided.
@Nullable public java.lang.Integer 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, @Nullable java.lang.Integer sendAttempt, @Nullable java.lang.Integer 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.