public class Transaction
Holds the information about values used on the transaction.
public Transaction(long amount, @NotNull java.lang.String currencyCode, @Nullable java.lang.Long cashbackAmount, @Nullable java.lang.Long gratuityAmount, @Nullable java.lang.Long donationAmount, @Nullable CurrencyConversion dcc)
Holds the information about values used on the transaction.
amount
- The full amount the customer's card has been charged or refunded including any gratuity, donations or cash back, in minor currency units.currencyCode
- The 3-letter ISO 4217 currency code which amounts are specified in.cashbackAmount
- The amount of cash back included in the payment, in minor currency units.gratuityAmount
- The amount of gratuity included in the payment, in minor currency units.donationAmount
- The amount of donation included in the payment, in minor currency units.dcc
- Data for Dynamic Currency Conversion if relevant to the payment.public long getAmount()
@NotNull public java.lang.String getCurrencyCode()
@Nullable public java.lang.Long getCashbackAmount()
@Nullable public java.lang.Long getGratuityAmount()
@Nullable public java.lang.Long getDonationAmount()
@Nullable public CurrencyConversion getDcc()
public long component1()
@NotNull public java.lang.String component2()
@Nullable public java.lang.Long component3()
@Nullable public java.lang.Long component4()
@Nullable public java.lang.Long component5()
@Nullable public CurrencyConversion component6()
@NotNull public Transaction copy(long amount, @NotNull java.lang.String currencyCode, @Nullable java.lang.Long cashbackAmount, @Nullable java.lang.Long gratuityAmount, @Nullable java.lang.Long donationAmount, @Nullable CurrencyConversion dcc)
Holds the information about values used on the transaction.
amount
- The full amount the customer's card has been charged or refunded including any gratuity, donations or cash back, in minor currency units.currencyCode
- The 3-letter ISO 4217 currency code which amounts are specified in.cashbackAmount
- The amount of cash back included in the payment, in minor currency units.gratuityAmount
- The amount of gratuity included in the payment, in minor currency units.donationAmount
- The amount of donation included in the payment, in minor currency units.dcc
- Data for Dynamic Currency Conversion if relevant to the payment.@NotNull public java.lang.String toString()
Holds the information about values used on the transaction.
public int hashCode()
Holds the information about values used on the transaction.
public boolean equals(@Nullable java.lang.Object p)
Holds the information about values used on the transaction.