From e90a0939f6f66604574f3c07d52c4d0844717deb Mon Sep 17 00:00:00 2001 From: Tom D'hoore Date: Thu, 18 Apr 2024 14:26:44 +0200 Subject: [PATCH 1/2] update get-opdomain with owner, admin & tech handle --- Public/Domain/func_Get-OPDomain.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Public/Domain/func_Get-OPDomain.ps1 b/Public/Domain/func_Get-OPDomain.ps1 index 08bb44e..7fc58ed 100644 --- a/Public/Domain/func_Get-OPDomain.ps1 +++ b/Public/Domain/func_Get-OPDomain.ps1 @@ -76,6 +76,10 @@ function Get-OPDomain { DNSSec = $domains[$i].is_dnssec_enabled Sectigo = $domains[$i].is_sectigo_dns_enabled NameserverGroup = $domains[$i].ns_group + OwnerHandle = $domains[$i].owner_handle + AdminHandle = $domains[$i].admin_handle + TechHandle = $domains[$i].tech_handle + } } $return_object += $domain_object From 6f86137f1480acb02614df5b93173317d035db0c Mon Sep 17 00:00:00 2001 From: Tom D'hoore Date: Fri, 31 Jan 2025 14:36:10 +0100 Subject: [PATCH 2/2] fixed: error when expiration date is null --- Public/SSL/func_Get-OPSSLOrders.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/SSL/func_Get-OPSSLOrders.ps1 b/Public/SSL/func_Get-OPSSLOrders.ps1 index f2095a4..ebfb6b8 100644 --- a/Public/SSL/func_Get-OPSSLOrders.ps1 +++ b/Public/SSL/func_Get-OPSSLOrders.ps1 @@ -38,7 +38,7 @@ function Get-OPSSLOrders { Product = $order.product_name Hostname = $order.common_name Status = ($statusMap | Select-Object $($order.status)).$($order.status) - ExpirationDate = [datetime]$order.expiration_date + ExpirationDate = if ($null -ne $order.expiration_date) { [datetime]$order.expiration_date } else { $null } Period = $order.period AutoRenew = if ($order.autorenew -eq "on") { $true } else { $false } ValidationMethod = $order.validation_method