Class corerefund

This class represents referenced refund object.More…

Public Member Functions

CoreRefund (decimal amount)
Initializes a new instance of the CoreRefund class.More…

Properties

decimal amount [get, set]
Gets or sets the amount.More…
string orderId [get, set]
Gets or sets the order identifier.More…
string reason [get, set]
Gets or sets the reason for the refund.More…
string uniqueRef [get, set]
Gets or sets the unique reference assigned to each transaction.More…
bool autoReady [get, set]
Gets or sets a value indicating whether the transaction is set automatically to READY in the open batch.More…
string operatorType [get, set]
Gets or sets the type of the operator.More…

Detailed Description

This class represents referenced refund object.

CoreRefund refundRequest = new CoreRefund(Math.Round(amount, 2, MidpointRounding.ToEven));
refundRequest.uniqueRef = uniqueRefFromLastTransaction;
refundRequest.reason = "reason";
Terminal.Instance.ProcessRefund(refundRequest);

Constructor & Destructor Documentation

CoreRefund()

    • CorePayments.CoreRefund.CoreRefund
    • (
    • decimal
    • amount
    • )

  • inline

Initializes a new instance of the CoreRefund class.

Parameters

  • amount
  • The amount.

Property Documentation

amount

    • decimal CorePayments.CoreRefund.amount

  • getset

Gets or sets the amount.

The amount.

autoReady

    • bool CorePayments.CoreRefund.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

.

operatorType

    • string CorePayments.CoreRefund.operatorType

  • getset

Gets or sets the type of the operator.

The type of the operator.

orderId

    • string CorePayments.CoreRefund.orderId

  • getset

Gets or sets the order identifier.

The order identifier.

reason

    • string CorePayments.CoreRefund.reason

  • getset

Gets or sets the reason for the refund.

The reason.

uniqueRef

    • string CorePayments.CoreRefund.uniqueRef

  • getset

Gets or sets the unique reference assigned to each transaction.

The unique reference.