From 27dfccb3f6e804fd0a63eaec1123d61a76925cac Mon Sep 17 00:00:00 2001 From: KelvinTegelaar <49186168+KelvinTegelaar@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:31:49 +0100 Subject: [PATCH] fix typo --- .../Public/Sherweb/Get-SherwebCurrentSubscription.ps1 | 2 +- .../Public/Sherweb/Get-SherwebOrderStatus.ps1 | 8 +------- .../Public/Sherweb/Remove-SherwebSubscription.ps1 | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 b/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 index fe7b44cc3698..0ccd8d6baa46 100644 --- a/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 @@ -1,4 +1,4 @@ -function Get-CurrentSherwebSubscription { +function Get-SherwebCurrentSubscription { param( [Parameter(Mandatory = $true)] [string]$CustomerId, diff --git a/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 b/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 index fc5dd8f79d38..ca5a91cd71b3 100644 --- a/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 @@ -1,15 +1,9 @@ function Get-SherwebOrderStatus { param( - [Parameter(Mandatory = $true)] - [string]$ClientId, - [Parameter(Mandatory = $true)] - [string]$ClientSecret, - [Parameter(Mandatory = $true)] - [string]$SubscriptionKey, [Parameter(Mandatory = $true)] [string]$RequestTrackingId ) - $AuthHeader = Get-SherwebAuthentication -ClientId $ClientId -ClientSecret $ClientSecret -SubscriptionKey $SubscriptionKey + $AuthHeader = Get-SherwebAuthentication $Uri = "https://api.sherweb.com/service-provider/v1/tracking/$RequestTrackingId" $Tracking = Invoke-RestMethod -Uri $Uri -Method GET -Headers $AuthHeader return $Tracking diff --git a/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 b/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 index 8392d5a1b0fb..951fa36b5aef 100644 --- a/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 @@ -8,7 +8,7 @@ function Remove-SherwebSubscription { $AuthHeader = Get-SherwebAuthentication $Body = ConvertTo-Json -Depth 10 -InputObject @{ - subscriptionIds = $SubscriptionIds + subscriptionIds = @($SubscriptionIds) } $Uri = "https://api.sherweb.com/service-provider/v1/billing/subscriptions/cancellations?customerId=$CustomerId"