1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-12 09:29:18 +01:00

37 lines
871 B
TypeScript
Raw Normal View History

import { Reservation } from './reservation';
import { SubscriptionRequest } from './subscription';
export interface PaymentConfirmation {
requires_action?: boolean,
payment_intent_client_secret?: string,
success?: boolean,
error?: {
statusText: string
2020-12-07 13:49:11 +01:00
}
}
export interface IntentConfirmation {
client_secret: string
}
export enum PaymentMethod {
Card = 'card',
Other = ''
}
2021-06-04 18:26:20 +02:00
export type CartItem = { reservation: Reservation }|{ subscription: SubscriptionRequest }|{ card_update: { date: Date } };
export interface ShoppingCart {
customer_id: number,
// WARNING: items ordering matters! The first item in the array will be considered as the main item
items: Array<CartItem>,
coupon_code?: string,
payment_schedule?: boolean,
payment_method: PaymentMethod
}
2021-02-09 12:09:26 +01:00
export interface UpdateCardResponse {
updated: boolean,
error?: string
}