Ejemplo n.º 1
0
        public static DraftPayer LegalEntityPayer(LegalEntityInn inn, Kpp kpp)
        {
            if (inn is null)
            {
                throw new ArgumentNullException(nameof(inn));
            }
            if (kpp is null)
            {
                throw new ArgumentNullException(nameof(kpp));
            }

            return(new(inn.ToString(), kpp));
        }
Ejemplo n.º 2
0
        public static DraftSender LegalEntity(LegalEntityInn inn, Kpp kpp, CertificateContent certificate)
        {
            if (inn is null)
            {
                throw new ArgumentNullException(nameof(inn));
            }
            if (kpp is null)
            {
                throw new ArgumentNullException(nameof(kpp));
            }
            if (certificate is null)
            {
                throw new ArgumentNullException(nameof(certificate));
            }

            return(new(inn.ToString(), kpp, certificate));
        }