java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<BusPartInvoice>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.contractaccountingbusinesspartnerinvoice.BusPartInvoice

public class BusPartInvoice extends VdmEntity<BusPartInvoice>

Original entity name from the Odata EDM: BusPartInvoiceType

  • Field Details

  • Constructor Details

    • BusPartInvoice

      public BusPartInvoice()
    • BusPartInvoice

      public BusPartInvoice(@Nullable UUID cADocumentContainerUUID, @Nullable String cADocContainerInvoiceStatus, @Nullable String cADocContainerInvoiceStatusTxt, @Nullable String cADocumentContainerRefType, @Nullable String cADocumentContainerRefTypeText, @Nullable String cADocumentContainerReference, @Nullable LocalDate creationDate, @Nullable LocalTime creationTime, @Nullable String displayCurrency, @Nullable BigDecimal cAInvoiceAmountInDisplayCrcy, @Nullable BigDecimal openAmountInDisplayCrcy, @Nullable BigDecimal cashDiscountAmountInDspCrcy, @Nullable BigDecimal cAEligibleAmountForCshDiscInDC, @Nullable BigDecimal cAReleasedAmtInDisplayCurrency, @Nullable BigDecimal cAClearingAmountInDisplayCrcy, @Nullable BusPartInvoiceParameters toParameters, List<BusPartInvoiceCorrespnc> to_BusPartInvoiceCorrespnc)
  • Method Details

    • getType

      @Nonnull public Class<BusPartInvoice> getType()
      Specified by:
      getType in class VdmObject<BusPartInvoice>
    • setCADocumentContainerUUID

      public void setCADocumentContainerUUID(@Nullable UUID cADocumentContainerUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CADocumentContainerUUID

      Parameters:
      cADocumentContainerUUID - Document Container ID
    • setCADocContainerInvoiceStatus

      public void setCADocContainerInvoiceStatus(@Nullable String cADocContainerInvoiceStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CADocContainerInvoiceStatus

      Parameters:
      cADocContainerInvoiceStatus - Invoice Status
    • setCADocContainerInvoiceStatusTxt

      public void setCADocContainerInvoiceStatusTxt(@Nullable String cADocContainerInvoiceStatusTxt)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: CADocContainerInvoiceStatusTxt

      Parameters:
      cADocContainerInvoiceStatusTxt - Description for Status of Invoice
    • setCADocumentContainerRefType

      public void setCADocumentContainerRefType(@Nullable String cADocumentContainerRefType)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CADocumentContainerRefType

      Parameters:
      cADocumentContainerRefType - Document Container - Reference Type
    • setCADocumentContainerRefTypeText

      public void setCADocumentContainerRefTypeText(@Nullable String cADocumentContainerRefTypeText)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: CADocumentContainerRefTypeText

      Parameters:
      cADocumentContainerRefTypeText - Reference Type of Document Conainer Text
    • setCADocumentContainerReference

      public void setCADocumentContainerReference(@Nullable String cADocumentContainerReference)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: CADocumentContainerReference

      Parameters:
      cADocumentContainerReference - Document Container - Identification for Reference Category
    • setCreationDate

      public void setCreationDate(@Nullable LocalDate creationDate)
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Day On Which Accounting Document Was Entered
    • setCreationTime

      public void setCreationTime(@Nullable LocalTime creationTime)
      Constraints: Not nullable

      Original property name from the Odata EDM: CreationTime

      Parameters:
      creationTime - Time of Entry
    • setDisplayCurrency

      public void setDisplayCurrency(@Nullable String displayCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: DisplayCurrency

      Parameters:
      displayCurrency - Currency Key
    • setCAInvoiceAmountInDisplayCrcy

      public void setCAInvoiceAmountInDisplayCrcy(@Nullable BigDecimal cAInvoiceAmountInDisplayCrcy)
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAInvoiceAmountInDisplayCrcy

      Parameters:
      cAInvoiceAmountInDisplayCrcy - The cAInvoiceAmountInDisplayCrcy to set.
    • setOpenAmountInDisplayCrcy

      public void setOpenAmountInDisplayCrcy(@Nullable BigDecimal openAmountInDisplayCrcy)
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: OpenAmountInDisplayCrcy

      Parameters:
      openAmountInDisplayCrcy - The openAmountInDisplayCrcy to set.
    • setCashDiscountAmountInDspCrcy

      public void setCashDiscountAmountInDspCrcy(@Nullable BigDecimal cashDiscountAmountInDspCrcy)
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CashDiscountAmountInDspCrcy

      Parameters:
      cashDiscountAmountInDspCrcy - The cashDiscountAmountInDspCrcy to set.
    • setCAEligibleAmountForCshDiscInDC

      public void setCAEligibleAmountForCshDiscInDC(@Nullable BigDecimal cAEligibleAmountForCshDiscInDC)
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAEligibleAmountForCshDiscInDC

      Parameters:
      cAEligibleAmountForCshDiscInDC - The cAEligibleAmountForCshDiscInDC to set.
    • setCAReleasedAmtInDisplayCurrency

      public void setCAReleasedAmtInDisplayCurrency(@Nullable BigDecimal cAReleasedAmtInDisplayCurrency)
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAReleasedAmtInDisplayCurrency

      Parameters:
      cAReleasedAmtInDisplayCurrency - The cAReleasedAmtInDisplayCurrency to set.
    • setCAClearingAmountInDisplayCrcy

      public void setCAClearingAmountInDisplayCrcy(@Nullable BigDecimal cAClearingAmountInDisplayCrcy)
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAClearingAmountInDisplayCrcy

      Parameters:
      cAClearingAmountInDisplayCrcy - The cAClearingAmountInDisplayCrcy to set.
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<BusPartInvoice>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<BusPartInvoice>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<BusPartInvoice>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<BusPartInvoice>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<BusPartInvoice>
    • getParametersIfPresent

      @Nonnull public io.vavr.control.Option<BusPartInvoiceParameters> getParametersIfPresent()
      Retrieval of associated BusPartInvoiceParameters entity (one to one). This corresponds to the OData navigation property Parameters.

      If the navigation property for an entity BusPartInvoice has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property Parameters is already loaded, the result will contain the BusPartInvoiceParameters entity. If not, an Option with result state empty is returned.
    • setParameters

      public void setParameters(BusPartInvoiceParameters value)
      Overwrites the associated BusPartInvoiceParameters entity for the loaded navigation property Parameters.
      Parameters:
      value - New BusPartInvoiceParameters entity.
    • getBusPartInvoiceCorrespncIfPresent

      @Nonnull public io.vavr.control.Option<List<BusPartInvoiceCorrespnc>> getBusPartInvoiceCorrespncIfPresent()
      Retrieval of associated BusPartInvoiceCorrespnc entities (one to many). This corresponds to the OData navigation property _BusPartInvoiceCorrespnc.

      If the navigation property for an entity BusPartInvoice has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _BusPartInvoiceCorrespnc is already loaded, the result will contain the BusPartInvoiceCorrespnc entities. If not, an Option with result state empty is returned.
    • setBusPartInvoiceCorrespnc

      public void setBusPartInvoiceCorrespnc(@Nonnull List<BusPartInvoiceCorrespnc> value)
      Overwrites the list of associated BusPartInvoiceCorrespnc entities for the loaded navigation property _BusPartInvoiceCorrespnc.

      If the navigation property _BusPartInvoiceCorrespnc of a queried BusPartInvoice is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of BusPartInvoiceCorrespnc entities.
    • addBusPartInvoiceCorrespnc

      public void addBusPartInvoiceCorrespnc(BusPartInvoiceCorrespnc... entity)
      Adds elements to the list of associated BusPartInvoiceCorrespnc entities. This corresponds to the OData navigation property _BusPartInvoiceCorrespnc.

      If the navigation property _BusPartInvoiceCorrespnc of a queried BusPartInvoice is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of BusPartInvoiceCorrespnc entities.
    • builder

      @Nonnull public static BusPartInvoice.BusPartInvoiceBuilder builder()
    • getCADocumentContainerUUID

      @Nullable public UUID getCADocumentContainerUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: CADocumentContainerUUID

      Returns:
      Document Container ID
    • getCADocContainerInvoiceStatus

      @Nullable public String getCADocContainerInvoiceStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CADocContainerInvoiceStatus

      Returns:
      Invoice Status
    • getCADocContainerInvoiceStatusTxt

      @Nullable public String getCADocContainerInvoiceStatusTxt()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: CADocContainerInvoiceStatusTxt

      Returns:
      Description for Status of Invoice
    • getCADocumentContainerRefType

      @Nullable public String getCADocumentContainerRefType()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CADocumentContainerRefType

      Returns:
      Document Container - Reference Type
    • getCADocumentContainerRefTypeText

      @Nullable public String getCADocumentContainerRefTypeText()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: CADocumentContainerRefTypeText

      Returns:
      Reference Type of Document Conainer Text
    • getCADocumentContainerReference

      @Nullable public String getCADocumentContainerReference()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: CADocumentContainerReference

      Returns:
      Document Container - Identification for Reference Category
    • getCreationDate

      @Nullable public LocalDate getCreationDate()
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDate

      Returns:
      Day On Which Accounting Document Was Entered
    • getCreationTime

      @Nullable public LocalTime getCreationTime()
      Constraints: Not nullable

      Original property name from the Odata EDM: CreationTime

      Returns:
      Time of Entry
    • getDisplayCurrency

      @Nullable public String getDisplayCurrency()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: DisplayCurrency

      Returns:
      Currency Key
    • getCAInvoiceAmountInDisplayCrcy

      @Nullable public BigDecimal getCAInvoiceAmountInDisplayCrcy()
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAInvoiceAmountInDisplayCrcy

      Returns:
      The cAInvoiceAmountInDisplayCrcy contained in this VdmEntity.
    • getOpenAmountInDisplayCrcy

      @Nullable public BigDecimal getOpenAmountInDisplayCrcy()
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: OpenAmountInDisplayCrcy

      Returns:
      The openAmountInDisplayCrcy contained in this VdmEntity.
    • getCashDiscountAmountInDspCrcy

      @Nullable public BigDecimal getCashDiscountAmountInDspCrcy()
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CashDiscountAmountInDspCrcy

      Returns:
      The cashDiscountAmountInDspCrcy contained in this VdmEntity.
    • getCAEligibleAmountForCshDiscInDC

      @Nullable public BigDecimal getCAEligibleAmountForCshDiscInDC()
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAEligibleAmountForCshDiscInDC

      Returns:
      The cAEligibleAmountForCshDiscInDC contained in this VdmEntity.
    • getCAReleasedAmtInDisplayCurrency

      @Nullable public BigDecimal getCAReleasedAmtInDisplayCurrency()
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAReleasedAmtInDisplayCurrency

      Returns:
      The cAReleasedAmtInDisplayCurrency contained in this VdmEntity.
    • getCAClearingAmountInDisplayCrcy

      @Nullable public BigDecimal getCAClearingAmountInDisplayCrcy()
      Constraints: Not nullable, Precision: 23, Scale: 0

      Original property name from the Odata EDM: CAClearingAmountInDisplayCrcy

      Returns:
      The cAClearingAmountInDisplayCrcy contained in this VdmEntity.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<BusPartInvoice>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<BusPartInvoice>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<BusPartInvoice>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<BusPartInvoice>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<BusPartInvoice>