/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* tslint:disable */ import { PaymentMethodStatus } from "./PaymentMethodStatus"; import * as t from "io-ts"; // required attributes const ActivationPeriodsR = t.interface({ enrollment: t.string, status: PaymentMethodStatus }); // optional attributes const ActivationPeriodsO = t.partial({ cancellation: t.string, hist_insert_date: t.string, hist_insert_user: t.string, hist_update_date: t.string, hist_update_user: t.string }); export const ActivationPeriods = t.exact( t.intersection([ActivationPeriodsR, ActivationPeriodsO], "ActivationPeriods") ); export type ActivationPeriods = t.TypeOf;