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

Implementation for CRUD related to credit cards with Stripe and also saves the details in the database.
상속: ICardProvider
파일 보기 프로젝트 열기: pedropaf/saas-ecom

공개 메소드들

메소드 설명
AddAsync ( SaasEcom.Core.Models.SaasEcomUser user, CreditCard card ) : System.Threading.Tasks.Task

Adds the credit card asynchronous.

CardBelongToUser ( int cardId, string userId ) : Task

Check if the Card belong to user.

CardProvider ( string apiKey, ICardDataService cardDataService ) : System.Collections.Generic

Initializes a new instance of the CardProvider class.

DeleteAsync ( string customerId, string custStripeId, int cardId ) : System.Threading.Tasks.Task

Deletes the credit card asynchronous.

FindAsync ( string customerId, int cardId ) : Task

Finds the credit card asynchronous.

GetAllAsync ( string customerId ) : Task>

Gets all the credit cards asynchronous.

UpdateAsync ( SaasEcom.Core.Models.SaasEcomUser user, CreditCard creditcard ) : System.Threading.Tasks.Task

Updates the credit card asynchronous.

비공개 메소드들

메소드 설명
AddCardToStripe ( CreditCard card, string stripeCustomerId ) : StripeCard

메소드 상세

AddAsync() 공개 메소드

Adds the credit card asynchronous.
public AddAsync ( SaasEcom.Core.Models.SaasEcomUser user, CreditCard card ) : System.Threading.Tasks.Task
user SaasEcom.Core.Models.SaasEcomUser The user.
card CreditCard The card.
리턴 System.Threading.Tasks.Task

CardBelongToUser() 공개 메소드

Check if the Card belong to user.
public CardBelongToUser ( int cardId, string userId ) : Task
cardId int The card identifier.
userId string The user identifier.
리턴 Task

CardProvider() 공개 메소드

Initializes a new instance of the CardProvider class.
public CardProvider ( string apiKey, ICardDataService cardDataService ) : System.Collections.Generic
apiKey string The API key.
cardDataService ICardDataService The card data service.
리턴 System.Collections.Generic

DeleteAsync() 공개 메소드

Deletes the credit card asynchronous.
public DeleteAsync ( string customerId, string custStripeId, int cardId ) : System.Threading.Tasks.Task
customerId string The customer identifier.
custStripeId string The customer stripe identifier.
cardId int The Card identifier.
리턴 System.Threading.Tasks.Task

FindAsync() 공개 메소드

Finds the credit card asynchronous.
public FindAsync ( string customerId, int cardId ) : Task
customerId string The customer identifier.
cardId int The card identifier.
리턴 Task

GetAllAsync() 공개 메소드

Gets all the credit cards asynchronous.
public GetAllAsync ( string customerId ) : Task>
customerId string The customer identifier.
리턴 Task>

UpdateAsync() 공개 메소드

Updates the credit card asynchronous.
public UpdateAsync ( SaasEcom.Core.Models.SaasEcomUser user, CreditCard creditcard ) : System.Threading.Tasks.Task
user SaasEcom.Core.Models.SaasEcomUser The user.
creditcard CreditCard The creditcard.
리턴 System.Threading.Tasks.Task