-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
44 lines (40 loc) · 939 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import Stripe from 'stripe';
export interface Song {
id: string;
user_id: string;
author: string;
title: string;
song_path: string;
image_path: string;
}
export interface UserDetails {
id: string;
first_name: string;
last_name: string;
full_name?: string;
avatar_url?: string;
billing_address?: string;
payment_method?: Stripe.PaymentMethod[Stripe.PaymentMethod.Type];
}
export interface Product {
id: string;
active?: boolean;
description?: string;
name?: string;
image?: string;
metadata?: Stripe.Metadata;
}
export interface Price {
id: string;
product_id?: string;
active?: boolean;
description?: string;
unit_amount?: number;
currency?: string;
type?: Stripe.Price.Type;
interval?: Stripe.Price.Recurring.Interval;
interval_count?: number;
trial_period_days?: number;
metadata?: Stripe.Metadata;
products?: Product;
}