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

public class SrvcContrItmBillgReqItem extends VdmEntity<SrvcContrItmBillgReqItem> implements VdmEntitySet
Billing Request Line

Original entity name from the Odata EDM: SrvcContrItmBillgReqItem_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceContract

      Parameters:
      serviceContract - Transaction ID
    • setServiceContractItem

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

      Original property name from the Odata EDM: ServiceContractItem

      Parameters:
      serviceContractItem - Shortened Item Number in Document
    • setBillingRequestItem

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

      Original property name from the Odata EDM: BillingRequestItem

      Parameters:
      billingRequestItem - Billing Request Item No
    • setBillgReqItemDescription

      public void setBillgReqItemDescription(@Nullable String billgReqItemDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BillgReqItemDescription

      Parameters:
      billgReqItemDescription - Description
    • setBillgReqItemBillingDateTime

      public void setBillgReqItemBillingDateTime(@Nullable OffsetDateTime billgReqItemBillingDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: BillgReqItemBillingDateTime

      Parameters:
      billgReqItemBillingDateTime - Billing Date for Billing Index and Printout
    • setBillgReqItemBillingStatus

      public void setBillgReqItemBillingStatus(@Nullable String billgReqItemBillingStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: BillgReqItemBillingStatus

      Parameters:
      billgReqItemBillingStatus - Settlement Status of Billing Request Line
    • setSettlementStartDateTime

      public void setSettlementStartDateTime(@Nullable OffsetDateTime settlementStartDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: SettlementStartDateTime

      Parameters:
      settlementStartDateTime - Start of Settlement for Period
    • setSettlementEndDateTime

      public void setSettlementEndDateTime(@Nullable OffsetDateTime settlementEndDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: SettlementEndDateTime

      Parameters:
      settlementEndDateTime - End of Settlement for Period
    • setBillingPlanTimeZone

      public void setBillingPlanTimeZone(@Nullable String billingPlanTimeZone)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: BillingPlanTimeZone

      Parameters:
      billingPlanTimeZone - Time Zone of Billing Plan Set
    • setTransactionCurrency

      public void setTransactionCurrency(@Nullable String transactionCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TransactionCurrency

      Parameters:
      transactionCurrency - Currency
    • setBillgReqItemNetAmount

      public void setBillgReqItemNetAmount(@Nullable BigDecimal billgReqItemNetAmount)
      Constraints: Not nullable, Precision: 15, Scale: 0

      Original property name from the Odata EDM: BillgReqItemNetAmount

      Parameters:
      billgReqItemNetAmount - Net Value
    • setBillingBlockReason

      public void setBillingBlockReason(@Nullable String billingBlockReason)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BillingBlockReason

      Parameters:
      billingBlockReason - Business Partner: Billing Block Reason
    • setServicesRenderedDateTime

      public void setServicesRenderedDateTime(@Nullable OffsetDateTime servicesRenderedDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ServicesRenderedDateTime

      Parameters:
      servicesRenderedDateTime - Services Rendered Date as Timestamp
    • setBillgReqItemPricingDate

      public void setBillgReqItemPricingDate(@Nullable LocalDate billgReqItemPricingDate)
      Constraints: Nullable

      Original property name from the Odata EDM: BillgReqItemPricingDate

      Parameters:
      billgReqItemPricingDate - Pricing Date
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrvcContrItmBillgReqItem 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 _Item is already loaded, the result will contain the ServiceContractItem entity. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(ServiceContractItem value)
      Overwrites the associated ServiceContractItem entity for the loaded navigation property _Item.
      Parameters:
      value - New ServiceContractItem entity.
    • getPricingElementIfPresent

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

      If the navigation property for an entity SrvcContrItmBillgReqItem 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 _PricingElement is already loaded, the result will contain the SrvcContrBillgReqItmPrcElm entities. If not, an Option with result state empty is returned.
    • setPricingElement

      public void setPricingElement(@Nonnull List<SrvcContrBillgReqItmPrcElm> value)
      Overwrites the list of associated SrvcContrBillgReqItmPrcElm entities for the loaded navigation property _PricingElement.

      If the navigation property _PricingElement of a queried SrvcContrItmBillgReqItem 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 SrvcContrBillgReqItmPrcElm entities.
    • addPricingElement

      public void addPricingElement(SrvcContrBillgReqItmPrcElm... entity)
      Adds elements to the list of associated SrvcContrBillgReqItmPrcElm entities. This corresponds to the OData navigation property _PricingElement.

      If the navigation property _PricingElement of a queried SrvcContrItmBillgReqItem 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 SrvcContrBillgReqItmPrcElm entities.
    • getServiceContractIfPresent

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

      If the navigation property for an entity SrvcContrItmBillgReqItem 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 _ServiceContract is already loaded, the result will contain the ServiceContract entity. If not, an Option with result state empty is returned.
    • setServiceContract

      public void setServiceContract(ServiceContract value)
      Overwrites the associated ServiceContract entity for the loaded navigation property _ServiceContract.
      Parameters:
      value - New ServiceContract entity.
    • builder

    • getServiceContract

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

      Original property name from the Odata EDM: ServiceContract

      Returns:
      Transaction ID
    • getServiceContractItem

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

      Original property name from the Odata EDM: ServiceContractItem

      Returns:
      Shortened Item Number in Document
    • getBillingRequestItem

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

      Original property name from the Odata EDM: BillingRequestItem

      Returns:
      Billing Request Item No
    • getBillgReqItemDescription

      @Nullable public String getBillgReqItemDescription()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BillgReqItemDescription

      Returns:
      Description
    • getBillgReqItemBillingDateTime

      @Nullable public OffsetDateTime getBillgReqItemBillingDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: BillgReqItemBillingDateTime

      Returns:
      Billing Date for Billing Index and Printout
    • getBillgReqItemBillingStatus

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

      Original property name from the Odata EDM: BillgReqItemBillingStatus

      Returns:
      Settlement Status of Billing Request Line
    • getSettlementStartDateTime

      @Nullable public OffsetDateTime getSettlementStartDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: SettlementStartDateTime

      Returns:
      Start of Settlement for Period
    • getSettlementEndDateTime

      @Nullable public OffsetDateTime getSettlementEndDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: SettlementEndDateTime

      Returns:
      End of Settlement for Period
    • getBillingPlanTimeZone

      @Nullable public String getBillingPlanTimeZone()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: BillingPlanTimeZone

      Returns:
      Time Zone of Billing Plan Set
    • getTransactionCurrency

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

      Original property name from the Odata EDM: TransactionCurrency

      Returns:
      Currency
    • getBillgReqItemNetAmount

      @Nullable public BigDecimal getBillgReqItemNetAmount()
      Constraints: Not nullable, Precision: 15, Scale: 0

      Original property name from the Odata EDM: BillgReqItemNetAmount

      Returns:
      Net Value
    • getBillingBlockReason

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

      Original property name from the Odata EDM: BillingBlockReason

      Returns:
      Business Partner: Billing Block Reason
    • getServicesRenderedDateTime

      @Nullable public OffsetDateTime getServicesRenderedDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ServicesRenderedDateTime

      Returns:
      Services Rendered Date as Timestamp
    • getBillgReqItemPricingDate

      @Nullable public LocalDate getBillgReqItemPricingDate()
      Constraints: Nullable

      Original property name from the Odata EDM: BillgReqItemPricingDate

      Returns:
      Pricing Date
    • toString

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

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

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

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

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