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)); }
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)); }