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

Interface for CRUD related to customers with Stripe
Inheritance: ICustomerProvider
Mostrar archivo Open project: pedropaf/saas-ecom

Public Methods

Method 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 method

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.
return Task

CustomerProvider() public method

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

DeleteCustomer() public method

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

UpdateCustomer() public method

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