C# 클래스 Samurai.PaymentMethod

Represents payment method.
상속: SamuraiBase
파일 보기 프로젝트 열기: FeeFighters/samurai-client-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
Create ( PaymentMethodPayload payload ) : PaymentMethod

Creates a brand new payment method with given parameters.

Find ( string paymentMethodToken ) : PaymentMethod

Fetches payment method by its token.

Redact ( ) : PaymentMethod

Redacts sensitive information from the payment method, rendering it unusable.

Retain ( ) : PaymentMethod

Retains the payment method on api.samurai.feefighters.com. Retain a payment method if it will not be used immediately.

SetAttributes ( PaymentMethodPayload payload ) : void

Update the payment method with the provided payload attributes

This method will set the attributes of this payment method. It does not persist those changes to the server.

TokenizePaymentMethod ( PaymentMethodPayload payload ) : string

Creates a brand new payment method with given parameters and returns its token.

Update ( ) : void

Uploads payment method changes onto server. Only properties that have been changed will be uploaded.

This method will be fetch original payment method by token and compare original payment method with the current payment method.

UpdateAttributes ( PaymentMethodPayload payload ) : void

Update the payment method with the provided payload attributes

This method will set the attributes of this payment method. It will also persist the new changes to the server.

보호된 메소드들

메소드 설명
Execute ( RestRequest request ) : PaymentMethod
ProcessResponseErrors ( ) : void

메소드 상세

Create() 공개 정적인 메소드

Creates a brand new payment method with given parameters.
public static Create ( PaymentMethodPayload payload ) : PaymentMethod
payload PaymentMethodPayload Payment Method payload, containing parameters for the new PM
리턴 PaymentMethod

Execute() 보호된 정적인 메소드

protected static Execute ( RestRequest request ) : PaymentMethod
request RestSharp.RestRequest
리턴 PaymentMethod

Find() 공개 정적인 메소드

Fetches payment method by its token.
public static Find ( string paymentMethodToken ) : PaymentMethod
paymentMethodToken string Payment method token.
리턴 PaymentMethod

ProcessResponseErrors() 보호된 메소드

protected ProcessResponseErrors ( ) : void
리턴 void

Redact() 공개 메소드

Redacts sensitive information from the payment method, rendering it unusable.
public Redact ( ) : PaymentMethod
리턴 PaymentMethod

Retain() 공개 메소드

Retains the payment method on api.samurai.feefighters.com. Retain a payment method if it will not be used immediately.
public Retain ( ) : PaymentMethod
리턴 PaymentMethod

SetAttributes() 공개 메소드

Update the payment method with the provided payload attributes
This method will set the attributes of this payment method. It does not persist those changes to the server.
public SetAttributes ( PaymentMethodPayload payload ) : void
payload PaymentMethodPayload
리턴 void

TokenizePaymentMethod() 공개 정적인 메소드

Creates a brand new payment method with given parameters and returns its token.
public static TokenizePaymentMethod ( PaymentMethodPayload payload ) : string
payload PaymentMethodPayload Payment Method payload, containing parameters for the new PM
리턴 string

Update() 공개 메소드

Uploads payment method changes onto server. Only properties that have been changed will be uploaded.
This method will be fetch original payment method by token and compare original payment method with the current payment method.
public Update ( ) : void
리턴 void

UpdateAttributes() 공개 메소드

Update the payment method with the provided payload attributes
This method will set the attributes of this payment method. It will also persist the new changes to the server.
public UpdateAttributes ( PaymentMethodPayload payload ) : void
payload PaymentMethodPayload
리턴 void