java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<PurchaseOrderInvoicingPlan>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.purchaseorder.PurchaseOrderInvoicingPlan
All Implemented Interfaces:
VdmEntitySet

public class PurchaseOrderInvoicingPlan extends VdmEntity<PurchaseOrderInvoicingPlan> implements VdmEntitySet
Invoicing Plan

Original entity name from the Odata EDM: PurchaseOrderInvoicingPlan_Type

  • Field Details

  • Constructor Details

    • PurchaseOrderInvoicingPlan

      public PurchaseOrderInvoicingPlan()
    • PurchaseOrderInvoicingPlan

      public PurchaseOrderInvoicingPlan(@Nullable String purchaseOrder, @Nullable String purchaseOrderItem, @Nullable String invoicingPlan, @Nullable String invoicingPlanType, @Nullable LocalDate invoicingPlanStartDate, @Nullable LocalDate invoicingPlanEndDate, @Nullable String invoicingPlanNextInvcDateRule, @Nullable String purchasingOrganization, @Nullable String purchasingGroup, @Nullable String purchaseOrderType, @Nullable String plant, List<POInvoicingPlanItem> to_POInvoicingPlanItem, @Nullable PurchaseOrder to_PurchaseOrder, @Nullable PurchaseOrderItem to_PurchaseOrderItem)
  • Method Details

    • getType

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

      public void setPurchaseOrder(@Nullable String purchaseOrder)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOrder

      Parameters:
      purchaseOrder - Purchase Order Number
    • setPurchaseOrderItem

      public void setPurchaseOrderItem(@Nullable String purchaseOrderItem)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOrderItem

      Parameters:
      purchaseOrderItem - Item Number of Purchase Order
    • setInvoicingPlan

      public void setInvoicingPlan(@Nullable String invoicingPlan)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InvoicingPlan

      Parameters:
      invoicingPlan - Billing Plan Number / Invoicing Plan Number
    • setInvoicingPlanType

      public void setInvoicingPlanType(@Nullable String invoicingPlanType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InvoicingPlanType

      Parameters:
      invoicingPlanType - Billing/Invoicing Plan Type
    • setInvoicingPlanStartDate

      public void setInvoicingPlanStartDate(@Nullable LocalDate invoicingPlanStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: InvoicingPlanStartDate

      Parameters:
      invoicingPlanStartDate - Start Date for Billing Plan/Invoice Plan
    • setInvoicingPlanEndDate

      public void setInvoicingPlanEndDate(@Nullable LocalDate invoicingPlanEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: InvoicingPlanEndDate

      Parameters:
      invoicingPlanEndDate - End Date Billing Plan/Invoice Plan
    • setInvoicingPlanNextInvcDateRule

      public void setInvoicingPlanNextInvcDateRule(@Nullable String invoicingPlanNextInvcDateRule)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InvoicingPlanNextInvcDateRule

      Parameters:
      invoicingPlanNextInvcDateRule - Rule for Origin of Next Billing/Invoice Date
    • setPurchasingOrganization

      public void setPurchasingOrganization(@Nullable String purchasingOrganization)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingOrganization

      Parameters:
      purchasingOrganization - Purchasing Organization
    • setPurchasingGroup

      public void setPurchasingGroup(@Nullable String purchasingGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PurchasingGroup

      Parameters:
      purchasingGroup - Purchasing Group
    • setPurchaseOrderType

      public void setPurchaseOrderType(@Nullable String purchaseOrderType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchaseOrderType

      Parameters:
      purchaseOrderType - Purchasing Document Type
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • getEntityCollection

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

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

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<PurchaseOrderInvoicingPlan>
    • toMapOfNavigationProperties

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

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

      If the navigation property for an entity PurchaseOrderInvoicingPlan 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 _POInvoicingPlanItem is already loaded, the result will contain the POInvoicingPlanItem entities. If not, an Option with result state empty is returned.
    • setPOInvoicingPlanItem

      public void setPOInvoicingPlanItem(@Nonnull List<POInvoicingPlanItem> value)
      Overwrites the list of associated POInvoicingPlanItem entities for the loaded navigation property _POInvoicingPlanItem.

      If the navigation property _POInvoicingPlanItem of a queried PurchaseOrderInvoicingPlan 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 POInvoicingPlanItem entities.
    • addPOInvoicingPlanItem

      public void addPOInvoicingPlanItem(POInvoicingPlanItem... entity)
      Adds elements to the list of associated POInvoicingPlanItem entities. This corresponds to the OData navigation property _POInvoicingPlanItem.

      If the navigation property _POInvoicingPlanItem of a queried PurchaseOrderInvoicingPlan 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 POInvoicingPlanItem entities.
    • getPurchaseOrderIfPresent

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

      If the navigation property for an entity PurchaseOrderInvoicingPlan 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 _PurchaseOrder is already loaded, the result will contain the PurchaseOrder entity. If not, an Option with result state empty is returned.
    • setPurchaseOrder

      public void setPurchaseOrder(PurchaseOrder value)
      Overwrites the associated PurchaseOrder entity for the loaded navigation property _PurchaseOrder.
      Parameters:
      value - New PurchaseOrder entity.
    • getPurchaseOrderItemIfPresent

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

      If the navigation property for an entity PurchaseOrderInvoicingPlan 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 _PurchaseOrderItem is already loaded, the result will contain the PurchaseOrderItem entity. If not, an Option with result state empty is returned.
    • setPurchaseOrderItem

      public void setPurchaseOrderItem(PurchaseOrderItem value)
      Overwrites the associated PurchaseOrderItem entity for the loaded navigation property _PurchaseOrderItem.
      Parameters:
      value - New PurchaseOrderItem entity.
    • builder

    • getPurchaseOrder

      @Nullable public String getPurchaseOrder()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PurchaseOrder

      Returns:
      Purchase Order Number
    • getPurchaseOrderItem

      @Nullable public String getPurchaseOrderItem()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: PurchaseOrderItem

      Returns:
      Item Number of Purchase Order
    • getInvoicingPlan

      @Nullable public String getInvoicingPlan()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InvoicingPlan

      Returns:
      Billing Plan Number / Invoicing Plan Number
    • getInvoicingPlanType

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

      Original property name from the Odata EDM: InvoicingPlanType

      Returns:
      Billing/Invoicing Plan Type
    • getInvoicingPlanStartDate

      @Nullable public LocalDate getInvoicingPlanStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: InvoicingPlanStartDate

      Returns:
      Start Date for Billing Plan/Invoice Plan
    • getInvoicingPlanEndDate

      @Nullable public LocalDate getInvoicingPlanEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: InvoicingPlanEndDate

      Returns:
      End Date Billing Plan/Invoice Plan
    • getInvoicingPlanNextInvcDateRule

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

      Original property name from the Odata EDM: InvoicingPlanNextInvcDateRule

      Returns:
      Rule for Origin of Next Billing/Invoice Date
    • getPurchasingOrganization

      @Nullable public String getPurchasingOrganization()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getPurchasingGroup

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

      Original property name from the Odata EDM: PurchasingGroup

      Returns:
      Purchasing Group
    • getPurchaseOrderType

      @Nullable public String getPurchaseOrderType()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchaseOrderType

      Returns:
      Purchasing Document Type
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • toString

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

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

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

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

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