public Contract.Model.RecurringSalesInvoice Create(Contract.Model.RecurringSalesInvoice salesInvoice)
        {
            var salesInvoicePost    = _recurringSalesInvoiceMapper.MapToApi(salesInvoice, null);
            var wrappedSalesInvoice = new RecurringSalesInvoiceWrapper(salesInvoicePost);
            var createdSalesInvoice = _recurringSalesInvoiceConnector.Create(wrappedSalesInvoice);

            return(_recurringSalesInvoiceMapper.MapToContract(createdSalesInvoice));
        }
        public Contract.Model.RecurringSalesInvoice Update(long id, Contract.Model.RecurringSalesInvoice salesInvoice)
        {
            var currentSalesInvoice = _recurringSalesInvoiceConnector.GetById(id);
            var salesInvoicePost    = _recurringSalesInvoiceMapper.MapToApi(salesInvoice, currentSalesInvoice);
            var wrappedSalesInvoice = new RecurringSalesInvoiceWrapper(salesInvoicePost);
            var updatedSalesInvoice = _recurringSalesInvoiceConnector.Update(id, wrappedSalesInvoice);

            return(_recurringSalesInvoiceMapper.MapToContract(updatedSalesInvoice));
        }