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

public class PurchasingDocument extends VdmEntity<PurchasingDocument> implements VdmEntitySet
Purg Document Pricing Simulation

Original entity name from the Odata EDM: PurchasingDocument_Type

  • Field Details

  • Constructor Details

    • PurchasingDocument

      public PurchasingDocument()
    • PurchasingDocument

      public PurchasingDocument(@Nullable String purchasingDocument, @Nullable String purchasingDocumentCategory, @Nullable String purchasingDocumentType, @Nullable String purchasingOrganization, @Nullable String purchasingGroup, @Nullable String purchasingDocumentOrigin, @Nullable String isEndOfPurposeBlocked, @Nullable String companyCode, @Nullable Collection<SAP__Message> _Messages)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PurchasingDocument

      Parameters:
      purchasingDocument - Purchasing Document Number
    • setPurchasingDocumentCategory

      public void setPurchasingDocumentCategory(@Nullable String purchasingDocumentCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchasingDocumentCategory

      Parameters:
      purchasingDocumentCategory - Purchasing Document Category
    • setPurchasingDocumentType

      public void setPurchasingDocumentType(@Nullable String purchasingDocumentType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingDocumentType

      Parameters:
      purchasingDocumentType - Purchasing Document Type
    • 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
    • setPurchasingDocumentOrigin

      public void setPurchasingDocumentOrigin(@Nullable String purchasingDocumentOrigin)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PurchasingDocumentOrigin

      Parameters:
      purchasingDocumentOrigin - Status of Purchasing Document
    • setIsEndOfPurposeBlocked

      public void setIsEndOfPurposeBlocked(@Nullable String isEndOfPurposeBlocked)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IsEndOfPurposeBlocked

      Parameters:
      isEndOfPurposeBlocked - Business Purpose Completed
    • setCompanyCode

      public void setCompanyCode(@Nullable String companyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<PurchasingDocument>
    • simulatePricing

      @Nonnull public static BoundAction.SingleToCollection<PurchasingDocument,GEN_PRICE_SIM_R> simulatePricing(@Nonnull String pURCHASINGDOCUMENT, @Nonnull String pURCHASINGDOCUMENTCATEGORY, @Nonnull String sIMULATIONCURRENCY, @Nonnull String dOMAINVALUENAME, @Nonnull Collection<GEN_ITEM_PRICE_SIM> _ITEMS)
      Action that can be applied to any entity object of this class.

      Parameters:
      _ITEMS - Constraints: Not nullable

      Original parameter name from the Odata EDM: _ITEMS

      dOMAINVALUENAME - Constraints: Not nullable, Maximum length: 60

      Original parameter name from the Odata EDM: DOMAINVALUENAME

      pURCHASINGDOCUMENT - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: PURCHASINGDOCUMENT

      pURCHASINGDOCUMENTCATEGORY - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: PURCHASINGDOCUMENTCATEGORY

      sIMULATIONCURRENCY - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: SIMULATIONCURRENCY

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static PurchasingDocument.PurchasingDocumentBuilder builder()
    • getPurchasingDocument

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

      Original property name from the Odata EDM: PurchasingDocument

      Returns:
      Purchasing Document Number
    • getPurchasingDocumentCategory

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

      Original property name from the Odata EDM: PurchasingDocumentCategory

      Returns:
      Purchasing Document Category
    • getPurchasingDocumentType

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

      Original property name from the Odata EDM: PurchasingDocumentType

      Returns:
      Purchasing Document Type
    • 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
    • getPurchasingDocumentOrigin

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

      Original property name from the Odata EDM: PurchasingDocumentOrigin

      Returns:
      Status of Purchasing Document
    • getIsEndOfPurposeBlocked

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

      Original property name from the Odata EDM: IsEndOfPurposeBlocked

      Returns:
      Business Purpose Completed
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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