Skip to content

Commit

Permalink
refactor(order_state): rename OrderStates and FulfillmentStates
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Apr 11, 2024
1 parent be68bdf commit 7a7a168
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions packages/protos/io/restorecommerce/fulfillment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ service FulfillmentService {
}

enum State {
FAILED = 0;
PENDING = 0;
INVALID = 1;
CREATED = 2;
SUBMITTED = 3;
IN_TRANSIT = 4;
FULFILLED = 5;
WITHDRAWN = 6;
CANCELLED = 7;
SUBMITTED = 2;
IN_TRANSIT = 3;
COMPLETED = 4;
WITHDRAWN = 5;
CANCELLED = 6;
FAILED = 7;
}

message Item {
Expand Down
14 changes: 7 additions & 7 deletions packages/protos/io/restorecommerce/order.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import "io/restorecommerce/invoice.proto";
import "io/restorecommerce/user.proto";
import "io/restorecommerce/customer.proto";
import "io/restorecommerce/shop.proto";
import "io/restorecommerce/product.proto";


service OrderService {
Expand Down Expand Up @@ -50,14 +51,13 @@ service OrderService {
}

enum OrderState {
FAILED = 0;
PENDING = 0;
INVALID = 1;
CREATED = 2;
SUBMITTED = 3;
IN_PROCESS = 4;
DONE = 5;
WITHDRAWN = 6;
CANCELLED = 7;
SUBMITTED = 2;
COMPLETED = 3;
WITHDRAWN = 4;
CANCELLED = 5;
FAILED = 6;
}

enum FulfillmentInvoiceMode {
Expand Down

0 comments on commit 7a7a168

Please sign in to comment.