Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/registrars/openprovider/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": {
"wedevelopcoffee/wpower": "2.2.*",
"viison/address-splitter": "^0.3.2",
"openprovider/rest-client-php": "v2.2.1-beta",
"openprovider/rest-client-php": "v2.2.2-beta",
"symfony/serializer": "^5.2",
"psr/log": "^1.1",
"symfony/property-access": "^5.2",
Expand Down
20 changes: 10 additions & 10 deletions modules/registrars/openprovider/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions modules/registrars/openprovider/configuration/additionalfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,16 @@ function op_addConsentField(array &$additionaldomainfields, string $tld, bool $r
"op_name" => "dkAcceptance"
);

$additionaldomainfields[".dk"][] = array(
"Name" => "This registrant is a sole proprietorship (foreign company equivalent to a private individual under NIS2)",
"LangVar" => "dkSoleProprietorship",
"Type" => "tickbox",
Comment thread
YumeChaan marked this conversation as resolved.
Outdated
"Required" => false,
"op_location" => "customerExtensionAdditionalData",
"op_name" => "soleProprietorship",
"op_values" => [true, false]
Comment thread
Copilot marked this conversation as resolved.
Outdated
);

// .IN and all .IN SLDs

$inNexusFields = [
Expand Down
5 changes: 1 addition & 4 deletions modules/registrars/openprovider/vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
echo $err;
}
}
trigger_error(
$err,
E_USER_ERROR
);
throw new RuntimeException($err);
}

