text: "use strict";
  var __extends = (this && this.__extends) || (function () {
      var extendStatics = function (d, b) {
          extendStatics = Object.setPrototypeOf ||
              ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
              function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
          return extendStatics(d, b);
      };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  var __assign = (this && this.__assign) || function () {
      __assign = Object.assign || function(t) {
          for (var s, i = 1, n = arguments.length; i < n; i++) {
              s = arguments[i];
              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                  t[p] = s[p];
          }
          return t;
      };
      return __assign.apply(this, arguments);
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.CustomerCompanyText = void 0;
  /*
   * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
   *
   * This is a generated file powered by the SAP Cloud SDK for JavaScript.
   */
  var CustomerCompanyTextRequestBuilder_1 = require("./CustomerCompanyTextRequestBuilder");
  var core_1 = require("@sap-cloud-sdk/core");
  /**
   * This class represents the entity "A_CustomerCompanyText" of service "API_BUSINESS_PARTNER".
   */
  var CustomerCompanyText = /** @class */ (function (_super) {
      __extends(CustomerCompanyText, _super);
      function CustomerCompanyText() {
          return _super !== null && _super.apply(this, arguments) || this;
      }
      /**
       * Returns an entity builder to construct instances `CustomerCompanyText`.
       * @returns A builder that constructs instances of entity type `CustomerCompanyText`.
       */
      CustomerCompanyText.builder = function () {
          return core_1.Entity.entityBuilder(CustomerCompanyText);
      };
      /**
       * Returns a request builder to construct requests for operations on the `CustomerCompanyText` entity type.
       * @returns A `CustomerCompanyText` request builder.
       */
      CustomerCompanyText.requestBuilder = function () {
          return new CustomerCompanyTextRequestBuilder_1.CustomerCompanyTextRequestBuilder();
      };
      /**
       * Returns a selectable object that allows the selection of custom field in a get request for the entity `CustomerCompanyText`.
       * @param fieldName Name of the custom field to select
       * @returns A builder that constructs instances of entity type `CustomerCompanyText`.
       */
      CustomerCompanyText.customField = function (fieldName) {
          return core_1.Entity.customFieldSelector(fieldName, CustomerCompanyText);
      };
      /**
       * Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.
       * @returns An object containing all instance variables + custom fields.
       */
      CustomerCompanyText.prototype.toJSON = function () {
          return __assign(__assign({}, this), this._customFields);
      };
      /**
       * Technical entity name for CustomerCompanyText.
       */
      CustomerCompanyText._entityName = 'A_CustomerCompanyText';
      /**
       * @deprecated Since v1.0.1 Use [[_defaultServicePath]] instead.
       * Technical service name for CustomerCompanyText.
       */
      CustomerCompanyText._serviceName = 'API_BUSINESS_PARTNER';
      /**
       * Default url path for the according service.
       */
      CustomerCompanyText._defaultServicePath = '/sap/opu/odata/sap/API_BUSINESS_PARTNER';
      return CustomerCompanyText;
  }(core_1.Entity));
  exports.CustomerCompanyText = CustomerCompanyText;
  (function (CustomerCompanyText) {
      /**
       * Static representation of the [[customer]] property for query construction.
       * Use to reference this property in query operations such as 'select' in the fluent request API.
       */
      CustomerCompanyText.CUSTOMER = new core_1.StringField('Customer', CustomerCompanyText, 'Edm.String');
      /**
       * Static representation of the [[companyCode]] property for query construction.
       * Use to reference this property in query operations such as 'select' in the fluent request API.
       */
      CustomerCompanyText.COMPANY_CODE = new core_1.StringField('CompanyCode', CustomerCompanyText, 'Edm.String');
      /**
       * Static representation of the [[language]] property for query construction.
       * Use to reference this property in query operations such as 'select' in the fluent request API.
       */
      CustomerCompanyText.LANGUAGE = new core_1.StringField('Language', CustomerCompanyText, 'Edm.String');
      /**
       * Static representation of the [[longTextId]] property for query construction.
       * Use to reference this property in query operations such as 'select' in the fluent request API.
       */
      CustomerCompanyText.LONG_TEXT_ID = new core_1.StringField('LongTextID', CustomerCompanyText, 'Edm.String');
      /**
       * Static representation of the [[longText]] property for query construction.
       * Use to reference this property in query operations such as 'select' in the fluent request API.
       */
      CustomerCompanyText.LONG_TEXT = new core_1.StringField('LongText', CustomerCompanyText, 'Edm.String');
      /**
       * All fields of the CustomerCompanyText entity.
       */
      CustomerCompanyText._allFields = [
          CustomerCompanyText.CUSTOMER,
          CustomerCompanyText.COMPANY_CODE,
          CustomerCompanyText.LANGUAGE,
          CustomerCompanyText.LONG_TEXT_ID,
          CustomerCompanyText.LONG_TEXT
      ];
      /**
       * All fields selector.
       */
      CustomerCompanyText.ALL_FIELDS = new core_1.AllFields('*', CustomerCompanyText);
      /**
       * All key fields of the CustomerCompanyText entity.
       */
      CustomerCompanyText._keyFields = [CustomerCompanyText.CUSTOMER, CustomerCompanyText.COMPANY_CODE, CustomerCompanyText.LANGUAGE, CustomerCompanyText.LONG_TEXT_ID];
      /**
       * Mapping of all key field names to the respective static field property CustomerCompanyText.
       */
      CustomerCompanyText._keys = CustomerCompanyText._keyFields.reduce(function (acc, field) {
          acc[field._fieldName] = field;
          return acc;
      }, {});
  })(CustomerCompanyText = exports.CustomerCompanyText || (exports.CustomerCompanyText = {}));
  exports.CustomerCompanyText = CustomerCompanyText;
  //# sourceMappingURL=CustomerCompanyText.js.map