﻿using System.Xml.Serialization;

namespace Acquirer.Core.Cielo
{
    [XmlRoot("requisicao-cancelamento")]
    public class Cancela
    {
        [XmlAttribute("versao")]
        public string Versao
        {
            get { return "1.2.1"; }
            set { }
        }

        [XmlAttribute("id")]
        public string Id { get; set; }

        [XmlElement("tid", Order = 1)]
        public string Tid { get; set; }

        [XmlElement("valor", Order = 3)]
        public string Valor { get; set; }

        [XmlElement("dados-ec", Order = 2)]
        public Estabelecimento Estabelecimento;
    }
}