async lookupDemographics(params = {}) {
    const { customerId, errorOnNotFound } = await validateAsync(Joi.object({
      customerId: this.schema.customerId.required(),
      errorOnNotFound: Joi.boolean().default(false),
    }).required(), params);
    const endpoint = `/customer/${customerId}/demographic/*`;
    const response = await this.client.get({ endpoint, errorOnNotFound });
    return new CustomerDemographicsResponse({ response });
  }
/**
   * This service returns all available customer demographics stored for a
   * given customer by using the Customer ID.
   *
   * @link https://main.omeda.com/knowledge-base/demographic-lookup-by-customer-id/
   * @param {object} params
   * @param {number} params.customerId The customer ID to find demographics for.
   * @param {boolean} [params.errorOnNotFound=false] Whether to error when not found.
   * @returns {Promise<CustomerDemographicsResponse>} The customer demographics.
   */
This service returns all available customer demographics stored for a
given customer by using the Customer ID.


This service returns all available customer demographics stored for a given customer by using the Customer ID .
async lookupDemographics(params = {}) {
    const { customerId, errorOnNotFound } = await validateAsync(Joi.object({
      customerId: this.schema.customerId.required(),
      errorOnNotFound: Joi.boolean().default(false),
    }).required(), params);
    const endpoint = `/customer/${customerId}/demographic/*`;
    const response = await this.client.get({ endpoint, errorOnNotFound });
    return new CustomerDemographicsResponse({ response });
  }
async lookupDemographics ( params = { } ) { const { customerId , errorOnNotFound } = await validateAsync ( Joi . object ( { customerId : this . schema . customerId . required ( ) , errorOnNotFound : Joi . boolean ( ) . default ( false ) , } ) . required ( ) , params ) ; const endpoint = ` ${ customerId } ` ; const response = await this . client . get ( { endpoint , errorOnNotFound } ) ; return new CustomerDemographicsResponse ( { response } ) ; }
This service returns all available customer demographics stored for a
 given customer by using the Customer ID.
This service returns all available customer demographics stored for a given customer by using the Customer ID .