Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/netim provider #103

Merged
merged 40 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d27269b
Add Netim as a domain name provider
Jul 10, 2024
108f1d9
Update provider
Jan 20, 2025
97e67a2
Update provider
Jan 20, 2025
3dbc237
Fix transfer and updateRegistrantContact
Jan 21, 2025
5de3f85
lowercase & rename configuration params to match accepted standards
Jan 27, 2025
325f32f
Update docblocks and simple throw error (not return)
Jan 27, 2025
eb70be2
removed not used import
Jan 27, 2025
d237158
to prevent instantiation errors, set client property nullable
Jan 27, 2025
55170c1
triple equals string type check for provider
Jan 27, 2025
be8bb7c
boolean cast for sandbox param
Jan 27, 2025
6550de8
simplify netim provider if / else rules
Jan 27, 2025
eac37b4
further netim provider linting updates
Jan 27, 2025
83bf0bd
removed constant file and use trait to load data
Jan 28, 2025
a0af1d8
refactor classes to use correct namespace
Jan 28, 2025
10ec347
removed constant for netim module version
Jan 28, 2025
1a4724d
Update Netim code to better PHP standards and update all docblocks
Jan 29, 2025
e2f370d
strict type causes issues with strlen on int, cast to string
Jan 29, 2025
997ad51
use common method to split name to first & last name
Jan 29, 2025
95b967d
quick update to Netim Provider API rest constructor
Jan 30, 2025
bc43591
use carbon immutable create from format and slight code changes
Jan 30, 2025
dbed277
Namespace modifications
Jan 31, 2025
c6d5e73
Merge pull request #92 from netim-com/main
RoussKS Jan 31, 2025
1656c8e
Merged refactored changes accepting from fixes
Jan 31, 2025
10aa896
empty string epp code on transfer in
Jan 31, 2025
ccec769
Static analysis fixes
Jan 31, 2025
95561df
replace gettype with corresponding type checking. also replace checki…
Jan 31, 2025
c18f9a7
Update file permissions for fix_formatting
Jan 31, 2025
43a59c6
update file permissions for cs fixer
Jan 31, 2025
c9bab16
First check if domain already transferred by using getDomainInfo (400…
Feb 12, 2025
be80a2b
If request is PENDING, throw error to mark transfer is not yet comple…
Feb 12, 2025
f96f2b9
Log Netim request / response on API calls
Feb 12, 2025
31bd92d
Update error results thrown on purpose to include debug data
Feb 12, 2025
5cf28d6
Update Netim API logging
uphlewis Feb 19, 2025
d1e5f6e
Update Netim, don't return EPP code for domain id in DomainResult res…
uphlewis Feb 19, 2025
56b605b
Update Netim, trim statuses in DomainResult responses
uphlewis Feb 19, 2025
68e3e70
Update Netim API logger formatting
uphlewis Feb 19, 2025
6afe4b5
Update Netim configuration fields to match Netim terminology
uphlewis Feb 19, 2025
3fac848
Update Netim contact read/update to include organisation
uphlewis Feb 19, 2025
997519f
Update Netim getDomainInfo() to throw error result if domain is pending
uphlewis Feb 19, 2025
75cb16b
Add Netim provider logo
uphlewis Feb 19, 2025
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: 2 additions & 0 deletions src/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
use Upmind\ProvisionProviders\DomainNames\EURID\Provider as EURID;
use Upmind\ProvisionProviders\DomainNames\TPPWholesale\Provider as TPPWholesale;
use Upmind\ProvisionProviders\DomainNames\SynergyWholesale\Provider as SynergyWholesale;
use Upmind\ProvisionProviders\DomainNames\Netim\Provider as Netim;

class LaravelServiceProvider extends ProvisionServiceProvider
{
Expand Down Expand Up @@ -73,5 +74,6 @@ public function boot()
$this->bindProvider('domain-names', 'eurid', EURID::class);
$this->bindProvider('domain-names', 'tpp-wholesale', TPPWholesale::class);
$this->bindProvider('domain-names', 'synergy-wholesale', SynergyWholesale::class);
$this->bindProvider('domain-names', 'netim', Netim::class);
}
}
25 changes: 25 additions & 0 deletions src/Netim/Data/Configuration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

namespace Upmind\ProvisionProviders\DomainNames\Netim\Data;

use Upmind\ProvisionBase\Provider\DataSet\DataSet;
use Upmind\ProvisionBase\Provider\DataSet\Rules;

/**
* @property-read string $customer_reference Login id
* @property-read string $api_password API token
* @property-read bool|null $sandbox Make API requests against the sandbox environment
*/
class Configuration extends DataSet
{
public static function rules(): Rules
{
return new Rules([
'customer_reference' => ['required', 'string', 'min:3'],
'api_password' => ['required', 'string', 'min:6'],
'sandbox' => ['nullable', 'boolean'],
]);
}
}
Loading