code: public function setEcommerceType( $ecommerceType )
      {
          if (!in_array( $ecommerceType, self::$ecommerceTypes )) {
              throw new InvalidArgumentException( sprintf( 'Invalid e-commerce type (%s)', $ecommerceType ) );
          }
  
          $this->ecommerceType = $ecommerceType;
  
          return $this;
      }
docs: @param  string $ecommerceType
  
  @return $this