Example #1
0
        public RegisterCashDepositResponse RegisterCashDeposit(CashDepositHeaderType cashDepositHeaderType)
        {
            var request = GetRegisterCashDepositRequest(cashDepositHeaderType);

            _signatureService.SignRequest(request, _certificate);

            return(_fiscalService.registerCashDeposit(request));
        }
Example #2
0
        public async Task <RegisterCashDepositResponse> RegisterCashDepositAsync(CashDepositHeaderType cashDepositHeaderType)
        {
            var request = GetRegisterCashDepositRequest(cashDepositHeaderType);

            _signatureService.SignRequest(request, _certificate);

            return(await _fiscalService.RegisterCashDepositAsync(request));
        }
Example #3
0
        private RegisterCashDepositRequest GetRegisterCashDepositRequest(CashDepositHeaderType cashDepositHeaderType)
        {
            if (cashDepositHeaderType == null)
            {
                throw new ArgumentNullException("CashDepositHeaderType");
            }

            return(new RegisterCashDepositRequest
            {
                Header = cashDepositHeaderType.Header,
                CashDeposit = cashDepositHeaderType.CashDeposit
            });
        }