-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0e981e
commit 1c7ea22
Showing
11 changed files
with
53 additions
and
85 deletions.
There are no files selected for viewing
16 changes: 7 additions & 9 deletions
16
services/contracts/src/main/java/com/workup/contracts/commands/EvaluateMilestoneCommand.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,18 +1,16 @@ | ||
package com.workup.contracts.commands; | ||
|
||
import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest; | ||
|
||
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse; | ||
|
||
public class EvaluateMilestoneCommand | ||
extends ContractCommand<EvaluateMilestoneRequest, EvaluateMilestoneResponse> { | ||
|
||
@Override | ||
public EvaluateMilestoneResponse Run(EvaluateMilestoneRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
extends ContractCommand<EvaluateMilestoneRequest, EvaluateMilestoneResponse> { | ||
|
||
return null; | ||
@Override | ||
public EvaluateMilestoneResponse Run(EvaluateMilestoneRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
|
||
} | ||
return null; | ||
} | ||
} |
18 changes: 7 additions & 11 deletions
18
services/contracts/src/main/java/com/workup/contracts/commands/GetContractCommand.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,20 +1,16 @@ | ||
package com.workup.contracts.commands; | ||
|
||
import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest; | ||
|
||
import com.workup.shared.commands.contracts.requests.GetContractRequest; | ||
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse; | ||
import com.workup.shared.commands.contracts.responses.GetContractResponse; | ||
|
||
public class GetContractCommand | ||
extends ContractCommand<GetContractRequest, GetContractResponse> { | ||
public class GetContractCommand extends ContractCommand<GetContractRequest, GetContractResponse> { | ||
|
||
@Override | ||
public GetContractResponse Run(GetContractRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
@Override | ||
public GetContractResponse Run(GetContractRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
|
||
return null; | ||
|
||
} | ||
return null; | ||
} | ||
} |
19 changes: 7 additions & 12 deletions
19
services/contracts/src/main/java/com/workup/contracts/commands/GetMilestoneCommand.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,22 +1,17 @@ | ||
package com.workup.contracts.commands; | ||
|
||
import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest; | ||
|
||
import com.workup.shared.commands.contracts.requests.GetContractRequest; | ||
import com.workup.shared.commands.contracts.requests.GetMilestoneRequest; | ||
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse; | ||
import com.workup.shared.commands.contracts.responses.GetContractResponse; | ||
import com.workup.shared.commands.contracts.responses.GetMilestoneResponse; | ||
|
||
public class GetMilestoneCommand | ||
extends ContractCommand<GetMilestoneRequest, GetMilestoneResponse> { | ||
extends ContractCommand<GetMilestoneRequest, GetMilestoneResponse> { | ||
|
||
@Override | ||
public GetMilestoneResponse Run(GetMilestoneRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
@Override | ||
public GetMilestoneResponse Run(GetMilestoneRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
|
||
return null; | ||
|
||
} | ||
return null; | ||
} | ||
} |
21 changes: 7 additions & 14 deletions
21
.../contracts/src/main/java/com/workup/contracts/commands/GetPendingTerminationsCommand.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,24 +1,17 @@ | ||
package com.workup.contracts.commands; | ||
|
||
import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest; | ||
|
||
import com.workup.shared.commands.contracts.requests.GetContractRequest; | ||
import com.workup.shared.commands.contracts.requests.GetMilestoneRequest; | ||
import com.workup.shared.commands.contracts.requests.GetPendingTerminationsRequest; | ||
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse; | ||
import com.workup.shared.commands.contracts.responses.GetContractResponse; | ||
import com.workup.shared.commands.contracts.responses.GetMilestoneResponse; | ||
import com.workup.shared.commands.contracts.responses.GetPendingTerminationsResponse; | ||
|
||
public class GetPendingTerminationsCommand | ||
extends ContractCommand<GetPendingTerminationsRequest, GetPendingTerminationsResponse> { | ||
extends ContractCommand<GetPendingTerminationsRequest, GetPendingTerminationsResponse> { | ||
|
||
@Override | ||
public GetPendingTerminationsResponse Run(GetPendingTerminationsRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
@Override | ||
public GetPendingTerminationsResponse Run(GetPendingTerminationsRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
|
||
return null; | ||
|
||
} | ||
return null; | ||
} | ||
} |
17 changes: 7 additions & 10 deletions
17
services/contracts/src/main/java/com/workup/contracts/commands/ProgressMilestoneCommand.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,20 +1,17 @@ | ||
package com.workup.contracts.commands; | ||
|
||
import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest; | ||
|
||
import com.workup.shared.commands.contracts.requests.ProgressMilestoneRequest; | ||
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse; | ||
import com.workup.shared.commands.contracts.responses.ProgressMilestoneResponse; | ||
|
||
public class ProgressMilestoneCommand | ||
extends ContractCommand<ProgressMilestoneRequest, ProgressMilestoneResponse> { | ||
extends ContractCommand<ProgressMilestoneRequest, ProgressMilestoneResponse> { | ||
|
||
@Override | ||
public ProgressMilestoneResponse Run(ProgressMilestoneRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
@Override | ||
public ProgressMilestoneResponse Run(ProgressMilestoneRequest request) { | ||
// First we will get the milestones and add them to the database first, | ||
// This will allow us to have their IDs for when we insert the contract. | ||
|
||
return null; | ||
|
||
} | ||
return null; | ||
} | ||
} |
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
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
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
14 changes: 5 additions & 9 deletions
14
...n/java/com/workup/shared/commands/contracts/responses/GetPendingTerminationsResponse.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,24 +1,20 @@ | ||
package com.workup.shared.commands.contracts.responses; | ||
|
||
import com.workup.shared.commands.CommandResponse; | ||
import com.workup.shared.commands.contracts.Milestone; | ||
import com.workup.shared.enums.contracts.TerminationRequestStatus; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
import java.util.UUID; | ||
|
||
@Getter | ||
@SuperBuilder(setterPrefix = "with") | ||
@Jacksonized | ||
public class GetPendingTerminationsResponse extends CommandResponse { | ||
private String requestId; | ||
private String requestId; | ||
|
||
private String contractId; | ||
private String requesterId; | ||
private String reason; | ||
private String contractId; | ||
private String requesterId; | ||
private String reason; | ||
|
||
private TerminationRequestStatus status; | ||
private TerminationRequestStatus status; | ||
} |