Skip to content

Commit

Permalink
Add ToS acceptance message (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
malteo authored Feb 15, 2021
1 parent 6424396 commit 2a6d4fd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ public class ProductDTO extends NamedEntityDTO implements ProductL10nDTO, Compar
@Size( max = 65536, message = INVALID_SIZE )
private String terminationMessage;

@ApiModelProperty( "Message to display to the user for Terms of Service acceptance" )
@Size( max = 65536, message = INVALID_SIZE )
private String tosAcceptance;

@ApiModelProperty( "URL to call for order validation" )
@Size( max = 2000 )
@URL
Expand Down Expand Up @@ -774,6 +778,18 @@ public void setTerminationMessage( String terminationMessage )
this.terminationMessage = terminationMessage;
}

@Override
public String getTosAcceptance()
{
return tosAcceptance;
}

@Override
public void setTosAcceptance( String tosAcceptance )
{
this.tosAcceptance = tosAcceptance;
}

@Override
public boolean equals( Object o )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public class ProductDraftDTO extends BaseEntityDTO implements ProductL10nDTO
@ApiModelProperty( "Message to display to the user on subscription termination" )
private String terminationMessage;

@ApiModelProperty( "Message to display to the user for Terms of Service acceptance" )
private String tosAcceptance;

//region Auto-generated code
public UrlEntityDTO getOriginal()
{
Expand Down Expand Up @@ -152,5 +155,17 @@ public void setTerminationMessage( String terminationMessage )
{
this.terminationMessage = terminationMessage;
}

@Override
public String getTosAcceptance()
{
return tosAcceptance;
}

@Override
public void setTosAcceptance( String tosAcceptance )
{
this.tosAcceptance = tosAcceptance;
}
//endregion
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ public interface ProductL10nDTO
String getTerminationMessage();

void setTerminationMessage( String terminationMessage );

String getTosAcceptance();

void setTosAcceptance( String tosAcceptance );
}

0 comments on commit 2a6d4fd

Please sign in to comment.