AY2425S1-CS2103T-T15-1 / tp

Other
0 stars 5 forks source link

Change radd to accept optional parameters #152

Closed gohsl99 closed 1 week ago

gohsl99 commented 1 week ago

radd should only mandate client index and address. Rest of the fields should be optional.

Details: CustomerList, Deposit, MonthlyRent, RentDueDate, RentalDate now able to store null value. JsonAdaptedRentalInformation now able to handle above classes with null value and will not throw IllegalValueException. AddRentalCommandParser now parses parameters as optional. AddRentalCommand now has AddRentalDescriptor to help with initializing rental information to be added.