public RegisterCashDepositResponse RegisterCashDeposit(CashDepositHeaderType cashDepositHeaderType) { var request = GetRegisterCashDepositRequest(cashDepositHeaderType); _signatureService.SignRequest(request, _certificate); return(_fiscalService.registerCashDeposit(request)); }
public async Task <RegisterCashDepositResponse> RegisterCashDepositAsync(CashDepositHeaderType cashDepositHeaderType) { var request = GetRegisterCashDepositRequest(cashDepositHeaderType); _signatureService.SignRequest(request, _certificate); return(await _fiscalService.RegisterCashDepositAsync(request)); }
private RegisterCashDepositRequest GetRegisterCashDepositRequest(CashDepositHeaderType cashDepositHeaderType) { if (cashDepositHeaderType == null) { throw new ArgumentNullException("CashDepositHeaderType"); } return(new RegisterCashDepositRequest { Header = cashDepositHeaderType.Header, CashDeposit = cashDepositHeaderType.CashDeposit }); }