/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* eslint-disable */ import { IWithinRangeIntegerTag, WithinRangeInteger } from "@pagopa/ts-commons/lib/numbers"; import * as t from "io-ts"; /** * Amount of payment in euro cent. PagoPA accepts up to 9999999999 euro cents. */ export type PaymentAmount = t.TypeOf; export const PaymentAmount = t.union([ WithinRangeInteger<1, 9999999999, IWithinRangeIntegerTag<1, 9999999999>>( 1, 9999999999 ), t.literal(9999999999) ]);