/// <summary> /// Makes a subscription cache key. /// </summary> /// <param name="subscriptionId"> /// The subscription id. /// </param> /// <returns> /// The <see cref="string"/> cache key. /// </returns> protected string MakeSubscriptionCacheKey(string subscriptionId) { return(CacheKeys.BraintreeSubscription(subscriptionId)); }
/// <summary> /// Makes a customer cache key. /// </summary> /// <param name="customerId"> /// The Braintree customer id /// </param> /// <returns> /// The <see cref="string"/> cache key. /// </returns> protected string MakeCustomerCacheKey(string customerId) { return(CacheKeys.BraintreeCustomer(customerId)); }
/// <summary> /// Makes a payment method cache key. /// </summary> /// <param name="token"> /// The token. /// </param> /// <returns> /// The <see cref="string"/> cache key. /// </returns> protected string MakePaymentMethodCacheKey(string token) { return(CacheKeys.BraintreePaymentMethod(token)); }
/// <summary> /// Makes a customer cache key. /// </summary> /// <param name="customer"> /// The customer. /// </param> /// <returns> /// The <see cref="string"/> cache key. /// </returns> protected string MakeCustomerCacheKey(ICustomer customer) { return(CacheKeys.BraintreeCustomer(customer.Key)); }