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

public class CrdtMgmtBPCreditInsurance extends VdmEntity<CrdtMgmtBPCreditInsurance>
Business Partner Credit Insurances

Original entity name from the Odata EDM: CrdtMgmtBPCreditInsurance_Type

  • Field Details

    • ALL_FIELDS

      public static final CrdtMgmtBPCreditInsuranceSelectable ALL_FIELDS
      Selector for all available fields of CrdtMgmtBPCreditInsurance.
    • BUSINESS_PARTNER

      public static final CrdtMgmtBPCreditInsuranceField<String> BUSINESS_PARTNER
      Use with available fluent helpers to apply the BusinessPartner field to query operations.
    • CREDIT_SEGMENT

      public static final CrdtMgmtBPCreditInsuranceField<String> CREDIT_SEGMENT
      Use with available fluent helpers to apply the CreditSegment field to query operations.
    • CRDT_ACCT_INFORMATION_CATEGORY

      public static final CrdtMgmtBPCreditInsuranceField<String> CRDT_ACCT_INFORMATION_CATEGORY
      Use with available fluent helpers to apply the CrdtAcctInformationCategory field to query operations.
    • CRDT_ACCT_INFORMATION_TYPE

      public static final CrdtMgmtBPCreditInsuranceField<String> CRDT_ACCT_INFORMATION_TYPE
      Use with available fluent helpers to apply the CrdtAcctInformationType field to query operations.
    • ADDITIONAL_CREDIT_DOC_SEQUENCE

      public static final CrdtMgmtBPCreditInsuranceField<String> ADDITIONAL_CREDIT_DOC_SEQUENCE
      Use with available fluent helpers to apply the AdditionalCreditDocSequence field to query operations.
    • EXCEPTION_IS_CREDIT_CHECK_RELEVANT

      public static final CrdtMgmtBPCreditInsuranceField<Boolean> EXCEPTION_IS_CREDIT_CHECK_RELEVANT
      Use with available fluent helpers to apply the ExceptionIsCreditCheckRelevant field to query operations.
    • ADDL_CREDIT_DOC_AMT_IN_TRANSAC_CRCY

      public static final CrdtMgmtBPCreditInsuranceField<BigDecimal> ADDL_CREDIT_DOC_AMT_IN_TRANSAC_CRCY
      Use with available fluent helpers to apply the AddlCreditDocAmtInTransacCrcy field to query operations.
    • TRANSACTION_CURRENCY

      public static final CrdtMgmtBPCreditInsuranceField<String> TRANSACTION_CURRENCY
      Use with available fluent helpers to apply the TransactionCurrency field to query operations.
    • VALIDITY_START_DATE

      public static final CrdtMgmtBPCreditInsuranceField<LocalDateTime> VALIDITY_START_DATE
      Use with available fluent helpers to apply the ValidityStartDate field to query operations.
    • VALIDITY_END_DATE

      public static final CrdtMgmtBPCreditInsuranceField<LocalDateTime> VALIDITY_END_DATE
      Use with available fluent helpers to apply the ValidityEndDate field to query operations.
    • ADDITIONAL_CREDIT_DOC_COMMENT

      public static final CrdtMgmtBPCreditInsuranceField<String> ADDITIONAL_CREDIT_DOC_COMMENT
      Use with available fluent helpers to apply the AdditionalCreditDocComment field to query operations.
    • TO_CRDT_M_BUSINESS_PARTNER_TP

      public static final CrdtMgmtBPCreditInsuranceOneToOneLink<CreditMgmtBusinessPartner> TO_CRDT_M_BUSINESS_PARTNER_TP
      Use with available fluent helpers to apply the to_CrdtMBusinessPartnerTP navigation property to query operations.
  • Constructor Details

    • CrdtMgmtBPCreditInsurance

      public CrdtMgmtBPCreditInsurance()
    • CrdtMgmtBPCreditInsurance

      public CrdtMgmtBPCreditInsurance(@Nullable String businessPartner, @Nullable String creditSegment, @Nullable String crdtAcctInformationCategory, @Nullable String crdtAcctInformationType, @Nullable String additionalCreditDocSequence, @Nullable Boolean exceptionIsCreditCheckRelevant, @Nullable BigDecimal addlCreditDocAmtInTransacCrcy, @Nullable String transactionCurrency, @Nullable LocalDateTime validityStartDate, @Nullable LocalDateTime validityEndDate, @Nullable String additionalCreditDocComment, @Nullable CreditMgmtBusinessPartner toCrdtMBusinessPartnerTP)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: BusinessPartner

      Parameters:
      businessPartner - Business Partner Number
    • setCreditSegment

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

      Original property name from the Odata EDM: CreditSegment

      Parameters:
      creditSegment - Credit Segment
    • setCrdtAcctInformationCategory

      public void setCrdtAcctInformationCategory(@Nullable String crdtAcctInformationCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CrdtAcctInformationCategory

      Parameters:
      crdtAcctInformationCategory - Information Category
    • setCrdtAcctInformationType

      public void setCrdtAcctInformationType(@Nullable String crdtAcctInformationType)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CrdtAcctInformationType

      Parameters:
      crdtAcctInformationType - Information Type
    • setAdditionalCreditDocSequence

      public void setAdditionalCreditDocSequence(@Nullable String additionalCreditDocSequence)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AdditionalCreditDocSequence

      Parameters:
      additionalCreditDocSequence - Counter
    • setExceptionIsCreditCheckRelevant

      public void setExceptionIsCreditCheckRelevant(@Nullable Boolean exceptionIsCreditCheckRelevant)
      Constraints: none

      Original property name from the Odata EDM: ExceptionIsCreditCheckRelevant

      Parameters:
      exceptionIsCreditCheckRelevant - Relevance for Credit Check
    • setAddlCreditDocAmtInTransacCrcy

      public void setAddlCreditDocAmtInTransacCrcy(@Nullable BigDecimal addlCreditDocAmtInTransacCrcy)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: AddlCreditDocAmtInTransacCrcy

      Parameters:
      addlCreditDocAmtInTransacCrcy - Amount
    • setTransactionCurrency

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

      Original property name from the Odata EDM: TransactionCurrency

      Parameters:
      transactionCurrency - Currency
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Start Date of Validity
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - End Date of Validity
    • setAdditionalCreditDocComment

      public void setAdditionalCreditDocComment(@Nullable String additionalCreditDocComment)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: AdditionalCreditDocComment

      Parameters:
      additionalCreditDocComment - Additional Information
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CrdtMgmtBPCreditInsuranceField<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> CrdtMgmtBPCreditInsuranceField<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<CrdtMgmtBPCreditInsurance>
    • setServicePathForFetch

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

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

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

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

      @Nullable public CreditMgmtBusinessPartner fetchCrdtMBusinessPartnerTP()
      Fetches the CreditMgmtBusinessPartner entity (one to one) associated with this entity. This corresponds to the OData navigation property to_CrdtMBusinessPartnerTP.

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

      Returns:
      The single associated CreditMgmtBusinessPartner 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.
    • getCrdtMBusinessPartnerTPOrFetch

      @Nullable public CreditMgmtBusinessPartner getCrdtMBusinessPartnerTPOrFetch()
      Retrieval of associated CreditMgmtBusinessPartner entity (one to one). This corresponds to the OData navigation property to_CrdtMBusinessPartnerTP.

      If the navigation property to_CrdtMBusinessPartnerTP of a queried CrdtMgmtBPCreditInsurance 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 CreditMgmtBusinessPartner 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.
    • getCrdtMBusinessPartnerTPIfPresent

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

      If the navigation property for an entity CrdtMgmtBPCreditInsurance 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_CrdtMBusinessPartnerTP is already loaded, the result will contain the CreditMgmtBusinessPartner entity. If not, an Option with result state empty is returned.
    • setCrdtMBusinessPartnerTP

      public void setCrdtMBusinessPartnerTP(CreditMgmtBusinessPartner value)
      Overwrites the associated CreditMgmtBusinessPartner entity for the loaded navigation property to_CrdtMBusinessPartnerTP.
      Parameters:
      value - New CreditMgmtBusinessPartner entity.
    • builder

    • getBusinessPartner

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

      Original property name from the Odata EDM: BusinessPartner

      Returns:
      Business Partner Number
    • getCreditSegment

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

      Original property name from the Odata EDM: CreditSegment

      Returns:
      Credit Segment
    • getCrdtAcctInformationCategory

      @Nullable public String getCrdtAcctInformationCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CrdtAcctInformationCategory

      Returns:
      Information Category
    • getCrdtAcctInformationType

      @Nullable public String getCrdtAcctInformationType()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CrdtAcctInformationType

      Returns:
      Information Type
    • getAdditionalCreditDocSequence

      @Nullable public String getAdditionalCreditDocSequence()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AdditionalCreditDocSequence

      Returns:
      Counter
    • getExceptionIsCreditCheckRelevant

      @Nullable public Boolean getExceptionIsCreditCheckRelevant()
      Constraints: none

      Original property name from the Odata EDM: ExceptionIsCreditCheckRelevant

      Returns:
      Relevance for Credit Check
    • getAddlCreditDocAmtInTransacCrcy

      @Nullable public BigDecimal getAddlCreditDocAmtInTransacCrcy()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: AddlCreditDocAmtInTransacCrcy

      Returns:
      Amount
    • getTransactionCurrency

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

      Original property name from the Odata EDM: TransactionCurrency

      Returns:
      Currency
    • getValidityStartDate

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

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Start Date of Validity
    • getValidityEndDate

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

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      End Date of Validity
    • getAdditionalCreditDocComment

      @Nullable public String getAdditionalCreditDocComment()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: AdditionalCreditDocComment

      Returns:
      Additional Information
    • toString

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

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

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

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