C# 클래스 SaasEcom.Core.Infrastructure.PaymentProcessor.Stripe.CustomerProvider

Interface for CRUD related to customers with Stripe
상속: ICustomerProvider
파일 보기 프로젝트 열기: pedropaf/saas-ecom

공개 메소드들

메소드 설명
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.

메소드 상세

CreateCustomerAsync() 공개 메소드

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.
리턴 Task

CustomerProvider() 공개 메소드

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

DeleteCustomer() 공개 메소드

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

UpdateCustomer() 공개 메소드

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