Class coreunreferencedrefund

Inheritance diagram for com.payments.core.CoreUnreferencedRefund:

Public Member Functions

CoreUnreferencedRefund (BigDecimal amount)
CoreUnreferencedRefund (BigDecimal amount, String orderId)
void setReason (String reason)
String getReason ()
BigDecimal getAmount ()
String getOrderId ()
void setCardHolderName (String cardHolderName)
String getCardHolderName ()
void setCardNumber (String cardNumber)
String getCardNumber ()
void setCardCvv (String cardCvv)
String getCardCvv ()
void setCardType (String cardType)
String getCardType ()
void setExpiryDate (String expiryDate)
String getExpiryDate ()
Boolean getAutoReady ()
void setAutoReady (Boolean value)
String getOperator ()
void setOperator (String operator)
void setEncryptedTrackData (String encryptedTrackData)
String getEncryptedTrackData ()
void setKsn (String ksn)
String getKsn ()
CoreTransactionInputMethod getTransactionInputMethod ()
void setTransactionInputMethod (CoreTransactionInputMethod transactionInputMethod)
String getTlvString ()
void setTlvString (String tlvString)
int getFirstDigitOfPan ()
void setFirstDigitOfPan (int firstDigitOfPan)
String getSerial ()
void setSerial (String serial)
TerminalCategory getTerminalCategory ()
void setTerminalCategory (TerminalCategory terminalCategory)
void setDeviceType (String deviceType)
String getDeviceType ()

Detailed Description

This class represents the unreferenced refund object.

CoreUnreferencedRefund refund = new CoreUnreferencedRefund(1.12);
refund.setCardholderName("John");
refund.setCardNumber("4111111111111111");
refund.setCardCvv("123");
refund.setCardType("VISA");
refund.setExpiryDate("1215");
refund.setReason("reason");
refund.setAutoReady(true);
AndroidTerminal.getInstance().processSale(refund);
// or if you use Java, use JavaTerminal.getInstance().processSale(refund);

Constructor & Destructor Documentation

CoreUnreferencedRefund() [1/2]

    • com.payments.core.CoreUnreferencedRefund.CoreUnreferencedRefund
    • (
    • BigDecimal
    • amount
    • )

  • inline

Constructor 1 creates unreferenced refund object with the amount.

Parameters

  • amount
  • of a transaction which is mandatory.

CoreUnreferencedRefund() [2/2]

    • com.payments.core.CoreUnreferencedRefund.CoreUnreferencedRefund
    • (
    • BigDecimal
    • amount,

    • String
    • orderId

    • )

  • inline

Constructor 2 creates unreferenced refund object with the amount and order id.

Parameters

  • amount
  • of a transaction which is mandatory.

  • orderId
  • holds order ID.

Member Function Documentation

getAmount()

    • BigDecimal com.payments.core.CoreUnreferencedRefund.getAmount
    • (
    • )

  • inline

The BigDecimal instance represents amount set for each transaction.

Returns

amount of a transaction

getAutoReady()

    • Boolean com.payments.core.CoreUnreferencedRefund.getAutoReady
    • (
    • )

  • inline

The Boolean instance represents auto ready when it is set to true transactions are automatically set to ready status in the open batch recommended(auto ready set to true).

Returns

autoReady

getCardCvv()

    • String com.payments.core.CoreUnreferencedRefund.getCardCvv
    • (
    • )

  • inline

The String instance represents card CVV 3 digit number provided on the back of credit/debit card.

Returns

cardCvv which holds CVV of a card

getCardHolderName()

    • String com.payments.core.CoreUnreferencedRefund.getCardHolderName
    • (
    • )

  • inline

The String instance represents card holder name.

Returns

cardholderName

getCardNumber()

    • String com.payments.core.CoreUnreferencedRefund.getCardNumber
    • (
    • )

  • inline

The String instance represents 16 digit number provided on the front of the credit/debit card.

Returns

cardNumber

getCardType()

    • String com.payments.core.CoreUnreferencedRefund.getCardType
    • (
    • )

  • inline

The String instance represents card type for example: Visa, MasterCard.

Returns

cardType which holds the type of a card (e.g VISA),

getDeviceType()

    • String com.payments.core.CoreUnreferencedRefund.getDeviceType
    • (
    • )

  • inline

The String instance representing device type.

Returns

deviceType - type of a device

getEncryptedTrackData()

    • String com.payments.core.CoreUnreferencedRefund.getEncryptedTrackData
    • (
    • )

  • inline

The String instance representing encrypted track data.

Returns

encryptedTrackData

getExpiryDate()

    • String com.payments.core.CoreUnreferencedRefund.getExpiryDate
    • (
    • )

  • inline

The String instance represents card expiry date(month,year).

Returns

expiryDate of a card,

getFirstDigitOfPan()

    • int com.payments.core.CoreUnreferencedRefund.getFirstDigitOfPan
    • (
    • )

  • inline

Gets the value of the firstDigitOfPan property.

Returns

firstDigitOfPan

getKsn()

    • String com.payments.core.CoreUnreferencedRefund.getKsn
    • (
    • )

  • inline

