public class AlipayRefund implements PaymentRequest
Details for a Alipay barcode payment.
public AlipayRefund(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @NotNull java.lang.String originalGatewayTransactionReference, @Nullable java.lang.String originalMerchantCode, @Nullable java.lang.String originalTransactionReference, @Nullable java.lang.String line1, @Nullable java.lang.String paypointId, @Nullable java.lang.Integer sendAttempt, @Nullable java.lang.Integer quantity)
Details for a Alipay barcode payment.
value
- The value of the payment in minor units.merchantTransactionReference
- The transaction reference defined by the merchant to uniquely identify the payment.barcode
- The barcode value generated by the customer's Alipay app and scanned by the merchant.originalGatewayTransactionReference
- For refunding card sales, optionally provide the Payment Gateway Transaction Reference of the original sale being refunded.originalMerchantCode
- provide the merchant code used in the original sale being refunded.originalTransactionReference
- provide the transaction reference from the original sale being refunded.line1
- First line of the description of the payment to appear in customer’s transaction statements.paypointId
- Identifier for the paypoint on which the action should or has been performed on.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.public long getValue()
The value of the payment in minor units.
@NotNull public java.lang.String getMerchantTransactionReference()
The transaction reference defined by the merchant to uniquely identify the payment.
@NotNull public java.lang.String getBarcode()
The barcode value generated by the customer
's Alipay app and scanned by the merchant.
@NotNull public java.lang.String getOriginalGatewayTransactionReference()
For refunding card sales,
optionally provide the Payment Gateway Transaction Reference of the original sale being refunded.
@Nullable public java.lang.String getOriginalMerchantCode()
provide the merchant code used in the original sale being refunded.
@Nullable public java.lang.String getOriginalTransactionReference()
provide the transaction reference from the original sale being refunded.
@Nullable public java.lang.String getLine1()
First line of the description of the payment to appear in customer’s transaction statements.
@Nullable public java.lang.String getPaypointId()
Identifier for the paypoint on which the action should or has been performed on.
@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.
public long component1()
The value of the payment in minor units.
@NotNull public java.lang.String component2()
The transaction reference defined by the merchant to uniquely identify the payment.
@NotNull public java.lang.String component3()
The barcode value generated by the customer
's Alipay app and scanned by the merchant.
@NotNull public java.lang.String component4()
For refunding card sales,
optionally provide the Payment Gateway Transaction Reference of the original sale being refunded.
@Nullable public java.lang.String component5()
provide the merchant code used in the original sale being refunded.
@Nullable public java.lang.String component6()
provide the transaction reference from the original sale being refunded.
@Nullable public java.lang.String component7()
First line of the description of the payment to appear in customer’s transaction statements.
@Nullable public java.lang.String component8()
Identifier for the paypoint on which the action should or has been performed on.
@Nullable public java.lang.Integer component9()
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 component10()
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.
@NotNull public AlipayRefund copy(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @NotNull java.lang.String originalGatewayTransactionReference, @Nullable java.lang.String originalMerchantCode, @Nullable java.lang.String originalTransactionReference, @Nullable java.lang.String line1, @Nullable java.lang.String paypointId, @Nullable java.lang.Integer sendAttempt, @Nullable java.lang.Integer quantity)
Details for a Alipay barcode payment.
@NotNull public java.lang.String toString()
Details for a Alipay barcode payment.
public int hashCode()
Details for a Alipay barcode payment.
public boolean equals(@Nullable java.lang.Object p)
Details for a Alipay barcode payment.