Remove "package" tag from files inside "src" and "tests/php" (https://github.com/woocommerce/woocommerce-blocks/pull/2972)
* Don't require package tag or file comment inside src * Removed package from file headers * Fixed coding standards * fix doc blocks for REST API * update root classes * update phpdoc blocks for Assets and Block classes * Domain classes * update phpdocs for payment classes * update phpdocs for registry classes * update utils classes phpdocs * missed saving one file Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
This commit is contained in:
parent
69ba8161b6
commit
71c2b5ba21
|
@ -36,6 +36,15 @@
|
||||||
<exclude-pattern>tests/*</exclude-pattern>
|
<exclude-pattern>tests/*</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<rule ref="Squiz.Commenting.FileComment.MissingPackageTag">
|
||||||
|
<exclude-pattern>src/</exclude-pattern>
|
||||||
|
<exclude-pattern>tests/php</exclude-pattern>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.Commenting.FileComment.Missing">
|
||||||
|
<exclude-pattern>src/</exclude-pattern>
|
||||||
|
<exclude-pattern>tests/php</exclude-pattern>
|
||||||
|
</rule>
|
||||||
|
|
||||||
<rule ref="Generic.Commenting">
|
<rule ref="Generic.Commenting">
|
||||||
<exclude-pattern>tests/</exclude-pattern>
|
<exclude-pattern>tests/</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
|
@ -1,19 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Initializes block assets.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks;
|
namespace Automattic\WooCommerce\Blocks;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
use Automattic\WooCommerce\Blocks\Assets\Api as AssetApi;
|
use Automattic\WooCommerce\Blocks\Assets\Api as AssetApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assets class.
|
* Assets class.
|
||||||
|
* Initializes block assets.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class Assets {
|
class Assets {
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Contains asset api methods
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Assets;
|
namespace Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Domain\Package;
|
use Automattic\WooCommerce\Blocks\Domain\Package;
|
||||||
|
@ -12,6 +6,8 @@ use Automattic\WooCommerce\Blocks\Domain\Package;
|
||||||
/**
|
/**
|
||||||
* The Api class provides an interface to various asset registration helpers.
|
* The Api class provides an interface to various asset registration helpers.
|
||||||
*
|
*
|
||||||
|
* Contains asset api methods
|
||||||
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class Api {
|
class Api {
|
||||||
|
|
|
@ -1,12 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Holds data registered for output on the current view session when
|
|
||||||
* `wc-settings` is enqueued (directly or via dependency)
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 2.5.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Assets;
|
namespace Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
@ -16,6 +8,9 @@ use InvalidArgumentException;
|
||||||
* Class instance for registering data used on the current view session by
|
* Class instance for registering data used on the current view session by
|
||||||
* assets.
|
* assets.
|
||||||
*
|
*
|
||||||
|
* Holds data registered for output on the current view session when
|
||||||
|
* `wc-settings` is enqueued( directly or via dependency )
|
||||||
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class AssetDataRegistry {
|
class AssetDataRegistry {
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Backwards Compatibility file for plugins using wcSettings in prior versions
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 2.5.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Assets;
|
namespace Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,6 +6,7 @@ namespace Automattic\WooCommerce\Blocks\Assets;
|
||||||
*
|
*
|
||||||
* Note: This will be removed at some point.
|
* Note: This will be removed at some point.
|
||||||
*
|
*
|
||||||
|
* @internal
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class BackCompatAssetDataRegistry extends AssetDataRegistry {
|
class BackCompatAssetDataRegistry extends AssetDataRegistry {
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract block class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractBlock class.
|
* AbstractBlock class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract dynamic block class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractDynamicBlock class.
|
* AbstractDynamicBlock class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Class for product grid functionality
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Utils\BlocksWpQuery;
|
use Automattic\WooCommerce\Blocks\Utils\BlocksWpQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Active filters block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* All products block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AllProducts class.
|
* AllProducts class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Reviews by Product block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Atomic blocks.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AtomicBlock class.
|
* AtomicBlock class.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class AtomicBlock extends AbstractBlock {
|
class AtomicBlock extends AbstractBlock {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Attribute filter block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,20 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cart class.
|
* Cart class.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class Cart extends AbstractBlock {
|
class Cart extends AbstractBlock {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,20 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Checkout block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checkout class.
|
* Checkout class.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class Checkout extends AbstractBlock {
|
class Checkout extends AbstractBlock {
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Featured category block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FeaturedCategory class.
|
* FeaturedCategory class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Featured products block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FeaturedProduct class.
|
* FeaturedProduct class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Hand-picked Products block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HandpickedProducts class.
|
* HandpickedProducts class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Price filter block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product best sellers block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductBestSellers class.
|
* ProductBestSellers class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product categories block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCategories class.
|
* ProductCategories class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product category block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCategory class.
|
* ProductCategory class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* New products block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductNew class.
|
* ProductNew class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* On-sale products block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductOnSale class.
|
* ProductOnSale class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product search block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductSearch class.
|
* ProductSearch class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product tag block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductTag class.
|
* ProductTag class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Top rated products block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductTopRated class.
|
* ProductTopRated class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Products by attribute block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductsByAttribute class.
|
* ProductsByAttribute class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Reviews by Product block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Reviews by Product block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Single Product block.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
namespace Automattic\WooCommerce\Blocks\BlockTypes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets;
|
use Automattic\WooCommerce\Blocks\Assets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Contains the Bootstrap class
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Domain;
|
namespace Automattic\WooCommerce\Blocks\Domain;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets as BlockAssets;
|
use Automattic\WooCommerce\Blocks\Assets as BlockAssets;
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Returns information about the package and handles init.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Domain;
|
namespace Automattic\WooCommerce\Blocks\Domain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main package class.
|
* Main package class.
|
||||||
*
|
*
|
||||||
|
* Returns information about the package and handles init.
|
||||||
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class Package {
|
class Package {
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Sets up all logic related to the Checkout Draft Orders service
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Domain\Services;
|
namespace Automattic\WooCommerce\Blocks\Domain\Services;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Domain\Package;
|
use Automattic\WooCommerce\Blocks\Domain\Package;
|
||||||
|
@ -13,6 +7,10 @@ use WC_Order;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service class for adding DraftOrder functionality to WooCommerce core.
|
* Service class for adding DraftOrder functionality to WooCommerce core.
|
||||||
|
*
|
||||||
|
* Sets up all logic related to the Checkout Draft Orders service
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class DraftOrders {
|
class DraftOrders {
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Handles installation of Blocks plugin dependencies.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks;
|
namespace Automattic\WooCommerce\Blocks;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Installer class.
|
* Installer class.
|
||||||
|
* Handles installation of Blocks plugin dependencies.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class Installer {
|
class Installer {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Initializes blocks in WordPress.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks;
|
namespace Automattic\WooCommerce\Blocks;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Library class.
|
* Library class.
|
||||||
|
* Initializes blocks in WordPress.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class Library {
|
class Library {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
namespace Automattic\WooCommerce\Blocks;
|
||||||
|
|
||||||
|
use Automattic\WooCommerce\Blocks\Domain\Package as NewPackage;
|
||||||
|
use Automattic\WooCommerce\Blocks\Domain\Bootstrap;
|
||||||
|
use Automattic\WooCommerce\Blocks\Registry\Container;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Main package class.
|
||||||
|
*
|
||||||
* Returns information about the package and handles init.
|
* Returns information about the package and handles init.
|
||||||
*
|
*
|
||||||
* In the context of this plugin, it handles init and is called from the main
|
* In the context of this plugin, it handles init and is called from the main
|
||||||
|
@ -8,20 +16,6 @@
|
||||||
* In the context of WooCommere core, it handles init and is called from
|
* In the context of WooCommere core, it handles init and is called from
|
||||||
* WooCommerce's package loader. The main plugin file is _not_ loaded.
|
* WooCommerce's package loader. The main plugin file is _not_ loaded.
|
||||||
*
|
*
|
||||||
* @package Automattic/WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Domain\Package as NewPackage;
|
|
||||||
use Automattic\WooCommerce\Blocks\Domain\Bootstrap;
|
|
||||||
use Automattic\WooCommerce\Blocks\Registry\Container;
|
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main package class.
|
|
||||||
*
|
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class Package {
|
class Package {
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Payment Api class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments;
|
namespace Automattic\WooCommerce\Blocks\Payments;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Package;
|
use Automattic\WooCommerce\Blocks\Package;
|
||||||
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\NoticeHandler;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\NoticeHandler;
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract payment method type class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Payments\PaymentMethodTypeInterface;
|
use Automattic\WooCommerce\Blocks\Payments\PaymentMethodTypeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Bank Transfer (BACS) (core) gateway implementation.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 3.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets\Api;
|
use Automattic\WooCommerce\Blocks\Assets\Api;
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cash on Delivery (COD) (core) gateway implementation.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 3.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Assets\Api;
|
use Automattic\WooCommerce\Blocks\Assets\Api;
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cheque (core) gateway implementation.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 2.6.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* PayPal Standard (core) gateway implementation.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 2.6.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
|
@ -1,13 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Temporary integration of the stripe payment method for the new cart and
|
|
||||||
* checkout blocks. Once the api is demonstrated to be stable, this integration
|
|
||||||
* will be moved to the Stripe extension
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
* @since 2.6.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
namespace Automattic\WooCommerce\Blocks\Payments\Integrations;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
@ -20,6 +11,10 @@ use Automattic\WooCommerce\Blocks\Payments\PaymentResult;
|
||||||
/**
|
/**
|
||||||
* Stripe payment method integration
|
* Stripe payment method integration
|
||||||
*
|
*
|
||||||
|
* Temporary integration of the stripe payment method for the new cart and
|
||||||
|
* checkout blocks. Once the api is demonstrated to be stable, this integration
|
||||||
|
* will be moved to the Stripe extension
|
||||||
|
*
|
||||||
* @since 2.6.0
|
* @since 2.6.0
|
||||||
*/
|
*/
|
||||||
final class Stripe extends AbstractPaymentMethodType {
|
final class Stripe extends AbstractPaymentMethodType {
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Payment context.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments;
|
namespace Automattic\WooCommerce\Blocks\Payments;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PaymentContext class.
|
* PaymentContext class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Holds data about registered payment methods.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments;
|
namespace Automattic\WooCommerce\Blocks\Payments;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Payment method type interface.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments;
|
namespace Automattic\WooCommerce\Blocks\Payments;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
interface PaymentMethodTypeInterface {
|
interface PaymentMethodTypeInterface {
|
||||||
/**
|
/**
|
||||||
* The name of the payment method
|
* The name of the payment method
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Payment result.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Payments;
|
namespace Automattic\WooCommerce\Blocks\Payments;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PaymentResult class.
|
* PaymentResult class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Holds the AbstractDependencyType class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Registry;
|
namespace Automattic\WooCommerce\Blocks\Registry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Contains the Container class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Registry;
|
namespace Automattic\WooCommerce\Blocks\Registry;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
|
@ -30,7 +24,7 @@ class Container {
|
||||||
* Public api for adding a factory to the container.
|
* Public api for adding a factory to the container.
|
||||||
*
|
*
|
||||||
* Factory dependencies will have the instantiation callback invoked
|
* Factory dependencies will have the instantiation callback invoked
|
||||||
* everytime the dependency is requested.
|
* every time the dependency is requested.
|
||||||
*
|
*
|
||||||
* Typical Usage:
|
* Typical Usage:
|
||||||
*
|
*
|
||||||
|
@ -58,7 +52,7 @@ class Container {
|
||||||
* that it will be a single instance shared among any other classes having
|
* that it will be a single instance shared among any other classes having
|
||||||
* that dependency.
|
* that dependency.
|
||||||
*
|
*
|
||||||
* If you want a new instance everytime it's required, then wrap the value
|
* If you want a new instance every time it's required, then wrap the value
|
||||||
* in a call to the factory method (@see Container::factory for example)
|
* in a call to the factory method (@see Container::factory for example)
|
||||||
*
|
*
|
||||||
* Note: Currently if the provided id already is registered in the container,
|
* Note: Currently if the provided id already is registered in the container,
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Holds the FactoryType class
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Registry;
|
namespace Automattic\WooCommerce\Blocks\Registry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Holds the SharedType class definition
|
|
||||||
*
|
|
||||||
* @package WooCommerce\Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\Registry;
|
namespace Automattic\WooCommerce\Blocks\Registry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Registers controllers in the blocks REST API namespace.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks;
|
namespace Automattic\WooCommerce\Blocks;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\RoutesController;
|
use Automattic\WooCommerce\Blocks\StoreApi\RoutesController;
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\SchemaController;
|
use Automattic\WooCommerce\Blocks\StoreApi\SchemaController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RestApi class.
|
* RestApi class.
|
||||||
|
* Registers controllers in the blocks REST API namespace.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class RestApi {
|
class RestApi {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract Cart route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cart class.
|
* Abstract Cart Route
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
abstract class AbstractCartRoute extends AbstractRoute {
|
abstract class AbstractCartRoute extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Schemas\AbstractSchema;
|
use Automattic\WooCommerce\Blocks\StoreApi\Schemas\AbstractSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractRoute class.
|
* AbstractRoute class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
abstract class AbstractRoute implements RouteInterface {
|
abstract class AbstractRoute implements RouteInterface {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,20 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract Terms route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\Pagination;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\Pagination;
|
||||||
use WP_Term_Query;
|
use WP_Term_Query;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractTermsRoute class.
|
* AbstractTermsRoute class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
abstract class AbstractTermsRoute extends AbstractRoute {
|
abstract class AbstractTermsRoute extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cart class.
|
* Cart class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class Cart extends AbstractCartRoute {
|
class Cart extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart add item route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartAddItem class.
|
* CartAddItem class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartAddItem extends AbstractCartRoute {
|
class CartAddItem extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart apply coupon route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartApplyCoupon class.
|
* CartApplyCoupon class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartApplyCoupon extends AbstractCartRoute {
|
class CartApplyCoupon extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart Coupons route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartCoupons class.
|
* CartCoupons class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartCoupons extends AbstractRoute {
|
class CartCoupons extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart Coupons route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartCouponsByCode class.
|
* CartCouponsByCode class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartCouponsByCode extends AbstractRoute {
|
class CartCouponsByCode extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart items route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartItems class.
|
* CartItems class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartItems extends AbstractRoute {
|
class CartItems extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart item route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartItemsByKey class.
|
* CartItemsByKey class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartItemsByKey extends AbstractRoute {
|
class CartItemsByKey extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart remove coupon route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartRemoveCoupon class.
|
* CartRemoveCoupon class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartRemoveCoupon extends AbstractCartRoute {
|
class CartRemoveCoupon extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart remove item route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartRemoveItem class.
|
* CartRemoveItem class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartRemoveItem extends AbstractCartRoute {
|
class CartRemoveItem extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart select shipping rate route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartSelectShippingRate class.
|
* CartSelectShippingRate class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartSelectShippingRate extends AbstractCartRoute {
|
class CartSelectShippingRate extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart update item route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartUpdateItem class.
|
* CartUpdateItem class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartUpdateItem extends AbstractCartRoute {
|
class CartUpdateItem extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart update shipping route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartUpdateShipping class.
|
* CartUpdateShipping class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartUpdateShipping extends AbstractCartRoute {
|
class CartUpdateShipping extends AbstractCartRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Checkout route.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\OrderController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\OrderController;
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\ReserveStock;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\ReserveStock;
|
||||||
|
@ -18,6 +10,8 @@ use Automattic\WooCommerce\Blocks\Payments\PaymentContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checkout class.
|
* Checkout class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class Checkout extends AbstractRoute {
|
class Checkout extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Attribute Terms route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductAttributeTerms class.
|
* ProductAttributeTerms class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductAttributeTerms extends AbstractTermsRoute {
|
class ProductAttributeTerms extends AbstractTermsRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Attributes route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductAttributes class.
|
* ProductAttributes class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductAttributes extends AbstractRoute {
|
class ProductAttributes extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Attributes route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductAttributesById class.
|
* ProductAttributesById class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductAttributesById extends AbstractRoute {
|
class ProductAttributesById extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Categories route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCategories class.
|
* ProductCategories class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductCategories extends AbstractTermsRoute {
|
class ProductCategories extends AbstractTermsRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Category route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCategoriesById class.
|
* ProductCategoriesById class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductCategoriesById extends AbstractRoute {
|
class ProductCategoriesById extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,21 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Products collection data route. Get aggregate data from a collection of products.
|
|
||||||
*
|
|
||||||
* Supports the same parameters as /products, but returns a different response.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\ProductQueryFilters;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\ProductQueryFilters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCollectionData route.
|
* ProductCollectionData route.
|
||||||
|
* Get aggregate data from a collection of products.
|
||||||
|
*
|
||||||
|
* Supports the same parameters as /products, but returns a different response.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductCollectionData extends AbstractRoute {
|
class ProductCollectionData extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,20 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Reviews route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use WP_Comment_Query;
|
use WP_Comment_Query;
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\Pagination;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\Pagination;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductReviews class.
|
* ProductReviews class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductReviews extends AbstractRoute {
|
class ProductReviews extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Tags route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductTags class.
|
* ProductTags class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductTags extends AbstractTermsRoute {
|
class ProductTags extends AbstractTermsRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,20 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Products route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\Pagination;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\Pagination;
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\ProductQuery;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\ProductQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Products class.
|
* Products class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class Products extends AbstractRoute {
|
class Products extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Products route.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductsById class.
|
* ProductsById class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductsById extends AbstractRoute {
|
class ProductsById extends AbstractRoute {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Exceptions for rest routes.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ReserveStockRouteExceptionException class.
|
* ReserveStockRouteExceptionException class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class RouteException extends \Exception {
|
class RouteException extends \Exception {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Route interface.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Routes;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RouteInterface.
|
* RouteInterface.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
interface RouteInterface {
|
interface RouteInterface {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Register Routes.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi;
|
namespace Automattic\WooCommerce\Blocks\StoreApi;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Routes\AbstractRoute;
|
use Routes\AbstractRoute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RoutesController class.
|
* RoutesController class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class RoutesController {
|
class RoutesController {
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Register Schemas.
|
|
||||||
*
|
|
||||||
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi;
|
namespace Automattic\WooCommerce\Blocks\StoreApi;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Schemas\AbstractSchema;
|
use Schemas\AbstractSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SchemaController class.
|
* SchemaController class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class SchemaController {
|
class SchemaController {
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Abstract Schema.
|
|
||||||
*
|
|
||||||
* Rest API schema class.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractBlock class.
|
* AbstractSchema class.
|
||||||
*
|
*
|
||||||
|
* For REST Route Schemas
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
abstract class AbstractSchema {
|
abstract class AbstractSchema {
|
||||||
|
|
|
@ -1,20 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Billing Address Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\RestApi\Routes;
|
use Automattic\WooCommerce\Blocks\RestApi\Routes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BillingAddressSchema class.
|
* BillingAddressSchema class.
|
||||||
*
|
*
|
||||||
* Provides a generic billing address schema for composition in other schemas.
|
* Provides a generic billing address schema for composition in other schemas.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class BillingAddressSchema extends AbstractSchema {
|
class BillingAddressSchema extends AbstractSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart Coupon Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartCouponSchema class.
|
* CartCouponSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class CartCouponSchema extends AbstractSchema {
|
class CartCouponSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart Item Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartItemSchema class.
|
* CartItemSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class CartItemSchema extends ProductSchema {
|
class CartItemSchema extends ProductSchema {
|
||||||
|
|
|
@ -1,19 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
use Automattic\WooCommerce\Blocks\StoreApi\Utilities\CartController;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartSchema class.
|
* CartSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class CartSchema extends AbstractSchema {
|
class CartSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Cart shipping rate schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use WC_Shipping_Rate as ShippingRate;
|
use WC_Shipping_Rate as ShippingRate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CartShippingRateSchema class.
|
* CartShippingRateSchema class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CartShippingRateSchema extends AbstractSchema {
|
class CartShippingRateSchema extends AbstractSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,18 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Checkout schema for the Store API.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\Payments\PaymentResult;
|
use Automattic\WooCommerce\Blocks\Payments\PaymentResult;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckoutSchema class.
|
* CheckoutSchema class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class CheckoutSchema extends AbstractSchema {
|
class CheckoutSchema extends AbstractSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Error Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ErrorSchema class.
|
* ErrorSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class ErrorSchema extends AbstractSchema {
|
class ErrorSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Image Attachment Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ImageAttachmentSchema class.
|
* ImageAttachmentSchema class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ImageAttachmentSchema extends AbstractSchema {
|
class ImageAttachmentSchema extends AbstractSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Order Coupon Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OrderCouponSchema class.
|
* OrderCouponSchema class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class OrderCouponSchema extends AbstractSchema {
|
class OrderCouponSchema extends AbstractSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Attribute Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductAttributeSchema class.
|
* ProductAttributeSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class ProductAttributeSchema extends AbstractSchema {
|
class ProductAttributeSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Category Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCategorySchema class.
|
* ProductCategorySchema class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductCategorySchema extends TermSchema {
|
class ProductCategorySchema extends TermSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Collection Data Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductCollectionDataSchema class.
|
* ProductCollectionDataSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class ProductCollectionDataSchema extends AbstractSchema {
|
class ProductCollectionDataSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Review Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductReviewSchema class.
|
* ProductReviewSchema class.
|
||||||
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
*/
|
*/
|
||||||
class ProductReviewSchema extends AbstractSchema {
|
class ProductReviewSchema extends AbstractSchema {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Product Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProductSchema class.
|
* ProductSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class ProductSchema extends AbstractSchema {
|
class ProductSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Shipping Address Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
use Automattic\WooCommerce\Blocks\RestApi\Routes;
|
use Automattic\WooCommerce\Blocks\RestApi\Routes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,6 +8,7 @@ use Automattic\WooCommerce\Blocks\RestApi\Routes;
|
||||||
*
|
*
|
||||||
* Provides a generic shipping address schema for composition in other schemas.
|
* Provides a generic shipping address schema for composition in other schemas.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class ShippingAddressSchema extends AbstractSchema {
|
class ShippingAddressSchema extends AbstractSchema {
|
||||||
|
|
|
@ -1,17 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Term Schema.
|
|
||||||
*
|
|
||||||
* @package WooCommerce/Blocks
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
namespace Automattic\WooCommerce\Blocks\StoreApi\Schemas;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TermSchema class.
|
* TermSchema class.
|
||||||
*
|
*
|
||||||
|
* @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
class TermSchema extends AbstractSchema {
|
class TermSchema extends AbstractSchema {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue