Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_ProductPlant" of service "API_REALSUBSTANCE". See https://api.sap.com/api/API_REALSUBSTANCE for more information.

Hierarchy

  • Entity
    • ProductPlant

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns ProductPlant

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 abcIndicator

abcIndicator: string

ABC Indicator. Maximum length: 1.

nullable

Optional availabilityCheckType

availabilityCheckType: string

Checking Group for Availability Check. Maximum length: 2.

nullable

Optional commodity

commodity: string

Commodity. Maximum length: 17.

nullable

Optional consumptionTaxCtrlCode

consumptionTaxCtrlCode: string

Control code for consumption taxes in foreign trade. Maximum length: 16.

nullable

Optional countryOfOrigin

countryOfOrigin: string

Country of Origin of Material (Non-Preferential Origin). Maximum length: 3.

nullable

Optional fiscalMonthCurrentPeriod

fiscalMonthCurrentPeriod: string

Fiscal Month Current Period. Maximum length: 2.

nullable

Optional fiscalYearCurrentPeriod

fiscalYearCurrentPeriod: string

Fiscal Year Current Period. Maximum length: 4.

nullable

Optional fiscalYearVariant

fiscalYearVariant: string

Fiscal Year Variant. Maximum length: 2.

nullable

Optional fixedLotSizeQuantity

fixedLotSizeQuantity: BigNumber

Fixed lot size.

nullable

Optional goodsReceiptBlockedStockQty

goodsReceiptBlockedStockQty: BigNumber

Goods Receipt Blocked Stock Qty.

nullable

Optional goodsReceiptDuration

goodsReceiptDuration: BigNumber

Goods Receipt Processing Time in Days.

nullable

Optional hasConsignmentCtrl

hasConsignmentCtrl: string

Consignment Control. Maximum length: 1.

nullable

Optional hasPostToInspectionStock

hasPostToInspectionStock: boolean

Has Post to Inspection Stock.

nullable

Optional isBatchManagementRequired

isBatchManagementRequired: boolean

Batch management requirement indicator.

nullable

Optional isCoProduct

isCoProduct: boolean

Indicator: Material can be co-product.

nullable

Optional isInternalBatchManaged

isInternalBatchManaged: boolean

Batch management indicator (internal).

nullable

Optional isMarkedForDeletion

isMarkedForDeletion: boolean

Flag Material for Deletion at Plant Level.

nullable

Optional isNegativeStockAllowed

isNegativeStockAllowed: boolean

Negative stocks allowed in plant.

nullable

Optional maintenanceStatusName

maintenanceStatusName: string

Maintenance status. Maximum length: 15.

nullable

Optional maximumLotSizeQuantity

maximumLotSizeQuantity: BigNumber

Maximum Lot Size.

nullable

Optional minimumLotSizeQuantity

minimumLotSizeQuantity: BigNumber

Minimum Lot Size.

nullable

Optional mrpResponsible

mrpResponsible: string

MRP Controller (Materials Planner). Maximum length: 3.

nullable

Optional mrpType

mrpType: string

MRP Type. Maximum length: 2.

nullable

Optional periodType

periodType: string

Period Indicator. Maximum length: 1.

nullable

plant

plant: string

Plant. Maximum length: 4.

Optional procurementType

procurementType: string

Procurement Type. Maximum length: 1.

nullable

product

product: string

Material Number. Maximum length: 40.

Optional productCfopCategory

productCfopCategory: string

Material CFOP category. Maximum length: 2.

nullable

Optional productIsConfigurable

productIsConfigurable: string

Configurable Product. Maximum length: 40.

nullable

Optional productionInvtryManagedLoc

productionInvtryManagedLoc: string

Issue Storage Location. Maximum length: 4.

nullable

Optional profileCode

profileCode: string

Plant-Specific Material Status. Maximum length: 2.

nullable

Optional profileValidityStartDate

profileValidityStartDate: Moment

Date from which the plant-specific material status is valid.

nullable

Optional profitCenter

profitCenter: string

Profit Center. Maximum length: 10.

nullable

Optional purchasingGroup

purchasingGroup: string

Purchasing Group. Maximum length: 3.

nullable

Optional regionOfOrigin

regionOfOrigin: string

Region of Origin of Material (Non-Preferential Origin). Maximum length: 3.

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 serialNumberProfile

serialNumberProfile: string

Serial Number Profile. Maximum length: 4.

nullable

Optional stockDeterminationGroup

stockDeterminationGroup: string

Stock determination group. Maximum length: 4.

nullable

Optional stockInTransferQuantity

stockInTransferQuantity: BigNumber

Stock In Transfer Quantity.

nullable

Optional stockInTransitQuantity

stockInTransitQuantity: BigNumber

Stock In Transit Quantity.

nullable

toStorageLocation

toStorageLocation: ProductStorageLocation[]

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

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

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

Static ABC_INDICATOR

ABC_INDICATOR: StringField<ProductPlant> = new StringField('ABCIndicator', ProductPlant, 'Edm.String')

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

Static ALL_FIELDS

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

All fields selector.

Static AVAILABILITY_CHECK_TYPE

AVAILABILITY_CHECK_TYPE: StringField<ProductPlant> = new StringField('AvailabilityCheckType', ProductPlant, 'Edm.String')

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

Static COMMODITY

COMMODITY: StringField<ProductPlant> = new StringField('Commodity', ProductPlant, 'Edm.String')

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

Static CONSUMPTION_TAX_CTRL_CODE

CONSUMPTION_TAX_CTRL_CODE: StringField<ProductPlant> = new StringField('ConsumptionTaxCtrlCode', ProductPlant, 'Edm.String')

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

Static COUNTRY_OF_ORIGIN

COUNTRY_OF_ORIGIN: StringField<ProductPlant> = new StringField('CountryOfOrigin', ProductPlant, 'Edm.String')

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

Static FISCAL_MONTH_CURRENT_PERIOD

FISCAL_MONTH_CURRENT_PERIOD: StringField<ProductPlant> = new StringField('FiscalMonthCurrentPeriod', ProductPlant, 'Edm.String')

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

Static FISCAL_YEAR_CURRENT_PERIOD

FISCAL_YEAR_CURRENT_PERIOD: StringField<ProductPlant> = new StringField('FiscalYearCurrentPeriod', ProductPlant, 'Edm.String')

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

Static FISCAL_YEAR_VARIANT

FISCAL_YEAR_VARIANT: StringField<ProductPlant> = new StringField('FiscalYearVariant', ProductPlant, 'Edm.String')

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

Static FIXED_LOT_SIZE_QUANTITY

FIXED_LOT_SIZE_QUANTITY: BigNumberField<ProductPlant> = new BigNumberField('FixedLotSizeQuantity', ProductPlant, 'Edm.Decimal')

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

Static GOODS_RECEIPT_BLOCKED_STOCK_QTY

GOODS_RECEIPT_BLOCKED_STOCK_QTY: BigNumberField<ProductPlant> = new BigNumberField('GoodsReceiptBlockedStockQty', ProductPlant, 'Edm.Decimal')

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

Static GOODS_RECEIPT_DURATION

GOODS_RECEIPT_DURATION: BigNumberField<ProductPlant> = new BigNumberField('GoodsReceiptDuration', ProductPlant, 'Edm.Decimal')

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

Static HAS_CONSIGNMENT_CTRL

HAS_CONSIGNMENT_CTRL: StringField<ProductPlant> = new StringField('HasConsignmentCtrl', ProductPlant, 'Edm.String')

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

Static HAS_POST_TO_INSPECTION_STOCK

HAS_POST_TO_INSPECTION_STOCK: BooleanField<ProductPlant> = new BooleanField('HasPostToInspectionStock', ProductPlant, 'Edm.Boolean')

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

Static IS_BATCH_MANAGEMENT_REQUIRED

IS_BATCH_MANAGEMENT_REQUIRED: BooleanField<ProductPlant> = new BooleanField('IsBatchManagementRequired', ProductPlant, 'Edm.Boolean')

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

Static IS_CO_PRODUCT

IS_CO_PRODUCT: BooleanField<ProductPlant> = new BooleanField('IsCoProduct', ProductPlant, 'Edm.Boolean')

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

Static IS_INTERNAL_BATCH_MANAGED

IS_INTERNAL_BATCH_MANAGED: BooleanField<ProductPlant> = new BooleanField('IsInternalBatchManaged', ProductPlant, 'Edm.Boolean')

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

Static IS_MARKED_FOR_DELETION

