/** * 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 Acquirer_descrEnum { "Nexi" = "Nexi", "IntesaSanPaolo" = "IntesaSanPaolo", "Poste" = "Poste", "Unicredit" = "Unicredit", "BancaSella" = "BancaSella", "Nexi_UBI" = "Nexi_UBI", "Nexi_ICCREA" = "Nexi_ICCREA", "AmericanExpress" = "AmericanExpress", "SatisPay" = "SatisPay", "ICCREA" = "ICCREA", "Diners" = "Diners", "Axepta_BNP" = "Axepta_BNP", "SumUP" = "SumUP", "Bancomat" = "Bancomat", "BancomatPay" = "BancomatPay", "SiaPay" = "SiaPay", "Paytipper" = "Paytipper", "Reiffeisen" = "Reiffeisen", "Cedacri" = "Cedacri", "Deutsche" = "Deutsche", "MPS" = "MPS", "EquensWorldline" = "EquensWorldline", "Other" = "Other" } export enum Operation_type_descrEnum { "Payment" = "Payment", "Transfer" = "Transfer", "ApplePay" = "ApplePay", "GooglePay" = "GooglePay", "Other" = "Other" } export enum Circuit_type_descrEnum { "Pagobancomat" = "Pagobancomat", "Visa" = "Visa", "Mastercard" = "Mastercard", "Amex" = "Amex", "JCB" = "JCB", "UnionPay" = "UnionPay", "Diners" = "Diners", "Codice_PostePay" = "Codice_PostePay", "BancomatPay" = "BancomatPay", "SatisPay" = "SatisPay", "Circuito_Privativo" = "Circuito_Privativo", "Other" = "Other" } // required attributes const BPDTransactionR = t.interface({ hpan: t.string, trx_timestamp: t.string, acquirer: t.string, id_trx_acquirer: t.string }); // optional attributes const BPDTransactionO = t.partial({ acquirer_id: t.string, acquirer_descr: enumType( Acquirer_descrEnum, "acquirer_descr" ), id_trx_issuer: t.string, operation_type: t.string, operation_type_descr: enumType( Operation_type_descrEnum, "operation_type_descr" ), circuit_type: t.string, circuit_type_descr: enumType( Circuit_type_descrEnum, "circuit_type_descr" ), amount: t.number, amount_currency: t.string, amount_currency_descr: t.string, score: t.number, award_period_id: t.number, merchant_id: t.string, correlation_id: t.string, bin: t.string, terminal_id: t.string, enabled: t.boolean, elab_ranking: t.boolean, insert_date: t.string, insert_user: t.string, update_date: t.string, update_user: t.string }); export const BPDTransaction = t.exact( t.intersection([BPDTransactionR, BPDTransactionO], "BPDTransaction") ); export type BPDTransaction = t.TypeOf;