/** * 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 * as t from "io-ts"; import { enumType } from "italia-ts-commons/lib/types"; export enum TypeEnum { "BPay" = "BPay" } // required attributes const PublicBPayR = t.interface({ hpan: t.string, type: enumType(TypeEnum, "type"), bank_name: t.string }); // optional attributes const PublicBPayO = t.partial({}); export const PublicBPay = t.exact( t.intersection([PublicBPayR, PublicBPayO], "PublicBPay") ); export type PublicBPay = t.TypeOf;