Permalink
Browse files

Removed some invalid constraints

  • Loading branch information...
1 parent 9cd30d8 commit d51a4bc2f4f650763dfa9bb29df49c5a156efbfc @stickfigure stickfigure committed Jul 17, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −14 src/com/lookfirst/wepay/api/Checkout.java
@@ -48,22 +48,8 @@
private State state;
/** The short description of the checkout. */
private String shortDescription;
- public void setShortDescription(String shortDescription) {
- if (shortDescription != null && shortDescription.length() >= 127) {
- throw new IllegalArgumentException("Max short description length is 127.");
- }
-
- this.shortDescription = shortDescription;
- }
/** The long description of the checkout (if available). */
private String longDescription;
- public void setLongDescription(String longDescription) {
- if (longDescription != null && longDescription.length() >= 2047) {
- throw new IllegalArgumentException("Max long description length is 2047.");
- }
-
- this.longDescription = longDescription;
- }
/** The currency used (always USD for now). */
private String currency;
/** The dollar amount of the checkout object. This will always be the amount you passed in /checkout/create */

0 comments on commit d51a4bc

Please sign in to comment.