IS_MARKED_FOR_DELETION: BooleanField<ProductPlant> = new BooleanField('IsMarkedForDeletion', ProductPlant, 'Edm.Boolean')

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

Static IS_NEGATIVE_STOCK_ALLOWED

IS_NEGATIVE_STOCK_ALLOWED: BooleanField<ProductPlant> = new BooleanField('IsNegativeStockAllowed', ProductPlant, 'Edm.Boolean')

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

Static MAINTENANCE_STATUS_NAME

MAINTENANCE_STATUS_NAME: StringField<ProductPlant> = new StringField('MaintenanceStatusName', ProductPlant, 'Edm.String')

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

Static MAXIMUM_LOT_SIZE_QUANTITY

MAXIMUM_LOT_SIZE_QUANTITY: BigNumberField<ProductPlant> = new BigNumberField('MaximumLotSizeQuantity', ProductPlant, 'Edm.Decimal')

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

Static MINIMUM_LOT_SIZE_QUANTITY

MINIMUM_LOT_SIZE_QUANTITY: BigNumberField<ProductPlant> = new BigNumberField('MinimumLotSizeQuantity', ProductPlant, 'Edm.Decimal')

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

Static MRP_RESPONSIBLE

MRP_RESPONSIBLE: StringField<ProductPlant> = new StringField('MRPResponsible', ProductPlant, 'Edm.String')

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

Static MRP_TYPE

MRP_TYPE: StringField<ProductPlant> = new StringField('MRPType', ProductPlant, 'Edm.String')

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

Static PERIOD_TYPE

PERIOD_TYPE: StringField<ProductPlant> = new StringField('PeriodType', ProductPlant, 'Edm.String')

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

Static PLANT

PLANT: StringField<ProductPlant> = new StringField('Plant', ProductPlant, 'Edm.String')

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

Static PROCUREMENT_TYPE

PROCUREMENT_TYPE: StringField<ProductPlant> = new StringField('ProcurementType', ProductPlant, 'Edm.String')

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

Static PRODUCT

PRODUCT: StringField<ProductPlant> = new StringField('Product', ProductPlant, 'Edm.String')

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

Static PRODUCTION_INVTRY_MANAGED_LOC

PRODUCTION_INVTRY_MANAGED_LOC: StringField<ProductPlant> = new StringField('ProductionInvtryManagedLoc', ProductPlant, 'Edm.String')

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

Static PRODUCT_CFOP_CATEGORY

PRODUCT_CFOP_CATEGORY: StringField<ProductPlant> = new StringField('ProductCFOPCategory', ProductPlant, 'Edm.String')

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

Static PRODUCT_IS_CONFIGURABLE

PRODUCT_IS_CONFIGURABLE: StringField<ProductPlant> = new StringField('ProductIsConfigurable', ProductPlant, 'Edm.String')

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

Static PROFILE_CODE

PROFILE_CODE: StringField<ProductPlant> = new StringField('ProfileCode', ProductPlant, 'Edm.String')

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

Static PROFILE_VALIDITY_START_DATE

PROFILE_VALIDITY_START_DATE: DateField<ProductPlant> = new DateField('ProfileValidityStartDate', ProductPlant, 'Edm.DateTime')

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

Static PROFIT_CENTER

PROFIT_CENTER: StringField<ProductPlant> = new StringField('ProfitCenter', ProductPlant, 'Edm.String')

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

Static PURCHASING_GROUP

PURCHASING_GROUP: StringField<ProductPlant> = new StringField('PurchasingGroup', ProductPlant, 'Edm.String')

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

Static REGION_OF_ORIGIN

REGION_OF_ORIGIN: StringField<ProductPlant> = new StringField('RegionOfOrigin', ProductPlant, 'Edm.String')

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

Static SERIAL_NUMBER_PROFILE

SERIAL_NUMBER_PROFILE: StringField<ProductPlant> = new StringField('SerialNumberProfile', ProductPlant, 'Edm.String')

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

Static STOCK_DETERMINATION_GROUP

STOCK_DETERMINATION_GROUP: StringField<ProductPlant> = new StringField('StockDeterminationGroup', ProductPlant, 'Edm.String')

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

Static STOCK_IN_TRANSFER_QUANTITY

STOCK_IN_TRANSFER_QUANTITY: BigNumberField<ProductPlant> = new BigNumberField('StockInTransferQuantity', ProductPlant, 'Edm.Decimal')

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

