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

public class SalesInquiry extends VdmEntity<SalesInquiry>
Sales Inquiry Header

Original entity name from the Odata EDM: A_SalesInquiryType

  • Field Details

    • ALL_FIELDS

      public static final SalesInquirySelectable ALL_FIELDS
      Selector for all available fields of SalesInquiry.
    • SALES_INQUIRY

      public static final SalesInquiryField<String> SALES_INQUIRY
      Use with available fluent helpers to apply the SalesInquiry field to query operations.
    • SALES_INQUIRY_TYPE

      public static final SalesInquiryField<String> SALES_INQUIRY_TYPE
      Use with available fluent helpers to apply the SalesInquiryType field to query operations.
    • SALES_ORGANIZATION

      public static final SalesInquiryField<String> SALES_ORGANIZATION
      Use with available fluent helpers to apply the SalesOrganization field to query operations.
    • DISTRIBUTION_CHANNEL

      public static final SalesInquiryField<String> DISTRIBUTION_CHANNEL
      Use with available fluent helpers to apply the DistributionChannel field to query operations.
    • ORGANIZATION_DIVISION

      public static final SalesInquiryField<String> ORGANIZATION_DIVISION
      Use with available fluent helpers to apply the OrganizationDivision field to query operations.
    • SALES_GROUP

      public static final SalesInquiryField<String> SALES_GROUP
      Use with available fluent helpers to apply the SalesGroup field to query operations.
    • SALES_OFFICE

      public static final SalesInquiryField<String> SALES_OFFICE
      Use with available fluent helpers to apply the SalesOffice field to query operations.
    • SALES_DISTRICT

      public static final SalesInquiryField<String> SALES_DISTRICT
      Use with available fluent helpers to apply the SalesDistrict field to query operations.
    • SOLD_TO_PARTY

      public static final SalesInquiryField<String> SOLD_TO_PARTY
      Use with available fluent helpers to apply the SoldToParty field to query operations.
    • CREATION_DATE

      public static final SalesInquiryField<LocalDateTime> CREATION_DATE
      Use with available fluent helpers to apply the CreationDate field to query operations.
    • CREATED_BY_USER

      public static final SalesInquiryField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • LAST_CHANGE_DATE

      public static final SalesInquiryField<LocalDateTime> LAST_CHANGE_DATE
      Use with available fluent helpers to apply the LastChangeDate field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final SalesInquiryField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • PURCHASE_ORDER_BY_CUSTOMER

      public static final SalesInquiryField<String> PURCHASE_ORDER_BY_CUSTOMER
      Use with available fluent helpers to apply the PurchaseOrderByCustomer field to query operations.
    • CUSTOMER_PURCHASE_ORDER_TYPE

      public static final SalesInquiryField<String> CUSTOMER_PURCHASE_ORDER_TYPE
      Use with available fluent helpers to apply the CustomerPurchaseOrderType field to query operations.
    • CUSTOMER_PURCHASE_ORDER_DATE

      public static final SalesInquiryField<LocalDateTime> CUSTOMER_PURCHASE_ORDER_DATE
      Use with available fluent helpers to apply the CustomerPurchaseOrderDate field to query operations.
    • SALES_INQUIRY_DATE

      public static final SalesInquiryField<LocalDateTime> SALES_INQUIRY_DATE
      Use with available fluent helpers to apply the SalesInquiryDate field to query operations.
    • TOTAL_NET_AMOUNT

      public static final SalesInquiryField<BigDecimal> TOTAL_NET_AMOUNT
      Use with available fluent helpers to apply the TotalNetAmount field to query operations.
    • TRANSACTION_CURRENCY

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

      public static final SalesInquiryField<String> SD_DOCUMENT_REASON
      Use with available fluent helpers to apply the SDDocumentReason field to query operations.
    • PRICING_DATE

      public static final SalesInquiryField<LocalDateTime> PRICING_DATE
      Use with available fluent helpers to apply the PricingDate field to query operations.
    • HEADER_BILLING_BLOCK_REASON

      public static final SalesInquiryField<String> HEADER_BILLING_BLOCK_REASON
      Use with available fluent helpers to apply the HeaderBillingBlockReason field to query operations.
    • BINDING_PERIOD_VALIDITY_START_DATE

      public static final SalesInquiryField<LocalDateTime> BINDING_PERIOD_VALIDITY_START_DATE
      Use with available fluent helpers to apply the BindingPeriodValidityStartDate field to query operations.
    • BINDING_PERIOD_VALIDITY_END_DATE

      public static final SalesInquiryField<LocalDateTime> BINDING_PERIOD_VALIDITY_END_DATE
      Use with available fluent helpers to apply the BindingPeriodValidityEndDate field to query operations.
    • HDR_ORDER_PROBABILITY_IN_PERCENT

      public static final SalesInquiryField<String> HDR_ORDER_PROBABILITY_IN_PERCENT
      Use with available fluent helpers to apply the HdrOrderProbabilityInPercent field to query operations.
    • EXPECTED_ORDER_NET_AMOUNT

      public static final SalesInquiryField<BigDecimal> EXPECTED_ORDER_NET_AMOUNT
      Use with available fluent helpers to apply the ExpectedOrderNetAmount field to query operations.
    • INCOTERMS_CLASSIFICATION

      public static final SalesInquiryField<String> INCOTERMS_CLASSIFICATION
      Use with available fluent helpers to apply the IncotermsClassification field to query operations.
    • INCOTERMS_TRANSFER_LOCATION

      public static final SalesInquiryField<String> INCOTERMS_TRANSFER_LOCATION
      Use with available fluent helpers to apply the IncotermsTransferLocation field to query operations.
    • INCOTERMS_LOCATION1

      public static final SalesInquiryField<String> INCOTERMS_LOCATION1
      Use with available fluent helpers to apply the IncotermsLocation1 field to query operations.
    • INCOTERMS_LOCATION2

      public static final SalesInquiryField<String> INCOTERMS_LOCATION2
      Use with available fluent helpers to apply the IncotermsLocation2 field to query operations.
    • INCOTERMS_VERSION

      public static final SalesInquiryField<String> INCOTERMS_VERSION
      Use with available fluent helpers to apply the IncotermsVersion field to query operations.
    • CUSTOMER_PAYMENT_TERMS

      public static final SalesInquiryField<String> CUSTOMER_PAYMENT_TERMS
      Use with available fluent helpers to apply the CustomerPaymentTerms field to query operations.
    • PAYMENT_METHOD

      public static final SalesInquiryField<String> PAYMENT_METHOD
      Use with available fluent helpers to apply the PaymentMethod field to query operations.
    • OVERALL_SD_PROCESS_STATUS

      public static final SalesInquiryField<String> OVERALL_SD_PROCESS_STATUS
      Use with available fluent helpers to apply the OverallSDProcessStatus field to query operations.
    • TOTAL_CREDIT_CHECK_STATUS

      public static final SalesInquiryField<String> TOTAL_CREDIT_CHECK_STATUS
      Use with available fluent helpers to apply the TotalCreditCheckStatus field to query operations.
    • OVERALL_SD_DOCUMENT_REJECTION_STS

      public static final SalesInquiryField<String> OVERALL_SD_DOCUMENT_REJECTION_STS
      Use with available fluent helpers to apply the OverallSDDocumentRejectionSts field to query operations.
    • TO_ITEM

      public static final SalesInquiryLink<SalesInquiryItem> TO_ITEM
      Use with available fluent helpers to apply the to_Item navigation property to query operations.
    • TO_PARTNER

      public static final SalesInquiryLink<SalesInquiryPartner> TO_PARTNER
      Use with available fluent helpers to apply the to_Partner navigation property to query operations.
    • TO_PRICING_ELEMENT

      public static final SalesInquiryLink<SalesInquiryPrcgElmnt> TO_PRICING_ELEMENT
      Use with available fluent helpers to apply the to_PricingElement navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SalesInquiry

      Parameters:
      salesInquiry - Sales Inquiry
    • setSalesInquiryType

      public void setSalesInquiryType(@Nullable String salesInquiryType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesInquiryType

      Parameters:
      salesInquiryType - Sales Document Type
    • setSalesOrganization

      public void setSalesOrganization(@Nullable String salesOrganization)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOrganization

      Parameters:
      salesOrganization - Sales Organization
    • setDistributionChannel

      public void setDistributionChannel(@Nullable String distributionChannel)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DistributionChannel

      Parameters:
      distributionChannel - Distribution Channel
    • setOrganizationDivision

      public void setOrganizationDivision(@Nullable String organizationDivision)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: OrganizationDivision

      Parameters:
      organizationDivision - Division
    • setSalesGroup

      public void setSalesGroup(@Nullable String salesGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SalesGroup

      Parameters:
      salesGroup - Sales Group
    • setSalesOffice

      public void setSalesOffice(@Nullable String salesOffice)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOffice

      Parameters:
      salesOffice - Sales Office
    • setSalesDistrict

      public void setSalesDistrict(@Nullable String salesDistrict)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesDistrict

      Parameters:
      salesDistrict - Sales District
    • setSoldToParty

      public void setSoldToParty(@Nullable String soldToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SoldToParty

      Parameters:
      soldToParty - Sold-to Party
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Record Created On
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of Person Responsible for Creating the Object
    • setLastChangeDate

      public void setLastChangeDate(@Nullable LocalDateTime lastChangeDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDate

      Parameters:
      lastChangeDate - Last Changed On
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • setPurchaseOrderByCustomer

      public void setPurchaseOrderByCustomer(@Nullable String purchaseOrderByCustomer)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: PurchaseOrderByCustomer

      Parameters:
      purchaseOrderByCustomer - Customer Reference
    • setCustomerPurchaseOrderType

      public void setCustomerPurchaseOrderType(@Nullable String customerPurchaseOrderType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CustomerPurchaseOrderType

      Parameters:
      customerPurchaseOrderType - Customer Purchase Order Type
    • setCustomerPurchaseOrderDate

      public void setCustomerPurchaseOrderDate(@Nullable LocalDateTime customerPurchaseOrderDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CustomerPurchaseOrderDate

      Parameters:
      customerPurchaseOrderDate - Customer Reference Date
    • setSalesInquiryDate

      public void setSalesInquiryDate(@Nullable LocalDateTime salesInquiryDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: SalesInquiryDate

      Parameters:
      salesInquiryDate - Document Date (Date Received/Sent)
    • setTotalNetAmount

      public void setTotalNetAmount(@Nullable BigDecimal totalNetAmount)
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: TotalNetAmount

      Parameters:
      totalNetAmount - Net Value of the Sales Order in Document Currency
    • setTransactionCurrency

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

      Original property name from the Odata EDM: TransactionCurrency

      Parameters:
      transactionCurrency - SD Document Currency
    • setSDDocumentReason

      public void setSDDocumentReason(@Nullable String sDDocumentReason)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SDDocumentReason

      Parameters:
      sDDocumentReason - Order Reason (Reason for the Business Transaction)
    • setPricingDate

      public void setPricingDate(@Nullable LocalDateTime pricingDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PricingDate

      Parameters:
      pricingDate - Date for Pricing and Exchange Rate
    • setHeaderBillingBlockReason

      public void setHeaderBillingBlockReason(@Nullable String headerBillingBlockReason)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: HeaderBillingBlockReason

      Parameters:
      headerBillingBlockReason - Billing Block in SD Document
    • setBindingPeriodValidityStartDate

      public void setBindingPeriodValidityStartDate(@Nullable LocalDateTime bindingPeriodValidityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BindingPeriodValidityStartDate

      Parameters:
      bindingPeriodValidityStartDate - Inquiry valid from date
    • setBindingPeriodValidityEndDate

      public void setBindingPeriodValidityEndDate(@Nullable LocalDateTime bindingPeriodValidityEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BindingPeriodValidityEndDate

      Parameters:
      bindingPeriodValidityEndDate - Inquiry valid to date
    • setHdrOrderProbabilityInPercent

      public void setHdrOrderProbabilityInPercent(@Nullable String hdrOrderProbabilityInPercent)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HdrOrderProbabilityInPercent

      Parameters:
      hdrOrderProbabilityInPercent - Sales probability
    • setExpectedOrderNetAmount

      public void setExpectedOrderNetAmount(@Nullable BigDecimal expectedOrderNetAmount)
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ExpectedOrderNetAmount

      Parameters:
      expectedOrderNetAmount - Expected Order Net Amount
    • setIncotermsClassification

      public void setIncotermsClassification(@Nullable String incotermsClassification)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: IncotermsClassification

      Parameters:
      incotermsClassification - Incoterms (Part 1)
    • setIncotermsTransferLocation

      public void setIncotermsTransferLocation(@Nullable String incotermsTransferLocation)
      Constraints: Not nullable, Maximum length: 28

      Original property name from the Odata EDM: IncotermsTransferLocation

      Parameters:
      incotermsTransferLocation - Incoterms (Part 2)
    • setIncotermsLocation1

      public void setIncotermsLocation1(@Nullable String incotermsLocation1)
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation1

      Parameters:
      incotermsLocation1 - Incoterms Location 1
    • setIncotermsLocation2

      public void setIncotermsLocation2(@Nullable String incotermsLocation2)
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation2

      Parameters:
      incotermsLocation2 - Incoterms Location 2
    • setIncotermsVersion

      public void setIncotermsVersion(@Nullable String incotermsVersion)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: IncotermsVersion

      Parameters:
      incotermsVersion - Incoterms Version
    • setCustomerPaymentTerms

      public void setCustomerPaymentTerms(@Nullable String customerPaymentTerms)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CustomerPaymentTerms

      Parameters:
      customerPaymentTerms - Terms of Payment Key
    • setPaymentMethod

      public void setPaymentMethod(@Nullable String paymentMethod)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PaymentMethod

      Parameters:
      paymentMethod - Payment Method
    • setOverallSDProcessStatus

      public void setOverallSDProcessStatus(@Nullable String overallSDProcessStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: OverallSDProcessStatus

      Parameters:
      overallSDProcessStatus - Overall Processing Status (Header/All Items)
    • setTotalCreditCheckStatus

      public void setTotalCreditCheckStatus(@Nullable String totalCreditCheckStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TotalCreditCheckStatus

      Parameters:
      totalCreditCheckStatus - Overall Status of Credit Checks
    • setOverallSDDocumentRejectionSts

      public void setOverallSDDocumentRejectionSts(@Nullable String overallSDDocumentRejectionSts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: OverallSDDocumentRejectionSts

      Parameters:
      overallSDDocumentRejectionSts - Rejection Status (All Items)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SalesInquiryField<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> SalesInquiryField<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<SalesInquiry>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated SalesInquiryItem 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.
    • getItemOrFetch

      @Nonnull public List<SalesInquiryItem> getItemOrFetch()
      Retrieval of associated SalesInquiryItem entities (one to many). This corresponds to the OData navigation property to_Item.

      If the navigation property to_Item of a queried SalesInquiry 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 SalesInquiryItem 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.
    • getItemIfPresent

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

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

      public void setItem(@Nonnull List<SalesInquiryItem> value)
      Overwrites the list of associated SalesInquiryItem entities for the loaded navigation property to_Item.

      If the navigation property to_Item of a queried SalesInquiry 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 SalesInquiryItem entities.
    • addItem

      public void addItem(SalesInquiryItem... entity)
      Adds elements to the list of associated SalesInquiryItem entities. This corresponds to the OData navigation property to_Item.

      If the navigation property to_Item of a queried SalesInquiry 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 SalesInquiryItem entities.
    • fetchPartner

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

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

      Returns:
      List containing one or more associated SalesInquiryPartner 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.
    • getPartnerOrFetch

      @Nonnull public List<SalesInquiryPartner> getPartnerOrFetch()
      Retrieval of associated SalesInquiryPartner entities (one to many). This corresponds to the OData navigation property to_Partner.

      If the navigation property to_Partner of a queried SalesInquiry 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 SalesInquiryPartner 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.
    • getPartnerIfPresent

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

      If the navigation property for an entity SalesInquiry 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_Partner is already loaded, the result will contain the SalesInquiryPartner entities. If not, an Option with result state empty is returned.
    • setPartner

      public void setPartner(@Nonnull List<SalesInquiryPartner> value)
      Overwrites the list of associated SalesInquiryPartner entities for the loaded navigation property to_Partner.

      If the navigation property to_Partner of a queried SalesInquiry 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 SalesInquiryPartner entities.
    • addPartner

      public void addPartner(SalesInquiryPartner... entity)
      Adds elements to the list of associated SalesInquiryPartner entities. This corresponds to the OData navigation property to_Partner.

      If the navigation property to_Partner of a queried SalesInquiry 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 SalesInquiryPartner entities.
    • fetchPricingElement

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

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

      Returns:
      List containing one or more associated SalesInquiryPrcgElmnt 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.
    • getPricingElementOrFetch

      @Nonnull public List<SalesInquiryPrcgElmnt> getPricingElementOrFetch()
      Retrieval of associated SalesInquiryPrcgElmnt entities (one to many). This corresponds to the OData navigation property to_PricingElement.

      If the navigation property to_PricingElement of a queried SalesInquiry 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 SalesInquiryPrcgElmnt 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.
    • getPricingElementIfPresent

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

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

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

      If the navigation property to_PricingElement of a queried SalesInquiry 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 SalesInquiryPrcgElmnt entities.
    • addPricingElement

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

      If the navigation property to_PricingElement of a queried SalesInquiry 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 SalesInquiryPrcgElmnt entities.
    • builder

      @Nonnull public static SalesInquiry.SalesInquiryBuilder builder()
    • getSalesInquiry

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

      Original property name from the Odata EDM: SalesInquiry

      Returns:
      Sales Inquiry
    • getSalesInquiryType

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

      Original property name from the Odata EDM: SalesInquiryType

      Returns:
      Sales Document Type
    • getSalesOrganization

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

      Original property name from the Odata EDM: SalesOrganization

      Returns:
      Sales Organization
    • getDistributionChannel

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

      Original property name from the Odata EDM: DistributionChannel

      Returns:
      Distribution Channel
    • getOrganizationDivision

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

      Original property name from the Odata EDM: OrganizationDivision

      Returns:
      Division
    • getSalesGroup

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

      Original property name from the Odata EDM: SalesGroup

      Returns:
      Sales Group
    • getSalesOffice

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

      Original property name from the Odata EDM: SalesOffice

      Returns:
      Sales Office
    • getSalesDistrict

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

      Original property name from the Odata EDM: SalesDistrict

      Returns:
      Sales District
    • getSoldToParty

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

      Original property name from the Odata EDM: SoldToParty

      Returns:
      Sold-to Party
    • getCreationDate

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

      Original property name from the Odata EDM: CreationDate

      Returns:
      Record Created On
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person Responsible for Creating the Object
    • getLastChangeDate

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

      Original property name from the Odata EDM: LastChangeDate

      Returns:
      Last Changed On
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • getPurchaseOrderByCustomer

      @Nullable public String getPurchaseOrderByCustomer()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: PurchaseOrderByCustomer

      Returns:
      Customer Reference
    • getCustomerPurchaseOrderType

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

      Original property name from the Odata EDM: CustomerPurchaseOrderType

      Returns:
      Customer Purchase Order Type
    • getCustomerPurchaseOrderDate

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

      Original property name from the Odata EDM: CustomerPurchaseOrderDate

      Returns:
      Customer Reference Date
    • getSalesInquiryDate

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

      Original property name from the Odata EDM: SalesInquiryDate

      Returns:
      Document Date (Date Received/Sent)
    • getTotalNetAmount

      @Nullable public BigDecimal getTotalNetAmount()
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: TotalNetAmount

      Returns:
      Net Value of the Sales Order in Document Currency
    • getTransactionCurrency

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

      Original property name from the Odata EDM: TransactionCurrency

      Returns:
      SD Document Currency
    • getSDDocumentReason

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

      Original property name from the Odata EDM: SDDocumentReason

      Returns:
      Order Reason (Reason for the Business Transaction)
    • getPricingDate

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

      Original property name from the Odata EDM: PricingDate

      Returns:
      Date for Pricing and Exchange Rate
    • getHeaderBillingBlockReason

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

      Original property name from the Odata EDM: HeaderBillingBlockReason

      Returns:
      Billing Block in SD Document
    • getBindingPeriodValidityStartDate

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

      Original property name from the Odata EDM: BindingPeriodValidityStartDate

      Returns:
      Inquiry valid from date
    • getBindingPeriodValidityEndDate

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

      Original property name from the Odata EDM: BindingPeriodValidityEndDate

      Returns:
      Inquiry valid to date
    • getHdrOrderProbabilityInPercent

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

      Original property name from the Odata EDM: HdrOrderProbabilityInPercent

      Returns:
      Sales probability
    • getExpectedOrderNetAmount

      @Nullable public BigDecimal getExpectedOrderNetAmount()
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ExpectedOrderNetAmount

      Returns:
      Expected Order Net Amount
    • getIncotermsClassification

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

      Original property name from the Odata EDM: IncotermsClassification

      Returns:
      Incoterms (Part 1)
    • getIncotermsTransferLocation

      @Nullable public String getIncotermsTransferLocation()
      Constraints: Not nullable, Maximum length: 28

      Original property name from the Odata EDM: IncotermsTransferLocation

      Returns:
      Incoterms (Part 2)
    • getIncotermsLocation1

      @Nullable public String getIncotermsLocation1()
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation1

      Returns:
      Incoterms Location 1
    • getIncotermsLocation2

      @Nullable public String getIncotermsLocation2()
      Constraints: Not nullable, Maximum length: 70

      Original property name from the Odata EDM: IncotermsLocation2

      Returns:
      Incoterms Location 2
    • getIncotermsVersion

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

      Original property name from the Odata EDM: IncotermsVersion

      Returns:
      Incoterms Version
    • getCustomerPaymentTerms

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

      Original property name from the Odata EDM: CustomerPaymentTerms

      Returns:
      Terms of Payment Key
    • getPaymentMethod

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

      Original property name from the Odata EDM: PaymentMethod

      Returns:
      Payment Method
    • getOverallSDProcessStatus

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

      Original property name from the Odata EDM: OverallSDProcessStatus

      Returns:
      Overall Processing Status (Header/All Items)
    • getTotalCreditCheckStatus

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

      Original property name from the Odata EDM: TotalCreditCheckStatus

      Returns:
      Overall Status of Credit Checks
    • getOverallSDDocumentRejectionSts

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

      Original property name from the Odata EDM: OverallSDDocumentRejectionSts

      Returns:
      Rejection Status (All Items)
    • toString

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

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

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

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