Skip to content

Commit

Permalink
added order status enum and removed DTO from entities
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-asole committed Feb 13, 2024
1 parent 7d3d1bb commit e5071b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.vedasole.ekartecommercebackend.entity;
package com.vedasole.ekartecommercebackend.payload;

import com.vedasole.ekartecommercebackend.entity.ShoppingCartItem;
import com.vedasole.ekartecommercebackend.payload.ProductDto;
import com.vedasole.ekartecommercebackend.payload.ShoppingCartDto;
import javax.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.vedasole.ekartecommercebackend.utility;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum OrderStatus {

ORDER_PLACED("ORDER_PLACED"),
ORDER_FAILED("ORDER_FAILED"),
ORDER_DISPATCHED("ORDER_DISPATCHED"),
ORDER_SHIPPED("ORDER_SHIPPED"),
ORDER_DELIVERED("ORDER_DELIVERED"),
ORDER_COMPLETED("ORDER_COMPLETED");

private final String name;

}

0 comments on commit e5071b1

Please sign in to comment.