Record Class PaymentProviderActionResource.Order
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.onlinepayment.impl.actions.PaymentProviderActionResource.Order
- Enclosing class:
PaymentProviderActionResource
public static record PaymentProviderActionResource.Order(String pk, boolean hasVat, BigDecimal totalNet, BigDecimal totalGross, List<PaymentProviderActionResource.VatTotal> vatTotals, List<PaymentProviderActionResource.OrderPosition> orderPositions, String currencyLabel)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOrder(String pk, boolean hasVat, BigDecimal totalNet, BigDecimal totalGross, List<PaymentProviderActionResource.VatTotal> vatTotals, List<PaymentProviderActionResource.OrderPosition> orderPositions, String currencyLabel) Creates an instance of aOrderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrencyLabelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasVat()Returns the value of thehasVatrecord component.Returns the value of theorderPositionsrecord component.pk()Returns the value of thepkrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalGrossrecord component.totalNet()Returns the value of thetotalNetrecord component.Returns the value of thevatTotalsrecord component.
-
Constructor Details
-
Order
public Order(String pk, boolean hasVat, BigDecimal totalNet, BigDecimal totalGross, List<PaymentProviderActionResource.VatTotal> vatTotals, List<PaymentProviderActionResource.OrderPosition> orderPositions, String currencyLabel) Creates an instance of aOrderrecord class.- Parameters:
pk- the value for thepkrecord componenthasVat- the value for thehasVatrecord componenttotalNet- the value for thetotalNetrecord componenttotalGross- the value for thetotalGrossrecord componentvatTotals- the value for thevatTotalsrecord componentorderPositions- the value for theorderPositionsrecord componentcurrencyLabel- the value for thecurrencyLabelrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
pk
Returns the value of thepkrecord component.- Returns:
- the value of the
pkrecord component
-
hasVat
public boolean hasVat()Returns the value of thehasVatrecord component.- Returns:
- the value of the
hasVatrecord component
-
totalNet
Returns the value of thetotalNetrecord component.- Returns:
- the value of the
totalNetrecord component
-
totalGross
Returns the value of thetotalGrossrecord component.- Returns:
- the value of the
totalGrossrecord component
-
vatTotals
Returns the value of thevatTotalsrecord component.- Returns:
- the value of the
vatTotalsrecord component
-
orderPositions
Returns the value of theorderPositionsrecord component.- Returns:
- the value of the
orderPositionsrecord component
-
currencyLabel
Returns the value of thecurrencyLabelrecord component.- Returns:
- the value of the
currencyLabelrecord component
-