• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • Westpay.Epas
      • AdminOperation
      • AdminResponse
      • AltMethodTransaction
      • ApiResult
      • AuthorisationChannel
      • AuthorisingEntity
      • BufferTools
      • CardAcceptedEventArgs
      • CurrencyCodes
      • EnableCardReaderOptions
      • EnableReadersResponse
      • EntryMethod
      • EpasClient
      • EpasClient.CardAcceptedNotification
      • EpasClient.CardActionNotification
      • EpasClient.EpasMessageReceiver
      • EpasClient.StatusNotification
      • ErrorConditions
      • IClientApp
      • LastTransactionResponse
      • LastTransactionResponse.CardData
      • LastTransactionResponse.DccData
      • LastTransactionResponse.EmvData
      • LastTransactionResponse.MerchantData
      • LastTransactionResponse.TransactionData
      • LoginResponse
      • LogLevel
      • LogoutResponse
      • OperatingParameters
      • PurchaseRequest
      • PurchaseTransactionAmounts
      • ReceiptData
      • ReceiptData.AuthorisationData
      • ReceiptData.CardData
      • ReceiptData.DccData
      • ReceiptData.EmvData
      • ReceiptData.MerchantData
      • ReceiptData.TransactionData
      • ReceiptData.TranslatedTextId
      • ReceiptVersion
      • RefundRequest
      • ServiceEnableType
      • SimpleResponse
      • TerminalEnvironment
      • TerminalNetworkConnection
      • TransactionOutcome
      • TransactionRequest
      • TransactionResponse
      • TransactionType
      • VerificationMethod

    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 Source

    PurchaseTransactionAmounts(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

    View Source

    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 Source

    CashbackAmount

    Cashback value, if required

    Declaration
    public decimal CashbackAmount { get; set; }
    Property Value
    Type Description
    System.Decimal
    View Source

    MerchantCategoryCode

    Merchant category code

    Declaration
    public int? MerchantCategoryCode { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    View Source

    PurchaseAmount

    Value of goods or service being purchased

    Declaration
    public decimal PurchaseAmount { get; set; }
    Property Value
    Type Description
    System.Decimal
    View Source

    TotalAmount

    The total amount of the purchase transaction

    Declaration
    public decimal TotalAmount { get; }
    Property Value
    Type Description
    System.Decimal

    Methods

    View Source

    ToString()

    String representation of the amount

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    • View Source
    In This Article
    Back to top Generated by DocFX