public void ChangeBooking(BookingId id, Payment amount, BookingDate date, Description description) { Apply(new V1.BookingChanged(Id, id.Value, amount.Amount, amount.CurrencyCode, date.Value, description.Value)); }
/// <summary> /// Book a new payment /// </summary> /// <param name="id">Booking Id</param> /// <param name="amount">Amount of the payment</param> /// <param name="date">Date of the booking</param> /// <param name="description">A short description for what this payment is made</param> public void BookPayment(BookingId id, Payment amount, BookingDate date, Description description) { Apply(new V1.BookingAddedToAccount(Id, id.Value, amount.Amount, amount.CurrencyCode, date.Value, description.Value)); }