Skip to content

Commit 0ea187c

Browse files
committed
feat: link to new Google manuals for product-related types in admin panel
1 parent 58ee510 commit 0ea187c

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
### Added
11+
- Link to new Google manuals for product-related types in Admin Panel
12+
1013
### Updated
1114
- schema.org definition to version 29.0
1215

Classes/Model/Type/Offer.php

+3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
namespace Brotkrueml\Schema\Model\Type;
1313

14+
use Brotkrueml\Schema\Attributes\Manual;
1415
use Brotkrueml\Schema\Attributes\Type;
1516
use Brotkrueml\Schema\Core\Model\AbstractType;
17+
use Brotkrueml\Schema\Manual\Publisher;
1618

1719
/**
1820
* An offer to transfer some rights to an item or to provide a service — for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
@@ -22,6 +24,7 @@
2224
* For [GTIN](http://www.gs1.org/barcodes/technical/idkeys/gtin)-related fields, see [Check Digit calculator](http://www.gs1.org/barcodes/support/check_digit_calculator) and [validation guide](http://www.gs1us.org/resources/standards/gtin-validation-guide) from [GS1](http://www.gs1.org/).
2325
*/
2426
#[Type('Offer')]
27+
#[Manual(Publisher::Google, 'https://developers.google.com/search/docs/appearance/structured-data/merchant-listing')]
2528
final class Offer extends AbstractType
2629
{
2730
protected static array $propertyNames = [

Classes/Model/Type/OfferShippingDetails.php

+3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
namespace Brotkrueml\Schema\Model\Type;
1313

14+
use Brotkrueml\Schema\Attributes\Manual;
1415
use Brotkrueml\Schema\Attributes\Type;
1516
use Brotkrueml\Schema\Core\Model\AbstractType;
17+
use Brotkrueml\Schema\Manual\Publisher;
1618

1719
/**
1820
* OfferShippingDetails represents information about shipping destinations.
@@ -29,6 +31,7 @@
2931
* or Fast and expensive: $15 in 1-2 days.
3032
*/
3133
#[Type('OfferShippingDetails')]
34+
#[Manual(Publisher::Google, 'https://developers.google.com/search/docs/appearance/structured-data/merchant-listing#product-with-shipping-example')]
3235
final class OfferShippingDetails extends AbstractType
3336
{
3437
protected static array $propertyNames = [

Classes/Model/Type/ShippingDeliveryTime.php

+3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
namespace Brotkrueml\Schema\Model\Type;
1313

14+
use Brotkrueml\Schema\Attributes\Manual;
1415
use Brotkrueml\Schema\Attributes\Type;
1516
use Brotkrueml\Schema\Core\Model\AbstractType;
17+
use Brotkrueml\Schema\Manual\Publisher;
1618

1719
/**
1820
* ShippingDeliveryTime provides various pieces of information about delivery times for shipping.
1921
*/
2022
#[Type('ShippingDeliveryTime')]
23+
#[Manual(Publisher::Google, 'https://developers.google.com/search/docs/appearance/structured-data/merchant-listing#product-with-shipping-example')]
2124
final class ShippingDeliveryTime extends AbstractType
2225
{
2326
protected static array $propertyNames = [

Classes/Model/Type/UnitPriceSpecification.php

+3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
namespace Brotkrueml\Schema\Model\Type;
1313

14+
use Brotkrueml\Schema\Attributes\Manual;
1415
use Brotkrueml\Schema\Attributes\Type;
1516
use Brotkrueml\Schema\Core\Model\AbstractType;
17+
use Brotkrueml\Schema\Manual\Publisher;
1618

1719
/**
1820
* The price asked for a given offer by the respective organization or person.
1921
*/
2022
#[Type('UnitPriceSpecification')]
23+
#[Manual(Publisher::Google, 'https://developers.google.com/search/docs/appearance/structured-data/merchant-listing#pricing-examples')]
2124
final class UnitPriceSpecification extends AbstractType
2225
{
2326
protected static array $propertyNames = [

Documentation/Changelog/Index.rst

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
1111
`Unreleased <https://github.com/brotkrueml/schema/compare/v3.10.1...HEAD>`_
1212
-------------------------------------------------------------------------------
1313

14+
Added
15+
^^^^^
16+
17+
18+
* Link to new Google manuals for product-related types in Admin Panel
19+
1420
Updated
1521
^^^^^^^
1622

0 commit comments

Comments
 (0)