Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_SuplrEvalRspSection" of service "API_SUPLR_EVAL_RESPONSE_SRV". This service is part of the following communication scenarios: Supplier Evaluation Response Integration (SAP_COM_0139). See https://api.sap.com/api/API_SUPLR_EVAL_RESPONSE_SRV for more information.

Hierarchy

  • Entity
    • SuplrEvalRspSection

Implements

Index

Constructors

constructor

  • Returns SuplrEvalRspSection

Properties

Protected _customFields

_customFields: MapType<any>

A mapper representing custom fields in an entity. Custom fields are represented by their field names and the corresponding values. A custom field can be added or updated using setCustomField method.

Protected _versionIdentifier

_versionIdentifier: string

The current ETag version of the entity in the remote system. The ETag identified the version of the in the remote system. It will be automatically set in the "if-match" header of update requests and can be set as a custom header for delete requests. When no ETag is provided by the remote system the value of this variable defaults to "*".

Optional calculatedScore

calculatedScore: undefined | number

Calculated Score.

nullable

Optional minimalScore

minimalScore: undefined | number

Minimum Score Accepted.

nullable

Optional numberOfResponses

numberOfResponses: undefined | number

Number of Responses.

nullable

Optional questionnaireSectionName

questionnaireSectionName: undefined | string

Medium-Size Name. Maximum length: 60.

nullable

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

Optional suplrEvalReqSectionUuid

suplrEvalReqSectionUuid: undefined | string

NodeID.

nullable

Optional suplrEvalRspQuestionnaireUuid

suplrEvalRspQuestionnaireUuid: undefined | string

Evaluation Response Questionnaire UUID.

nullable

suplrEvalRspSectionUuid

suplrEvalRspSectionUuid: string

Evaluation Response Section UUID.

Optional suplrEvalRspUuid

suplrEvalRspUuid: undefined | string

Evaluation Response UUID.

nullable

Optional supplierEvalResponseSctnAltv

supplierEvalResponseSctnAltv: undefined | number

Alternative ID of a Section.

nullable

Optional supplierEvalResponseSection

supplierEvalResponseSection: undefined | string

SLC Object ID. Maximum length: 20.

nullable

Optional targetScore

targetScore: undefined | number

Target Score.

nullable

toSuplrEvalRspQuestion

toSuplrEvalRspQuestion: SuplrEvalRspQuestion[]

One-to-many navigation property to the SuplrEvalRspQuestion entity.

toSuplrEvalRspSectionText

toSuplrEvalRspSectionText: SuplrEvalRspSectionText[]

One-to-many navigation property to the SuplrEvalRspSectionText entity.

Optional weightingFactor

weightingFactor: undefined | number

Value of Weighting Factor.

nullable

Static ALL_FIELDS

ALL_FIELDS: AllFields<SuplrEvalRspSection> = new AllFields('*', SuplrEvalRspSection)

All fields selector.

Static CALCULATED_SCORE

CALCULATED_SCORE: NumberField<SuplrEvalRspSection> = new NumberField('CalculatedScore', SuplrEvalRspSection, 'Edm.Double')

Static representation of the calculatedScore property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static MINIMAL_SCORE

MINIMAL_SCORE: NumberField<SuplrEvalRspSection> = new NumberField('MinimalScore', SuplrEvalRspSection, 'Edm.Byte')

Static representation of the minimalScore property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static NUMBER_OF_RESPONSES

NUMBER_OF_RESPONSES: NumberField<SuplrEvalRspSection> = new NumberField('NumberOfResponses', SuplrEvalRspSection, 'Edm.Int32')

Static representation of the numberOfResponses property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static QUESTIONNAIRE_SECTION_NAME

QUESTIONNAIRE_SECTION_NAME: StringField<SuplrEvalRspSection> = new StringField('QuestionnaireSectionName', SuplrEvalRspSection, 'Edm.String')

Static representation of the questionnaireSectionName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPLR_EVAL_REQ_SECTION_UUID

SUPLR_EVAL_REQ_SECTION_UUID: StringField<SuplrEvalRspSection> = new StringField('SuplrEvalReqSectionUUID', SuplrEvalRspSection, 'Edm.Guid')

Static representation of the suplrEvalReqSectionUuid property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPLR_EVAL_RSP_QUESTIONNAIRE_UUID

SUPLR_EVAL_RSP_QUESTIONNAIRE_UUID: StringField<SuplrEvalRspSection> = new StringField('SuplrEvalRspQuestionnaireUUID', SuplrEvalRspSection, 'Edm.Guid')

Static representation of the suplrEvalRspQuestionnaireUuid property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPLR_EVAL_RSP_SECTION_UUID

SUPLR_EVAL_RSP_SECTION_UUID: StringField<SuplrEvalRspSection> = new StringField('SuplrEvalRspSectionUUID', SuplrEvalRspSection, 'Edm.Guid')

Static representation of the suplrEvalRspSectionUuid property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPLR_EVAL_RSP_UUID

SUPLR_EVAL_RSP_UUID: StringField<SuplrEvalRspSection> = new StringField('SuplrEvalRspUUID', SuplrEvalRspSection, 'Edm.Guid')

Static representation of the suplrEvalRspUuid property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPPLIER_EVAL_RESPONSE_SCTN_ALTV

SUPPLIER_EVAL_RESPONSE_SCTN_ALTV: NumberField<SuplrEvalRspSection> = new NumberField('SupplierEvalResponseSctnAltv', SuplrEvalRspSection, 'Edm.Int32')

Static representation of the supplierEvalResponseSctnAltv property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPPLIER_EVAL_RESPONSE_SECTION

SUPPLIER_EVAL_RESPONSE_SECTION: StringField<SuplrEvalRspSection> = new StringField('SupplierEvalResponseSection', SuplrEvalRspSection, 'Edm.String')

Static representation of the supplierEvalResponseSection property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TARGET_SCORE

TARGET_SCORE: NumberField<SuplrEvalRspSection> = new NumberField('TargetScore', SuplrEvalRspSection, 'Edm.Byte')

Static representation of the targetScore property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_SUPLR_EVAL_RSP_QUESTION

TO_SUPLR_EVAL_RSP_QUESTION: Link<SuplrEvalRspSection, SuplrEvalRspQuestion> = new Link('to_SuplrEvalRspQuestion', SuplrEvalRspSection, SuplrEvalRspQuestion)

Static representation of the one-to-many navigation property toSuplrEvalRspQuestion for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_SUPLR_EVAL_RSP_SECTION_TEXT

TO_SUPLR_EVAL_RSP_SECTION_TEXT: Link<SuplrEvalRspSection, SuplrEvalRspSectionText> = new Link('to_SuplrEvalRspSectionText', SuplrEvalRspSection, SuplrEvalRspSectionText)

Static representation of the one-to-many navigation property toSuplrEvalRspSectionText for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static WEIGHTING_FACTOR

WEIGHTING_FACTOR: NumberField<SuplrEvalRspSection> = new NumberField('WeightingFactor', SuplrEvalRspSection, 'Edm.Int16')

Static representation of the weightingFactor property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static _allFields

_allFields: Array<StringField<SuplrEvalRspSection> | NumberField<SuplrEvalRspSection> | Link<SuplrEvalRspSection, SuplrEvalRspQuestion> | Link<SuplrEvalRspSection, SuplrEvalRspSectionText>> = [SuplrEvalRspSection.SUPLR_EVAL_RSP_SECTION_UUID,SuplrEvalRspSection.SUPLR_EVAL_RSP_UUID,SuplrEvalRspSection.SUPLR_EVAL_RSP_QUESTIONNAIRE_UUID,SuplrEvalRspSection.SUPLR_EVAL_REQ_SECTION_UUID,SuplrEvalRspSection.SUPPLIER_EVAL_RESPONSE_SECTION,SuplrEvalRspSection.SUPPLIER_EVAL_RESPONSE_SCTN_ALTV,SuplrEvalRspSection.QUESTIONNAIRE_SECTION_NAME,SuplrEvalRspSection.WEIGHTING_FACTOR,SuplrEvalRspSection.MINIMAL_SCORE,SuplrEvalRspSection.TARGET_SCORE,SuplrEvalRspSection.CALCULATED_SCORE,SuplrEvalRspSection.NUMBER_OF_RESPONSES,SuplrEvalRspSection.TO_SUPLR_EVAL_RSP_QUESTION,SuplrEvalRspSection.TO_SUPLR_EVAL_RSP_SECTION_TEXT]

All fields of the SuplrEvalRspSection entity.

Static _defaultServicePath

_defaultServicePath: string = "/sap/opu/odata/sap/API_SUPLR_EVAL_RESPONSE_SRV"

Default url path for the according service.

Static _entityName

_entityName: string = "A_SuplrEvalRspSection"

Technical entity name for SuplrEvalRspSection.

Static _keyFields

