Esempio n. 1
0
        public static VirtualAssetssAccountNumber Create(string vaspCode, string customerSpecificNumberHex)
        {
            var vasp   = VaspCode.Create(vaspCode);
            var result = new VirtualAssetssAccountNumber(vasp, customerSpecificNumberHex);

            return(result);
        }
Esempio n. 2
0
        private VirtualAssetssAccountNumber(VaspCode vaspCode, string customerSpecificNumberHex)
        {
            VaspCode       = vaspCode;
            CustomerNumber = customerSpecificNumberHex;

            string vaan        = vaspCode.Code + customerSpecificNumberHex;
            var    checksum    = GetChecksum8Modulo256(vaan);
            var    checkSumStr = (new byte[] { checksum }).ToHex(false);

            Vaan = $"{vaan}{checkSumStr}";
        }
Esempio n. 3
0
        public static VaspCode Create(string vaspCodeHex)
        {
            var result = new VaspCode(vaspCodeHex);

            return(result);
        }