Skip to content

Commit 3fe91fa

Browse files
author
Rik Morskate
committed
Added shipping price methods to contract
Fixed typo
1 parent 3ef8db3 commit 3fe91fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Contracts/SendcloudContract.php

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function parcelStatuses(): array;
2424

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

27+
public function shippingPrice(int $shippingMethodId, string $fromCountry, int $weight, string $weightUnit, array $optionalParameters = []): array;
28+
2729
public function download(string $url): string;
2830

2931
public function verbose(bool $verbose = true): self;

src/Sendcloud.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public function shippingMethods(array $optionalParameters = []): array
5757
}
5858

5959
public function shippingPrice(
60-
int $shipingMethodId,
60+
int $shippingMethodId,
6161
string $fromCountry,
6262
int $weight,
6363
string $weightUnit,
6464
array $optionalParameters = []
6565
): array {
6666
$parameters = [
67-
'shipping_method_id' => $shipingMethodId,
67+
'shipping_method_id' => $shippingMethodId,
6868
'from_country' => $fromCountry,
6969
'weight' => $weight,
7070
'weight_unit' => $weightUnit,

0 commit comments

Comments
 (0)