C# Класс Samurai.PaymentMethod

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

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

Метод Описание
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