[ECOMMERCE-308] Phase 3 | CreateOrder API. Methods Created: 22/Jun/20  Updated: 26/Aug/22

Status: Open
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Laura Delnevo Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: Commerce later
Team: AuthorX

 Description   

Current behaviour (a)

The resource is “/checkouts/order/{cartId}“. In my opinion we are placing a new order for a user from an existing cart.

Correct behaviour

  • Thus, the resource should be: /users/{userId}/orders
    and pass the cartId in the body.

Current behaviour (b)

We are aggregating 2 (set payment method and create the order itself) operations in 1.

Correct behaviour

  • Separate the 2 methods

Generated at Mon Feb 12 01:42:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.