public class AlipaySale implements PaymentRequest
Details for a Alipay barcode payment.
@JvmOverloads public AlipaySale(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @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.line1
- A 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.@JvmOverloads public AlipaySale(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @Nullable java.lang.String line1, @Nullable java.lang.String paypointId, @Nullable java.lang.Integer sendAttempt)
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.line1
- A 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.@JvmOverloads public AlipaySale(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @Nullable java.lang.String line1, @Nullable java.lang.String paypointId)
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.line1
- A 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.@JvmOverloads public AlipaySale(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @Nullable java.lang.String line1)
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.line1
- A description of the payment to appear in customer's transaction statements.@JvmOverloads public AlipaySale(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode)
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.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.
@Nullable public java.lang.String getLine1()
A 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.
@Nullable public java.lang.String component4()
A description of the payment to appear in customer
's transaction statements.
@Nullable public java.lang.String component5()
Identifier for the paypoint on which the action should or has been performed on.
@Nullable public java.lang.Integer component6()
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 component7()
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 AlipaySale copy(long value, @NotNull java.lang.String merchantTransactionReference, @NotNull java.lang.String barcode, @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.