import type { Locale } from '../services/http/types' import type { SupportedCurrencies } from './Contract' export type ExportFigaroStatus = 'finished' | 'waiting' | 'processing' export type LocalizedString = Record export type TouristTaxStatus = | 'approved' | 'cancelled' | 'error' | 'finished' | 'processing' | 'waiting' export type ExportFigaro = { createdAt: string exportedDataEndAt?: string | undefined exportedDataStartAt?: string | undefined id: string status: ExportFigaroStatus type: 'Exports::Figaro' updatedAt?: string | undefined url: string } export type IncomingPaymentTransaction = { createdAt: string exportedDataEndAt: string exportedDataStartAt: string id: string importedToAccountSoftware: boolean | null status: string temporaryUrl: string type: string updatedAt: string url: string } export type TouristTax = { amount: number createdAt: LocalizedString createdBy: string currency: SupportedCurrencies exportedDataEndAt: LocalizedString exportedDataStartAt: LocalizedString id: string | number numberOfSales: number period: LocalizedString status: TouristTaxStatus statusUpdatedAt: LocalizedString statusUpdatedBy: string url: string } export type TouristTaxPayload = { export: { status?: TouristTaxStatus exported_data_start_at?: string exported_data_end_at?: string subsidiary_id?: string } }