Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/operations/GetItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Images,
ItemInfo,
Offers,
OffersV2,
OffersV2Full,
RentalOffers,
CustomerReviews,
ParentASIN
Expand Down Expand Up @@ -48,7 +48,7 @@ public function __construct(bool $isOffersV2 = false)
new BrowseNodeInfo,
new Images,
new ItemInfo,
$isOffersV2 ? new OffersV2 : new Offers,
$isOffersV2 ? new OffersV2Full : new Offers,
new RentalOffers,
new CustomerReviews,
new ParentASIN
Expand Down
4 changes: 2 additions & 2 deletions src/operations/GetVariations.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Images,
ItemInfo,
Offers,
OffersV2,
OffersV2Full,
RentalOffers,
VariationSummary,
ParentASIN
Expand Down Expand Up @@ -50,7 +50,7 @@ public function __construct(bool $isOffersV2 = false)
new BrowseNodeInfo,
new Images,
new ItemInfo,
$isOffersV2 ? new OffersV2 : new Offers,
$isOffersV2 ? new OffersV2Full : new Offers,
new RentalOffers,
new VariationSummary,
new ParentASIN
Expand Down
30 changes: 15 additions & 15 deletions src/resources/OffersV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
*/
final class OffersV2 extends Resource
{
/**
* Set items.
*/
public function __construct()
{
$this->items = [
'Listings.Availability',
'Listings.Condition',
'Listings.IsBuyBoxWinner',
'Listings.LoyaltyPoints',
'Listings.MerchantInfo',
'Listings.Price',
'Listings.Type'
];
}
/**
* Set items.
*/
public function __construct()
{
$this->items = [
'Listings.Availability',
'Listings.Condition',
'Listings.IsBuyBoxWinner',
'Listings.LoyaltyPoints',
'Listings.MerchantInfo',
'Listings.Price',
'Listings.Type'
];
}
}
40 changes: 40 additions & 0 deletions src/resources/OffersV2Full.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php
/**
* @author : Jakiboy
* @package : Amazon Product Advertising API Library (v5)
* @version : 1.5.x
* @copyright : (c) 2019 - 2025 Jihad Sinnaour <[email protected]>
* @link : https://jakiboy.github.io/apaapi/
* @license : MIT
*
* This file if a part of Apaapi Lib.
*/

namespace Apaapi\resources;

use Apaapi\lib\Resource;

/**
* Apaapi <OffersV2Full> : High level resource with DealDetails.
* Full version of OffersV2 including DealDetails (supported only by GetItems).
* @see https://webservices.amazon.com/paapi5/documentation/offersV2.html
*/
final class OffersV2Full extends Resource
{
/**
* Set items.
*/
public function __construct()
{
$this->items = [
'Listings.Availability',
'Listings.Condition',
'Listings.DealDetails',
'Listings.IsBuyBoxWinner',
'Listings.LoyaltyPoints',
'Listings.MerchantInfo',
'Listings.Price',
'Listings.Type'
];
}
}