-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe936a7
commit 2d7a242
Showing
49 changed files
with
444 additions
and
367 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...stomerAggregate/Aplication/IntegrationEventHandlers/UserCreatedIntegrationEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Modules.TenantIdentity.IntegrationEvents; | ||
using Shared.Features.CQRS.IntegrationEvent; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeCustomerAggregate.Aplication.IntegrationEventHandlers | ||
{ | ||
public class UserCreatedIntegrationEventHandler : IIntegrationEventHandler<UserCreatedIntegrationEvent> | ||
{ | ||
public async Task HandleAsync(UserCreatedIntegrationEvent userCreatedIntegrationEvent, CancellationToken cancellation) | ||
{ | ||
|
||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...stomerAggregate/Aplication/IntegrationEventHandlers/UserUpdatedIntegrationEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Modules.TenantIdentity.IntegrationEvents; | ||
using Shared.Features.CQRS.IntegrationEvent; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeCustomerAggregate.Aplication.IntegrationEventHandlers | ||
{ | ||
public class UserUpdatedIntegrationEventHandler : IIntegrationEventHandler<UserEmailUpdatedIntegrationEvent> | ||
{ | ||
public async Task HandleAsync(UserEmailUpdatedIntegrationEvent userEmailUpdatedIntegrationEvent, CancellationToken cancellationToken) | ||
{ | ||
|
||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...iption.Features/Agregates/StripeCustomerAggregate/Aplication/Queries/GetStripeCustomer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Modules.Subscriptions.Features.Agregates.StripeCustomerAggregate; | ||
using Shared.Features.CQRS.Query; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeCustomerAggregate.Aplication.Queries | ||
{ | ||
public class GetStripeCustomer : IQuery<StripeCustomer> | ||
{ | ||
public string StripeCustomerId { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...eatures/Modules.Subscription.Features/Agregates/StripeCustomerAggregate/StripeCustomer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Shared.Features.DomainKernel; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeCustomerAggregate | ||
{ | ||
public class StripeCustomer : AggregateRoot | ||
{ | ||
public Guid UserId { get; set; } | ||
public string StripeCustomerId { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...Agregates/StripeSubscriptionAggregate/Application/Commands/CreateSubscriptionForTenant.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Shared.Features.CQRS.Command; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeSubscriptionAggregate.Application.Commands | ||
{ | ||
public class CreateSubscriptionForTenant : ICommand | ||
{ | ||
public Guid TenantId { get; set; } | ||
public Stripe.Subscription Subscription { get; set; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...Features/Agregates/StripeSubscriptionAggregate/Application/Commands/DeleteSubscription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Shared.Features.CQRS.Command; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeSubscriptionAggregate.Application.Commands | ||
{ | ||
public class DeleteSubscription : ICommand | ||
{ | ||
public Stripe.Subscription Subscription { get; set; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...Features/Agregates/StripeSubscriptionAggregate/Application/Commands/UpdateSubscription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Shared.Features.CQRS.Command; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeSubscriptionAggregate.Application.Commands | ||
{ | ||
public class UpdateSubscription : ICommand | ||
{ | ||
public Stripe.Subscription Subscription { get; set; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...res/Agregates/StripeSubscriptionAggregate/Application/Queries/GetStripeCheckoutSession.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Shared.Features.CQRS.Query; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeSubscriptionAggregate.Application.Queries | ||
{ | ||
public class GetStripeCheckoutSession : IQuery<Stripe.Checkout.Session> | ||
{ | ||
public string SessionId { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...Modules.Subscription.Features/Agregates/StripeSubscriptionAggregate/StripeSubscription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Modules.Subscriptions.Features.Agregates.StripeCustomerAggregate; | ||
using Shared.Features.DomainKernel; | ||
using Shared.Kernel.BuildingBlocks.Authorization; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.StripeSubscriptionAggregate | ||
{ | ||
public class StripeSubscription : AggregateRoot | ||
{ | ||
public StripeCustomer StripeCustomer { get; set; } | ||
public DateTime ExpirationDate { get; set; } | ||
public SubscriptionPlanType PlanType { get; set; } | ||
public SubscriptionStatus Status { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...les.Subscription.Features/Agregates/StripeSubscriptionAggregate/StripeSubscriptionPlan.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Shared.Kernel.BuildingBlocks.Authorization; | ||
|
||
namespace Modules.Subscriptions.Features.Agregates.SubscriptionAggregate | ||
{ | ||
public class StripeSubscriptionPlan | ||
{ | ||
public string StripePriceId { get; set; } | ||
public SubscriptionPlanType Type { get; set; } | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...Modules.Subscription.Features/Agregates/StripeSubscriptionAggregate/SubscriptionStatus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Modules.Subscriptions.Features.Agregates.StripeSubscriptionAggregate | ||
{ | ||
public enum SubscriptionStatus | ||
{ | ||
Active, | ||
Canceled, | ||
Trialing, | ||
Unpaid | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
...ion/Features/Modules.Subscription.Features/Features/Commands/CreateSubscriptionCommand.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ion/Features/Modules.Subscription.Features/Features/Commands/DeleteSubscriptionCommand.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...Features/Modules.Subscription.Features/Features/Commands/SubscriptionTrialEndedCommand.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ion/Features/Modules.Subscription.Features/Features/Commands/UpdateSubscriptionCommand.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ures/Modules.Subscription.Features/Features/Services/Interfaces/IStripeCustomerService.cs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...tures/Modules.Subscription.Features/Features/Services/Interfaces/IStripeSessionService.cs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
.../Modules.Subscription.Features/Features/Services/Interfaces/IStripeSubscriptionService.cs
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...ription/Features/Modules.Subscription.Features/Features/Services/StripeCustomerService.cs
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
...cription/Features/Modules.Subscription.Features/Features/Services/StripeSessionService.cs
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...Features/Modules.Subscription.Features/Features/Services/StripeSubscriptionTypeService.cs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ubscription/Features/Modules.Subscription.Features/Features/StripeIntegrationException.cs
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
...ures/Modules.Subscription.Features/Infrastructure/Configuration/StripeSubscriptionType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ntity.Features/Aggregates/TenantAggregate/Application/Queries/GetTenantMembershipQuery.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.