Skip to content

Commit

Permalink
Merge pull request #14 from productflowbv/features/kaufland-v2
Browse files Browse the repository at this point in the history
Features/kaufland v2
  • Loading branch information
jeroensurft authored Jan 10, 2023
2 parents 8f45ff1 + 8bd366d commit 6dd37b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![stability-wip](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg) ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/productflowbv/kaufland-php-client?include_prereleases) ![Unit Tests](https://github.com/productflowbv/kaufland-php-client/workflows/Unit%20Tests/badge.svg) [![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/productflowbv/kaufland-php-client/blob/master/LICENSE) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
![stability-wip](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg) ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/productflowbv/kaufland-php-client?include_prereleases) [![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/productflowbv/kaufland-php-client/blob/master/LICENSE) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)

# STILL WORK IN PROGRESS

Expand Down
6 changes: 3 additions & 3 deletions src/Resources/ProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public function show($ean)
* @param array $attributes
* @return array
*/
public function create($ean, array $attributes): array
public function create(array $attributes): array
{
return $this->connection->request('PUT', "product-data/{$ean}", ['body' => $attributes]);
return $this->connection->request('PUT', "product-data", ['body' => $attributes, 'query' => $this->getQuery()]);
}

/**
Expand All @@ -30,7 +30,7 @@ public function create($ean, array $attributes): array
*/
public function update(array $attributes): array
{
return $this->connection->request('PATCH', 'product-data', ['body' => $attributes]);
return $this->connection->request('PATCH', 'product-data', ['body' => $attributes, 'query' => $this->getQuery()]);
}

/**
Expand Down

0 comments on commit 6dd37b3

Please sign in to comment.