_keyFields: Array<Selectable<SuplrEvalRspSection>> = [SuplrEvalRspSection.SUPLR_EVAL_RSP_SECTION_UUID]

All key fields of the SuplrEvalRspSection entity.

Static _keys

_keys: object = SuplrEvalRspSection._keyFields.reduce((acc: { [keys: string]: Selectable<SuplrEvalRspSection> }, field: Selectable<SuplrEvalRspSection>) => {acc[field._fieldName] = field;return acc;}, {})

Mapping of all key field names to the respective static field property SuplrEvalRspSection.

Type declaration

Static _serviceName

_serviceName: string = "API_SUPLR_EVAL_RESPONSE_SRV"
deprecated

Since v1.0.1 Use _defaultServicePath instead. Technical service name for SuplrEvalRspSection.

Accessors

versionIdentifier

  • get versionIdentifier(): string
  • ETag version identifier accessor.

    Returns string

    The ETag version identifier of the retrieved entity, returns undefined if not retrieved

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): Entity
  • Returns a map of all defined fields in entity to their current values.

    Returns Entity

    Entity with all defined entity fields

getCustomField

  • getCustomField(fieldName: string): any
  • Custom field value getter.

    Parameters

    • fieldName: string

      The name of the custom field

    Returns any

    The value of the corresponding custom field

getCustomFields

  • getCustomFields(): MapType<any>
  • Returns a map that contains all entity custom fields.

    Returns MapType<any>

    A map of all defined custom fields in the entity

getUpdatedCustomFields

  • getUpdatedCustomFields(): MapType<any>
  • Returns all updated custom field properties compared to the last known remote state.

    Returns MapType<any>

    A map containing all updated custom properties, with their new values

getUpdatedProperties

  • getUpdatedProperties(): Entity
  • Returns all changed properties compared to the last known remote state. The returned properties does not include custom fields. Use getUpdatedCustomFields, if updated custom fields are needed.

    Returns Entity

    Entity with all properties that changed

hasCustomField

  • hasCustomField(fieldName: string): boolean
  • Validates whether a custom field exists in the entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    Returns boolean

    A boolean value, that indicates whether a custom field is defined in entity

initializeCustomFields

  • initializeCustomFields(customFields: MapType<any>): this
  • Sets all retrieved custom fields in entity.

    Parameters

    • customFields: MapType<any>

      Extracted custom fields from a retrieved entity

    Returns this

    A boolean value, that indicates the existence of the field in entity

Protected isConflictingCustomField

  • isConflictingCustomField(customFieldName: string): boolean
  • Validates whether a field name does not conflict with an original field name and thus can be defined as custom fields.

    Parameters

    • customFieldName: string

      Field name to check

    Returns boolean

    Boolean value that describes whether a field name can be defined as custom field

setCustomField

  • setCustomField(fieldName: string, value: any): this
  • Sets a new custom field in the entity or updates it. Throws an error, if the provided custom field name is already defined by an original field in entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    • value: any

      The value of the field

    Returns this

    The entity itself, to facilitate method chaining

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests. This function should be called after initializeCustomFields, if custom fields are defined.

    deprecated

    Since 1.12.0. Will be removed in version 2.0.

    Parameters

    • Optional state: MapType<any>

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

setVersionIdentifier

  • setVersionIdentifier(etag: string | undefined): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string | undefined

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

toJSON

  • toJSON(): object
  • Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.

    Returns object

    An object containing all instance variables + custom fields.

    • [key: string]: any

Static builder

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity SuplrEvalRspSection.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<SuplrEvalRspSection>

    A builder that constructs instances of entity type SuplrEvalRspSection.

Static Protected customFieldSelector

  • customFieldSelector<EntityT>(fieldName: string, entityConstructor: Constructable<EntityT>): CustomField<EntityT>
  • Type parameters

    • EntityT: Entity

    Parameters

    • fieldName: string
    • entityConstructor: Constructable<EntityT>

    Returns CustomField<EntityT>

Static Protected entityBuilder

  • entityBuilder<EntityT, EntityTypeForceMandatoryT>(entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>): EntityBuilderType<EntityT, EntityTypeForceMandatoryT>
  • Type parameters

    • EntityT: Entity

    • EntityTypeForceMandatoryT

    Parameters

    • entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>

    Returns EntityBuilderType<EntityT, EntityTypeForceMandatoryT>

Static requestBuilder

  • Returns a request builder to construct requests for operations on the SuplrEvalRspSection entity type.

    Returns SuplrEvalRspSectionRequestBuilder

    A SuplrEvalRspSection request builder.