require_once __DIR__ . '/composer/autoload_real.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,23 @@
*/
class InstalledVersions
{
/**
* @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
* @internal
*/
private static $selfDir = null;

/**
* @var mixed[]|null
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
*/
private static $installed;

/**
* @var bool
*/
private static $installedIsLocalDir;

/**
* @var bool|null
*/
Expand Down Expand Up @@ -309,6 +320,24 @@ public static function reload($data)
{
self::$installed = $data;
self::$installedByVendor = array();

// when using reload, we disable the duplicate protection to ensure that self::$installed data is
// always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
// so we have to assume it does not, and that may result in duplicate data being returned when listing
// all installed packages for example
self::$installedIsLocalDir = false;
}

/**
* @return string
*/
private static function getSelfDir()
{
if (self::$selfDir === null) {
self::$selfDir = strtr(__DIR__, '\\', '/');
}

return self::$selfDir;
}

/**
Expand All @@ -322,19 +351,27 @@ private static function getInstalled()
}

$installed = array();
$copiedLocalDir = false;

if (self::$canGetVendors) {
$selfDir = self::getSelfDir();
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
$vendorDir = strtr($vendorDir, '\\', '/');
if (isset(self::$installedByVendor[$vendorDir])) {
$installed[] = self::$installedByVendor[$vendorDir];
} elseif (is_file($vendorDir.'/composer/installed.php')) {
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
$required = require $vendorDir.'/composer/installed.php';
$installed[] = self::$installedByVendor[$vendorDir] = $required;
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
self::$installed = $installed[count($installed) - 1];
self::$installedByVendor[$vendorDir] = $required;
$installed[] = $required;
if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
self::$installed = $required;
self::$installedIsLocalDir = true;
}
}
if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
$copiedLocalDir = true;
}
}
}

Expand All @@ -350,7 +387,7 @@ private static function getInstalled()
}
}

if (self::$installed !== array()) {
if (self::$installed !== array() && !$copiedLocalDir) {
$installed[] = self::$installed;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'phpmock\\mockery\\' => array($vendorDir . '/php-mock/php-mock-mockery/classes'),
'phpmock\\integration\\' => array($vendorDir . '/php-mock/php-mock-integration/classes'),
'phpmock\\' => array($vendorDir . '/php-mock/php-mock/classes', $vendorDir . '/php-mock/php-mock/tests'),
'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'),
'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src', $vendorDir . '/phpdocumentor/reflection-common/src'),
'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
'WeDevelopCoffee\\wPower\\' => array($vendorDir . '/wedevelopcoffee/wpower/src'),
'VIISON\\AddressSplitter\\' => array($vendorDir . '/viison/address-splitter/src'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ class ComposerStaticInit9a29979374213b4116ca45940115c24f
),
'phpDocumentor\\Reflection\\' =>
array (
0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
0 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
1 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
2 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
),
'Webmozart\\Assert\\' =>
array (
Expand Down
14 changes: 7 additions & 7 deletions modules/registrars/openprovider/vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -777,17 +777,17 @@
},
{
"name": "openprovider/rest-client-php",
"version": "v2.2.1-beta",
"version_normalized": "2.2.1.0-beta",
"version": "v2.2.2-beta",
"version_normalized": "2.2.2.0-beta",
"source": {
"type": "git",
"url": "https://github.com/openprovider/rest-client-php.git",
"reference": "aacd391672e8a1e2d724c6f0cbcc221e06e7b2a8"
"reference": "fd6217899a7c4c97e2cfd2731e2b74557a5cad2e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/openprovider/rest-client-php/zipball/aacd391672e8a1e2d724c6f0cbcc221e06e7b2a8",
"reference": "aacd391672e8a1e2d724c6f0cbcc221e06e7b2a8",
"url": "https://api.github.com/repos/openprovider/rest-client-php/zipball/fd6217899a7c4c97e2cfd2731e2b74557a5cad2e",
"reference": "fd6217899a7c4c97e2cfd2731e2b74557a5cad2e",
"shasum": ""
},
"require": {
Expand All @@ -797,7 +797,7 @@
"guzzlehttp/guzzle": "^7.4",
"php": ">=7.1"
},
"time": "2026-06-01T09:08:04+00:00",
"time": "2026-06-22T11:36:40+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -824,7 +824,7 @@
],
"description": "HTTP client for Openprovider API",
"support": {
"source": "https://github.com/openprovider/rest-client-php/tree/v2.2.1-beta",
"source": "https://github.com/openprovider/rest-client-php/tree/v2.2.2-beta",
"issues": "https://github.com/openprovider/rest-client-php/issues"
},
"install-path": "../openprovider/rest-client-php"
Expand Down
10 changes: 5 additions & 5 deletions modules/registrars/openprovider/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '150d0de72398bd5a6718e72de03935f7545834d7',
'reference' => '79767d0097ff62de76956aee52bafd01eada068f',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '150d0de72398bd5a6718e72de03935f7545834d7',
'reference' => '79767d0097ff62de76956aee52bafd01eada068f',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -134,9 +134,9 @@
'dev_requirement' => true,
),
'openprovider/rest-client-php' => array(
'pretty_version' => 'v2.2.1-beta',
'version' => '2.2.1.0-beta',
'reference' => 'aacd391672e8a1e2d724c6f0cbcc221e06e7b2a8',
'pretty_version' => 'v2.2.2-beta',
'version' => '2.2.2.0-beta',
'reference' => 'fd6217899a7c4c97e2cfd2731e2b74557a5cad2e',
'type' => 'library',
'install_path' => __DIR__ . '/../openprovider/rest-client-php',
'aliases' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
}
}
trigger_error(
'Composer detected issues in your platform: ' . implode(' ', $issues),
E_USER_ERROR
throw new \RuntimeException(
'Composer detected issues in your platform: ' . implode(' ', $issues)
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class CustomerExtensionData implements ModelInterface, ArrayAccess
'postal_address_region' => 'string',
'postal_address_street' => 'string',
'social_security_number' => 'string',
'sole_proprietorship' => 'string',
'tax_payer_number' => 'string',
'uin' => 'string',
'user_type' => 'string',
Expand Down Expand Up @@ -176,6 +177,7 @@ class CustomerExtensionData implements ModelInterface, ArrayAccess
'postal_address_region' => null,
'postal_address_street' => null,
'social_security_number' => null,
'sole_proprietorship' => null,
'tax_payer_number' => null,
'uin' => null,
'user_type' => null,
Expand Down Expand Up @@ -263,6 +265,7 @@ public static function openAPIFormats()
'postal_address_region' => 'postal_address_region',
'postal_address_street' => 'postal_address_street',
'social_security_number' => 'social_security_number',
'sole_proprietorship' => 'sole_proprietorship',
'tax_payer_number' => 'tax_payer_number',
'uin' => 'uin',
'user_type' => 'user_type',
Expand Down Expand Up @@ -329,6 +332,7 @@ public static function openAPIFormats()
'postal_address_region' => 'setPostalAddressRegion',
'postal_address_street' => 'setPostalAddressStreet',
'social_security_number' => 'setSocialSecurityNumber',
'sole_proprietorship' => 'setSoleProprietorship',
'tax_payer_number' => 'setTaxPayerNumber',
'uin' => 'setUin',
'user_type' => 'setUserType',
Expand Down Expand Up @@ -395,6 +399,7 @@ public static function openAPIFormats()
'postal_address_region' => 'getPostalAddressRegion',
'postal_address_street' => 'getPostalAddressStreet',
'social_security_number' => 'getSocialSecurityNumber',
'sole_proprietorship' => 'getSoleProprietorship',
'tax_payer_number' => 'getTaxPayerNumber',
'uin' => 'getUin',
'user_type' => 'getUserType',
Expand Down Expand Up @@ -519,6 +524,7 @@ public function __construct(array $data = null)
$this->container['postal_address_region'] = isset($data['postal_address_region']) ? $data['postal_address_region'] : null;
$this->container['postal_address_street'] = isset($data['postal_address_street']) ? $data['postal_address_street'] : null;
$this->container['social_security_number'] = isset($data['social_security_number']) ? $data['social_security_number'] : null;
$this->container['sole_proprietorship'] = isset($data['sole_proprietorship']) ? $data['sole_proprietorship'] : null;
$this->container['tax_payer_number'] = isset($data['tax_payer_number']) ? $data['tax_payer_number'] : null;
$this->container['uin'] = isset($data['uin']) ? $data['uin'] : null;
$this->container['user_type'] = isset($data['user_type']) ? $data['user_type'] : null;
Expand Down Expand Up @@ -1905,6 +1911,32 @@ public function setSocialSecurityNumber($social_security_number)
return $this;
}

/**
* Gets sole_proprietorship
*
* @return string|null
*/
#[\ReturnTypeWillChange]
public function getSoleProprietorship()
{
return $this->container['sole_proprietorship'];
}

/**
* Sets sole_proprietorship
*
* @param string|null $sole_proprietorship sole_proprietorship
*
* @return $this
*/
#[\ReturnTypeWillChange]
public function setSoleProprietorship($sole_proprietorship)
{
$this->container['sole_proprietorship'] = $sole_proprietorship;

return $this;
}

/**
* Gets tax_payer_number
*
Expand Down