Skip to content

👔(backend) add properties for batch order model #1108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

jonathanreveille
Copy link
Member

@jonathanreveille jonathanreveille commented Jun 4, 2025

Purpose

To help developers while working with batch order objects, we have added new properties on the model allowing us to verify quickly if the object is eligible to be or is in a specific state. It avoids us comparing the object to different states. Also, it reflects the business logic of the batch order.

Proposal

  • add properties on batch order model
  • refactor BatchOrderFactory to create related objects depending the given state

@jonathanreveille jonathanreveille self-assigned this Jun 4, 2025
@jonathanreveille jonathanreveille force-pushed the improve/add_properties_for_batch_order_model branch 6 times, most recently from 5d03972 to b445c3b Compare June 12, 2025 10:00
To help developers while working with batch order objects,
we have added new properties on the model allowing
us to verify quickly if the object is eligible to be or is in a
specific state. It avoids us comparing the object to different
states. Also, it reflects the business logic of the batch order.
To enhance the developer experience for testing,
we have refactor the batch order factory to
create the related objects depending on the given
state of the object.
@jonathanreveille jonathanreveille force-pushed the improve/add_properties_for_batch_order_model branch from b445c3b to 243fa18 Compare June 12, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant