From 622920bc63b35c2e21ebfdcaaced9d1682eceae9 Mon Sep 17 00:00:00 2001
From: Jarrod Swift
Date: Tue, 13 Apr 2021 19:36:35 +0930
Subject: [PATCH 1/4] Inital boilerplate for implementing channel currency
assignments #53
---
RELEASE_NOTES.md | 10 +---
.../ChannelCurrencyAssignmentsApi.php | 54 +++++++++++++++++++
.../Channel/ChannelCurrencyAssignment.php | 12 +++++
.../ChannelCurrencyAssignmentResponse.php | 22 ++++++++
.../ChannelCurrencyAssignmentsResponse.php | 22 ++++++++
.../ChannelCurrencyAssignmentsApiTest.php | 18 +++++++
6 files changed, 129 insertions(+), 9 deletions(-)
create mode 100644 src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
create mode 100644 src/BigCommerce/ResourceModels/Channel/ChannelCurrencyAssignment.php
create mode 100644 src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentResponse.php
create mode 100644 src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php
create mode 100644 tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 35223e2b..132f151d 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,15 +1,7 @@
### New Features
-- Implement the missing _create_ and _update_ endpoints for Brands.
-- Implement [Channels APIs](https://developer.bigcommerce.com/api-reference/store-management/channels):
- - [Channels](https://developer.bigcommerce.com/api-reference/store-management/channels/channels/listchannels)
- - [Active Theme](https://developer.bigcommerce.com/api-reference/store-management/channels/channel-active-theme/get-channel-active-theme)
- - [Listings](https://developer.bigcommerce.com/api-reference/store-management/channels/channel-listings/listchannellistings)
- - [Site](https://developer.bigcommerce.com/api-reference/store-management/channels/channel-site/get-channel-site)
+- Implement the [Channel Currency Assignments API](https://developer.bigcommerce.com/api-reference/store-management/channels/channel-currency-assignments/post-channels-currency-assignments)
### Fixed Issues
-- Fixed 404 errors on scripts api (#55), thanks to @kishan93
-- Fixed issue where subscribers API was not accessible
-- Fixed issue where Widget Template endpoints were incorrect
diff --git a/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php b/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
new file mode 100644
index 00000000..a3de98a9
--- /dev/null
+++ b/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
@@ -0,0 +1,54 @@
+currencyAssignment;
+ }
+
+ protected function addData(stdClass $rawData): void
+ {
+ $this->currencyAssignment = new ChannelCurrencyAssignment($rawData);
+ }
+}
diff --git a/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php b/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php
new file mode 100644
index 00000000..203cee46
--- /dev/null
+++ b/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php
@@ -0,0 +1,22 @@
+getData();
+ }
+
+ protected function resourceClass(): string
+ {
+ return ChannelCurrencyAssignment::class;
+ }
+}
diff --git a/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php b/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
new file mode 100644
index 00000000..a0ba6acf
--- /dev/null
+++ b/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
@@ -0,0 +1,18 @@
+markTestIncomplete();
+ }
+
+ public function testCanGetAllCurrencyAssignments()
+ {
+ $this->markTestIncomplete();
+ }
+}
From 32a2852a6d2abcd205e5841ca75f5bdb32a9973c Mon Sep 17 00:00:00 2001
From: Jarrod Swift
Date: Tue, 13 Apr 2021 19:59:54 +0930
Subject: [PATCH 2/4] Implement the get all and get all for channel currency
assignments endpoints #53
---
.../ChannelCurrencyAssignmentsApi.php | 54 ++++++++++++-------
src/BigCommerce/Api/Channels/ChannelsApi.php | 5 ++
.../ChannelCurrencyAssignmentResponse.php | 4 ++
.../ChannelCurrencyAssignmentsApiTest.php | 15 ++++--
.../channel_currency_assignments.json | 12 +++++
5 files changed, 69 insertions(+), 21 deletions(-)
create mode 100644 tests/BigCommerce/responses/channel_currency_assignments.json
diff --git a/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php b/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
index a3de98a9..9dbc24d4 100644
--- a/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
+++ b/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
@@ -2,7 +2,13 @@
namespace BigCommerce\ApiV3\Api\Channels;
-use BigCommerce\ApiV3\Api\Generic\ResourceWithBatchUpdateApi;
+use BigCommerce\ApiV3\Api\Generic\BatchUpdateResource;
+use BigCommerce\ApiV3\Api\Generic\CreateResource;
+use BigCommerce\ApiV3\Api\Generic\DeleteResource;
+use BigCommerce\ApiV3\Api\Generic\GetAllResources;
+use BigCommerce\ApiV3\Api\Generic\UpdateResource;
+use BigCommerce\ApiV3\Api\Generic\V3ApiBase;
+use BigCommerce\ApiV3\ResponseModels\Channel\ChannelCurrencyAssignmentsResponse;
use BigCommerce\ApiV3\ResponseModels\PaginatedResponse;
use BigCommerce\ApiV3\ResponseModels\SingleResourceResponse;
@@ -11,44 +17,56 @@
*
*
*/
-class ChannelCurrencyAssignmentsApi extends ResourceWithBatchUpdateApi
+class ChannelCurrencyAssignmentsApi extends V3ApiBase
{
+ use GetAllResources;
+ use DeleteResource;
+ use UpdateResource;
+ use CreateResource;
+ use BatchUpdateResource;
- public function batchUpdate(array $resources): PaginatedResponse
- {
- // TODO: Implement batchUpdate() method.
- }
+// batchcreate?
- protected function multipleResourcesEndpoint(): string
+ private const CURRENCY_ASSIGNMENTS_ENDPOINT = 'channels/currency-assignments';
+ private const CURRENCY_ASSIGNMENT_ENDPOINT = 'channels/%d/currency-assignments';
+
+
+ public function create(): ChannelCurrencyAssignmentsResponse
{
- // TODO: Implement multipleResourcesEndpoint() method.
}
- protected function singleResourceEndpoint(): string
+ public function update(): ChannelCurrencyAssignmentsResponse
{
- // TODO: Implement singleResourceEndpoint() method.
}
- protected function resourceName(): string
+ public function batchUpdate(array $resources): ChannelCurrencyAssignmentsResponse
{
- // TODO: Implement resourceName() method.
+ // TODO: Implement batchUpdate() method.
}
- public function get(): SingleResourceResponse
+ public function getAll(array $filters = [], int $page = 1, int $limit = 250): ChannelCurrencyAssignmentsResponse
{
- // TODO: Implement get() method.
+ return new ChannelCurrencyAssignmentsResponse($this->getAllResources($filters, $page, $limit));
}
- public function getAll(array $filters = [], int $page = 1, int $limit = 250): PaginatedResponse
+ protected function multipleResourcesEndpoint(): string
{
- // TODO: Implement getAll() method.
+ return self::CURRENCY_ASSIGNMENTS_ENDPOINT;
}
- public function create(): SingleResourceResponse
+ /**
+ * Currency Assignment endpoints are different, they are all multiple resource endpoints, that may or may not
+ * be filtered by channel id.
+ *
+ * @return string
+ */
+ public function multipleResourceUrl(): string
{
+ return $this->getParentResourceId() ? $this->singleResourceUrl() : $this->multipleResourcesEndpoint();
}
- public function update(): SingleResourceResponse
+ public function singleResourceUrl(): string
{
+ return sprintf(self::CURRENCY_ASSIGNMENT_ENDPOINT, $this->getParentResourceId());
}
}
diff --git a/src/BigCommerce/Api/Channels/ChannelsApi.php b/src/BigCommerce/Api/Channels/ChannelsApi.php
index 0a6a2bc3..0c8a79bf 100644
--- a/src/BigCommerce/Api/Channels/ChannelsApi.php
+++ b/src/BigCommerce/Api/Channels/ChannelsApi.php
@@ -85,4 +85,9 @@ public function site(): ChannelSitesApi
{
return new ChannelSitesApi($this->getClient(), null, $this->getResourceId());
}
+
+ public function currencyAssignments(): ChannelCurrencyAssignmentsApi
+ {
+ return new ChannelCurrencyAssignmentsApi($this->getClient(), null, $this->getResourceId());
+ }
}
diff --git a/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentResponse.php b/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentResponse.php
index c1ee73eb..bde67224 100644
--- a/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentResponse.php
+++ b/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentResponse.php
@@ -6,6 +6,10 @@
use BigCommerce\ApiV3\ResponseModels\SingleResourceResponse;
use stdClass;
+/**
+ * Note this doesn't seem to be used by the API currently, it returns an array of assignments always. This class
+ * is included for completeness
+ */
class ChannelCurrencyAssignmentResponse extends SingleResourceResponse
{
private ChannelCurrencyAssignment $currencyAssignment;
diff --git a/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php b/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
index a0ba6acf..9846a01b 100644
--- a/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
+++ b/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
@@ -8,11 +8,20 @@ class ChannelCurrencyAssignmentsApiTest extends BigCommerceApiTest
{
public function testCanGetCurrencyAssignment()
{
- $this->markTestIncomplete();
+ $this->setReturnData('channel_currency_assignments.json');
+ $channelId = 1;
+
+ $currencyAssignments = $this->getApi()
+ ->channel($channelId)->currencyAssignments()->getAll()->getCurrencyAssignments();
+ $this->assertEquals("channels/$channelId/currency-assignments", $this->getLastRequestPath());
+ $this->assertEquals('AUD', $currencyAssignments[0]->default_currency);
}
- public function testCanGetAllCurrencyAssignments()
+ public function testCanGetAllChannelsCurrencyAssignments()
{
- $this->markTestIncomplete();
+ $this->setReturnData('channel_currency_assignments.json');
+ $currencyAssignments = $this->getApi()->channels()->currencyAssignments()->getAll()->getCurrencyAssignments();
+ $this->assertEquals('channels/currency-assignments', $this->getLastRequestPath());
+ $this->assertEquals('AUD', $currencyAssignments[0]->default_currency);
}
}
diff --git a/tests/BigCommerce/responses/channel_currency_assignments.json b/tests/BigCommerce/responses/channel_currency_assignments.json
new file mode 100644
index 00000000..84026f25
--- /dev/null
+++ b/tests/BigCommerce/responses/channel_currency_assignments.json
@@ -0,0 +1,12 @@
+{
+ "data": [
+ {
+ "channel_id": 1,
+ "enabled_currencies": [
+ "AUD"
+ ],
+ "default_currency": "AUD"
+ }
+ ],
+ "meta": {}
+}
From 5d13790a8a2b61e576af277889eb13b6b29e1e58 Mon Sep 17 00:00:00 2001
From: Jarrod Swift
Date: Tue, 13 Apr 2021 20:24:14 +0930
Subject: [PATCH 3/4] Implement the batch create and update endpoints for
Channel Currency Assignments #53
---
.../ChannelCurrencyAssignmentsApi.php | 35 ++++++++---
.../Api/Generic/BatchCreateResource.php | 40 ++++++++++++
.../ChannelCurrencyAssignmentsResponse.php | 3 +-
.../ChannelCurrencyAssignmentsApiTest.php | 61 +++++++++++++++++++
4 files changed, 131 insertions(+), 8 deletions(-)
create mode 100644 src/BigCommerce/Api/Generic/BatchCreateResource.php
diff --git a/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php b/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
index 9dbc24d4..44fa1571 100644
--- a/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
+++ b/src/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApi.php
@@ -2,20 +2,28 @@
namespace BigCommerce\ApiV3\Api\Channels;
+use BigCommerce\ApiV3\Api\Generic\BatchCreateResource;
use BigCommerce\ApiV3\Api\Generic\BatchUpdateResource;
use BigCommerce\ApiV3\Api\Generic\CreateResource;
use BigCommerce\ApiV3\Api\Generic\DeleteResource;
use BigCommerce\ApiV3\Api\Generic\GetAllResources;
use BigCommerce\ApiV3\Api\Generic\UpdateResource;
use BigCommerce\ApiV3\Api\Generic\V3ApiBase;
+use BigCommerce\ApiV3\ResourceModels\Channel\ChannelCurrencyAssignment;
use BigCommerce\ApiV3\ResponseModels\Channel\ChannelCurrencyAssignmentsResponse;
use BigCommerce\ApiV3\ResponseModels\PaginatedResponse;
-use BigCommerce\ApiV3\ResponseModels\SingleResourceResponse;
/**
* Channel Currency Assignments API
*
+ * Example for finding all the currency assignments. Note that the parent id is effectively just a filter.
*
+ * ```php
+ * $api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+ *
+ * $allCurrencyAssignments = $api->channels()->currencyAssignments()->getAll()->getCurrencyAssignments();
+ * $channelCurrencyAssignments = $api->channel(1)->currencyAssignments()->getAll()->getCurrencyAssignments();
+ * ```
*/
class ChannelCurrencyAssignmentsApi extends V3ApiBase
{
@@ -24,24 +32,38 @@ class ChannelCurrencyAssignmentsApi extends V3ApiBase
use UpdateResource;
use CreateResource;
use BatchUpdateResource;
-
-// batchcreate?
+ use BatchCreateResource;
private const CURRENCY_ASSIGNMENTS_ENDPOINT = 'channels/currency-assignments';
private const CURRENCY_ASSIGNMENT_ENDPOINT = 'channels/%d/currency-assignments';
- public function create(): ChannelCurrencyAssignmentsResponse
+ public function create(ChannelCurrencyAssignment $currencyAssignment): ChannelCurrencyAssignmentsResponse
+ {
+ return new ChannelCurrencyAssignmentsResponse($this->createResource($currencyAssignment));
+ }
+
+ public function update(ChannelCurrencyAssignment $currencyAssignment): ChannelCurrencyAssignmentsResponse
{
+ return new ChannelCurrencyAssignmentsResponse($this->updateResource($currencyAssignment));
}
- public function update(): ChannelCurrencyAssignmentsResponse
+ /**
+ * @param ChannelCurrencyAssignment[] $resources
+ * @return ChannelCurrencyAssignmentsResponse
+ */
+ public function batchCreate(array $resources): PaginatedResponse
{
+ return ChannelCurrencyAssignmentsResponse::buildFromMultipleResponses($this->batchCreateResource($resources));
}
+ /**
+ * @param ChannelCurrencyAssignment[] $resources
+ * @return ChannelCurrencyAssignmentsResponse
+ */
public function batchUpdate(array $resources): ChannelCurrencyAssignmentsResponse
{
- // TODO: Implement batchUpdate() method.
+ return ChannelCurrencyAssignmentsResponse::buildFromMultipleResponses($this->batchUpdateResource($resources));
}
public function getAll(array $filters = [], int $page = 1, int $limit = 250): ChannelCurrencyAssignmentsResponse
@@ -64,7 +86,6 @@ public function multipleResourceUrl(): string
{
return $this->getParentResourceId() ? $this->singleResourceUrl() : $this->multipleResourcesEndpoint();
}
-
public function singleResourceUrl(): string
{
return sprintf(self::CURRENCY_ASSIGNMENT_ENDPOINT, $this->getParentResourceId());
diff --git a/src/BigCommerce/Api/Generic/BatchCreateResource.php b/src/BigCommerce/Api/Generic/BatchCreateResource.php
new file mode 100644
index 00000000..03cc7d90
--- /dev/null
+++ b/src/BigCommerce/Api/Generic/BatchCreateResource.php
@@ -0,0 +1,40 @@
+maxCreateBatchSize());
+ $responses = [];
+ foreach ($chunks as $chunk) {
+ $responses[] = $this->getClient()->getRestClient()->post(
+ $this->multipleResourcesEndpoint(),
+ [
+ RequestOptions::JSON => $chunk,
+ ]
+ );
+ }
+
+ return $responses;
+ }
+}
diff --git a/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php b/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php
index 203cee46..14b6531f 100644
--- a/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php
+++ b/src/BigCommerce/ResponseModels/Channel/ChannelCurrencyAssignmentsResponse.php
@@ -3,9 +3,10 @@
namespace BigCommerce\ApiV3\ResponseModels\Channel;
use BigCommerce\ApiV3\ResourceModels\Channel\ChannelCurrencyAssignment;
+use BigCommerce\ApiV3\ResponseModels\PaginatedBatchableResponse;
use BigCommerce\ApiV3\ResponseModels\PaginatedResponse;
-class ChannelCurrencyAssignmentsResponse extends PaginatedResponse
+class ChannelCurrencyAssignmentsResponse extends PaginatedBatchableResponse
{
/**
* @return ChannelCurrencyAssignment[]
diff --git a/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php b/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
index 9846a01b..961c0b2a 100644
--- a/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
+++ b/tests/BigCommerce/Api/Channels/ChannelCurrencyAssignmentsApiTest.php
@@ -2,6 +2,7 @@
namespace BigCommerce\Tests\Api\Channels;
+use BigCommerce\ApiV3\ResourceModels\Channel\ChannelCurrencyAssignment;
use BigCommerce\Tests\BigCommerceApiTest;
class ChannelCurrencyAssignmentsApiTest extends BigCommerceApiTest
@@ -24,4 +25,64 @@ public function testCanGetAllChannelsCurrencyAssignments()
$this->assertEquals('channels/currency-assignments', $this->getLastRequestPath());
$this->assertEquals('AUD', $currencyAssignments[0]->default_currency);
}
+
+ /**
+ * @return ChannelCurrencyAssignment[]
+ */
+ private function getCurrencyAssignments(): array
+ {
+ $currencyAssignments = [new ChannelCurrencyAssignment(), new ChannelCurrencyAssignment()];
+
+ $currencyAssignments[0]->channel_id = 1;
+ $currencyAssignments[0]->enabled_currencies = ['USD', 'AUD'];
+ $currencyAssignments[0]->default_currency = 'AUD';
+
+ $currencyAssignments[0]->channel_id = 2;
+ $currencyAssignments[0]->enabled_currencies = ['USD', 'AUD', 'NZD'];
+ $currencyAssignments[0]->default_currency = 'NZD';
+
+ return $currencyAssignments;
+ }
+
+ private function getCurrencyAssignment(): ChannelCurrencyAssignment
+ {
+ $currencyAssignment = new ChannelCurrencyAssignment();
+ $currencyAssignment->channel_id = 1;
+ $currencyAssignment->enabled_currencies = ['AUD', 'NZD', 'CAD'];
+ $currencyAssignment->default_currency = 'CAD';
+
+ return $currencyAssignment;
+ }
+
+ public function testCanCreateMultipleCurrencyAssignments()
+ {
+ $this->setReturnData('channel_currency_assignments.json');
+
+ $this->getApi()->channels()->currencyAssignments()->batchCreate($this->getCurrencyAssignments());
+ $this->assertEquals('channels/currency-assignments', $this->getLastRequestPath());
+ }
+
+ public function testCanUpdateMultipleCurrencyAssignments()
+ {
+ $this->setReturnData('channel_currency_assignments.json');
+
+ $this->getApi()->channels()->currencyAssignments()->batchUpdate($this->getCurrencyAssignments());
+ $this->assertEquals('channels/currency-assignments', $this->getLastRequestPath());
+ }
+
+ public function testCanCreateCurrencyAssignment()
+ {
+ $this->setReturnData('channel_currency_assignments.json');
+ $channelId = 1;
+ $this->getApi()->channel(1)->currencyAssignments()->create($this->getCurrencyAssignment());
+ $this->assertEquals("channels/$channelId/currency-assignments", $this->getLastRequestPath());
+ }
+
+ public function testCanUpdateCurrencyAssignment()
+ {
+ $this->setReturnData('channel_currency_assignments.json');
+ $channelId = 1;
+ $this->getApi()->channel(1)->currencyAssignments()->update($this->getCurrencyAssignment());
+ $this->assertEquals("channels/$channelId/currency-assignments", $this->getLastRequestPath());
+ }
}
From 14ae4396d076281141de485b663ff88799312241 Mon Sep 17 00:00:00 2001
From: Jarrod Swift
Date: Tue, 13 Apr 2021 20:31:14 +0930
Subject: [PATCH 4/4] Regenerate documentation with the addition of Channels
APIs
---
...Commerce-ApiV3-Api-Carts-CartItemsApi.html | 33 +-
...e-ApiV3-Api-Carts-CartRedirectUrlsApi.html | 27 +-
.../BigCommerce-ApiV3-Api-Carts-CartsApi.html | 28 +-
...gCommerce-ApiV3-Api-Catalog-BrandsApi.html | 20 +-
...i-Catalog-Categories-CategoryImageApi.html | 37 +-
...alog-Categories-CategoryMetafieldsApi.html | 38 +-
...Catalog-Products-ProductMetafieldsApi.html | 34 +-
...hannels-ChannelCurrencyAssignmentsApi.html | 691 ++++++++
...ApiV3-Api-Channels-ChannelListingsApi.html | 581 +++++++
...ce-ApiV3-Api-Channels-ChannelSitesApi.html | 557 +++++++
...mmerce-ApiV3-Api-Channels-ChannelsApi.html | 834 ++++++++++
...erce-ApiV3-Api-Customers-CustomersApi.html | 114 +-
...ApiV3-Api-Generic-BatchCreateResource.html | 237 +++
...ApiV3-Api-Generic-ResourceApiNoDelete.html | 444 +++++
docs/classes/BigCommerce-ApiV3-Client.html | 146 +-
...-ApiV3-ResourceModels-Channel-Channel.html | 1433 +++++++++++++++++
...els-Channel-ChannelCurrencyAssignment.html | 363 +++++
...ResourceModels-Channel-ChannelListing.html | 623 +++++++
...eModels-Channel-ChannelListingVariant.html | 585 +++++++
...V3-ResourceModels-Channel-ChannelSite.html | 475 ++++++
...sourceModels-Channel-ChannelSiteRoute.html | 412 +++++
...3-ResourceModels-Channel-ChannelTheme.html | 881 ++++++++++
...ls-Channel-ChannelActiveThemeResponse.html | 246 +++
...nel-ChannelCurrencyAssignmentResponse.html | 249 +++
...el-ChannelCurrencyAssignmentsResponse.html | 337 ++++
...Models-Channel-ChannelListingResponse.html | 246 +++
...odels-Channel-ChannelListingsResponse.html | 286 ++++
...esponseModels-Channel-ChannelResponse.html | 246 +++
...nseModels-Channel-ChannelSiteResponse.html | 246 +++
...sponseModels-Channel-ChannelsResponse.html | 286 ++++
.../bigcommerce-api-carts-cartitemsapi.html | 2 +-
...ommerce-api-carts-cartredirecturlsapi.html | 2 +-
.../files/bigcommerce-api-carts-cartsapi.html | 2 +-
...i-catalog-categories-categoryimageapi.html | 2 +-
...alog-categories-categorymetafieldsapi.html | 2 +-
...catalog-products-productmetafieldsapi.html | 2 +-
...hannels-channelcurrencyassignmentsapi.html | 135 ++
...merce-api-channels-channellistingsapi.html | 135 ++
.../bigcommerce-api-channels-channelsapi.html | 135 ++
...commerce-api-channels-channelsitesapi.html | 135 ++
...merce-api-generic-batchcreateresource.html | 135 ++
...merce-api-generic-resourceapinodelete.html | 135 ++
...mmerce-resourcemodels-channel-channel.html | 135 ++
...els-channel-channelcurrencyassignment.html | 135 ++
...resourcemodels-channel-channellisting.html | 135 ++
...emodels-channel-channellistingvariant.html | 135 ++
...ce-resourcemodels-channel-channelsite.html | 135 ++
...sourcemodels-channel-channelsiteroute.html | 135 ++
...e-resourcemodels-channel-channeltheme.html | 135 ++
...ls-channel-channelactivethemeresponse.html | 135 ++
...nel-channelcurrencyassignmentresponse.html | 136 ++
...el-channelcurrencyassignmentsresponse.html | 135 ++
...models-channel-channellistingresponse.html | 135 ++
...odels-channel-channellistingsresponse.html | 135 ++
...esponsemodels-channel-channelresponse.html | 135 ++
...nsemodels-channel-channelsiteresponse.html | 135 ++
...sponsemodels-channel-channelsresponse.html | 135 ++
docs/indices/files.html | 21 +
docs/js/searchIndex.js | 782 ++++++++-
.../bigcommerce-apiv3-api-carts.html | 6 +-
...commerce-apiv3-api-catalog-categories.html | 4 +-
...igcommerce-apiv3-api-catalog-products.html | 2 +-
.../bigcommerce-apiv3-api-channels.html | 137 ++
.../bigcommerce-apiv3-api-generic.html | 4 +
docs/namespaces/bigcommerce-apiv3-api.html | 1 +
...commerce-apiv3-resourcemodels-channel.html | 143 ++
.../bigcommerce-apiv3-resourcemodels.html | 1 +
...commerce-apiv3-responsemodels-channel.html | 146 ++
.../bigcommerce-apiv3-responsemodels.html | 1 +
.../packages/BigCommerce-ApiV3-Api-Carts.html | 131 ++
docs/packages/BigCommerce-ApiV3-Api.html | 127 ++
docs/packages/BigCommerce-ApiV3.html | 1 +
docs/packages/BigCommerce.html | 55 +-
73 files changed, 15021 insertions(+), 124 deletions(-)
create mode 100644 docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelCurrencyAssignmentsApi.html
create mode 100644 docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelListingsApi.html
create mode 100644 docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelSitesApi.html
create mode 100644 docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelsApi.html
create mode 100644 docs/classes/BigCommerce-ApiV3-Api-Generic-BatchCreateResource.html
create mode 100644 docs/classes/BigCommerce-ApiV3-Api-Generic-ResourceApiNoDelete.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-Channel.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-ChannelCurrencyAssignment.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-ChannelListing.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-ChannelListingVariant.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-ChannelSite.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-ChannelSiteRoute.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResourceModels-Channel-ChannelTheme.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelActiveThemeResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelCurrencyAssignmentResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelCurrencyAssignmentsResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelListingResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelListingsResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelSiteResponse.html
create mode 100644 docs/classes/BigCommerce-ApiV3-ResponseModels-Channel-ChannelsResponse.html
create mode 100644 docs/files/bigcommerce-api-channels-channelcurrencyassignmentsapi.html
create mode 100644 docs/files/bigcommerce-api-channels-channellistingsapi.html
create mode 100644 docs/files/bigcommerce-api-channels-channelsapi.html
create mode 100644 docs/files/bigcommerce-api-channels-channelsitesapi.html
create mode 100644 docs/files/bigcommerce-api-generic-batchcreateresource.html
create mode 100644 docs/files/bigcommerce-api-generic-resourceapinodelete.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channel.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channelcurrencyassignment.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channellisting.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channellistingvariant.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channelsite.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channelsiteroute.html
create mode 100644 docs/files/bigcommerce-resourcemodels-channel-channeltheme.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channelactivethemeresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channelcurrencyassignmentresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channelcurrencyassignmentsresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channellistingresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channellistingsresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channelresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channelsiteresponse.html
create mode 100644 docs/files/bigcommerce-responsemodels-channel-channelsresponse.html
create mode 100644 docs/namespaces/bigcommerce-apiv3-api-channels.html
create mode 100644 docs/namespaces/bigcommerce-apiv3-resourcemodels-channel.html
create mode 100644 docs/namespaces/bigcommerce-apiv3-responsemodels-channel.html
create mode 100644 docs/packages/BigCommerce-ApiV3-Api-Carts.html
create mode 100644 docs/packages/BigCommerce-ApiV3-Api.html
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Carts-CartItemsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Carts-CartItemsApi.html
index 631ba221..4f44e5d5 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Carts-CartItemsApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Carts-CartItemsApi.html
@@ -97,13 +97,24 @@ V3ApiBase
+ Cart Items API
- Add constructors and some basic scaffolding that will work for all API classes
-regardless of which endpoints they implement
+ Example for adding a line item to a cart:
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+
+$lineItem = new CartItem();
+$lineItem->line_items[] = [
+ "sku" => "made-up",
+ "name" => "My product",
+ "quantity" => 33,
+ "list_price" => 55
+];
+
+$api()->cart($id)->items()->add($lineItem, CartItemsApi::INCLUDE_REDIRECT_URLS);
+
@@ -243,7 +254,7 @@ The Cart returns an abbreviated result. Use this to return digital items product options.
@@ -270,7 +281,7 @@ The Cart returns an abbreviated result. Use this to return physical items product options.
@@ -297,7 +308,7 @@ Create a direct link to a Cart.
@@ -393,7 +404,7 @@
@@ -602,7 +613,7 @@
@@ -718,7 +729,7 @@
@@ -750,7 +761,7 @@
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Carts-CartRedirectUrlsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Carts-CartRedirectUrlsApi.html
index bdcfaa63..e0c3f523 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Carts-CartRedirectUrlsApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Carts-CartRedirectUrlsApi.html
@@ -97,13 +97,28 @@ V3ApiBase
-
- Add constructors and some basic scaffolding that will work for all API classes
-regardless of which endpoints they implement
+ Cart Redirect URLS
+
+ Creates a Cart redirect URL for redirecting a shopper to an already created cart using the cartId.
+Usage Notes
+
+Redirect URLs can also be created via Create a Cart requests by appending include=redirect_urls.
+A Carts redirect URLs may only be used once.
+Once a redirect URL has been visited, it will be invalidated and cannot be used again.
+If your application requires URLs to be visited more than once, consider generating a fresh one each time you need
+to restore a cart, and redirecting to the URL from your own application.
+Redirect URLs can be generated only from carts created using the Server to Server Cart API.
+To restore a cart that was created on the storefront, either by a shopper or the Storefront Cart API, first
+recreate the cart using the Server to Server Cart API.
+
+Example:
+
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+$urls = $api->cart('sadfghj')->redirectUrls()->getRedirectUrls();
+
@@ -264,7 +279,7 @@
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Carts-CartsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Carts-CartsApi.html
index 4cca0d36..a0effbb8 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Carts-CartsApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Carts-CartsApi.html
@@ -97,13 +97,17 @@ V3ApiBase
+ Carts API
- Add constructors and some basic scaffolding that will work for all API classes
-regardless of which endpoints they implement
+ The is the store management access for creating and viewing carts (not for customers to access carts)
+Example fetching the contents of a cart:
+
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+$cart = $api->carts('abcdefg;)->get()->getCart();
+
@@ -299,7 +303,7 @@
@@ -341,7 +345,7 @@
@@ -501,7 +505,7 @@
@@ -543,7 +547,7 @@
@@ -575,7 +579,7 @@
@@ -607,7 +611,7 @@
@@ -681,7 +685,7 @@
@@ -713,7 +717,7 @@
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Catalog-BrandsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Catalog-BrandsApi.html
index 9cb2bb69..74dd0ab6 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Catalog-BrandsApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Catalog-BrandsApi.html
@@ -363,7 +363,7 @@ Creates a Brand.
@@ -475,7 +475,7 @@ Returns a list of Brands.
@@ -494,7 +494,8 @@ Parameters
: array<string, mixed>
= []
-
@@ -555,7 +556,7 @@ Get all brands, fetching multiple pages
@@ -574,7 +575,8 @@ Parameters
: array<string|int, mixed>
= []
-
@@ -713,7 +715,7 @@ Get the Brand Image API for this brand
@@ -767,7 +769,7 @@ Get the singular Brand Metafields API
@@ -828,7 +830,7 @@ Get the Plural BrandMetafields API
@@ -878,7 +880,7 @@ Update a Brand
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryImageApi.html b/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryImageApi.html
index b64cbbf9..0fd4de23 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryImageApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryImageApi.html
@@ -98,16 +98,43 @@ V3ApiBase
+ Category Images API
+
+ Usage (creating an image for Category with ID of 1):
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
- Add constructors and some basic scaffolding that will work for all API classes
-regardless of which endpoints they implement
+$api->catalog()->category(1)->image()->create('/path/to/image.png');
+
+
+
+
+ see
+
+
+ https://developer.bigcommerce.com/api-reference/store-management/catalog/brand-images/createbrandimage
+
+
+
+
+
+ see
+
+
+ CreateImage::create()
+
+
+
+
+
@@ -188,7 +215,7 @@
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryMetafieldsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryMetafieldsApi.html
index 2269d7af..36235093 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryMetafieldsApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Catalog-Categories-CategoryMetafieldsApi.html
@@ -98,16 +98,38 @@ V3ApiBase
+ Category Metafields API
- Add constructors and some basic scaffolding that will work for all API classes
-regardless of which endpoints they implement
+ Usage:
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+
+// Get All Metafields
+$metafields = $api->catalog()->category(1)->metafields();
+
+// Delete a single Metafield
+$api->catalog()->category(1)->metafield($metafields[0]->id)->delete();
+
+
+
+
+ see
+
+
+ https://developer.bigcommerce.com/api-reference/store-management/catalog/category-metafields/getcategorymetafieldsbycategoryid
+
+
+
+
+
@@ -258,7 +280,7 @@
@@ -300,7 +322,7 @@
@@ -332,7 +354,7 @@
@@ -484,7 +506,7 @@
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Catalog-Products-ProductMetafieldsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Catalog-Products-ProductMetafieldsApi.html
index a1e9d14d..a38370e0 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Catalog-Products-ProductMetafieldsApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Catalog-Products-ProductMetafieldsApi.html
@@ -98,16 +98,38 @@ V3ApiBase
+ Product Metafields API
- Add constructors and some basic scaffolding that will work for all API classes
-regardless of which endpoints they implement
+ Usage:
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+
+// Get All Metafields
+$metafields = $api->catalog()->product(1)->metafields();
+
+// Delete a single Metafield
+$api->catalog()->product(1)->metafield($metafields[0]->id)->delete();
+
+
+
+
+ see
+
+
+ https://developer.bigcommerce.com/api-reference/store-management/catalog/product-metafields/getproductmetafieldsbyproductid
+
+
+
+
+
@@ -244,7 +266,7 @@
@@ -276,7 +298,7 @@
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelCurrencyAssignmentsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelCurrencyAssignmentsApi.html
new file mode 100644
index 00000000..62bfa451
--- /dev/null
+++ b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelCurrencyAssignmentsApi.html
@@ -0,0 +1,691 @@
+
+
+
+
+ Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ChannelCurrencyAssignmentsApi
+
+
+ extends V3ApiBase
+
+
+
+
+
+
+
+
+ Channel Currency Assignments API
+
+ Example for finding all the currency assignments. Note that the parent id is effectively just a filter.
+$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);
+
+$allCurrencyAssignments = $api->channels()->currencyAssignments()->getAll()->getCurrencyAssignments();
+$channelCurrencyAssignments = $api->channel(1)->currencyAssignments()->getAll()->getCurrencyAssignments();
+
+
+
+
+
+
+
+
+
+
+
+ Table of Contents
+
+
+
+
+
+ __construct()
+
+ : mixed
+
+
+
+
+ batchCreate()
+
+ : ChannelCurrencyAssignmentsResponse
+
+
+
+
+ batchUpdate()
+
+ : ChannelCurrencyAssignmentsResponse
+
+
+
+
+ create()
+
+ : ChannelCurrencyAssignmentsResponse
+
+
+
+
+ getAll()
+
+ : ChannelCurrencyAssignmentsResponse
+
+
+
+
+ getClient()
+
+ : Client
+
+
+
+
+ getParentResourceId()
+
+ : int|null
+
+
+
+
+ getResourceId()
+
+ : int|null
+
+
+
+
+ multipleResourceUrl()
+
+ : string
+
+Currency Assignment endpoints are different, they are all multiple resource endpoints, that may or may not
+be filtered by channel id.
+
+
+ singleResourceUrl()
+
+ : string
+
+
+
+
+ update()
+
+ : ChannelCurrencyAssignmentsResponse
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __construct()
+
+
+
+
+
+
+ public
+ __construct ( Client $client [ , int|null $resourceId = null ] [ , int|null $parentResourceId = null ] ) : mixed
+
+
+ Parameters
+
+
+ $client
+ : Client
+
+
+
+
+
+ $resourceId
+ : int|null
+ = null
+
+
+
+
+ $parentResourceId
+ : int|null
+ = null
+
+
+
+
+
+
+
+ Return values
+ mixed
+ —
+
+
+
+
+
+
+ batchCreate()
+
+
+
+
+
+
+ public
+ batchCreate ( array<string|int, ChannelCurrencyAssignment > $resources ) : ChannelCurrencyAssignmentsResponse
+
+
+
+ Parameters
+
+
+ $resources
+ : array<string|int, ChannelCurrencyAssignment >
+
+
+
+
+
+
+
+
+
+ Return values
+ ChannelCurrencyAssignmentsResponse
+ —
+
+
+
+
+
+
+ batchUpdate()
+
+
+
+
+
+
+ public
+ batchUpdate ( array<string|int, ChannelCurrencyAssignment > $resources ) : ChannelCurrencyAssignmentsResponse
+
+
+
+ Parameters
+
+
+ $resources
+ : array<string|int, ChannelCurrencyAssignment >
+
+
+
+
+
+
+
+
+
+ Return values
+ ChannelCurrencyAssignmentsResponse
+ —
+
+
+
+
+
+
+ create()
+
+
+
+
+
+
+ public
+ create ( ChannelCurrencyAssignment $currencyAssignment ) : ChannelCurrencyAssignmentsResponse
+
+
+ Parameters
+
+
+ $currencyAssignment
+ : ChannelCurrencyAssignment
+
+
+
+
+
+
+
+
+ Return values
+ ChannelCurrencyAssignmentsResponse
+ —
+
+
+
+
+
+
+ getAll()
+
+
+
+
+
+
+ public
+ getAll ( [ array<string|int, mixed> $filters = [] ] [ , int $page = 1 ] [ , int $limit = 250 ] ) : ChannelCurrencyAssignmentsResponse
+
+
+ Parameters
+
+
+ $filters
+ : array<string|int, mixed>
+ = []
+
+
+
+
+ $page
+ : int
+ = 1
+
+
+
+
+ $limit
+ : int
+ = 250
+
+
+
+
+
+
+
+ Return values
+ ChannelCurrencyAssignmentsResponse
+ —
+
+
+
+
+
+
+ getClient()
+
+
+
+
+
+
+ public
+ getClient ( ) : Client
+
+
+
+
+
+ Return values
+ Client
+ —
+
+
+
+
+
+
+ getParentResourceId()
+
+
+
+
+
+
+ public
+ getParentResourceId ( ) : int|null
+
+
+
+
+
+ Return values
+ int|null
+ —
+
+
+
+
+
+
+ getResourceId()
+
+
+
+
+
+
+ public
+ getResourceId ( ) : int|null
+
+
+
+
+
+ Return values
+ int|null
+ —
+
+
+
+
+
+
+ multipleResourceUrl()
+
+
+
+
+ Currency Assignment endpoints are different, they are all multiple resource endpoints, that may or may not
+be filtered by channel id.
+
+
+ public
+ multipleResourceUrl ( ) : string
+
+
+
+
+
+
+ Return values
+ string
+ —
+
+
+
+
+
+
+ singleResourceUrl()
+
+
+
+
+
+
+ public
+ singleResourceUrl ( ) : string
+
+
+
+
+
+ Return values
+ string
+ —
+
+
+
+
+
+
+ update()
+
+
+
+
+
+
+ public
+ update ( ChannelCurrencyAssignment $currencyAssignment ) : ChannelCurrencyAssignmentsResponse
+
+
+ Parameters
+
+
+ $currencyAssignment
+ : ChannelCurrencyAssignment
+
+
+
+
+
+
+
+
+ Return values
+ ChannelCurrencyAssignmentsResponse
+ —
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelListingsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelListingsApi.html
new file mode 100644
index 00000000..be3c4548
--- /dev/null
+++ b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelListingsApi.html
@@ -0,0 +1,581 @@
+
+
+
+
+ Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ChannelListingsApi
+
+
+ extends ResourceApiNoDelete
+
+
+
+
+
+
+
+
+ V3ApiBase
+
+ Add constructors and some basic scaffolding that will work for all API classes
+regardless of which endpoints they implement
+
+
+
+
+
+
+
+
+
+
+ Table of Contents
+
+
+
+
+
+ __construct()
+
+ : mixed
+
+
+
+
+ create()
+
+ : ChannelListingResponse
+
+
+
+
+ delete()
+
+ : ResponseInterface
+
+
+
+
+ get()
+
+ : ChannelListingResponse
+
+
+
+
+ getAll()
+
+ : ChannelListingsResponse
+
+
+
+
+ getClient()
+
+ : Client
+
+
+
+
+ getParentResourceId()
+
+ : int|null
+
+
+
+
+ getResourceId()
+
+ : int|null
+
+
+
+
+ update()
+
+ : ChannelListingResponse
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __construct()
+
+
+
+
+
+
+ public
+ __construct ( Client $client [ , int|null $resourceId = null ] [ , int|null $parentResourceId = null ] ) : mixed
+
+
+ Parameters
+
+
+ $client
+ : Client
+
+
+
+
+
+ $resourceId
+ : int|null
+ = null
+
+
+
+
+ $parentResourceId
+ : int|null
+ = null
+
+
+
+
+
+
+
+ Return values
+ mixed
+ —
+
+
+
+
+
+
+ create()
+
+
+
+
+
+
+ public
+ create ( ChannelListing $channelListing ) : ChannelListingResponse
+
+
+ Parameters
+
+
+ $channelListing
+ : ChannelListing
+
+
+
+
+
+
+
+
+ Return values
+ ChannelListingResponse
+ —
+
+
+
+
+
+
+ delete()
+
+
+
+
+
+
+ public
+ delete ( ) : ResponseInterface
+
+
+
+
+
+ Return values
+ ResponseInterface
+ —
+
+
+
+
+
+
+ get()
+
+
+
+
+
+
+ public
+ get ( ) : ChannelListingResponse
+
+
+
+
+
+ Return values
+ ChannelListingResponse
+ —
+
+
+
+
+
+
+ getAll()
+
+
+
+
+
+
+ public
+ getAll ( [ array<string|int, mixed> $filters = [] ] [ , int $page = 1 ] [ , int $limit = 250 ] ) : ChannelListingsResponse
+
+
+ Parameters
+
+
+ $filters
+ : array<string|int, mixed>
+ = []
+
+
+
+
+ $page
+ : int
+ = 1
+
+
+
+
+ $limit
+ : int
+ = 250
+
+
+
+
+
+
+
+ Return values
+ ChannelListingsResponse
+ —
+
+
+
+
+
+
+ getClient()
+
+
+
+
+
+
+ public
+ getClient ( ) : Client
+
+
+
+
+
+ Return values
+ Client
+ —
+
+
+
+
+
+
+ getParentResourceId()
+
+
+
+
+
+
+ public
+ getParentResourceId ( ) : int|null
+
+
+
+
+
+ Return values
+ int|null
+ —
+
+
+
+
+
+
+ getResourceId()
+
+
+
+
+
+
+ public
+ getResourceId ( ) : int|null
+
+
+
+
+
+ Return values
+ int|null
+ —
+
+
+
+
+
+
+ update()
+
+
+
+
+
+
+ public
+ update ( ChannelListing $channelListing ) : ChannelListingResponse
+
+
+ Parameters
+
+
+ $channelListing
+ : ChannelListing
+
+
+
+
+
+
+
+
+ Return values
+ ChannelListingResponse
+ —
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelSitesApi.html b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelSitesApi.html
new file mode 100644
index 00000000..a6d0381d
--- /dev/null
+++ b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelSitesApi.html
@@ -0,0 +1,557 @@
+
+
+
+
+ Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ChannelSitesApi
+
+
+ extends V3ApiBase
+
+
+
+
+
+
+
+
+ V3ApiBase
+
+ Add constructors and some basic scaffolding that will work for all API classes
+regardless of which endpoints they implement
+
+
+
+
+
+
+
+
+
+
+ Table of Contents
+
+
+
+
+
+ __construct()
+
+ : mixed
+
+
+
+
+ create()
+
+ : ChannelSiteResponse
+
+
+
+
+ get()
+
+ : ChannelSiteResponse
+
+
+
+
+ getClient()
+
+ : Client
+
+
+
+
+ getParentResourceId()
+
+ : int|null
+
+
+
+
+ getResourceId()
+
+ : int|null
+
+
+
+
+ multipleResourceUrl()
+
+ : string
+
+
+
+
+ singleResourceUrl()
+
+ : string
+
+
+
+
+ update()
+
+ : ChannelSiteResponse
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ __construct()
+
+
+
+
+
+
+ public
+ __construct ( Client $client [ , int|null $resourceId = null ] [ , int|null $parentResourceId = null ] ) : mixed
+
+
+ Parameters
+
+
+ $client
+ : Client
+
+
+
+
+
+ $resourceId
+ : int|null
+ = null
+
+
+
+
+ $parentResourceId
+ : int|null
+ = null
+
+
+
+
+
+
+
+ Return values
+ mixed
+ —
+
+
+
+
+
+
+ create()
+
+
+
+
+
+
+ public
+ create ( ChannelSite $site ) : ChannelSiteResponse
+
+
+ Parameters
+
+
+ $site
+ : ChannelSite
+
+
+
+
+
+
+
+
+ Return values
+ ChannelSiteResponse
+ —
+
+
+
+
+
+
+ get()
+
+
+
+
+
+
+ public
+ get ( ) : ChannelSiteResponse
+
+
+
+
+
+ Return values
+ ChannelSiteResponse
+ —
+
+
+
+
+
+
+ getClient()
+
+
+
+
+
+
+ public
+ getClient ( ) : Client
+
+
+
+
+
+ Return values
+ Client
+ —
+
+
+
+
+
+
+ getParentResourceId()
+
+
+
+
+
+
+ public
+ getParentResourceId ( ) : int|null
+
+
+
+
+
+ Return values
+ int|null
+ —
+
+
+
+
+
+
+ getResourceId()
+
+
+
+
+
+
+ public
+ getResourceId ( ) : int|null
+
+
+
+
+
+ Return values
+ int|null
+ —
+
+
+
+
+
+
+ multipleResourceUrl()
+
+
+
+
+
+
+ public
+ multipleResourceUrl ( ) : string
+
+
+
+
+
+ Return values
+ string
+ —
+
+
+
+
+
+
+ singleResourceUrl()
+
+
+
+
+
+
+ public
+ singleResourceUrl ( ) : string
+
+
+
+
+
+ Return values
+ string
+ —
+
+
+
+
+
+
+ update()
+
+
+
+
+
+
+ public
+ update ( ChannelSite $site ) : ChannelSiteResponse
+
+
+ Parameters
+
+
+ $site
+ : ChannelSite
+
+
+
+
+
+
+
+
+ Return values
+ ChannelSiteResponse
+ —
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelsApi.html b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelsApi.html
new file mode 100644
index 00000000..2df1c647
--- /dev/null
+++ b/docs/classes/BigCommerce-ApiV3-Api-Channels-ChannelsApi.html
@@ -0,0 +1,834 @@
+
+
+
+
+ Documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/classes/BigCommerce-ApiV3-Api-Customers-CustomersApi.html b/docs/classes/BigCommerce-ApiV3-Api-Customers-CustomersApi.html
index cb7edb80..9281d34c 100644
--- a/docs/classes/BigCommerce-ApiV3-Api-Customers-CustomersApi.html
+++ b/docs/classes/BigCommerce-ApiV3-Api-Customers-CustomersApi.html
@@ -97,7 +97,7 @@ V3ApiBase
@@ -222,6 +222,20 @@
: int|null
+
+
+
+ subscriber()
+
+ : SubscribersApi
+
+
+
+
+ subscribers()
+
+ : SubscribersApi
+
@@ -250,7 +264,7 @@
@@ -275,7 +289,7 @@
@@ -369,7 +383,7 @@
@@ -401,7 +415,7 @@
@@ -433,7 +447,7 @@
@@ -465,7 +479,7 @@
@@ -497,7 +511,7 @@
@@ -539,7 +553,7 @@
+
+
+
+ channel()
+
+ : ChannelsApi
+
+
+
+
+ channels()
+
+ : ChannelsApi
+
@@ -325,7 +339,7 @@
@@ -350,7 +364,7 @@
@@ -375,7 +389,7 @@
@@ -400,7 +414,7 @@