Record Class InvoiceService.Invoice
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.InvoiceService.Invoice
- Enclosing interface:
InvoiceService
public static record InvoiceService.Invoice(UUID id, Account sender, Account recipient, Currency currency, BigDecimal amount, BigDecimal amountPaid, Instant createdAt, Instant dueDate, EconomyContext context, net.kyori.adventure.text.Component description, InvoiceService.InvoiceState state)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInvoice(UUID id, Account sender, Account recipient, Currency currency, BigDecimal amount, BigDecimal amountPaid, Instant createdAt, Instant dueDate, EconomyContext context, net.kyori.adventure.text.Component description, InvoiceService.InvoiceState state) Creates an instance of aInvoicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.Returns the value of theamountPaidrecord component.context()Returns the value of thecontextrecord component.Returns the value of thecreatedAtrecord component.currency()Returns the value of thecurrencyrecord component.net.kyori.adventure.text.ComponentReturns the value of thedescriptionrecord component.dueDate()Returns the value of thedueDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of therecipientrecord component.sender()Returns the value of thesenderrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Invoice
public Invoice(UUID id, Account sender, Account recipient, Currency currency, BigDecimal amount, BigDecimal amountPaid, Instant createdAt, Instant dueDate, EconomyContext context, net.kyori.adventure.text.Component description, InvoiceService.InvoiceState state) Creates an instance of aInvoicerecord class.- Parameters:
id- the value for theidrecord componentsender- the value for thesenderrecord componentrecipient- the value for therecipientrecord componentcurrency- the value for thecurrencyrecord componentamount- the value for theamountrecord componentamountPaid- the value for theamountPaidrecord componentcreatedAt- the value for thecreatedAtrecord componentdueDate- the value for thedueDaterecord componentcontext- the value for thecontextrecord componentdescription- the value for thedescriptionrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
recipient
Returns the value of therecipientrecord component.- Returns:
- the value of the
recipientrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
amountPaid
Returns the value of theamountPaidrecord component.- Returns:
- the value of the
amountPaidrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
dueDate
Returns the value of thedueDaterecord component.- Returns:
- the value of the
dueDaterecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
description
public net.kyori.adventure.text.Component description()Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-