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

public class ServiceContract extends VdmEntity<ServiceContract>
Service Contract Header

Original entity name from the Odata EDM: A_ServiceContractType

  • Field Details

    • ALL_FIELDS

      public static final ServiceContractSelectable ALL_FIELDS
      Selector for all available fields of ServiceContract.
    • SERVICE_CONTRACT

      public static final ServiceContractField<String> SERVICE_CONTRACT
      Use with available fluent helpers to apply the ServiceContract field to query operations.
    • SERVICE_CONTRACT_TYPE

      public static final ServiceContractField<String> SERVICE_CONTRACT_TYPE
      Use with available fluent helpers to apply the ServiceContractType field to query operations.
    • SERVICE_CONTRACT_DESCRIPTION

      public static final ServiceContractField<String> SERVICE_CONTRACT_DESCRIPTION
      Use with available fluent helpers to apply the ServiceContractDescription field to query operations.
    • LANGUAGE

      public static final ServiceContractField<String> LANGUAGE
      Use with available fluent helpers to apply the Language field to query operations.
    • SERVICE_CONTRACT_START_DATE_TIME

      public static final ServiceContractField<BigDecimal> SERVICE_CONTRACT_START_DATE_TIME
      Use with available fluent helpers to apply the ServiceContractStartDateTime field to query operations.
    • SERVICE_CONTRACT_END_DATE_TIME

      public static final ServiceContractField<BigDecimal> SERVICE_CONTRACT_END_DATE_TIME
      Use with available fluent helpers to apply the ServiceContractEndDateTime field to query operations.
    • PURCHASE_ORDER_BY_CUSTOMER

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

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

      public static final ServiceContractField<BigDecimal> SERVICE_DOC_GROSS_AMOUNT
      Use with available fluent helpers to apply the ServiceDocGrossAmount field to query operations.
    • SERVICE_DOC_NET_AMOUNT

      public static final ServiceContractField<BigDecimal> SERVICE_DOC_NET_AMOUNT
      Use with available fluent helpers to apply the ServiceDocNetAmount field to query operations.
    • SERVICE_DOC_TAX_AMOUNT

      public static final ServiceContractField<BigDecimal> SERVICE_DOC_TAX_AMOUNT
      Use with available fluent helpers to apply the ServiceDocTaxAmount field to query operations.
    • TRANSACTION_CURRENCY

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

      public static final ServiceContractField<String> SERVICE_CONTRACT_IS_RELEASED
      Use with available fluent helpers to apply the ServiceContractIsReleased field to query operations.
    • SERVICE_CONTRACT_IS_COMPLETED

      public static final ServiceContractField<String> SERVICE_CONTRACT_IS_COMPLETED
      Use with available fluent helpers to apply the ServiceContractIsCompleted field to query operations.
    • SRVC_CONTR_CREDIT_STATUS

      public static final ServiceContractField<String> SRVC_CONTR_CREDIT_STATUS
      Use with available fluent helpers to apply the SrvcContrCreditStatus field to query operations.
    • SALES_ORGANIZATION

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

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

      public static final ServiceContractField<String> DIVISION
      Use with available fluent helpers to apply the Division field to query operations.
    • SALES_OFFICE

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

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

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

      public static final ServiceContractField<String> SHIP_TO_PARTY
      Use with available fluent helpers to apply the ShipToParty field to query operations.
    • BILL_TO_PARTY

      public static final ServiceContractField<String> BILL_TO_PARTY
      Use with available fluent helpers to apply the BillToParty field to query operations.
    • PAYER_PARTY

      public static final ServiceContractField<String> PAYER_PARTY
      Use with available fluent helpers to apply the PayerParty field to query operations.
    • CONTACT_PERSON

      public static final ServiceContractField<String> CONTACT_PERSON
      Use with available fluent helpers to apply the ContactPerson field to query operations.
    • PERSON_RESPONSIBLE

      public static final ServiceContractField<String> PERSON_RESPONSIBLE
      Use with available fluent helpers to apply the PersonResponsible field to query operations.
    • SERVICE_CONTRACT_CANCLN_PARTY

      public static final ServiceContractField<String> SERVICE_CONTRACT_CANCLN_PARTY
      Use with available fluent helpers to apply the ServiceContractCanclnParty field to query operations.
    • SERVICE_CONTR_CANCELLATION_REASON

      public static final ServiceContractField<String> SERVICE_CONTR_CANCELLATION_REASON
      Use with available fluent helpers to apply the ServiceContrCancellationReason field to query operations.
    • SRVC_CONTR_CANCELLATION_DATE_TIME

      public static final ServiceContractField<BigDecimal> SRVC_CONTR_CANCELLATION_DATE_TIME
      Use with available fluent helpers to apply the SrvcContrCancellationDateTime field to query operations.
    • REFERENCE_SERVICE_CONTRACT

      public static final ServiceContractField<String> REFERENCE_SERVICE_CONTRACT
      Use with available fluent helpers to apply the ReferenceServiceContract field to query operations.
    • REFERENCE_SERVICE_QTAN

      public static final ServiceContractField<String> REFERENCE_SERVICE_QTAN
      Use with available fluent helpers to apply the ReferenceServiceQtan field to query operations.
    • TO_ITEM

      public static final ServiceContractLink<ServiceContractItem> TO_ITEM
      Use with available fluent helpers to apply the to_Item navigation property to query operations.
    • TO_TEXT

      public static final ServiceContractLink<ServiceContractText> TO_TEXT
      Use with available fluent helpers to apply the to_Text navigation property to query operations.
  • Constructor Details

    • ServiceContract

      public ServiceContract()
    • ServiceContract

      public ServiceContract(@Nullable String serviceContract, @Nullable String serviceContractType, @Nullable String serviceContractDescription, @Nullable String language, @Nullable BigDecimal serviceContractStartDateTime, @Nullable BigDecimal serviceContractEndDateTime, @Nullable String purchaseOrderByCustomer, @Nullable LocalDateTime customerPurchaseOrderDate, @Nullable BigDecimal serviceDocGrossAmount, @Nullable BigDecimal serviceDocNetAmount, @Nullable BigDecimal serviceDocTaxAmount, @Nullable String transactionCurrency, @Nullable String serviceContractIsReleased, @Nullable String serviceContractIsCompleted, @Nullable String srvcContrCreditStatus, @Nullable String salesOrganization, @Nullable String distributionChannel, @Nullable String division, @Nullable String salesOffice, @Nullable String salesGroup, @Nullable String soldToParty, @Nullable String shipToParty, @Nullable String billToParty, @Nullable String payerParty, @Nullable String contactPerson, @Nullable String personResponsible, @Nullable String serviceContractCanclnParty, @Nullable String serviceContrCancellationReason, @Nullable BigDecimal srvcContrCancellationDateTime, @Nullable String referenceServiceContract, @Nullable String referenceServiceQtan, List<ServiceContractItem> toItem, List<ServiceContractText> toText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceContract

      Parameters:
      serviceContract - Transaction ID
    • setServiceContractType

      public void setServiceContractType(@Nullable String serviceContractType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceContractType

      Parameters:
      serviceContractType - Business Transaction Type
    • setServiceContractDescription

      public void setServiceContractDescription(@Nullable String serviceContractDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ServiceContractDescription

      Parameters:
      serviceContractDescription - Transaction Description
    • setLanguage

      public void setLanguage(@Nullable String language)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key of Description
    • setServiceContractStartDateTime

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

      Original property name from the Odata EDM: ServiceContractStartDateTime

      Parameters:
      serviceContractStartDateTime - Contract Start date
    • setServiceContractEndDateTime

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

      Original property name from the Odata EDM: ServiceContractEndDateTime

      Parameters:
      serviceContractEndDateTime - Contract End Date
    • setPurchaseOrderByCustomer

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

      Original property name from the Odata EDM: PurchaseOrderByCustomer

      Parameters:
      purchaseOrderByCustomer - Sold-To Party's External Reference Number
    • setCustomerPurchaseOrderDate

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

      Original property name from the Odata EDM: CustomerPurchaseOrderDate

      Parameters:
      customerPurchaseOrderDate - Reference Document Date
    • setServiceDocGrossAmount

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

      Original property name from the Odata EDM: ServiceDocGrossAmount

      Parameters:
      serviceDocGrossAmount - Total Gross Value of Document in Document Currency
    • setServiceDocNetAmount

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

      Original property name from the Odata EDM: ServiceDocNetAmount

      Parameters:
      serviceDocNetAmount - Total Net Value of Document in Document Currency
    • setServiceDocTaxAmount

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

      Original property name from the Odata EDM: ServiceDocTaxAmount

      Parameters:
      serviceDocTaxAmount - Total Tax Amount 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 - Currency
    • setServiceContractIsReleased

      public void setServiceContractIsReleased(@Nullable String serviceContractIsReleased)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ServiceContractIsReleased

      Parameters:
      serviceContractIsReleased - Release Status
    • setServiceContractIsCompleted

      public void setServiceContractIsCompleted(@Nullable String serviceContractIsCompleted)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ServiceContractIsCompleted

      Parameters:
      serviceContractIsCompleted - The serviceContractIsCompleted to set.
    • setSrvcContrCreditStatus

      public void setSrvcContrCreditStatus(@Nullable String srvcContrCreditStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SrvcContrCreditStatus

      Parameters:
      srvcContrCreditStatus - Credit Status of Header
    • 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
    • setDivision

      public void setDivision(@Nullable String division)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Division

      Parameters:
      division - Division
    • 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
    • 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
    • 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
    • setShipToParty

      public void setShipToParty(@Nullable String shipToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ShipToParty

      Parameters:
      shipToParty - Ship-To Party
    • setBillToParty

      public void setBillToParty(@Nullable String billToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: BillToParty

      Parameters:
      billToParty - Bill-To Party
    • setPayerParty

      public void setPayerParty(@Nullable String payerParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PayerParty

      Parameters:
      payerParty - Payer
    • setContactPerson

      public void setContactPerson(@Nullable String contactPerson)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ContactPerson

      Parameters:
      contactPerson - Customer Contact Person
    • setPersonResponsible

      public void setPersonResponsible(@Nullable String personResponsible)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PersonResponsible

      Parameters:
      personResponsible - Employee Responsible
    • setServiceContractCanclnParty

      public void setServiceContractCanclnParty(@Nullable String serviceContractCanclnParty)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceContractCanclnParty

      Parameters:
      serviceContractCanclnParty - Cancelling Party
    • setServiceContrCancellationReason

      public void setServiceContrCancellationReason(@Nullable String serviceContrCancellationReason)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceContrCancellationReason

      Parameters:
      serviceContrCancellationReason - CRM Service : Reason for Cancellation
    • setSrvcContrCancellationDateTime

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

      Original property name from the Odata EDM: SrvcContrCancellationDateTime

      Parameters:
      srvcContrCancellationDateTime - Contract End Date
    • setReferenceServiceContract

      public void setReferenceServiceContract(@Nullable String referenceServiceContract)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: ReferenceServiceContract

      Parameters:
      referenceServiceContract - External Reference Number
    • setReferenceServiceQtan

      public void setReferenceServiceQtan(@Nullable String referenceServiceQtan)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: ReferenceServiceQtan

      Parameters:
      referenceServiceQtan - External Reference Number
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ServiceContractField<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> ServiceContractField<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<ServiceContract>
    • setServicePathForFetch

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

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

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

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

      @Nonnull public List<ServiceContractItem> fetchItem()
      Fetches the ServiceContractItem 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 ServiceContractItem 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<ServiceContractItem> getItemOrFetch()
      Retrieval of associated ServiceContractItem entities (one to many). This corresponds to the OData navigation property to_Item.

      If the navigation property to_Item of a queried ServiceContract 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 ServiceContractItem 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<ServiceContractItem>> getItemIfPresent()
      Retrieval of associated ServiceContractItem entities (one to many). This corresponds to the OData navigation property to_Item.

      If the navigation property for an entity ServiceContract 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 ServiceContractItem entities. If not, an Option with result state empty is returned.
    • setItem

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

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

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

      If the navigation property to_Item of a queried ServiceContract 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 ServiceContractItem entities.
    • fetchText

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

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

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

      @Nonnull public List<ServiceContractText> getTextOrFetch()
      Retrieval of associated ServiceContractText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried ServiceContract 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 ServiceContractText 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.
    • getTextIfPresent

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

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

      public void setText(@Nonnull List<ServiceContractText> value)
      Overwrites the list of associated ServiceContractText entities for the loaded navigation property to_Text.

      If the navigation property to_Text of a queried ServiceContract 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 ServiceContractText entities.
    • addText

      public void addText(ServiceContractText... entity)
      Adds elements to the list of associated ServiceContractText entities. This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried ServiceContract 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 ServiceContractText entities.
    • builder

      @Nonnull public static ServiceContract.ServiceContractBuilder builder()
    • getServiceContract

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

      Original property name from the Odata EDM: ServiceContract

      Returns:
      Transaction ID
    • getServiceContractType

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

      Original property name from the Odata EDM: ServiceContractType

      Returns:
      Business Transaction Type
    • getServiceContractDescription

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

      Original property name from the Odata EDM: ServiceContractDescription

      Returns:
      Transaction Description
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key of Description
    • getServiceContractStartDateTime

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

      Original property name from the Odata EDM: ServiceContractStartDateTime

      Returns:
      Contract Start date
    • getServiceContractEndDateTime

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

      Original property name from the Odata EDM: ServiceContractEndDateTime

      Returns:
      Contract End Date
    • getPurchaseOrderByCustomer

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

      Original property name from the Odata EDM: PurchaseOrderByCustomer

      Returns:
      Sold-To Party's External Reference Number
    • getCustomerPurchaseOrderDate

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

      Original property name from the Odata EDM: CustomerPurchaseOrderDate

      Returns:
      Reference Document Date
    • getServiceDocGrossAmount

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

      Original property name from the Odata EDM: ServiceDocGrossAmount

      Returns:
      Total Gross Value of Document in Document Currency
    • getServiceDocNetAmount

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

      Original property name from the Odata EDM: ServiceDocNetAmount

      Returns:
      Total Net Value of Document in Document Currency
    • getServiceDocTaxAmount

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

      Original property name from the Odata EDM: ServiceDocTaxAmount

      Returns:
      Total Tax Amount in Document Currency
    • getTransactionCurrency

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

      Original property name from the Odata EDM: TransactionCurrency

      Returns:
      Currency
    • getServiceContractIsReleased

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

      Original property name from the Odata EDM: ServiceContractIsReleased

      Returns:
      Release Status
    • getServiceContractIsCompleted

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

      Original property name from the Odata EDM: ServiceContractIsCompleted

      Returns:
      The serviceContractIsCompleted contained in this entity.
    • getSrvcContrCreditStatus

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

      Original property name from the Odata EDM: SrvcContrCreditStatus

      Returns:
      Credit Status of Header
    • 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
    • getDivision

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

      Original property name from the Odata EDM: Division

      Returns:
      Division
    • getSalesOffice

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

      Original property name from the Odata EDM: SalesOffice

      Returns:
      Sales Office
    • getSalesGroup

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

      Original property name from the Odata EDM: SalesGroup

      Returns:
      Sales Group
    • getSoldToParty

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

      Original property name from the Odata EDM: SoldToParty

      Returns:
      Sold-To Party
    • getShipToParty

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

      Original property name from the Odata EDM: ShipToParty

      Returns:
      Ship-To Party
    • getBillToParty

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

      Original property name from the Odata EDM: BillToParty

      Returns:
      Bill-To Party
    • getPayerParty

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

      Original property name from the Odata EDM: PayerParty

      Returns:
      Payer
    • getContactPerson

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

      Original property name from the Odata EDM: ContactPerson

      Returns:
      Customer Contact Person
    • getPersonResponsible

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

      Original property name from the Odata EDM: PersonResponsible

      Returns:
      Employee Responsible
    • getServiceContractCanclnParty

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

      Original property name from the Odata EDM: ServiceContractCanclnParty

      Returns:
      Cancelling Party
    • getServiceContrCancellationReason

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

      Original property name from the Odata EDM: ServiceContrCancellationReason

      Returns:
      CRM Service : Reason for Cancellation
    • getSrvcContrCancellationDateTime

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

      Original property name from the Odata EDM: SrvcContrCancellationDateTime

      Returns:
      Contract End Date
    • getReferenceServiceContract

      @Nullable public String getReferenceServiceContract()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: ReferenceServiceContract

      Returns:
      External Reference Number
    • getReferenceServiceQtan

      @Nullable public String getReferenceServiceQtan()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: ReferenceServiceQtan

      Returns:
      External Reference Number
    • toString

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

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

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

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