ch.codeblock.qrinvoice.rest.model.PaymentAmountInformation Maven / Gradle / Ivy
/*-
* #%L
* QR Invoice Solutions
* %%
* Copyright (C) 2017 - 2019 Codeblock GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* -
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
* -
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses are available for this software. These replace the above
* AGPLv3 terms and offer support, maintenance and allow the use in commercial /
* proprietary products.
* -
* More information on commercial licenses are available at the following page:
* https://www.qr-invoice.ch/licenses/
* #L%
*/
package ch.codeblock.qrinvoice.rest.model;
@javax.annotation.Generated(value = "ch.codeblock.qrinvoice.tools.ch.codeblock.qrinvoice.tools.generator.RestModelGenerator", date = "2019-02-22T12:23:13.095")
public class PaymentAmountInformation {
@javax.validation.constraints.Size(min = 0, max = 999999999)
@io.swagger.annotations.ApiModelProperty(required = false, value = "The payment amount
The amount element is to be entered without leading zeroes, including decimal separators and two decimal places.
Decimal, maximum 12-digits permitted, including decimal separators. Only decimal points (\".\") are permitted as decimal separators.", notes = "The payment amount
The amount element is to be entered without leading zeroes, including decimal separators and two decimal places.
Decimal, maximum 12-digits permitted, including decimal separators. Only decimal points (\".\") are permitted as decimal separators.", example = "199.95")
@com.fasterxml.jackson.annotation.JsonProperty("amount")
private java.math.BigDecimal amount;
@javax.validation.constraints.Size(min = 3, max = 3)
@javax.validation.constraints.NotNull
@io.swagger.annotations.ApiModelProperty(required = true, value = "The payment currency, 3-digit alphanumeric currency code according to ISO 4217
Only CHF and EUR are permitted.", notes = "The payment currency, 3-digit alphanumeric currency code according to ISO 4217
Only CHF and EUR are permitted.", example = "CHF")
@com.fasterxml.jackson.annotation.JsonProperty("currency")
private ch.codeblock.qrinvoice.rest.model.CurrencyEnum currency;
public java.math.BigDecimal getAmount() {
return this.amount;
}
public void setAmount(java.math.BigDecimal amount) {
this.amount = amount;
}
public ch.codeblock.qrinvoice.rest.model.CurrencyEnum getCurrency() {
return this.currency;
}
public void setCurrency(ch.codeblock.qrinvoice.rest.model.CurrencyEnum currency) {
this.currency = currency;
}
}