Sisters is a safe space and is dedicated to maintaning a violence-free, respectful, and dignified environment in the cafe. If a customer violates the house rules, they can be put on an "out", meaning they are not invited to the cafe for some period of time. This duration is determined through a conversation with the customer and sisters staff.
We'd eventually like to be able to support the outbook for Sisters of the Road. We'd like to be able to allow the POS app to know if a client is currently out and we'd like to make it easy for SotR to generate the various reports that they are required to make.
Requirements
BarterAccount API changes
[ ] add field is_out to the serializer
[ ] add field out_reason to the serializer
[ ] add nested field for outbook events
Tests
[ ] add outbook events factory if not accomplished in #117
[ ] modify BarterAccountFactory to add optional outbook events
[ ] test api returns outbook events
[ ] test api returns correct out status with no outbook events
[ ] test api returns correct out status with outbook events that have expired in the past
[ ] test api returns correct out status with outbook events that have not yet started
[ ] test api returns correct out status when today falls within the outbook start and outbook end dates (test that today is the start date, today is between the start and end, and today is the end date).
Sisters of the Road Outbook
Depends on #113, #117
Description
Sisters is a safe space and is dedicated to maintaning a violence-free, respectful, and dignified environment in the cafe. If a customer violates the house rules, they can be put on an "out", meaning they are not invited to the cafe for some period of time. This duration is determined through a conversation with the customer and sisters staff.
We'd eventually like to be able to support the outbook for Sisters of the Road. We'd like to be able to allow the POS app to know if a client is currently out and we'd like to make it easy for SotR to generate the various reports that they are required to make.
Requirements
BarterAccount
API changesis_out
to the serializerout_reason
to the serializerTests
BarterAccountFactory
to add optional outbook events