Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 796 #806

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion resources/models/raw/seller/fba-inbound/v0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3229,7 +3229,7 @@
{
"name": "PackageLabelsToPrint",
"in": "query",
"description": "A list of identifiers that specify packages for which you want package labels printed.\n\nMust match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code.",
"description": "A list of identifiers that specify packages for which you want package labels printed.\n\nIf you provide box content information with the [FBA Inbound Shipment Carton Information Feed](https://developer-docs.amazon.com/sp-api/docs/fulfillment-by-amazon-feed-type-values#fba-inbound-shipment-carton-information-feed), then `PackageLabelsToPrint` must match the `CartonId` values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then `PackageLabelsToPrint` must match the `boxID` values from the [`listShipmentBoxes`](https://developer-docs.amazon.com/sp-api/docs/fulfillment-inbound-api-v2024-03-20-reference#listshipmentboxes) response. If these values do not match as required, the operation returns the `IncorrectPackageIdentifier` error code.",
"style": "form",
"explode": false,
"schema": {
Expand Down
1,289 changes: 1,083 additions & 206 deletions resources/models/raw/seller/fba-inbound/v2024-03-20.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/models/seller/fba-inbound/v0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3229,7 +3229,7 @@
{
"name": "PackageLabelsToPrint",
"in": "query",
"description": "A list of identifiers that specify packages for which you want package labels printed.\n\nMust match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code.",
"description": "A list of identifiers that specify packages for which you want package labels printed.\n\nIf you provide box content information with the [FBA Inbound Shipment Carton Information Feed](https://developer-docs.amazon.com/sp-api/docs/fulfillment-by-amazon-feed-type-values#fba-inbound-shipment-carton-information-feed), then `PackageLabelsToPrint` must match the `CartonId` values you provide through that feed. If you provide box content information with the Fulfillment Inbound API v2024-03-20, then `PackageLabelsToPrint` must match the `boxID` values from the [`listShipmentBoxes`](https://developer-docs.amazon.com/sp-api/docs/fulfillment-inbound-api-v2024-03-20-reference#listshipmentboxes) response. If these values do not match as required, the operation returns the `IncorrectPackageIdentifier` error code.",
"style": "form",
"explode": false,
"schema": {
Expand Down
1,289 changes: 1,083 additions & 206 deletions resources/models/seller/fba-inbound/v2024-03-20.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class AplusPaginatedResponse extends Dto
* @param ?string $nextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter.
*/
public function __construct(
public readonly ?array $warnings = null,
public readonly ?string $nextPageToken = null,
public ?array $warnings = null,
public ?string $nextPageToken = null,
) {}
}
2 changes: 1 addition & 1 deletion src/Seller/APlusContentV20201101/Dto/AplusResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ final class AplusResponse extends Dto
* @param Error[]|null $warnings A set of messages to the user, such as warnings or comments.
*/
public function __construct(
public readonly ?array $warnings = null,
public ?array $warnings = null,
) {}
}
12 changes: 6 additions & 6 deletions src/Seller/APlusContentV20201101/Dto/AsinMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ final class AsinMetadata extends Dto
* @param ?string[] $contentReferenceKeySet A set of content reference keys.
*/
public function __construct(
public readonly string $asin,
public readonly ?array $badgeSet = null,
public readonly ?string $parent = null,
public readonly ?string $title = null,
public readonly ?string $imageUrl = null,
public readonly ?array $contentReferenceKeySet = null,
public string $asin,
public ?array $badgeSet = null,
public ?string $parent = null,
public ?string $title = null,
public ?string $imageUrl = null,
public ?array $contentReferenceKeySet = null,
) {}
}
10 changes: 5 additions & 5 deletions src/Seller/APlusContentV20201101/Dto/ContentDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ final class ContentDocument extends Dto
* @param ?string $contentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time.
*/
public function __construct(
public readonly string $name,
public readonly string $contentType,
public readonly string $locale,
public readonly array $contentModuleList,
public readonly ?string $contentSubType = null,
public string $name,
public string $contentType,
public string $locale,
public array $contentModuleList,
public ?string $contentSubType = null,
) {}
}
10 changes: 5 additions & 5 deletions src/Seller/APlusContentV20201101/Dto/ContentMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ final class ContentMetadata extends Dto
* @param \DateTimeInterface $updateTime The approximate age of the A+ Content document and metadata.
*/
public function __construct(
public readonly string $name,
public readonly string $marketplaceId,
public readonly string $status,
public readonly array $badgeSet,
public readonly \DateTimeInterface $updateTime,
public string $name,
public string $marketplaceId,
public string $status,
public array $badgeSet,
public \DateTimeInterface $updateTime,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ContentMetadataRecord extends Dto
* @param ContentMetadata $contentMetadata The metadata of an A+ Content document.
*/
public function __construct(
public readonly string $contentReferenceKey,
public readonly ContentMetadata $contentMetadata,
public string $contentReferenceKey,
public ContentMetadata $contentMetadata,
) {}
}
32 changes: 16 additions & 16 deletions src/Seller/APlusContentV20201101/Dto/ContentModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ final class ContentModule extends Dto
* @param ?StandardThreeImageTextModule $standardThreeImageText Three standard images with text, presented across a single row.
*/
public function __construct(
public readonly string $contentModuleType,
public readonly ?StandardCompanyLogoModule $standardCompanyLogo = null,
public readonly ?StandardComparisonTableModule $standardComparisonTable = null,
public readonly ?StandardFourImageTextModule $standardFourImageText = null,
public readonly ?StandardFourImageTextQuadrantModule $standardFourImageTextQuadrant = null,
public readonly ?StandardHeaderImageTextModule $standardHeaderImageText = null,
public readonly ?StandardImageSidebarModule $standardImageSidebar = null,
public readonly ?StandardImageTextOverlayModule $standardImageTextOverlay = null,
public readonly ?StandardMultipleImageTextModule $standardMultipleImageText = null,
public readonly ?StandardProductDescriptionModule $standardProductDescription = null,
public readonly ?StandardSingleImageHighlightsModule $standardSingleImageHighlights = null,
public readonly ?StandardSingleImageSpecsDetailModule $standardSingleImageSpecsDetail = null,
public readonly ?StandardSingleSideImageModule $standardSingleSideImage = null,
public readonly ?StandardTechSpecsModule $standardTechSpecs = null,
public readonly ?StandardTextModule $standardText = null,
public readonly ?StandardThreeImageTextModule $standardThreeImageText = null,
public string $contentModuleType,
public ?StandardCompanyLogoModule $standardCompanyLogo = null,
public ?StandardComparisonTableModule $standardComparisonTable = null,
public ?StandardFourImageTextModule $standardFourImageText = null,
public ?StandardFourImageTextQuadrantModule $standardFourImageTextQuadrant = null,
public ?StandardHeaderImageTextModule $standardHeaderImageText = null,
public ?StandardImageSidebarModule $standardImageSidebar = null,
public ?StandardImageTextOverlayModule $standardImageTextOverlay = null,
public ?StandardMultipleImageTextModule $standardMultipleImageText = null,
public ?StandardProductDescriptionModule $standardProductDescription = null,
public ?StandardSingleImageHighlightsModule $standardSingleImageHighlights = null,
public ?StandardSingleImageSpecsDetailModule $standardSingleImageSpecsDetail = null,
public ?StandardSingleSideImageModule $standardSingleSideImage = null,
public ?StandardTechSpecsModule $standardTechSpecs = null,
public ?StandardTextModule $standardText = null,
public ?StandardThreeImageTextModule $standardThreeImageText = null,
) {}
}
6 changes: 3 additions & 3 deletions src/Seller/APlusContentV20201101/Dto/ContentRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ final class ContentRecord extends Dto
* @param ?ContentDocument $contentDocument The A+ Content document. This is the enhanced content that is published to product detail pages.
*/
public function __construct(
public readonly string $contentReferenceKey,
public readonly ?ContentMetadata $contentMetadata = null,
public readonly ?ContentDocument $contentDocument = null,
public string $contentReferenceKey,
public ?ContentMetadata $contentMetadata = null,
public ?ContentDocument $contentDocument = null,
) {}
}
8 changes: 4 additions & 4 deletions src/Seller/APlusContentV20201101/Dto/Decorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ final class Decorator extends Dto
* @param ?int $depth The relative intensity or variation of this decorator. Decorators such as bullet-points, for example, can have multiple indentation depths.
*/
public function __construct(
public readonly ?string $type = null,
public readonly ?int $offset = null,
public readonly ?int $length = null,
public readonly ?int $depth = null,
public ?string $type = null,
public ?int $offset = null,
public ?int $length = null,
public ?int $depth = null,
) {}
}
6 changes: 3 additions & 3 deletions src/Seller/APlusContentV20201101/Dto/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ final class Error extends Dto
* @param ?string $details Additional information, if available, to clarify the error condition.
*/
public function __construct(
public readonly string $code,
public readonly string $message,
public readonly ?string $details = null,
public string $code,
public string $message,
public ?string $details = null,
) {}
}
6 changes: 3 additions & 3 deletions src/Seller/APlusContentV20201101/Dto/ImageComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ final class ImageComponent extends Dto
* @param string $altText The alternative text for the image.
*/
public function __construct(
public readonly string $uploadDestinationId,
public readonly ImageCropSpecification $imageCropSpecification,
public readonly string $altText,
public string $uploadDestinationId,
public ImageCropSpecification $imageCropSpecification,
public string $altText,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ImageCropSpecification extends Dto
* @param ?ImageOffsets $offset The top left corner of the cropped image, specified in the original image's coordinate space.
*/
public function __construct(
public readonly ImageDimensions $size,
public readonly ?ImageOffsets $offset = null,
public ImageDimensions $size,
public ?ImageOffsets $offset = null,
) {}
}
4 changes: 2 additions & 2 deletions src/Seller/APlusContentV20201101/Dto/ImageDimensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ImageDimensions extends Dto
* @param IntegerWithUnits $height A whole number dimension and its unit of measurement. For example, this can represent 100 pixels.
*/
public function __construct(
public readonly IntegerWithUnits $width,
public readonly IntegerWithUnits $height,
public IntegerWithUnits $width,
public IntegerWithUnits $height,
) {}
}
4 changes: 2 additions & 2 deletions src/Seller/APlusContentV20201101/Dto/ImageOffsets.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ImageOffsets extends Dto
* @param IntegerWithUnits $y A whole number dimension and its unit of measurement. For example, this can represent 100 pixels.
*/
public function __construct(
public readonly IntegerWithUnits $x,
public readonly IntegerWithUnits $y,
public IntegerWithUnits $x,
public IntegerWithUnits $y,
) {}
}
4 changes: 2 additions & 2 deletions src/Seller/APlusContentV20201101/Dto/IntegerWithUnits.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class IntegerWithUnits extends Dto
* @param string $units The unit of measurement.
*/
public function __construct(
public readonly int $value,
public readonly string $units,
public int $value,
public string $units,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ final class ParagraphComponent extends Dto
* @param TextComponent[] $textList
*/
public function __construct(
public readonly array $textList,
public array $textList,
) {}
}
4 changes: 2 additions & 2 deletions src/Seller/APlusContentV20201101/Dto/PlainTextItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class PlainTextItem extends Dto
* @param string $value The actual plain text.
*/
public function __construct(
public readonly int $position,
public readonly string $value,
public int $position,
public string $value,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ final class PostContentDocumentAsinRelationsRequest extends Dto
* @param string[] $asinSet The set of ASINs.
*/
public function __construct(
public readonly array $asinSet,
public array $asinSet,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ final class PostContentDocumentRequest extends Dto
* @param ContentDocument $contentDocument The A+ Content document. This is the enhanced content that is published to product detail pages.
*/
public function __construct(
public readonly ContentDocument $contentDocument,
public ContentDocument $contentDocument,
) {}
}
12 changes: 6 additions & 6 deletions src/Seller/APlusContentV20201101/Dto/PublishRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ final class PublishRecord extends Dto
* @param ?string $contentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time.
*/
public function __construct(
public readonly string $marketplaceId,
public readonly string $locale,
public readonly string $asin,
public readonly string $contentType,
public readonly string $contentReferenceKey,
public readonly ?string $contentSubType = null,
public string $marketplaceId,
public string $locale,
public string $asin,
public string $contentType,
public string $contentReferenceKey,
public ?string $contentSubType = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ final class StandardCompanyLogoModule extends Dto
* @param ImageComponent $companyLogo A reference to an image, hosted in the A+ Content media library.
*/
public function __construct(
public readonly ImageComponent $companyLogo,
public ImageComponent $companyLogo,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ final class StandardComparisonProductBlock extends Dto
* @param PlainTextItem[]|null $metrics Comparison metrics for the product.
*/
public function __construct(
public readonly int $position,
public readonly ?ImageComponent $image = null,
public readonly ?string $title = null,
public readonly ?string $asin = null,
public readonly ?bool $highlight = null,
public readonly ?array $metrics = null,
public int $position,
public ?ImageComponent $image = null,
public ?string $title = null,
public ?string $asin = null,
public ?bool $highlight = null,
public ?array $metrics = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class StandardComparisonTableModule extends Dto
* @param PlainTextItem[]|null $metricRowLabels
*/
public function __construct(
public readonly ?array $productColumns = null,
public readonly ?array $metricRowLabels = null,
public ?array $productColumns = null,
public ?array $metricRowLabels = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ final class StandardFourImageTextModule extends Dto
* @param ?StandardImageTextBlock $block4 The A+ Content standard image and text box block.
*/
public function __construct(
public readonly ?TextComponent $headline = null,
public readonly ?StandardImageTextBlock $block1 = null,
public readonly ?StandardImageTextBlock $block2 = null,
public readonly ?StandardImageTextBlock $block3 = null,
public readonly ?StandardImageTextBlock $block4 = null,
public ?TextComponent $headline = null,
public ?StandardImageTextBlock $block1 = null,
public ?StandardImageTextBlock $block2 = null,
public ?StandardImageTextBlock $block3 = null,
public ?StandardImageTextBlock $block4 = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ final class StandardFourImageTextQuadrantModule extends Dto
* @param StandardImageTextBlock $block4 The A+ Content standard image and text box block.
*/
public function __construct(
public readonly StandardImageTextBlock $block1,
public readonly StandardImageTextBlock $block2,
public readonly StandardImageTextBlock $block3,
public readonly StandardImageTextBlock $block4,
public StandardImageTextBlock $block1,
public StandardImageTextBlock $block2,
public StandardImageTextBlock $block3,
public StandardImageTextBlock $block4,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class StandardHeaderImageTextModule extends Dto
* @param ?StandardImageTextBlock $block The A+ Content standard image and text box block.
*/
public function __construct(
public readonly ?TextComponent $headline = null,
public readonly ?StandardImageTextBlock $block = null,
public ?TextComponent $headline = null,
public ?StandardImageTextBlock $block = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class StandardHeaderTextListBlock extends Dto
* @param ?StandardTextListBlock $block The A+ Content standard fixed length list of text, usually presented as bullet points.
*/
public function __construct(
public readonly ?TextComponent $headline = null,
public readonly ?StandardTextListBlock $block = null,
public ?TextComponent $headline = null,
public ?StandardTextListBlock $block = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class StandardImageCaptionBlock extends Dto
* @param ?TextComponent $caption Rich text content.
*/
public function __construct(
public readonly ?ImageComponent $image = null,
public readonly ?TextComponent $caption = null,
public ?ImageComponent $image = null,
public ?TextComponent $caption = null,
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ final class StandardImageSidebarModule extends Dto
* @param ?StandardTextListBlock $sidebarListBlock The A+ Content standard fixed length list of text, usually presented as bullet points.
*/
public function __construct(
public readonly ?TextComponent $headline = null,
public readonly ?StandardImageCaptionBlock $imageCaptionBlock = null,
public readonly ?StandardTextBlock $descriptionTextBlock = null,
public readonly ?StandardTextListBlock $descriptionListBlock = null,
public readonly ?StandardImageTextBlock $sidebarImageTextBlock = null,
public readonly ?StandardTextListBlock $sidebarListBlock = null,
public ?TextComponent $headline = null,
public ?StandardImageCaptionBlock $imageCaptionBlock = null,
public ?StandardTextBlock $descriptionTextBlock = null,
public ?StandardTextListBlock $descriptionListBlock = null,
public ?StandardImageTextBlock $sidebarImageTextBlock = null,
public ?StandardTextListBlock $sidebarListBlock = null,
) {}
}
Loading
Loading