-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged changes of last push mahdiJ2001
- Loading branch information
Showing
4 changed files
with
179 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 15 additions & 27 deletions
42
catalog/catalog-service/src/main/java/org/ecommerce/domain/events/InventoryEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,25 @@ | ||
package org.ecommerce.domain.events; | ||
|
||
|
||
public class InventoryEvent { | ||
|
||
private String eventType; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@EqualsAndHashCode(callSuper = true) | ||
public class InventoryEvent extends Event { | ||
private String productId; | ||
private String name; | ||
private String description; | ||
private String category; | ||
private boolean disponibility; | ||
|
||
|
||
public String getEventType() { | ||
return eventType; | ||
} | ||
|
||
public String getProductId() { | ||
return productId; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public String getCategory() { | ||
return category; | ||
} | ||
|
||
public boolean isDisponibility() { | ||
return disponibility; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
public InventoryEvent(String aggregateType, String aggregateId, String productId, String name, String description, String category, boolean disponibility) { | ||
super("InventoryEvent", aggregateType, aggregateId); | ||
this.productId = productId; | ||
this.name = name; | ||
this.description = description; | ||
this.category = category; | ||
this.disponibility = disponibility; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters