C# Class Samurai.Transaction

Represents a transaction.
Inheritance: SamuraiBase
Afficher le fichier Open project: FeeFighters/samurai-client-dotnet

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
ProcessResponseErrors ( ) : void

Method Details

Capture() public méthode

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.
Résultat Transaction

Capture() public méthode

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.
Résultat Transaction

Credit() public méthode

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.
Résultat Transaction

Execute() public static méthode

public static Execute ( RestRequest request ) : Transaction
request RestSharp.RestRequest
Résultat Transaction

Find() public static méthode

Fetches a transaction.
public static Find ( string purchaseReferenceId ) : Transaction
purchaseReferenceId string Transaction reference id.
Résultat Transaction

ProcessResponseErrors() protected méthode

protected ProcessResponseErrors ( ) : void
Résultat void

Reverse() public méthode

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.
Résultat Transaction

Success() public méthode

public Success ( ) : bool
Résultat bool

Void() public méthode

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
Résultat Transaction