Static STOCK_IN_TRANSIT_QUANTITY

STOCK_IN_TRANSIT_QUANTITY: BigNumberField<ProductPlant> = new BigNumberField('StockInTransitQuantity', ProductPlant, 'Edm.Decimal')

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

Static TO_STORAGE_LOCATION

TO_STORAGE_LOCATION: Link<ProductPlant, ProductStorageLocation> = new Link('to_StorageLocation', ProductPlant, ProductStorageLocation)

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

Static _allFields

_allFields: Array<StringField<ProductPlant> | BigNumberField<ProductPlant> | BooleanField<ProductPlant> | DateField<ProductPlant> | Link<ProductPlant, ProductStorageLocation>> = [ProductPlant.PRODUCT,ProductPlant.FISCAL_YEAR_VARIANT,ProductPlant.PERIOD_TYPE,ProductPlant.PROFIT_CENTER,ProductPlant.COMMODITY,ProductPlant.GOODS_RECEIPT_DURATION,ProductPlant.MAINTENANCE_STATUS_NAME,ProductPlant.IS_MARKED_FOR_DELETION,ProductPlant.MRP_TYPE,ProductPlant.MRP_RESPONSIBLE,ProductPlant.ABC_INDICATOR,ProductPlant.PLANT,ProductPlant.MINIMUM_LOT_SIZE_QUANTITY,ProductPlant.MAXIMUM_LOT_SIZE_QUANTITY,ProductPlant.FIXED_LOT_SIZE_QUANTITY,ProductPlant.CONSUMPTION_TAX_CTRL_CODE,ProductPlant.IS_CO_PRODUCT,ProductPlant.PRODUCT_IS_CONFIGURABLE,ProductPlant.STOCK_DETERMINATION_GROUP,ProductPlant.STOCK_IN_TRANSFER_QUANTITY,ProductPlant.STOCK_IN_TRANSIT_QUANTITY,ProductPlant.HAS_POST_TO_INSPECTION_STOCK,ProductPlant.PURCHASING_GROUP,ProductPlant.IS_BATCH_MANAGEMENT_REQUIRED,ProductPlant.SERIAL_NUMBER_PROFILE,ProductPlant.IS_NEGATIVE_STOCK_ALLOWED,ProductPlant.GOODS_RECEIPT_BLOCKED_STOCK_QTY,ProductPlant.HAS_CONSIGNMENT_CTRL,ProductPlant.FISCAL_YEAR_CURRENT_PERIOD,ProductPlant.FISCAL_MONTH_CURRENT_PERIOD,ProductPlant.PROCUREMENT_TYPE,ProductPlant.IS_INTERNAL_BATCH_MANAGED,ProductPlant.PRODUCT_CFOP_CATEGORY,ProductPlant.COUNTRY_OF_ORIGIN,ProductPlant.REGION_OF_ORIGIN,ProductPlant.PRODUCTION_INVTRY_MANAGED_LOC,ProductPlant.PROFILE_CODE,ProductPlant.PROFILE_VALIDITY_START_DATE,ProductPlant.AVAILABILITY_CHECK_TYPE,ProductPlant.TO_STORAGE_LOCATION]

All fields of the ProductPlant entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_ProductPlant"

Technical entity name for ProductPlant.

Static _keyFields

_keyFields: Array<Selectable<ProductPlant>> = [ProductPlant.PRODUCT, ProductPlant.PLANT]

All key fields of the ProductPlant entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_REALSUBSTANCE"
deprecated

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

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.

    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): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string

      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

  • Returns an entity builder to construct instances ProductPlant.

    Returns EntityBuilderType<ProductPlant, ProductPlantType>

    A builder that constructs instances of entity type ProductPlant.

Static customField

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

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<ProductPlant>

    A builder that constructs instances of entity type ProductPlant.

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, JsonT>(entityConstructor: Constructable<EntityT, JsonT>): EntityBuilderType<EntityT, JsonT>
  • Type parameters

    • EntityT: Entity

    • JsonT

    Parameters

    • entityConstructor: Constructable<EntityT, JsonT>

    Returns EntityBuilderType<EntityT, JsonT>

Static requestBuilder

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

    Returns ProductPlantRequestBuilder

    A ProductPlant request builder.