- Implemented FormEditOrder component for editing orders with validation and submission handling. - Created SchedaAnnuncioPage for displaying printable announcement details. - Added BonificoManualePage for manual bank transfer payment instructions. - Developed PagamentoPage for Stripe payment processing with PaymentIntent creation. - Introduced PreviewPurchasePage for preparing payment with service details. - Added pagamenti.controller for handling payment preparation and retrieval of payment data.
47 lines
1.7 KiB
TypeScript
47 lines
1.7 KiB
TypeScript
// @generated
|
|
// This file is automatically generated by Kanel. Do not modify manually.
|
|
|
|
import type { UsersId } from './Users';
|
|
import type { PrezziarioIdprezziario } from './Prezziario';
|
|
import type { ServizioServizioId } from './Servizio';
|
|
import type { default as OrderTypeEnum } from './OrderTypeEnum';
|
|
import type { default as PaymentStatusEnum } from './PaymentStatusEnum';
|
|
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
|
|
/** Identifier type for public.ordini */
|
|
export type OrdiniOrdineId = string & { __brand: 'public.ordini' };
|
|
|
|
/** Represents the table public.ordini */
|
|
export default interface OrdiniTable {
|
|
ordine_id: ColumnType<OrdiniOrdineId, OrdiniOrdineId | undefined, OrdiniOrdineId>;
|
|
|
|
userid: ColumnType<UsersId, UsersId, UsersId>;
|
|
|
|
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
|
|
packid: ColumnType<PrezziarioIdprezziario, PrezziarioIdprezziario, PrezziarioIdprezziario>;
|
|
|
|
servizio_id: ColumnType<ServizioServizioId, ServizioServizioId, ServizioServizioId>;
|
|
|
|
type: ColumnType<OrderTypeEnum, OrderTypeEnum, OrderTypeEnum>;
|
|
|
|
isActive: ColumnType<boolean, boolean | undefined, boolean>;
|
|
|
|
amount_cent: ColumnType<number, number, number>;
|
|
|
|
paymentmethod: ColumnType<string | null, string | null, string | null>;
|
|
|
|
paid_at: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
|
|
intent_id: ColumnType<string | null, string | null, string | null>;
|
|
|
|
paymentstatus: ColumnType<PaymentStatusEnum | null, PaymentStatusEnum | null, PaymentStatusEnum | null>;
|
|
|
|
sconto: ColumnType<number, number | undefined, number>;
|
|
}
|
|
|
|
export type Ordini = Selectable<OrdiniTable>;
|
|
|
|
export type NewOrdini = Insertable<OrdiniTable>;
|
|
|
|
export type OrdiniUpdate = Updateable<OrdiniTable>;
|