return this;
}
/*package*/ HttpParameter[] asHttpParameterArray() {
List<HttpParameter> params = new ArrayList<HttpParameter>();
params.add(new HttpParameter("title", title));
params.add(new HttpParameter("expiration_time", z_F4JInternalStringUtil.formatISO8601Datetime(expirationTime)));
if (terms != null) {
params.add(new HttpParameter("terms", terms));
}
if (imageURL != null) {
params.add(new HttpParameter("image_url", imageURL.toString()));
}
if (image != null) {
params.add(new HttpParameter("image", image.getMediaFile()));
}
if (claimLimit != null) {
params.add(new HttpParameter("claim_limit", claimLimit));
}
if (couponType != null) {
params.add(new HttpParameter("coupon_type", couponType));
}
if (qrcode != null) {
params.add(new HttpParameter("qrcode", qrcode));
}
if (barcode != null) {
params.add(new HttpParameter("barcode", barcode));
}
if (redemptionLink != null) {
params.add(new HttpParameter("redemption_link", redemptionLink.toString()));
}
if (redemptionCode != null) {
params.add(new HttpParameter("redemption_code", redemptionCode));
}
if (isPublished != null) {
params.add(new HttpParameter("published", isPublished));
}
if (scheduledPublishTime != null) {
params.add(new HttpParameter("scheduled_publish_time", scheduledPublishTime));
}
if (reminderTime != null) {
params.add(new HttpParameter("reminder_time", z_F4JInternalStringUtil.formatISO8601Datetime(reminderTime)));
}
return params.toArray(new HttpParameter[params.size()]);
}