C# Class SaasEcom.Core.Infrastructure.PaymentProcessor.Stripe.CustomerProvider

Interface for CRUD related to customers with Stripe
Inheritance: ICustomerProvider
Afficher le fichier Open project: pedropaf/saas-ecom

Méthodes publiques

Méthode Description
CreateCustomerAsync ( SaasEcom.Core.Models.SaasEcomUser user, string planId = null, System.DateTime trialEnd = null, string cardToken = null ) : Task

Creates the customer asynchronous.

CustomerProvider ( string apiKey ) : System

Initializes a new instance of the CustomerProvider class.

DeleteCustomer ( SaasEcom.Core.Models.SaasEcomUser user ) : void

Deletes the customer.

UpdateCustomer ( SaasEcom.Core.Models.SaasEcomUser user, CreditCard card ) : object

Updates the customer.

Method Details

CreateCustomerAsync() public méthode

Creates the customer asynchronous.
public CreateCustomerAsync ( SaasEcom.Core.Models.SaasEcomUser user, string planId = null, System.DateTime trialEnd = null, string cardToken = null ) : Task
user SaasEcom.Core.Models.SaasEcomUser The user.
planId string The plan identifier.
trialEnd System.DateTime The trial end.
cardToken string The card token.
Résultat Task

CustomerProvider() public méthode

Initializes a new instance of the CustomerProvider class.
public CustomerProvider ( string apiKey ) : System
apiKey string The API key.
Résultat System

DeleteCustomer() public méthode

Deletes the customer.
public DeleteCustomer ( SaasEcom.Core.Models.SaasEcomUser user ) : void
user SaasEcom.Core.Models.SaasEcomUser The user.
Résultat void

UpdateCustomer() public méthode

Updates the customer.
public UpdateCustomer ( SaasEcom.Core.Models.SaasEcomUser user, CreditCard card ) : object
user SaasEcom.Core.Models.SaasEcomUser The user.
card CreditCard The card.
Résultat object