C# Class Samurai.PaymentMethod

Represents payment method.
Inheritance: SamuraiBase
Afficher le fichier Open project: FeeFighters/samurai-client-dotnet Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Execute ( RestRequest request ) : PaymentMethod
ProcessResponseErrors ( ) : void

Method Details

Create() public static méthode

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

Execute() protected static méthode

protected static Execute ( RestRequest request ) : PaymentMethod
request RestSharp.RestRequest
Résultat PaymentMethod

Find() public static méthode

Fetches payment method by its token.
public static Find ( string paymentMethodToken ) : PaymentMethod
paymentMethodToken string Payment method token.
Résultat PaymentMethod

ProcessResponseErrors() protected méthode

protected ProcessResponseErrors ( ) : void
Résultat void

Redact() public méthode

Redacts sensitive information from the payment method, rendering it unusable.
public Redact ( ) : PaymentMethod
Résultat PaymentMethod

Retain() public méthode

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

SetAttributes() public méthode

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

TokenizePaymentMethod() public static méthode

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

Update() public méthode

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

UpdateAttributes() public méthode

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