|
23 | 23 | import com.xero.models.accounting.CurrencyCode; |
24 | 24 | import com.xero.models.accounting.LineAmountTypes; |
25 | 25 | import com.xero.models.accounting.LineItem; |
| 26 | +import com.xero.models.accounting.Payment; |
26 | 27 | import io.swagger.annotations.ApiModel; |
27 | 28 | import io.swagger.annotations.ApiModelProperty; |
28 | 29 | import java.util.ArrayList; |
@@ -193,6 +194,10 @@ public static StatusEnum fromValue(String text) { |
193 | 194 | private List<Allocation> allocations = null; |
194 | 195 |
|
195 | 196 |
|
| 197 | + @JsonProperty("Payments") |
| 198 | + private List<Payment> payments = null; |
| 199 | + |
| 200 | + |
196 | 201 | @JsonProperty("BrandingThemeID") |
197 | 202 | private UUID brandingThemeID; |
198 | 203 |
|
@@ -549,6 +554,32 @@ public void setAllocations(List<Allocation> allocations) { |
549 | 554 | this.allocations = allocations; |
550 | 555 | } |
551 | 556 |
|
| 557 | + public CreditNote payments(List<Payment> payments) { |
| 558 | + this.payments = payments; |
| 559 | + return this; |
| 560 | + } |
| 561 | + |
| 562 | + public CreditNote addPaymentsItem(Payment paymentsItem) { |
| 563 | + if (this.payments == null) { |
| 564 | + this.payments = new ArrayList<Payment>(); |
| 565 | + } |
| 566 | + this.payments.add(paymentsItem); |
| 567 | + return this; |
| 568 | + } |
| 569 | + |
| 570 | + /** |
| 571 | + * See Payments |
| 572 | + * @return payments |
| 573 | + **/ |
| 574 | + @ApiModelProperty(value = "See Payments") |
| 575 | + public List<Payment> getPayments() { |
| 576 | + return payments; |
| 577 | + } |
| 578 | + |
| 579 | + public void setPayments(List<Payment> payments) { |
| 580 | + this.payments = payments; |
| 581 | + } |
| 582 | + |
552 | 583 | public CreditNote brandingThemeID(UUID brandingThemeID) { |
553 | 584 | this.brandingThemeID = brandingThemeID; |
554 | 585 | return this; |
@@ -614,13 +645,14 @@ public boolean equals(java.lang.Object o) { |
614 | 645 | Objects.equals(this.currencyRate, creditNote.currencyRate) && |
615 | 646 | Objects.equals(this.remainingCredit, creditNote.remainingCredit) && |
616 | 647 | Objects.equals(this.allocations, creditNote.allocations) && |
| 648 | + Objects.equals(this.payments, creditNote.payments) && |
617 | 649 | Objects.equals(this.brandingThemeID, creditNote.brandingThemeID) && |
618 | 650 | Objects.equals(this.hasAttachments, creditNote.hasAttachments); |
619 | 651 | } |
620 | 652 |
|
621 | 653 | @Override |
622 | 654 | public int hashCode() { |
623 | | - return Objects.hash(type, contact, date, status, lineAmountTypes, lineItems, subTotal, totalTax, total, updatedDateUTC, currencyCode, fullyPaidOnDate, creditNoteID, creditNoteNumber, reference, sentToContact, currencyRate, remainingCredit, allocations, brandingThemeID, hasAttachments); |
| 655 | + return Objects.hash(type, contact, date, status, lineAmountTypes, lineItems, subTotal, totalTax, total, updatedDateUTC, currencyCode, fullyPaidOnDate, creditNoteID, creditNoteNumber, reference, sentToContact, currencyRate, remainingCredit, allocations, payments, brandingThemeID, hasAttachments); |
624 | 656 | } |
625 | 657 |
|
626 | 658 |
|
@@ -648,6 +680,7 @@ public String toString() { |
648 | 680 | sb.append(" currencyRate: ").append(toIndentedString(currencyRate)).append("\n"); |
649 | 681 | sb.append(" remainingCredit: ").append(toIndentedString(remainingCredit)).append("\n"); |
650 | 682 | sb.append(" allocations: ").append(toIndentedString(allocations)).append("\n"); |
| 683 | + sb.append(" payments: ").append(toIndentedString(payments)).append("\n"); |
651 | 684 | sb.append(" brandingThemeID: ").append(toIndentedString(brandingThemeID)).append("\n"); |
652 | 685 | sb.append(" hasAttachments: ").append(toIndentedString(hasAttachments)).append("\n"); |
653 | 686 | sb.append("}"); |
|
0 commit comments