Class coresale

This class represents the sale object used for processing the transaction with the device.More…

Inheritance diagram for CorePayments.CoreSale:

CorePayments.CoreSaleTrackContactless

Public Member Functions

CoreSale ()
Initializes a new instance of the CoreSale class.More…
CoreSale (decimal amount)
Initializes a new instance of the CoreSale class.More…
CoreSale (decimal amount, string orderId)
Initializes a new instance of the CoreSale class.More…
void AddTipWithAmount (decimal tipAmount)
Adds the tip with amount.More…

Properties

decimal amount [get, set]
Gets or sets the amount.More…
string cardType [get, set]
Gets or sets the type of the card.More…
string orderId [get, set]
Gets or sets the order identifier.More…
CoreTip tip [get, set]
Gets or sets the tip.More…
CoreTax tax [get, set]
Gets or sets the tax.More…
bool autoReady [get, set]
Gets or sets a value indicating whether the transaction is set automatically to READY in the open batch.More…
CoreSignature signature [get, set]
Gets or sets the signature.More…
string deviceType [get, set]
Gets or sets the type of the device.More…
bool fallback [get, set]
Gets or sets a value indicating whether to set the fallback.More…
string cardHolderName [get, set]
Gets or sets the name of the card holder.More…
string serial [get, set]
Gets or sets the serial.More…
int firstDigitOfPan [get, set]
Gets or sets the first digit of pan.More…
CoreEmvType emvType [get, set]
Gets or sets the type of the transaction.More…
SignatureCollection signatureCollection [get, set]
Gets or sets the signature collection.More…
CoreTransactionInputMethod coreTransactionInputMethod [get, set]
Gets or sets the core transaction mode.Start the transaction in defferent mode (insert, swipe …) More…
TerminalCategory terminalCategory [get, set]
Gets or sets the terminal category.More…
SaleRequestType requestType [get, set]
Gets or sets the type of the request.More…
int cardRequestTimeout [get, set]
Gets or sets the card request timeout.More…
CoreSecureCard coreSecureCard [get, set]
Gets or sets the secure card.More…
bool isDelayedAuthEnabled [get, set]
Gets a value indicating whether the sale is delayed auth.More…
bool isSignatureRequired [get, set]
Gets a value indicating whether the sale requires signature .More…
bool isGiftCard [get, set]
Gets a value indicating whether the sale is gift card.More…
string dateTime [get, set]
Gets or sets the date time.More…
string deviceFirmwareVersion [get, set]
Gets or sets the device firmware version.More…
TransactionType transactionType [get, set]
Gets or sets the transaction type.More…
FallbackReason fallbackReason [get, set]
Gets or sets the fallback reason.More…

Detailed Description

This class represents the sale object used for processing the transaction with the device.

CoreSale saleRequest = new CoreSale(Math.Round(amount, 2, MidpointRounding.ToEven));
Terminal.Instance.ProcessSale(saleRequest);

Constructor & Destructor Documentation

CoreSale() [1/3]

    • CorePayments.CoreSale.CoreSale
    • (
    • )

  • inline

Initializes a new instance of the CoreSale class.

CoreSale() [2/3]

    • CorePayments.CoreSale.CoreSale
    • (
    • decimal
    • amount
    • )

  • inline

Initializes a new instance of the CoreSale class.

Parameters

  • amount
  • The amount.

CoreSale() [3/3]

    • CorePayments.CoreSale.CoreSale
    • (
    • decimal
    • amount,

    • string
    • orderId

    • )

  • inline

Initializes a new instance of the CoreSale class.

Parameters

  • amount
  • The amount.

  • orderId
  • The order identifier.

Member Function Documentation

AddTipWithAmount()

    • void CorePayments.CoreSale.AddTipWithAmount
    • (
    • decimal
    • tipAmount
    • )

  • inline

Adds the tip with amount.

Parameters

  • tipAmount
  • The tip amount.

Property Documentation

amount

    • decimal CorePayments.CoreSale.amount

  • getset

Gets or sets the amount.

The amount.

autoReady

    • bool CorePayments.CoreSale.autoReady

  • getset

Gets or sets a value indicating whether the transaction is set automatically to READY in the open batch.

true

if [automatic ready]; otherwise,

false

.

cardHolderName

    • string CorePayments.CoreSale.cardHolderName

  • getset

Gets or sets the name of the card holder.

The name of the card holder.

cardRequestTimeout

    • int CorePayments.CoreSale.cardRequestTimeout

  • getset

Gets or sets the card request timeout.

The card request timeout.

cardType

    • string CorePayments.CoreSale.cardType

  • getset

Gets or sets the type of the card.

The type of the card.

coreSecureCard

Gets or sets the secure card.

The secure card.

coreTransactionInputMethod

Gets or sets the core transaction mode.Start the transaction in defferent mode (insert, swipe …)

The core transaction mode.

dateTime

    • string CorePayments.CoreSale.dateTime

  • getset

Gets or sets the date time.

The date time.

deviceFirmwareVersion

    • string CorePayments.CoreSale.deviceFirmwareVersion

  • getset

Gets or sets the device firmware version.

The device firmware version.

deviceType

    • string CorePayments.CoreSale.deviceType

  • getset

Gets or sets the type of the device.

The type of the device.

emvType

Gets or sets the type of the transaction.

The type of the transaction.

fallback

    • bool CorePayments.CoreSale.fallback

  • getset

Gets or sets a value indicating whether to set the fallback.

true

if fallback; otherwise,

false

.

fallbackReason

Gets or sets the fallback reason.

The fallback reason.

firstDigitOfPan

    • int CorePayments.CoreSale.firstDigitOfPan

  • getset

Gets or sets the first digit of pan.

The first digit of pan.

isDelayedAuthEnabled

    • bool CorePayments.CoreSale.isDelayedAuthEnabled

  • getset

Gets a value indicating whether the sale is delayed auth.

true

if the sale is delayed auth; otherwise,

false

.

isGiftCard

    • bool CorePayments.CoreSale.isGiftCard

  • getset

Gets a value indicating whether the sale is gift card.

true

if the sale is gift card; otherwise,

false

.

isSignatureRequired

    • bool CorePayments.CoreSale.isSignatureRequired

  • getset

Gets a value indicating whether the sale requires signature .

true

if the sale requires signature ; otherwise,

false

.

orderId

    • string CorePayments.CoreSale.orderId

  • getset

Gets or sets the order identifier.

The order identifier.

requestType

Gets or sets the type of the request.

The type of the request.

serial

    • string CorePayments.CoreSale.serial

  • getset

Gets or sets the serial.

The serial.

signature

Gets or sets the signature.

The signature.

signatureCollection

Gets or sets the signature collection.

The signature collection which is either manual(paper receipt) or automatic(by the SDK)

tax

    • CoreTax CorePayments.CoreSale.tax

  • getset

Gets or sets the tax.

The tax.

terminalCategory

Gets or sets the terminal category.

The terminal category.

tip

    • CoreTip CorePayments.CoreSale.tip

  • getset

Gets or sets the tip.

The tip.

transactionType

Gets or sets the transaction type.

The transaction type.