The String instance representing KSN (key serial number).

Returns

ksn key serial number

getOperator()

    • String com.payments.core.CoreUnreferencedRefund.getOperator
    • (
    • )

  • inline

The Boolean represents operator.

Returns

operator

getOrderId()

    • String com.payments.core.CoreUnreferencedRefund.getOrderId
    • (
    • )

  • inline

The String instance represents order Id assigned to each transaction.

Returns

orderId

getReason()

    • String com.payments.core.CoreUnreferencedRefund.getReason
    • (
    • )

  • inline

The String instance represents reason why refund of the transaction has been requested.

Returns

reason why you want to refund this transaction

getSerial()

    • String com.payments.core.CoreUnreferencedRefund.getSerial
    • (
    • )

  • inline

Gets the value of the serial port property.

Returns

serial

getTerminalCategory()

    • TerminalCategory com.payments.core.CoreUnreferencedRefund.getTerminalCategory
    • (
    • )

  • inline

Gets the value of the terminalCategory property.

Returns

terminalCategory

getTlvString()

    • String com.payments.core.CoreUnreferencedRefund.getTlvString
    • (
    • )

  • inline

The String instance representing tlv.

Returns

tlvString

getTransactionInputMethod()

Gets the value of the transactionInputMethod property.

Returns

transactionInputMethod

setAutoReady()

    • void com.payments.core.CoreUnreferencedRefund.setAutoReady
    • (
    • Boolean
    • value
    • )

  • inline

Sets the value of the autoReady property.

Parameters

  • value
  • true or false

setCardCvv()

    • void com.payments.core.CoreUnreferencedRefund.setCardCvv
    • (
    • String
    • cardCvv
    • )

  • inline

Sets the value of cardCvv property, cvv of the card

Parameters

  • cardCvv
  • holds card CVV

setCardHolderName()

    • void com.payments.core.CoreUnreferencedRefund.setCardHolderName
    • (
    • String
    • cardHolderName
    • )

  • inline

Sets the value of cardholderName property.

Parameters

  • cardHolderName
  • - card holder name

setCardNumber()

    • void com.payments.core.CoreUnreferencedRefund.setCardNumber
    • (
    • String
    • cardNumber
    • )

  • inline

Sets the value of cardNumber property.

Parameters

  • cardNumber
  • - card number

setCardType()

    • void com.payments.core.CoreUnreferencedRefund.setCardType
    • (
    • String
    • cardType
    • )

  • inline

Sets the value of cardType property, card type of the card

Parameters

  • cardType
  • of a card

setDeviceType()

    • void com.payments.core.CoreUnreferencedRefund.setDeviceType
    • (
    • String
    • deviceType
    • )

  • inline

Sets the value of deviceType property.

Parameters

  • deviceType
  • - type of a device

setEncryptedTrackData()

    • void com.payments.core.CoreUnreferencedRefund.setEncryptedTrackData
    • (
    • String
    • encryptedTrackData
    • )

  • inline

Sets the value of encryptedTrackData property, encrypted track data

Parameters

  • encryptedTrackData
  • - encrypted track data

setExpiryDate()

    • void com.payments.core.CoreUnreferencedRefund.setExpiryDate
    • (
    • String
    • expiryDate
    • )

  • inline

Sets the value of expiryDate property, expiry date of the card

Parameters

  • expiryDate
  • of a card

setFirstDigitOfPan()

    • void com.payments.core.CoreUnreferencedRefund.setFirstDigitOfPan
    • (
    • int
    • firstDigitOfPan
    • )

  • inline

Sets the value of the firstDigitOfPan property.

Parameters

  • firstDigitOfPan
  • - first digit of a card number

setKsn()

    • void com.payments.core.CoreUnreferencedRefund.setKsn
    • (
    • String
    • ksn
    • )

  • inline

Sets the value of ksn property, key serial number

Parameters

  • ksn
  • key serial number

setOperator()

    • void com.payments.core.CoreUnreferencedRefund.setOperator
    • (
    • String
    • operator
    • )

  • inline

Sets the value of the operator property.

Parameters

  • operator
  • (Android)

setReason()

    • void com.payments.core.CoreUnreferencedRefund.setReason
    • (
    • String
    • reason
    • )

  • inline

Sets the value of reason property.

Parameters

  • reason
  • to refund the transaction

setSerial()

    • void com.payments.core.CoreUnreferencedRefund.setSerial
    • (
    • String
    • serial
    • )

  • inline

Sets the value of the serial port property.

Parameters

  • serial
  • - serial port

setTerminalCategory()

    • void com.payments.core.CoreUnreferencedRefund.setTerminalCategory
    • (
    • TerminalCategory
    • terminalCategory
    • )

  • inline

Sets the value of the terminalCategory property.

Parameters

  • terminalCategory
  • - category of the terminal

setTlvString()

    • void com.payments.core.CoreUnreferencedRefund.setTlvString
    • (
    • String
    • tlvString
    • )

  • inline

Sets the value of tlv string property.

Parameters

  • tlvString
  • - TLV

setTransactionInputMethod()

  • inline

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

Parameters

  • transactionInputMethod
  • - mode