|
| 1 | +package io.facturapi.models; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 4 | +import java.util.ArrayList; |
| 5 | +import java.util.List; |
| 6 | + |
| 7 | +/** |
| 8 | + * Related document summary for a payment complement (complemento de pago). |
| 9 | + * Ready to be used as an element of the complement's related documents. |
| 10 | + */ |
| 11 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 12 | +public class PaymentSummary { |
| 13 | + private String uuid; |
| 14 | + private Integer folioNumber; |
| 15 | + private String series; |
| 16 | + private Integer installment; |
| 17 | + private Double lastBalance; |
| 18 | + private Double total; |
| 19 | + private String currency; |
| 20 | + private Double amount; |
| 21 | + private List<PaymentSummaryTax> taxes = new ArrayList<>(); |
| 22 | + |
| 23 | + public String getUuid() { |
| 24 | + return uuid; |
| 25 | + } |
| 26 | + |
| 27 | + public void setUuid(String uuid) { |
| 28 | + this.uuid = uuid; |
| 29 | + } |
| 30 | + |
| 31 | + public Integer getFolioNumber() { |
| 32 | + return folioNumber; |
| 33 | + } |
| 34 | + |
| 35 | + public void setFolioNumber(Integer folioNumber) { |
| 36 | + this.folioNumber = folioNumber; |
| 37 | + } |
| 38 | + |
| 39 | + public String getSeries() { |
| 40 | + return series; |
| 41 | + } |
| 42 | + |
| 43 | + public void setSeries(String series) { |
| 44 | + this.series = series; |
| 45 | + } |
| 46 | + |
| 47 | + public Integer getInstallment() { |
| 48 | + return installment; |
| 49 | + } |
| 50 | + |
| 51 | + public void setInstallment(Integer installment) { |
| 52 | + this.installment = installment; |
| 53 | + } |
| 54 | + |
| 55 | + public Double getLastBalance() { |
| 56 | + return lastBalance; |
| 57 | + } |
| 58 | + |
| 59 | + public void setLastBalance(Double lastBalance) { |
| 60 | + this.lastBalance = lastBalance; |
| 61 | + } |
| 62 | + |
| 63 | + public Double getTotal() { |
| 64 | + return total; |
| 65 | + } |
| 66 | + |
| 67 | + public void setTotal(Double total) { |
| 68 | + this.total = total; |
| 69 | + } |
| 70 | + |
| 71 | + public String getCurrency() { |
| 72 | + return currency; |
| 73 | + } |
| 74 | + |
| 75 | + public void setCurrency(String currency) { |
| 76 | + this.currency = currency; |
| 77 | + } |
| 78 | + |
| 79 | + public Double getAmount() { |
| 80 | + return amount; |
| 81 | + } |
| 82 | + |
| 83 | + public void setAmount(Double amount) { |
| 84 | + this.amount = amount; |
| 85 | + } |
| 86 | + |
| 87 | + public List<PaymentSummaryTax> getTaxes() { |
| 88 | + return taxes; |
| 89 | + } |
| 90 | + |
| 91 | + public void setTaxes(List<PaymentSummaryTax> taxes) { |
| 92 | + this.taxes = taxes; |
| 93 | + } |
| 94 | + |
| 95 | + /** Prorated tax breakdown for the paid amount. */ |
| 96 | + @JsonIgnoreProperties(ignoreUnknown = true) |
| 97 | + public static class PaymentSummaryTax { |
| 98 | + private Double base; |
| 99 | + private Double rate; |
| 100 | + private String type; |
| 101 | + private String factor; |
| 102 | + private Boolean withholding; |
| 103 | + |
| 104 | + public Double getBase() { |
| 105 | + return base; |
| 106 | + } |
| 107 | + |
| 108 | + public void setBase(Double base) { |
| 109 | + this.base = base; |
| 110 | + } |
| 111 | + |
| 112 | + public Double getRate() { |
| 113 | + return rate; |
| 114 | + } |
| 115 | + |
| 116 | + public void setRate(Double rate) { |
| 117 | + this.rate = rate; |
| 118 | + } |
| 119 | + |
| 120 | + public String getType() { |
| 121 | + return type; |
| 122 | + } |
| 123 | + |
| 124 | + public void setType(String type) { |
| 125 | + this.type = type; |
| 126 | + } |
| 127 | + |
| 128 | + public String getFactor() { |
| 129 | + return factor; |
| 130 | + } |
| 131 | + |
| 132 | + public void setFactor(String factor) { |
| 133 | + this.factor = factor; |
| 134 | + } |
| 135 | + |
| 136 | + public Boolean getWithholding() { |
| 137 | + return withholding; |
| 138 | + } |
| 139 | + |
| 140 | + public void setWithholding(Boolean withholding) { |
| 141 | + this.withholding = withholding; |
| 142 | + } |
| 143 | + } |
| 144 | +} |
0 commit comments