27 lines
814 B
C#
27 lines
814 B
C#
namespace Hutopy.Modules.Memberships.Contracts;
|
|
|
|
public interface IMembershipNotifier
|
|
{
|
|
Task NotifyCheckoutSessionCompleted(string stripeSessionId, string stripeSubscriptionId,
|
|
string userId,
|
|
string creatorId,
|
|
string tierId,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task NotifyPaymentSucceedAsync(
|
|
string stripeSubscriptionId,
|
|
string hostedInvoiceUrl,
|
|
decimal amount,
|
|
string currency,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task NotifySubscriptionUpdatedAsync(
|
|
string subscriptionId,
|
|
DateTimeOffset? endDate,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task NotifySubscriptionDeletedAsync(
|
|
string subscriptionId,
|
|
CancellationToken cancellationToken = default);
|
|
}
|