/** * 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 { FiscalCode } from "./FiscalCode"; import { ActivationPeriods } from "./ActivationPeriods"; import * as t from "io-ts"; import { enumType } from "italia-ts-commons/lib/types"; export enum Channel_descrEnum { "BancaSella" = "BancaSella", "BancaSella_Other" = "BancaSella_Other", "Poste" = "Poste", "SatisPay" = "SatisPay", "EnelX" = "EnelX", "BancomatPay" = "BancomatPay", "Flowe" = "Flowe", "Nexi_YAP" = "Nexi_YAP", "Nexi_Issuing_diretto" = "Nexi_Issuing_diretto", "Nexi_Other" = "Nexi_Other", "Hype" = "Hype", "AppIO" = "AppIO", "Other" = "Other" } // required attributes const PaymentMethodDetailsR = t.interface({ fiscal_code: FiscalCode, hpan: t.string, enabled: t.boolean, activation_periods: t.readonlyArray( ActivationPeriods, "array of ActivationPeriods" ) }); // optional attributes const PaymentMethodDetailsO = t.partial({ channel: t.string, channel_descr: enumType( Channel_descrEnum, "channel_descr" ), update_date: t.string, insert_date: t.string, update_user: t.string, insert_user: t.string }); export const PaymentMethodDetails = t.exact( t.intersection( [PaymentMethodDetailsR, PaymentMethodDetailsO], "PaymentMethodDetails" ) ); export type PaymentMethodDetails = t.TypeOf;