Skip to content

Commit

Permalink
Update CoursePrice interface
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilgeorgescu authored Oct 29, 2024
1 parent 988d368 commit 06aa1f0
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions src/pages/courses/_components/CoursePrice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,31 @@ interface Props {
pricingPlanId: number;
}

// interface Response {
// pricing_plan: {
// id: number;
// created_at: string;
// updated_at: string;
// name: string;
// price: number;
// currency: string;
// course_id: number;
// frequency: {
// type: string;
// billing_interval: string;
// billing_interval_count: number;
// access_limit_date: string | null;
// access_limit_interval: string | null;
// access_limit_duration: string | null;
// };
// description: string;
// free_trial_length: number | null;
// enrollment_cap: number | null;
// };
// }

interface Response {
pricing_plan: {
id: number;
created_at: string;
updated_at: string;
name: string;
price: number;
currency: string;
course_id: number;
frequency: {
type: string;
billing_interval: string;
billing_interval_count: number;
access_limit_date: string | null;
access_limit_interval: string | null;
access_limit_duration: string | null;
};
description: string;
free_trial_length: number | null;
enrollment_cap: number | null;
};
price: number;
}

export default function Example({ pricingPlanId }: Props) {
Expand Down

0 comments on commit 06aa1f0

Please sign in to comment.