Skip to content

Commit f88b4ef

Browse files
committed
updated tenantservice and stripe service to fix the build
1 parent ce1e924 commit f88b4ef

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/build-containers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
push_to_registry:
2222
description: 'Push images to registry'
2323
required: true
24-
default: 'false'
24+
default: false
2525
type: boolean
2626

2727
env:

src/services/tenant-service/Services/StripeService.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,28 +159,30 @@ public async Task HandleWebhookAsync(string json, string stripeSignature)
159159
try
160160
{
161161
var stripeEvent = EventUtility.ConstructEvent(json, stripeSignature, webhookSecret);
162-
162+
163163
_logger.LogInformation("Processing Stripe webhook event: {EventType}", stripeEvent.Type);
164164

165165
switch (stripeEvent.Type)
166166
{
167-
case Events.CustomerSubscriptionCreated:
167+
168+
case EventTypes.CustomerSubscriptionCreated:
169+
168170
await HandleSubscriptionCreatedAsync(stripeEvent);
169171
break;
170172

171-
case Events.CustomerSubscriptionUpdated:
173+
case EventTypes.CustomerSubscriptionUpdated:
172174
await HandleSubscriptionUpdatedAsync(stripeEvent);
173175
break;
174176

175-
case Events.CustomerSubscriptionDeleted:
177+
case EventTypes.CustomerSubscriptionDeleted:
176178
await HandleSubscriptionDeletedAsync(stripeEvent);
177179
break;
178180

179-
case Events.InvoicePaymentSucceeded:
181+
case EventTypes.InvoicePaymentSucceeded:
180182
await HandlePaymentSucceededAsync(stripeEvent);
181183
break;
182184

183-
case Events.InvoicePaymentFailed:
185+
case EventTypes.InvoicePaymentFailed:
184186
await HandlePaymentFailedAsync(stripeEvent);
185187
break;
186188

src/services/tenant-service/TenantService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.45.0" />
1111
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" />
1212
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
13-
<PackageReference Include="Stripe.net" Version="46.4.0" />
13+
<PackageReference Include="Stripe.net" Version="47.0.0" />
1414
</ItemGroup>
1515

1616
</Project>

0 commit comments

Comments
 (0)