Class PurchaseTransactionAmounts
Encapsulates the amounts involved in a purchase transaction
Inheritance
System.Object
PurchaseTransactionAmounts
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Westpay.Epas
Assembly: EpasClientLibrary.dll
Syntax
public class PurchaseTransactionAmounts
Constructors
View SourcePurchaseTransactionAmounts(Decimal)
Constructor for a transaction with no cashback amount
Declaration
public PurchaseTransactionAmounts(decimal purchaseAmount)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | purchaseAmount | Value of goods or service being purchased |
PurchaseTransactionAmounts(Decimal, Decimal, Nullable<Int32>)
Constructor for a transaction with both purchase and cashback amounts
Declaration
public PurchaseTransactionAmounts(decimal purchaseAmount, decimal cashbackAmount, int? mcc)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | purchaseAmount | Value of goods or service being purchased |
System.Decimal | cashbackAmount | Cashback value |
System.Nullable<System.Int32> | mcc |
Properties
View SourceCashbackAmount
Cashback value, if required
Declaration
public decimal CashbackAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
MerchantCategoryCode
Merchant category code
Declaration
public int? MerchantCategoryCode { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PurchaseAmount
Value of goods or service being purchased
Declaration
public decimal PurchaseAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
TotalAmount
The total amount of the purchase transaction
Declaration
public decimal TotalAmount { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Methods
View SourceToString()
String representation of the amount
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()