diff --git a/src/Connectors/OfferConnector.php b/src/Connectors/OfferConnector.php index eb404ff..520bf07 100644 --- a/src/Connectors/OfferConnector.php +++ b/src/Connectors/OfferConnector.php @@ -75,7 +75,7 @@ public function requestOfferExportFile(): ProcessStatus public function retrieveOfferExportFile(string $exportId): ExportOfferCollection { $data = $this->send('GET', "offers/export/$exportId", headers: [ - 'Accept' => 'application/vnd.retailer.v8+csv', + 'Accept' => 'application/vnd.retailer.v9+csv', ]); return ExportOfferCollection::fromPayload($data); diff --git a/src/Util/RequestUtil.php b/src/Util/RequestUtil.php index 0d2286b..babf6b9 100644 --- a/src/Util/RequestUtil.php +++ b/src/Util/RequestUtil.php @@ -8,7 +8,7 @@ final class RequestUtil { - public const CONTENT_TYPE = 'application/vnd.retailer.v8+json'; + public const CONTENT_TYPE = 'application/vnd.retailer.v9+json'; public static function createRequest(string $method, string $uri, array $headers = [], array $query = [], mixed $body = null): Request { diff --git a/src/Util/ResponseUtil.php b/src/Util/ResponseUtil.php index 52b5d8f..fd69831 100644 --- a/src/Util/ResponseUtil.php +++ b/src/Util/ResponseUtil.php @@ -22,7 +22,7 @@ public static function assertOk(ResponseInterface $response): void public static function decodeBody(ResponseInterface $response): mixed { $contentType = $response->getHeaderLine('Content-Type'); - if (str_contains($contentType, 'application/vnd.retailer.v8+json')) { + if (str_contains($contentType, 'application/vnd.retailer.v9+json')) { return self::decodeJson($response); } diff --git a/tests/Integration/OffersTest.php b/tests/Integration/OffersTest.php index 08a4aa6..decd7eb 100644 --- a/tests/Integration/OffersTest.php +++ b/tests/Integration/OffersTest.php @@ -23,7 +23,7 @@ final class OffersTest extends IntegrationTestCase { /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_create_an_offer_export_csv_file + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_create_an_offer_export_csv_file */ public function create_an_offer_export_csv_file(): void { @@ -36,7 +36,7 @@ public function create_an_offer_export_csv_file(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_retrieve_an_offer_export_csv_file + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_retrieve_an_offer_export_csv_file */ public function retrieve_an_offer_export_csv_file(): void { @@ -49,7 +49,7 @@ public function retrieve_an_offer_export_csv_file(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_retrieve_an_offer + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_retrieve_an_offer */ public function retrieve_an_offer(): void { @@ -62,7 +62,7 @@ public function retrieve_an_offer(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 */ public function create_fbr_offer_for_ean_9780471117094_with_condition_new_with_vvb_proposition(): void { @@ -98,7 +98,7 @@ public function create_fbr_offer_for_ean_9780471117094_with_condition_new_with_v /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_create_fbr_offer_for_ean_0045496420253_with_condition_moderate + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_create_fbr_offer_for_ean_0045496420253_with_condition_moderate */ public function create_fbr_offer_for_ean_0045496420253_with_condition_moderate(): void @@ -136,7 +136,7 @@ function create_fbr_offer_for_ean_0045496420253_with_condition_moderate(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_delete_an_already_existing_offer_that_is_known_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_delete_an_already_existing_offer_that_is_known_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 */ public function delete_an_already_existing_offer_that_is_known_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8(): void @@ -150,7 +150,7 @@ function delete_an_already_existing_offer_that_is_known_with_offerid_13722de8_81 /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_update_the_price_for_a_specific_offer + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_update_the_price_for_a_specific_offer */ public function update_the_price_for_a_specific_offer(): void @@ -174,7 +174,7 @@ function update_the_price_for_a_specific_offer(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_update_the_current_stock_level_for_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_update_the_current_stock_level_for_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 */ public function update_the_current_stock_level_for_offerid_13722de8_8182_d161_5422_4a0a1caab5c8(): void @@ -190,7 +190,7 @@ function update_the_current_stock_level_for_offerid_13722de8_8182_d161_5422_4a0a /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8 */ public function update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8(): void @@ -214,7 +214,7 @@ function update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_542 /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-OFFERS.html#_update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8_2 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-OFFERS.html#_update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8_2 */ public function update_of_an_already_existing_offer_with_offerid_13722de8_8182_d161_5422_4a0a1caab5c8_2(): void diff --git a/tests/Integration/OrdersTest.php b/tests/Integration/OrdersTest.php index e15b693..0163ca6 100644 --- a/tests/Integration/OrdersTest.php +++ b/tests/Integration/OrdersTest.php @@ -11,7 +11,7 @@ final class OrdersTest extends IntegrationTestCase { /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_single_fbb_order_with_order_id_1042823870 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_single_fbb_order_with_order_id_1042823870 */ public function get_single_fbb_order_with_order_id_1042823870(): void { @@ -24,7 +24,7 @@ public function get_single_fbb_order_with_order_id_1042823870(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_single_fbr_order_with_order_id_1042831430 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_single_fbr_order_with_order_id_1042831430 */ public function get_single_fbr_order_with_order_id_1042831430(): void { @@ -37,7 +37,7 @@ public function get_single_fbr_order_with_order_id_1042831430(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_single_fbr_order_with_order_id_1042831430 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_single_fbr_order_with_order_id_1042831430 */ public function get_single_fbb_order_with_order_id_1043965710(): void { @@ -50,7 +50,7 @@ public function get_single_fbb_order_with_order_id_1043965710(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_single_fbr_order_with_order_id_a4k8290lp0 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_single_fbr_order_with_order_id_a4k8290lp0 */ public function get_single_fbr_order_with_order_id_a4k8290lp0(): void { @@ -63,7 +63,7 @@ public function get_single_fbr_order_with_order_id_a4k8290lp0(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_single_fbr_order_with_order_id_1043946570 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_single_fbr_order_with_order_id_1043946570 */ public function get_single_fbr_order_with_order_id_1043946570(): void { @@ -76,7 +76,7 @@ public function get_single_fbr_order_with_order_id_1043946570(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_single_fbr_order_with_order_id_b3k8290lp0 + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_single_fbr_order_with_order_id_b3k8290lp0 */ public function get_single_fbr_order_with_order_id_b3k8290lp0(): void { @@ -89,7 +89,7 @@ public function get_single_fbr_order_with_order_id_b3k8290lp0(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_fbb_orders_with_status_all + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_fbb_orders_with_status_all */ public function get_fbb_orders_with_status_all(): void { @@ -102,7 +102,7 @@ public function get_fbb_orders_with_status_all(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_fbb_orders_with_status_open + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_fbb_orders_with_status_open */ public function get_fbb_orders_with_status_open(): void { @@ -115,7 +115,7 @@ public function get_fbb_orders_with_status_open(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_fbr_orders_with_status_all + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_fbr_orders_with_status_all */ public function get_fbr_orders_with_status_all(): void { @@ -128,7 +128,7 @@ public function get_fbr_orders_with_status_all(): void /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-ORDERS.html#_get_fbr_orders_with_status_open + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-ORDERS.html#_get_fbr_orders_with_status_open */ public function get_fbr_orders_with_status_open(): void { diff --git a/tests/Integration/ProcessStatusesTest.php b/tests/Integration/ProcessStatusesTest.php index 438ce4d..fed0687 100644 --- a/tests/Integration/ProcessStatusesTest.php +++ b/tests/Integration/ProcessStatusesTest.php @@ -8,7 +8,7 @@ final class ProcessStatusesTest extends IntegrationTestCase { /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-PROCESS_STATUS.html#_generate_a_process_status_pending_using_entity_id_and_event_type + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-PROCESS_STATUS.html#_generate_a_process_status_pending_using_entity_id_and_event_type */ public function generate_a_process_status_pending_using_entity_id_and_event_type(): void { @@ -21,7 +21,7 @@ public function generate_a_process_status_pending_using_entity_id_and_event_type /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-PROCESS_STATUS.html#_generate_a_process_status_failure_using_entity_id_and_event_type + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-PROCESS_STATUS.html#_generate_a_process_status_failure_using_entity_id_and_event_type */ public function generate_a_process_status_failure_using_entity_id_and_event_type(): void { @@ -34,7 +34,7 @@ public function generate_a_process_status_failure_using_entity_id_and_event_type /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-PROCESS_STATUS.html#_generate_a_process_status_timeout_using_entity_id_and_event_type + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-PROCESS_STATUS.html#_generate_a_process_status_timeout_using_entity_id_and_event_type */ public function generate_a_process_status_timeout_using_entity_id_and_event_type(): void { @@ -47,7 +47,7 @@ public function generate_a_process_status_timeout_using_entity_id_and_event_type /** * @test - * @see https://api.bol.com/retailer/public/Retailer-API/demo/v8-PROCESS_STATUS.html#_generate_a_process_status_success_using_entity_id_and_event_type + * @see https://api.bol.com/retailer/public/Retailer-API/demo/v9-PROCESS_STATUS.html#_generate_a_process_status_success_using_entity_id_and_event_type */ public function generate_a_process_status_success_using_entity_id_and_event_type(): void { diff --git a/tests/Integration/SubscriptionsTest.php b/tests/Integration/SubscriptionsTest.php index 92fa826..437817d 100644 --- a/tests/Integration/SubscriptionsTest.php +++ b/tests/Integration/SubscriptionsTest.php @@ -8,7 +8,7 @@ final class SubscriptionsTest extends IntegrationTestCase { /** * @test - * @see https://api.bol.com/retailer/public/api/demo/v8-SUBSCRIPTIONS.html#_retrieve_push_notification_subscription_list + * @see https://api.bol.com/retailer/public/api/demo/v9-SUBSCRIPTIONS.html#_retrieve_push_notification_subscription_list */ public function retrieve_push_notification_subscription_list(): void { @@ -21,7 +21,7 @@ public function retrieve_push_notification_subscription_list(): void /** * @test - * @see https://api.bol.com/retailer/public/api/demo/v8-SUBSCRIPTIONS.html#_trigger_sending_of_a_test_push_notification_for_subscription + * @see https://api.bol.com/retailer/public/api/demo/v9-SUBSCRIPTIONS.html#_trigger_sending_of_a_test_push_notification_for_subscription */ public function trigger_sending_of_a_test_push_notification_for_subscription(): void { @@ -34,7 +34,7 @@ public function trigger_sending_of_a_test_push_notification_for_subscription(): /** * @test - * @see https://api.bol.com/retailer/public/api/demo/v8-SUBSCRIPTIONS.html#_create_push_notification_subscription + * @see https://api.bol.com/retailer/public/api/demo/v9-SUBSCRIPTIONS.html#_create_push_notification_subscription */ public function create_push_notification_subscription(): void { @@ -47,7 +47,7 @@ public function create_push_notification_subscription(): void /** * @test - * @see https://api.bol.com/retailer/public/api/demo/v8-SUBSCRIPTIONS.html#_delete_existing_push_notification_subscription + * @see https://api.bol.com/retailer/public/api/demo/v9-SUBSCRIPTIONS.html#_delete_existing_push_notification_subscription */ public function delete_existing_push_notification_subscription(): void { @@ -60,7 +60,7 @@ public function delete_existing_push_notification_subscription(): void /** * @test - * @see https://api.bol.com/retailer/public/api/demo/v8-SUBSCRIPTIONS.html#_retrieve_push_notification_subscription + * @see https://api.bol.com/retailer/public/api/demo/v9-SUBSCRIPTIONS.html#_retrieve_push_notification_subscription */ public function retrieve_push_notification_subscription(): void { @@ -73,7 +73,7 @@ public function retrieve_push_notification_subscription(): void /** * @test - * @see https://api.bol.com/retailer/public/api/demo/v8-SUBSCRIPTIONS.html#_update_existing_push_notification_subscription + * @see https://api.bol.com/retailer/public/api/demo/v9-SUBSCRIPTIONS.html#_update_existing_push_notification_subscription */ public function update_existing_push_notification_subscription(): void {