package co.omise.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Represents Omise Link object.
 *
 * @see <a href="https://www.omise.co/links-api">Link API</a>
 */
public class Link extends Model {
    private long amount;
    private String currency;
    private boolean used;
    private boolean multiple;
    private String title;
    private String description;
    private ScopedList<Charge> charges;
    @JsonProperty("payment_uri")
    private String paymentUri;

    public long getAmount() {
        return amount;
    }

    public void setAmount(long amount) {
        this.amount = amount;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public boolean isUsed() {
        return used;
    }

    public void setUsed(boolean used) {
        this.used = used;
    }

    public boolean isMultiple() {
        return multiple;
    }

    public void setMultiple(boolean multiple) {
        this.multiple = multiple;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public ScopedList<Charge> getCharges() {
        return charges;
    }

    public void setCharges(ScopedList<Charge> charges) {
        this.charges = charges;
    }

    public String getPaymentUri() {
        return paymentUri;
    }

    public void setPaymentUri(String paymentUri) {
        this.paymentUri = paymentUri;
    }

    /**amount	integer
     (required) The amount in the smallest subunits of the currency used. For thb (Thai Baht) you'll need to pass the amount in satangs. #Maxmum and Minimum amount by supported currencies
     currency	string
     (required) The currency in which you want the charge to be done.
     title	string
     (required) A custom title for the link.
     description	string
     (required) A custom description for the link.
     multiple	boolean
     (optional) Whether or not you want the link to be used multiple times, when not specified it is set to false*/
    public static class Create extends Params {
        public Create amount(long amount) {
            add("amount", Long.toString(amount));
            return this;
        }

        public Create currency(String currency) {
            add("currency", currency);
            return this;
        }

        public Create title(String title) {
            add("title", title);
            return this;
        }

        public Create description(String description) {
            add("description", description);
            return this;
        }

        public Create multiple(boolean multiple) {
            add("multiple", Boolean.toString(multiple));
            return this;
        }
    }
}

@@ -1715,585 +1715,8 @@
  %7D%0A%0A
-    /**amount%09integer%0A     (required) The amount in the smallest subunits of the currency used. For thb (Thai Baht) you'll need to pass the amount in satangs. #Maxmum and Minimum amount by supported currencies%0A     currency%09string%0A     (required) The currency in which you want the charge to be done.%0A     title%09string%0A     (required) A custom title for the link.%0A     description%09string%0A     (required) A custom description for the link.%0A     multiple%09boolean%0A     (optional) Whether or not you want the link to be used multiple times, when not specified it is set to false*/%0A
     

Remove leftover comments.