Class coresale

This class represents the sale request object which is send to a server to be processed.Used with the device.More…

#import <Core.h>

Inheritance diagram for CoreSale:

CoreSaleAppleWallet CoreSaleEmv CoreSaleKeyed CoreSaleTrack CoreSaleTrackContactless

Instance Methods

(void) - addTipWithAmount:
This method can be used to create tip object with amount.More…

Properties

NSNumber * amount
This property represents amount.More…
NSString * orderId
This property represents order id.More…
NSNumber * autoReady
This property represents auto ready.More…
CoreTax * tax
This property represents tax.More…
CoreTip * tip
This property represents tip.More…
NSNumber * tipAmount
This property represents tip amount.More…
CoreSignature * signature
This property represents signature.More…
NSString * cardType
This property represents card type.More…
NSNumber * fallback
This property represents fallback.More…
NSString * cardHolderName
CoreTransactionType transactionType
This property represents transaction type.More…
NSString * deviceType
This property represents device type.More…
NSString * encryptedPinBlock
This property represents encrypted pin block.More…
NSString * pinBlockKsn
This property represents pin block KSN.More…
NSString * debitAccountType
This property represents debit account.More…
CoreTransactionInputMethod transactionInputMethod
SignatureCollection signatureCollection
This property signature represents AUTOMATIC (onSignatureRequired will be triggered) or MANUAL (signature is captured on the paper receipt) signature capture.More…
CoreSecureCard * coreSecureCard
This property represents the secure card.More…
TerminalCategory terminalCategory
This property represents the category of the terminal.More…
SaleRequestType saleRequestType
This property represents the sale request type.More…
BOOL isDelayedAuthEnabled
This property represents if sale is being processed as delayed auth.More…
BOOL isSignatureRequired
This property represents if sale needs to ask for signature in delayed auth mode.More…
BOOL isContactlessMsr
This property represents if contctless transaction is MSR.More…
NSString * serial
This property represents serial number of the device.More…
FallbackReason fallbackReason
This property represents reason for fallback.More…
NSString * deviceFirmwareVersion
This property represents device firmware version.More…
CoreEmvType emvType
This property represents emv type (Standard or quickchip).More…
NSString * dateTime
This property represents date time.More…
NSString * maskedPAN
This property represents masked PAN.More…
NSMutableArray * customFields
This property represents custom fields.More…

Detailed Description

This class represents the sale request object which is send to a server to be processed.Used with the device.

CoreSale *sale =[[CoreSale alloc] init];
sale.amount = [NSNumber numberWithDouble: 12];
[[WTPSTerminal singleton] processSale:sale];

Method Documentation

addTipWithAmount:()

  • - (void) addTipWithAmount:
  • (NSNumber *)
  • tipAmount

This method can be used to create tip object with amount.

[sale addTipWithAmount:[NSNumber numberWithInt:2]];

Property Documentation

amount

    • - (NSNumber*) amount

  • readwriteatomic

This property represents amount.

autoReady

    • - (NSNumber*) autoReady

  • readwriteatomic

This property represents auto ready.

cardHolderName

    • - (NSString*) cardHolderName

  • readwriteatomic

cardType

    • - (NSString*) cardType

  • readwriteatomic

This property represents card type.

coreSecureCard

This property represents the secure card.

customFields

    • - (NSMudivArray*) customFields

  • readwriteatomic

This property represents custom fields.

dateTime

    • - (NSString*) dateTime

  • readwriteatomic

This property represents date time.

debitAccountType

    • - (NSString*) debitAccountType

  • readwriteatomic

This property represents debit account.

deviceFirmwareVersion

    • - (NSString*) deviceFirmwareVersion

  • readwriteatomic

This property represents device firmware version.

deviceType

    • - (NSString*) deviceType

  • readwriteatomic

This property represents device type.

emvType

    • - (CoreEmvType) emvType

  • readwriteatomic

This property represents emv type (Standard or quickchip).

encryptedPinBlock

    • - (NSString*) encryptedPinBlock

  • readwriteatomic

This property represents encrypted pin block.

fallback

    • - (NSNumber*) fallback

  • readwriteatomic

This property represents fallback.

fallbackReason

    • - (FallbackReason) fallbackReason

  • readwriteatomic

This property represents reason for fallback.

isContactlessMsr

    • - (BOOL) isContactlessMsr

  • readwriteatomic

This property represents if contctless transaction is MSR.

isDelayedAuthEnabled

    • - (BOOL) isDelayedAuthEnabled

  • readwriteatomic

This property represents if sale is being processed as delayed auth.

isSignatureRequired

    • - (BOOL) isSignatureRequired

  • readwriteatomic

This property represents if sale needs to ask for signature in delayed auth mode.

maskedPAN

    • - (NSString*) maskedPAN

  • readwriteatomic

This property represents masked PAN.

orderId

    • - (NSString*) orderId

  • readwriteatomic

This property represents order id.

pinBlockKsn

    • - (NSString*) pinBlockKsn

  • readwriteatomic

This property represents pin block KSN.

saleRequestType

    • - (SaleRequestType) saleRequestType

  • readwriteatomic

This property represents the sale request type.

serial

    • - (NSString*) serial

  • readwriteatomic

This property represents serial number of the device.

signature

This property represents signature.

signatureCollection

    • - (SignatureCollection) signatureCollection

  • readwriteatomic

This property signature represents AUTOMATIC (onSignatureRequired will be triggered) or MANUAL (signature is captured on the paper receipt) signature capture.

tax

This property represents tax.

terminalCategory

    • - (TerminalCategory) terminalCategory

  • readwriteatomic

This property represents the category of the terminal.

tip

This property represents tip.

tipAmount

    • - (NSNumber*) tipAmount

  • readwriteatomic

This property represents tip amount.

transactionInputMethod

    • - (CoreTransactionInputMethod) transactionInputMethod

  • readwriteatomic

Sets the value of the transactionInputMethod property.Start the transaction in different mode.(Swipe, Insert, Tap)

transactionType

    • - (CoreTransactionType) transactionType

  • readwriteatomic

This property represents transaction type.