C# Класс Samurai.Transaction

Represents a transaction.
Наследование: SamuraiBase
Показать файл Открыть проект

Открытые методы

Метод Описание
Capture ( decimal amount ) : Transaction

Captures an authorization. Optionally specify an amount to do a partial capture of the initial authorization. The default is to capture the full amount of the authorization.

If amount is not specefied Capture(string=null) method will be used.

Capture ( string amount = null ) : Transaction

Captures an authorization. Optionally specify an amount to do a partial capture of the initial authorization. The default is to capture the full amount of the authorization.

Credit ( string amount = null ) : Transaction

Create a credit or refund against the original transaction. Optionally accepts an amount to credit, the default is to credit the full value of the original amount.

Execute ( RestRequest request ) : Transaction
Find ( string purchaseReferenceId ) : Transaction

Fetches a transaction.

Reverse ( string amount = null ) : Transaction

Create a credit or refund against the original transaction. Optionally accepts an amount to credit, the default is to credit the full value of the original amount.

Success ( ) : bool
Void ( ) : Transaction

Voids this transaction. If the transaction has not yet been captured and settled it can be voided to prevent any funds from transferring.

Защищенные методы

Метод Описание
ProcessResponseErrors ( ) : void

Описание методов

Capture() публичный Метод

Captures an authorization. Optionally specify an amount to do a partial capture of the initial authorization. The default is to capture the full amount of the authorization.
If amount is not specefied Capture(string=null) method will be used.
public Capture ( decimal amount ) : Transaction
amount decimal Amount of partial capture, specify only if needed.
Результат Transaction

Capture() публичный Метод

Captures an authorization. Optionally specify an amount to do a partial capture of the initial authorization. The default is to capture the full amount of the authorization.
public Capture ( string amount = null ) : Transaction
amount string Amount of partial capture, specify only if needed.
Результат Transaction

Credit() публичный Метод

Create a credit or refund against the original transaction. Optionally accepts an amount to credit, the default is to credit the full value of the original amount.
public Credit ( string amount = null ) : Transaction
amount string Amount of partial credit, specify only if needed.
Результат Transaction

Execute() публичный статический Метод

public static Execute ( RestRequest request ) : Transaction
request RestSharp.RestRequest
Результат Transaction

Find() публичный статический Метод

Fetches a transaction.
public static Find ( string purchaseReferenceId ) : Transaction
purchaseReferenceId string Transaction reference id.
Результат Transaction

ProcessResponseErrors() защищенный Метод

protected ProcessResponseErrors ( ) : void
Результат void

Reverse() публичный Метод

Create a credit or refund against the original transaction. Optionally accepts an amount to credit, the default is to credit the full value of the original amount.
public Reverse ( string amount = null ) : Transaction
amount string Amount of partial reverse, specify only if needed.
Результат Transaction

Success() публичный Метод

public Success ( ) : bool
Результат bool

Void() публичный Метод

Voids this transaction. If the transaction has not yet been captured and settled it can be voided to prevent any funds from transferring.
public Void ( ) : Transaction
Результат Transaction