Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update Stripe API version #200

Merged
merged 2 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"pdf-generator-client": "github:GEWIS/pdf-generator-client#967a329",
"reflect-metadata": "^0.1.13",
"sqlite3": "^5.1.5",
"stripe": "^10.1.0",
"stripe": "^16.1.0",
"swagger-model-validator": "^3.0.21",
"swagger-ui-express": "^5.0.0",
"typeorm": "^0.3.12",
Expand Down
2 changes: 1 addition & 1 deletion src/service/stripe-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import wrapInManager from '../helpers/database';
import BalanceResponse from '../controller/response/balance-response';
import { StripeRequest } from '../controller/request/stripe-request';

export const STRIPE_API_VERSION = '2022-08-01';
export const STRIPE_API_VERSION = '2024-06-20';

export default class StripeService {
private stripe: Stripe;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/service/stripe-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ describe('StripeService', async (): Promise<void> => {
id: beforeStripeDeposit.stripeId,
} as any,
},
} as Stripe.Event;
} as unknown as Stripe.Event;

await expect(ctx.stripeService.handleWebhookEvent(event)).to.be.eventually.fulfilled;
const afterStripeDeposit = await StripeService.getStripeDeposit(id);
Expand Down
Loading