-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document marketplace #115
Document marketplace #115
Conversation
public class ResellerPricingPatchDTO extends DTO | ||
{ | ||
@ApiModelProperty( "The defined action" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this as @ApiModel
on enum
@@ -25,12 +28,15 @@ | |||
public static final String DISCOUNT_GENERATOR = "discountGenerator"; | |||
public static final String FIXED_PRICE_GENERATOR = "fixedPriceGenerator"; | |||
|
|||
@ApiModelProperty( value = "Email address to notify customer of the coupon", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not readonly, not updatable
@Length ( min = 48, max = 48 ) | ||
private String hash; | ||
|
||
@ApiModelProperty( value = "Human readable code of the coupon", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
@@ -40,36 +46,46 @@ | |||
@Valid | |||
private UrlEntityDTO product; | |||
|
|||
@ApiModelProperty( value = "Coupon type", allowableValues = "bundle, discount, extendedTrial, fixedPrice", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
@NotNull | ||
@JsonFormat( pattern = DATE_PATTERN ) | ||
private Date creationDate = new Date(); | ||
|
||
@ApiModelProperty( value = "When the coupon will expire", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
@JsonInclude ( JsonInclude.Include.NON_NULL ) | ||
@Min ( 0 ) | ||
private BigDecimal newPrice; | ||
|
||
@ApiModelProperty( value = "Discount percentage", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
@JsonInclude ( JsonInclude.Include.NON_NULL ) | ||
@Min ( 0 ) | ||
@Max ( 100 ) | ||
private BigDecimal percentage; | ||
|
||
@ApiModelProperty( value = "Days of extension", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
@JsonInclude ( JsonInclude.Include.NON_NULL ) | ||
@Min ( 1 ) | ||
private Integer days; | ||
|
||
@ApiModelProperty( value = "Maximum budget for an extended trial", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updatable?
private String state; | ||
|
||
@ApiModelProperty( value = "Whether the coupon is reusable", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
private boolean reusable; | ||
|
||
@ApiModelProperty( value = "Whether the coupon applies to the license cost only", readOnly = true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not updatable
No description provided.