C# 클래스 Samurai.Transaction

Represents a transaction.
상속: SamuraiBase
파일 보기 프로젝트 열기: FeeFighters/samurai-client-dotnet

공개 메소드들

메소드 설명
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