Class ReceiptData.DccData
The DCC class instance is included if Direct Currency Conversion was selected by the cardholder for the transaction.
Inheritance
Inherited Members
Namespace: Westpay.Epas
Assembly: EpasClientLibrary.dll
Syntax
public class DccData
Remarks
The ECR can use the pre-set disclaimer text in the Disclaimer property, or it can use the various elements to create a disclaimer text.
Properties
View SourceAmount
Transaction amount in the cardholder's currency
Declaration
public decimal Amount { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
CardScheme
Indicates the card scheme used in the DCC transaction. This is a string to allow for future expansion.
Declaration
public string CardScheme { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The value here is based on configuration data in the terminal, and there is scope for the range of values to expand over time, therefore this property is a string rather than an enumeration.
At time of writing, possible values are:
- “V”: A Visa card was used.
- “M”: A MasterCard card was used.
if the ECR needs to use a different disclaimer text then it must take these different factors into account.
Disclaimer
Disclaimer text that must be included in the receipt.
Declaration
public string Disclaimer { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The DCC text is always presented in English. The text contains the required elements, but does not include the MarkUpDescription property, which must be printed if provided
Exponent
Number of digits that follow the decimal point in the converted currency
Declaration
public int Exponent { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsoCurrencyCode
ISO 4217 currency code of the converted currency
Declaration
public string IsoCurrencyCode { get; }
Property Value
Type | Description |
---|---|
System.String |
IsoCurrencyNumber
ISO 4217 currency number of the converted currency
Declaration
public int IsoCurrencyNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
MarkUp
The conversion charge / mark up as a percentage. This is included in the total.
Declaration
public decimal MarkUp { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
MarkUpDescription
Text description of the MarkUp charge, required by some DCC providers. If set, this should be printed on the line after the MarkUp value.
Declaration
public string MarkUpDescription { get; }
Property Value
Type | Description |
---|---|
System.String |
Provider
DCC rate provider
Declaration
public string Provider { get; }
Property Value
Type | Description |
---|---|
System.String |
Rate
Conversion rate
Declaration
public decimal Rate { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
RateTimestamp
The timestamp when the rate was calculated
Declaration
public DateTime RateTimestamp { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Source
DCC rate source
Declaration
public string Source { get; }
Property Value
Type | Description |
---|---|
System.String |
Tip
The value of any added tip, given in the converted currency.
Declaration
public decimal Tip { get; }
Property Value
Type | Description |
---|---|
System.Decimal |