<s> from flask_wtf import Form <EOL> from wtforms import StringField , HiddenField <EOL> from wtforms . validators import DataRequired , Optional , Length <EOL> from flask_babel import lazy_gettext as _ <EOL> class CreditCardForm ( Form ) : <EOL> stripe_key = HiddenField ( _ ( '<STR_LIT>' ) , <EOL> [ DataRequired ( ) , Length ( <NUM_LIT:1> , <NUM_LIT> ) ] ) <EOL> plan = HiddenField ( _ ( '<STR_LIT>' ) , <EOL> [ DataRequired ( ) , Length ( <NUM_LIT:1> , <NUM_LIT> ) ] ) <EOL> coupon_code = StringField ( _ ( '<STR_LIT>' ) , <EOL> [ Optional ( ) , Length ( <NUM_LIT:1> , <NUM_LIT> ) ] ) <EOL> name = StringField ( _ ( '<STR_LIT>' ) , <EOL> [ DataRequired ( ) , Length ( <NUM_LIT:1> , <NUM_LIT> ) ] ) <EOL> class UpdateSubscriptionForm ( Form ) : <EOL> coupon_code = StringField ( _ ( '<STR_LIT>' ) , <EOL> [ Optional ( ) , Length ( <NUM_LIT:1> , <NUM_LIT> ) ] ) <EOL> class CancelSubscriptionForm ( Form ) : <EOL> pass </s>
