Class ConsolidationUnitByTimeVersion

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

public class ConsolidationUnitByTimeVersion extends VdmEntity<ConsolidationUnitByTimeVersion>
Consolidation Unit by Time and Version

Original entity name from the Odata EDM: ConsolidationUnitByTimeVersionType

  • Field Details

    • ALL_FIELDS

      public static final ConsolidationUnitByTimeVersionSelectable ALL_FIELDS
      Selector for all available fields of ConsolidationUnitByTimeVersion.
    • CONSOLIDATION_UNIT

      public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_UNIT
      Use with available fluent helpers to apply the ConsolidationUnit field to query operations.
    • CONSOLIDATION_VERSION

      public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_VERSION
      Use with available fluent helpers to apply the ConsolidationVersion field to query operations.
    • FROM_FISCAL_YEAR_PERIOD

      public static final ConsolidationUnitByTimeVersionField<String> FROM_FISCAL_YEAR_PERIOD
      Use with available fluent helpers to apply the FromFiscalYearPeriod field to query operations.
    • TO_FISCAL_YEAR_PERIOD

      public static final ConsolidationUnitByTimeVersionField<String> TO_FISCAL_YEAR_PERIOD
      Use with available fluent helpers to apply the ToFiscalYearPeriod field to query operations.
    • CONSOLIDATION_UNIT_IS_PARTNER_ONLY

      public static final ConsolidationUnitByTimeVersionField<Boolean> CONSOLIDATION_UNIT_IS_PARTNER_ONLY
      Use with available fluent helpers to apply the ConsolidationUnitIsPartnerOnly field to query operations.
    • CNSLDTN_CRCY_TRANSLATION_METHOD

      public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_CRCY_TRANSLATION_METHOD
      Use with available fluent helpers to apply the CnsldtnCrcyTranslationMethod field to query operations.
    • TAX_RATE

      public static final ConsolidationUnitByTimeVersionField<BigDecimal> TAX_RATE
      Use with available fluent helpers to apply the TaxRate field to query operations.
    • FISCAL_YEAR_VARIANT

      public static final ConsolidationUnitByTimeVersionField<String> FISCAL_YEAR_VARIANT
      Use with available fluent helpers to apply the FiscalYearVariant field to query operations.
    • CNSLDTN_DATA_TRANSFER_METHOD

      public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_DATA_TRANSFER_METHOD
      Use with available fluent helpers to apply the CnsldtnDataTransferMethod field to query operations.
    • DOCUMENT_ENTRY_IS_IN_GROUP_CURRENCY

      public static final ConsolidationUnitByTimeVersionField<Boolean> DOCUMENT_ENTRY_IS_IN_GROUP_CURRENCY
      Use with available fluent helpers to apply the DocumentEntryIsInGroupCurrency field to query operations.
    • CNSLDTN_UNIT_LOCAL_CRCY_SOURCE

      public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UNIT_LOCAL_CRCY_SOURCE
      Use with available fluent helpers to apply the CnsldtnUnitLocalCrcySource field to query operations.
    • CNSLDTN_UNIT_GROUP_CRCY_SOURCE

      public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UNIT_GROUP_CRCY_SOURCE
      Use with available fluent helpers to apply the CnsldtnUnitGroupCrcySource field to query operations.
    • CNSLDTN_UPLOAD_METHOD

      public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UPLOAD_METHOD
      Use with available fluent helpers to apply the CnsldtnUploadMethod field to query operations.
    • CNSLDTN_UNIT_DATA_COLLECTION

      public static final ConsolidationUnitByTimeVersionField<String> CNSLDTN_UNIT_DATA_COLLECTION
      Use with available fluent helpers to apply the CnsldtnUnitDataCollection field to query operations.
    • CONSOLIDATION_UNIT_PARTNER

      public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_UNIT_PARTNER
      Use with available fluent helpers to apply the ConsolidationUnitPartner field to query operations.
    • CONSOLIDATION_UNIT_POSTING_RULE

      public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_UNIT_POSTING_RULE
      Use with available fluent helpers to apply the ConsolidationUnitPostingRule field to query operations.
    • CONSOLIDATION_UNIT_VALIDATION

      public static final ConsolidationUnitByTimeVersionField<String> CONSOLIDATION_UNIT_VALIDATION
      Use with available fluent helpers to apply the ConsolidationUnitValidation field to query operations.
    • TO_CNSLDTN_UNIT

      public static final ConsolidationUnitByTimeVersionOneToOneLink<ConsolidationUnit> TO_CNSLDTN_UNIT
      Use with available fluent helpers to apply the to_CnsldtnUnit navigation property to query operations.
  • Constructor Details

    • ConsolidationUnitByTimeVersion

      public ConsolidationUnitByTimeVersion()
    • ConsolidationUnitByTimeVersion

      public ConsolidationUnitByTimeVersion(@Nullable String consolidationUnit, @Nullable String consolidationVersion, @Nullable String fromFiscalYearPeriod, @Nullable String toFiscalYearPeriod, @Nullable Boolean consolidationUnitIsPartnerOnly, @Nullable String cnsldtnCrcyTranslationMethod, @Nullable BigDecimal taxRate, @Nullable String fiscalYearVariant, @Nullable String cnsldtnDataTransferMethod, @Nullable Boolean documentEntryIsInGroupCurrency, @Nullable String cnsldtnUnitLocalCrcySource, @Nullable String cnsldtnUnitGroupCrcySource, @Nullable String cnsldtnUploadMethod, @Nullable String cnsldtnUnitDataCollection, @Nullable String consolidationUnitPartner, @Nullable String consolidationUnitPostingRule, @Nullable String consolidationUnitValidation, @Nullable ConsolidationUnit toCnsldtnUnit)
  • Method Details

    • getType

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

      public void setConsolidationUnit(@Nullable String consolidationUnit)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ConsolidationUnit

      Parameters:
      consolidationUnit - Consolidation Unit
    • setConsolidationVersion

      public void setConsolidationVersion(@Nullable String consolidationVersion)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConsolidationVersion

      Parameters:
      consolidationVersion - Consolidation Version
    • setFromFiscalYearPeriod

      public void setFromFiscalYearPeriod(@Nullable String fromFiscalYearPeriod)
      (Key Field) Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: FromFiscalYearPeriod

      Parameters:
      fromFiscalYearPeriod - From Fiscal Year Period
    • setToFiscalYearPeriod

      public void setToFiscalYearPeriod(@Nullable String toFiscalYearPeriod)
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ToFiscalYearPeriod

      Parameters:
      toFiscalYearPeriod - To Fiscal Year Period
    • setConsolidationUnitIsPartnerOnly

      public void setConsolidationUnitIsPartnerOnly(@Nullable Boolean consolidationUnitIsPartnerOnly)
      Constraints: none

      Original property name from the Odata EDM: ConsolidationUnitIsPartnerOnly

      Parameters:
      consolidationUnitIsPartnerOnly - Consolidation Unit is Partner Unit Only
    • setCnsldtnCrcyTranslationMethod

      public void setCnsldtnCrcyTranslationMethod(@Nullable String cnsldtnCrcyTranslationMethod)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CnsldtnCrcyTranslationMethod

      Parameters:
      cnsldtnCrcyTranslationMethod - Currency Translation Method
    • setTaxRate

      public void setTaxRate(@Nullable BigDecimal taxRate)
      Constraints: Not nullable, Precision: 7, Scale: 4

      Original property name from the Odata EDM: TaxRate

      Parameters:
      taxRate - Tax Rate
    • setFiscalYearVariant

      public void setFiscalYearVariant(@Nullable String fiscalYearVariant)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: FiscalYearVariant

      Parameters:
      fiscalYearVariant - Deviating Fiscal Year Variant
    • setCnsldtnDataTransferMethod

      public void setCnsldtnDataTransferMethod(@Nullable String cnsldtnDataTransferMethod)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CnsldtnDataTransferMethod

      Parameters:
      cnsldtnDataTransferMethod - Universal Journal Integration
    • setDocumentEntryIsInGroupCurrency

      public void setDocumentEntryIsInGroupCurrency(@Nullable Boolean documentEntryIsInGroupCurrency)
      Constraints: none

      Original property name from the Odata EDM: DocumentEntryIsInGroupCurrency

      Parameters:
      documentEntryIsInGroupCurrency - Group Currency is Leading Currency
    • setCnsldtnUnitLocalCrcySource

      public void setCnsldtnUnitLocalCrcySource(@Nullable String cnsldtnUnitLocalCrcySource)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CnsldtnUnitLocalCrcySource

      Parameters:
      cnsldtnUnitLocalCrcySource - Source for Local Currency Key Figure
    • setCnsldtnUnitGroupCrcySource

      public void setCnsldtnUnitGroupCrcySource(@Nullable String cnsldtnUnitGroupCrcySource)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CnsldtnUnitGroupCrcySource

      Parameters:
      cnsldtnUnitGroupCrcySource - Source for Group Currency Key Figure
    • setCnsldtnUploadMethod

      public void setCnsldtnUploadMethod(@Nullable String cnsldtnUploadMethod)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CnsldtnUploadMethod

      Parameters:
      cnsldtnUploadMethod - Upload Method
    • setCnsldtnUnitDataCollection

      public void setCnsldtnUnitDataCollection(@Nullable String cnsldtnUnitDataCollection)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: CnsldtnUnitDataCollection

      Parameters:
      cnsldtnUnitDataCollection - Data Collection Selection Attribute
    • setConsolidationUnitPartner

      public void setConsolidationUnitPartner(@Nullable String consolidationUnitPartner)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationUnitPartner

      Parameters:
      consolidationUnitPartner - Partner Selection Attribute
    • setConsolidationUnitPostingRule

      public void setConsolidationUnitPostingRule(@Nullable String consolidationUnitPostingRule)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationUnitPostingRule

      Parameters:
      consolidationUnitPostingRule - Posting Rule Selection Attribute
    • setConsolidationUnitValidation

      public void setConsolidationUnitValidation(@Nullable String consolidationUnitValidation)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationUnitValidation

      Parameters:
      consolidationUnitValidation - Validation Selection Attribute
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ConsolidationUnitByTimeVersionField<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> ConsolidationUnitByTimeVersionField<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<ConsolidationUnitByTimeVersion>
    • setServicePathForFetch

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

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

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

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

      @Nullable public ConsolidationUnit fetchCnsldtnUnit()
      Fetches the ConsolidationUnit entity (one to one) associated with this entity. This corresponds to the OData navigation property to_CnsldtnUnit.

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

      Returns:
      The single associated ConsolidationUnit 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.
    • getCnsldtnUnitOrFetch

      @Nullable public ConsolidationUnit getCnsldtnUnitOrFetch()
      Retrieval of associated ConsolidationUnit entity (one to one). This corresponds to the OData navigation property to_CnsldtnUnit.

      If the navigation property to_CnsldtnUnit of a queried ConsolidationUnitByTimeVersion 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 ConsolidationUnit 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.
    • getCnsldtnUnitIfPresent

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

      If the navigation property for an entity ConsolidationUnitByTimeVersion 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_CnsldtnUnit is already loaded, the result will contain the ConsolidationUnit entity. If not, an Option with result state empty is returned.
    • setCnsldtnUnit

      public void setCnsldtnUnit(ConsolidationUnit value)
      Overwrites the associated ConsolidationUnit entity for the loaded navigation property to_CnsldtnUnit.
      Parameters:
      value - New ConsolidationUnit entity.
    • builder

    • getConsolidationUnit

      @Nullable public String getConsolidationUnit()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ConsolidationUnit

      Returns:
      Consolidation Unit
    • getConsolidationVersion

      @Nullable public String getConsolidationVersion()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConsolidationVersion

      Returns:
      Consolidation Version
    • getFromFiscalYearPeriod

      @Nullable public String getFromFiscalYearPeriod()
      (Key Field) Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: FromFiscalYearPeriod

      Returns:
      From Fiscal Year Period
    • getToFiscalYearPeriod

      @Nullable public String getToFiscalYearPeriod()
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ToFiscalYearPeriod

      Returns:
      To Fiscal Year Period
    • getConsolidationUnitIsPartnerOnly

      @Nullable public Boolean getConsolidationUnitIsPartnerOnly()
      Constraints: none

      Original property name from the Odata EDM: ConsolidationUnitIsPartnerOnly

      Returns:
      Consolidation Unit is Partner Unit Only
    • getCnsldtnCrcyTranslationMethod

      @Nullable public String getCnsldtnCrcyTranslationMethod()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CnsldtnCrcyTranslationMethod

      Returns:
      Currency Translation Method
    • getTaxRate

      @Nullable public BigDecimal getTaxRate()
      Constraints: Not nullable, Precision: 7, Scale: 4

      Original property name from the Odata EDM: TaxRate

      Returns:
      Tax Rate
    • getFiscalYearVariant

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

      Original property name from the Odata EDM: FiscalYearVariant

      Returns:
      Deviating Fiscal Year Variant
    • getCnsldtnDataTransferMethod

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

      Original property name from the Odata EDM: CnsldtnDataTransferMethod

      Returns:
      Universal Journal Integration
    • getDocumentEntryIsInGroupCurrency

      @Nullable public Boolean getDocumentEntryIsInGroupCurrency()
      Constraints: none

      Original property name from the Odata EDM: DocumentEntryIsInGroupCurrency

      Returns:
      Group Currency is Leading Currency
    • getCnsldtnUnitLocalCrcySource

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

      Original property name from the Odata EDM: CnsldtnUnitLocalCrcySource

      Returns:
      Source for Local Currency Key Figure
    • getCnsldtnUnitGroupCrcySource

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

      Original property name from the Odata EDM: CnsldtnUnitGroupCrcySource

      Returns:
      Source for Group Currency Key Figure
    • getCnsldtnUploadMethod

      @Nullable public String getCnsldtnUploadMethod()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CnsldtnUploadMethod

      Returns:
      Upload Method
    • getCnsldtnUnitDataCollection

      @Nullable public String getCnsldtnUnitDataCollection()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: CnsldtnUnitDataCollection

      Returns:
      Data Collection Selection Attribute
    • getConsolidationUnitPartner

      @Nullable public String getConsolidationUnitPartner()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationUnitPartner

      Returns:
      Partner Selection Attribute
    • getConsolidationUnitPostingRule

      @Nullable public String getConsolidationUnitPostingRule()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationUnitPostingRule

      Returns:
      Posting Rule Selection Attribute
    • getConsolidationUnitValidation

      @Nullable public String getConsolidationUnitValidation()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationUnitValidation

      Returns:
      Validation Selection Attribute
    • toString

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

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

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

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