Skip to content

Commit

Permalink
fix: fix stripe subscription detail is not nullable issue (#966)
Browse files Browse the repository at this point in the history
Because

- stripe subscription detail should be nullable

This commit

- fix stripe subscription detail is not nullable issue
  • Loading branch information
EiffelFly committed Feb 15, 2024
1 parent 7b7324b commit 78d903b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@instill-ai/toolkit",
"version": "0.80.4-rc.10",
"version": "0.80.4-rc.11",
"description": "Instill AI's frontend toolkit",
"repository": "https://github.com/instill-ai/design-system.git",
"bugs": "https://github.com/instill-ai/design-system/issues",
Expand Down
3 changes: 2 additions & 1 deletion packages/toolkit/src/lib/vdp-sdk/mgmt/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Nullable } from "../../type";
import { StripeSubscriptionDetail } from "../types";

export type UserProfile = {
Expand Down Expand Up @@ -44,7 +45,7 @@ export type UserSubscriptionPlan =

export type UserSubscription = {
plan: UserSubscriptionPlan;
detail: StripeSubscriptionDetail;
detail: Nullable<StripeSubscriptionDetail>;
};

export type ApiToken = {
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/lib/vdp-sdk/organization/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type OrganizationSubscriptionPlan =

export type OrganizationSubscription = {
plan: OrganizationSubscriptionPlan;
detail: StripeSubscriptionDetail;
detail: Nullable<StripeSubscriptionDetail>;
max_seats: number;
used_seats: number;
};
Expand Down

0 comments on commit 78d903b

Please sign in to comment.