2020-12-01 17:55:23 +01:00
|
|
|
import { Reservation } from './reservation';
|
|
|
|
|
|
|
|
export interface PaymentConfirmation {
|
|
|
|
requires_action?: boolean,
|
|
|
|
payment_intent_client_secret?: string,
|
|
|
|
success?: boolean,
|
|
|
|
error?: {
|
|
|
|
statusText: string
|
2020-12-07 13:49:11 +01:00
|
|
|
}
|
2020-12-01 17:55:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum PaymentMethod {
|
|
|
|
Stripe = 'stripe',
|
|
|
|
Other = ''
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CartItems {
|
2020-12-07 13:49:11 +01:00
|
|
|
reservation?: Reservation,
|
|
|
|
subscription?: {
|
2020-12-01 17:55:23 +01:00
|
|
|
plan_id: number,
|
|
|
|
user_id: number,
|
|
|
|
payment_schedule: boolean,
|
|
|
|
payment_method: PaymentMethod
|
|
|
|
},
|
2020-12-07 13:49:11 +01:00
|
|
|
coupon_code?: string
|
2020-12-01 17:55:23 +01:00
|
|
|
}
|