Class SalesOrderItemBillingPlan

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SalesOrderItemBillingPlan>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.salesorder.SalesOrderItemBillingPlan

public class SalesOrderItemBillingPlan extends VdmEntity<SalesOrderItemBillingPlan>
Item Billing Plan

Original entity name from the Odata EDM: A_SalesOrderItemBillingPlanType

  • Field Details

  • Constructor Details

    • SalesOrderItemBillingPlan

      public SalesOrderItemBillingPlan()
    • SalesOrderItemBillingPlan

      public SalesOrderItemBillingPlan(@Nullable String salesOrder, @Nullable String salesOrderItem, @Nullable String billingPlan, @Nullable Boolean billingPlanIsInHeader, @Nullable LocalDateTime billingPlanStartDate, @Nullable String billingPlanStartDateRule, @Nullable String referenceBillingPlan, @Nullable String billingPlanCategory, @Nullable String billingPlanType, @Nullable LocalDateTime billingPlanEndDate, @Nullable String billingPlanEndDateRule, @Nullable String billingPlanSearchTerm, List<SlsOrderItemBillingPlanItem> toBillingPlanItem, @Nullable SalesOrder toSalesOrder, @Nullable SalesOrderItem toSalesOrderItem)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SalesOrder

      Parameters:
      salesOrder - Sales Order
    • setSalesOrderItem

      public void setSalesOrderItem(@Nullable String salesOrderItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesOrderItem

      Parameters:
      salesOrderItem - Sales Order Item
    • setBillingPlan

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

      Original property name from the Odata EDM: BillingPlan

      Parameters:
      billingPlan - Billing Plan Number / Invoicing Plan Number
    • setBillingPlanIsInHeader

      public void setBillingPlanIsInHeader(@Nullable Boolean billingPlanIsInHeader)
      Constraints: none

      Original property name from the Odata EDM: BillingPlanIsInHeader

      Parameters:
      billingPlanIsInHeader - Indicator for Billing Plan in Header
    • setBillingPlanStartDate

      public void setBillingPlanStartDate(@Nullable LocalDateTime billingPlanStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BillingPlanStartDate

      Parameters:
      billingPlanStartDate - Start Date for Billing Plan/Invoice Plan
    • setBillingPlanStartDateRule

      public void setBillingPlanStartDateRule(@Nullable String billingPlanStartDateRule)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BillingPlanStartDateRule

      Parameters:
      billingPlanStartDateRule - Rule for Origin of Start Date of Billing/Invoicing Plan
    • setReferenceBillingPlan

      public void setReferenceBillingPlan(@Nullable String referenceBillingPlan)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceBillingPlan

      Parameters:
      referenceBillingPlan - Reference Billing Plan Number / Invoicing Plan Number
    • setBillingPlanCategory

      public void setBillingPlanCategory(@Nullable String billingPlanCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: BillingPlanCategory

      Parameters:
      billingPlanCategory - Billing plan category
    • setBillingPlanType

      public void setBillingPlanType(@Nullable String billingPlanType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BillingPlanType

      Parameters:
      billingPlanType - Billing/Invoicing Plan Type
    • setBillingPlanEndDate

      public void setBillingPlanEndDate(@Nullable LocalDateTime billingPlanEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BillingPlanEndDate

      Parameters:
      billingPlanEndDate - End Date Billing Plan/Invoice Plan
    • setBillingPlanEndDateRule

      public void setBillingPlanEndDateRule(@Nullable String billingPlanEndDateRule)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BillingPlanEndDateRule

      Parameters:
      billingPlanEndDateRule - Rule for Origin of End Date for Billing/Invoicing Plan
    • setBillingPlanSearchTerm

      public void setBillingPlanSearchTerm(@Nullable String billingPlanSearchTerm)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BillingPlanSearchTerm

      Parameters:
      billingPlanSearchTerm - Sort Field
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SalesOrderItemBillingPlanField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> SalesOrderItemBillingPlanField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SalesOrderItemBillingPlan>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SalesOrderItemBillingPlan>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SalesOrderItemBillingPlan>
    • getDefaultServicePath

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

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

      @Nonnull public List<SlsOrderItemBillingPlanItem> fetchBillingPlanItem()
      Fetches the SlsOrderItemBillingPlanItem entities (one to many) associated with this entity. This corresponds to the OData navigation property to_BillingPlanItem.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated SlsOrderItemBillingPlanItem entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getBillingPlanItemOrFetch

      @Nonnull public List<SlsOrderItemBillingPlanItem> getBillingPlanItemOrFetch()
      Retrieval of associated SlsOrderItemBillingPlanItem entities (one to many). This corresponds to the OData navigation property to_BillingPlanItem.

      If the navigation property to_BillingPlanItem of a queried SalesOrderItemBillingPlan 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.

      Returns:
      List of associated SlsOrderItemBillingPlanItem entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getBillingPlanItemIfPresent

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

      If the navigation property for an entity SalesOrderItemBillingPlan 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 to_BillingPlanItem is already loaded, the result will contain the SlsOrderItemBillingPlanItem entities. If not, an Option with result state empty is returned.
    • setBillingPlanItem

      public void setBillingPlanItem(@Nonnull List<SlsOrderItemBillingPlanItem> value)
      Overwrites the list of associated SlsOrderItemBillingPlanItem entities for the loaded navigation property to_BillingPlanItem.

      If the navigation property to_BillingPlanItem of a queried SalesOrderItemBillingPlan 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 SlsOrderItemBillingPlanItem entities.
    • addBillingPlanItem

      public void addBillingPlanItem(SlsOrderItemBillingPlanItem... entity)
      Adds elements to the list of associated SlsOrderItemBillingPlanItem entities. This corresponds to the OData navigation property to_BillingPlanItem.

      If the navigation property to_BillingPlanItem of a queried SalesOrderItemBillingPlan 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 SlsOrderItemBillingPlanItem entities.
    • fetchSalesOrder

      @Nullable public SalesOrder fetchSalesOrder()
      Fetches the SalesOrder entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SalesOrder.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated SalesOrder entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderOrFetch

      @Nullable public SalesOrder getSalesOrderOrFetch()
      Retrieval of associated SalesOrder entity (one to one). This corresponds to the OData navigation property to_SalesOrder.

      If the navigation property to_SalesOrder of a queried SalesOrderItemBillingPlan 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.

      Returns:
      List of associated SalesOrder entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderIfPresent

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

      If the navigation property for an entity SalesOrderItemBillingPlan 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 to_SalesOrder is already loaded, the result will contain the SalesOrder entity. If not, an Option with result state empty is returned.
    • setSalesOrder

      public void setSalesOrder(SalesOrder value)
      Overwrites the associated SalesOrder entity for the loaded navigation property to_SalesOrder.
      Parameters:
      value - New SalesOrder entity.
    • fetchSalesOrderItem

      @Nullable public SalesOrderItem fetchSalesOrderItem()
      Fetches the SalesOrderItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SalesOrderItem.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated SalesOrderItem entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderItemOrFetch

      @Nullable public SalesOrderItem getSalesOrderItemOrFetch()
      Retrieval of associated SalesOrderItem entity (one to one). This corresponds to the OData navigation property to_SalesOrderItem.

      If the navigation property to_SalesOrderItem of a queried SalesOrderItemBillingPlan 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.

      Returns:
      List of associated SalesOrderItem entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderItemIfPresent

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

      If the navigation property for an entity SalesOrderItemBillingPlan 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 to_SalesOrderItem is already loaded, the result will contain the SalesOrderItem entity. If not, an Option with result state empty is returned.
    • setSalesOrderItem

      public void setSalesOrderItem(SalesOrderItem value)
      Overwrites the associated SalesOrderItem entity for the loaded navigation property to_SalesOrderItem.
      Parameters:
      value - New SalesOrderItem entity.
    • builder

    • getSalesOrder

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

      Original property name from the Odata EDM: SalesOrder

      Returns:
      Sales Order
    • getSalesOrderItem

      @Nullable public String getSalesOrderItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesOrderItem

      Returns:
      Sales Order Item
    • getBillingPlan

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

      Original property name from the Odata EDM: BillingPlan

      Returns:
      Billing Plan Number / Invoicing Plan Number
    • getBillingPlanIsInHeader

      @Nullable public Boolean getBillingPlanIsInHeader()
      Constraints: none

      Original property name from the Odata EDM: BillingPlanIsInHeader

      Returns:
      Indicator for Billing Plan in Header
    • getBillingPlanStartDate

      @Nullable public LocalDateTime getBillingPlanStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BillingPlanStartDate

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

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

      Original property name from the Odata EDM: BillingPlanStartDateRule

      Returns:
      Rule for Origin of Start Date of Billing/Invoicing Plan
    • getReferenceBillingPlan

      @Nullable public String getReferenceBillingPlan()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReferenceBillingPlan

      Returns:
      Reference Billing Plan Number / Invoicing Plan Number
    • getBillingPlanCategory

      @Nullable public String getBillingPlanCategory()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: BillingPlanCategory

      Returns:
      Billing plan category
    • getBillingPlanType

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

      Original property name from the Odata EDM: BillingPlanType

      Returns:
      Billing/Invoicing Plan Type
    • getBillingPlanEndDate

      @Nullable public LocalDateTime getBillingPlanEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BillingPlanEndDate

      Returns:
      End Date Billing Plan/Invoice Plan
    • getBillingPlanEndDateRule

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

      Original property name from the Odata EDM: BillingPlanEndDateRule

      Returns:
      Rule for Origin of End Date for Billing/Invoicing Plan
    • getBillingPlanSearchTerm

      @Nullable public String getBillingPlanSearchTerm()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BillingPlanSearchTerm

      Returns:
      Sort Field
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SalesOrderItemBillingPlan>