Skip to content

Commit 27dfccb

Browse files
fix typo
1 parent bffd22c commit 27dfccb

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function Get-CurrentSherwebSubscription {
1+
function Get-SherwebCurrentSubscription {
22
param(
33
[Parameter(Mandatory = $true)]
44
[string]$CustomerId,

Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
function Get-SherwebOrderStatus {
22
param(
3-
[Parameter(Mandatory = $true)]
4-
[string]$ClientId,
5-
[Parameter(Mandatory = $true)]
6-
[string]$ClientSecret,
7-
[Parameter(Mandatory = $true)]
8-
[string]$SubscriptionKey,
93
[Parameter(Mandatory = $true)]
104
[string]$RequestTrackingId
115
)
12-
$AuthHeader = Get-SherwebAuthentication -ClientId $ClientId -ClientSecret $ClientSecret -SubscriptionKey $SubscriptionKey
6+
$AuthHeader = Get-SherwebAuthentication
137
$Uri = "https://api.sherweb.com/service-provider/v1/tracking/$RequestTrackingId"
148
$Tracking = Invoke-RestMethod -Uri $Uri -Method GET -Headers $AuthHeader
159
return $Tracking

Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Remove-SherwebSubscription {
88

99
$AuthHeader = Get-SherwebAuthentication
1010
$Body = ConvertTo-Json -Depth 10 -InputObject @{
11-
subscriptionIds = $SubscriptionIds
11+
subscriptionIds = @($SubscriptionIds)
1212
}
1313

1414
$Uri = "https://api.sherweb.com/service-provider/v1/billing/subscriptions/cancellations?customerId=$CustomerId"

0 commit comments

Comments
 (0)