Skip to content

Commit

Permalink
feat(impl): [#528] add @builder to request entities
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed May 7, 2024
1 parent c7efaa6 commit e7f0ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@
import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Builder;

/**
* Object for API to create policy
*/
@SuppressWarnings("FileTabCharacter")
@Schema(description = "Request to add a policy")
@Builder
public record CreatePolicyRequest(

@Schema(description = "Timestamp after which the policy will no longer be accepted in negotiations.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import org.eclipse.tractusx.irs.policystore.validators.ValidListOfBusinessPartnerNumbers;

/**
* Request object for policy update
*/
@Schema(description = "Request to update a policy")
@Builder
public record UpdatePolicyRequest(

@Schema(description = "Timestamp after which the policy will no longer be accepted in negotiations.") //
Expand Down

0 comments on commit e7f0ccd

Please sign in to comment.