Package systextil.services.sph
Record Class SendDiscountInstructionPayload
java.lang.Object
java.lang.Record
systextil.services.sph.SendDiscountInstructionPayload
-
Constructor Summary
ConstructorsConstructorDescriptionSendDiscountInstructionPayload
(String componentName, Integer empresa, String empresaCNPJ, String numeroReferencia, br.com.intersys.systextil.connection.Amount discountValue) Creates an instance of aSendDiscountInstructionPayload
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentName
record component.br.com.intersys.systextil.connection.Amount
Returns the value of thediscountValue
record component.empresa()
Returns the value of theempresa
record component.Returns the value of theempresaCNPJ
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenumeroReferencia
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SendDiscountInstructionPayload
public SendDiscountInstructionPayload(String componentName, Integer empresa, String empresaCNPJ, String numeroReferencia, br.com.intersys.systextil.connection.Amount discountValue) Creates an instance of aSendDiscountInstructionPayload
record class.- Parameters:
componentName
- the value for thecomponentName
record componentempresa
- the value for theempresa
record componentempresaCNPJ
- the value for theempresaCNPJ
record componentnumeroReferencia
- the value for thenumeroReferencia
record componentdiscountValue
- the value for thediscountValue
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
componentName
Returns the value of thecomponentName
record component.- Returns:
- the value of the
componentName
record component
-
empresa
Returns the value of theempresa
record component.- Returns:
- the value of the
empresa
record component
-
empresaCNPJ
Returns the value of theempresaCNPJ
record component.- Returns:
- the value of the
empresaCNPJ
record component
-
numeroReferencia
Returns the value of thenumeroReferencia
record component.- Returns:
- the value of the
numeroReferencia
record component
-
discountValue
public br.com.intersys.systextil.connection.Amount discountValue()Returns the value of thediscountValue
record component.- Returns:
- the value of the
discountValue
record component
-