Skip to content

Commit

Permalink
Beta endpoints have been moved from v5 to v6.
Browse files Browse the repository at this point in the history
  • Loading branch information
harm-smits committed May 21, 2021
1 parent b5997cb commit 8840c56
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,8 @@ public function createUnpublishedOfferReport(CreateUnpublishedOfferReportRequest
$method = "post";
$data["body"] = json_encode($body->__toArray());
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Content-Type' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
'Content-Type' => 'application/vnd.retailer.v6+json',
];
$response = [
202 =>
Expand Down Expand Up @@ -905,7 +905,7 @@ public function getUnpublishedOfferReport(string $reportId): array
$method = "get";
$url = str_replace("{report-id}", $reportId, $url);
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+csv',
'Accept' => 'application/vnd.retailer.v6+csv',
];
$response = [
400 =>
Expand Down Expand Up @@ -2557,7 +2557,7 @@ public function getSubscriptions(): array
$url = "https://api.bol.com/retailer/subscriptions";
$method = "get";
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
];
$response = [
200 =>
Expand Down Expand Up @@ -2603,8 +2603,8 @@ public function createSubscription(CreateSubscriptionRequest $body): array
$method = "post";
$data["body"] = json_encode($body->__toArray());
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Content-Type' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
'Content-Type' => 'application/vnd.retailer.v6+json',
];
$response = [
202 =>
Expand Down Expand Up @@ -2645,7 +2645,7 @@ public function getSubscriptionsSignatureKeys(): array
$url = "https://api.bol.com/retailer/subscriptions/signature-keys";
$method = "get";
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
];
$response = [
200 =>
Expand Down Expand Up @@ -2675,8 +2675,8 @@ public function createSubscriptionTest(): array
$url = "https://api.bol.com/retailer/subscriptions/test";
$method = "post";
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Content-Type' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
'Content-Type' => 'application/vnd.retailer.v6+json',
];
$response = [
202 =>
Expand Down Expand Up @@ -2719,7 +2719,7 @@ public function getSubscription(string $subscriptionId): array
$method = "get";
$url = str_replace("{subscription-id}", $subscriptionId, $url);
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
];
$response = [
200 =>
Expand Down Expand Up @@ -2774,8 +2774,8 @@ public function updateSubscription(
$url = str_replace("{subscription-id}", $subscriptionId, $url);
$data["body"] = json_encode($body->__toArray());
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Content-Type' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
'Content-Type' => 'application/vnd.retailer.v6+json',
];
$response = [
202 =>
Expand Down Expand Up @@ -2818,8 +2818,8 @@ public function deleteSubscription(string $subscriptionId): array
$method = "delete";
$url = str_replace("{subscription-id}", $subscriptionId, $url);
$data["headers"] = [
'Accept' => 'application/vnd.retailer.v5+json',
'Content-Type' => 'application/vnd.retailer.v5+json',
'Accept' => 'application/vnd.retailer.v6+json',
'Content-Type' => 'application/vnd.retailer.v6+json',
];
$response = [
202 =>
Expand Down

0 comments on commit 8840c56

Please sign in to comment.