Skip to content

Commit 588c0c0

Browse files
author
Rik Morskate
committed
Weight is not required for getting shipping products
1 parent 66e1cf0 commit 588c0c0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/Contracts/SendcloudContract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function parcelStatuses(): array;
2424

2525
public function shippingMethods(array $optionalParameters = []): array;
2626

27-
public function getShippingProducts(string $fromCountry, string $toCountry, int $weight, string $weightUnit, array $optionalParameters = []): array;
27+
public function getShippingProducts(string $fromCountry, string $toCountry, array $optionalParameters = []): array;
2828

2929
public function shippingPrice(int $shippingMethodId, string $fromCountry, int $weight, string $weightUnit, array $optionalParameters = []): array;
3030

src/Sendcloud.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,11 @@ public function shippingMethods(array $optionalParameters = []): array
6868
public function getShippingProducts(
6969
string $fromCountry,
7070
string $toCountry,
71-
int $weight,
72-
string $weightUnit,
7371
array $optionalParameters = []
7472
): array {
7573
$parameters = [
7674
'from_country' => $fromCountry,
7775
'to_country' => $toCountry,
78-
'weight' => $weight,
79-
'weight_unit' => $weightUnit,
8076
];
8177

8278
$parameters = array_merge($parameters, $optionalParameters);

0 commit comments

Comments
 (0)