Skip to content
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

Merged
merged 4 commits into from
Jun 14, 2018
Merged

Document marketplace #115

merged 4 commits into from
Jun 14, 2018

Conversation

malteo
Copy link
Member

@malteo malteo commented Jun 14, 2018

No description provided.

@malteo malteo requested a review from gionn June 14, 2018 14:18
public class ResellerPricingPatchDTO extends DTO
{
@ApiModelProperty( "The defined action" )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

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 )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not updatable

@malteo malteo requested a review from gionn June 14, 2018 17:01
@gionn gionn merged commit 48dbfe3 into master Jun 14, 2018
@gionn gionn deleted the marketplace-swagger branch June 14, 2018 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants