OffersResponse
class OffersResponse extends BaseResponse
Class OffersResponse
Represents an offers call response from NodeMWS
Methods
Get new FBA offers
Get used FBA offers
Get new merchant offers
Get used merchant offers
Get the product id
No description
Get the product id type
No description
Get an array of all extras
No description
Get a single extra
Check if the EAN is provided in the extra properties
Check whether there is an extra defined with the specified key
Check if the UPC is provided in the extra properties
Details
in BaseResponse at line line 25
__construct()
Construct an instance of a BaseResponse.
in BaseResponse at line line 35
null|ResponseInterface
getInnerResponse()
in BaseResponse at line line 43
setInnerResponse(ResponseInterface $innerResponse)
at line line 83
addOffer(string $type, string $condition, Offer $offer)
Add a offer to the response.
at line line 111
Offer[]
getFbaNewOffers()
Get new FBA offers
at line line 121
Offer[]
getFbaUsedOffers()
Get used FBA offers
at line line 131
Offer[]
getMerchantNewOffers()
Get new merchant offers
at line line 141
Offer[]
getMerchantUsedOffers()
Get used merchant offers
at line line 153
string
getProductIdCode()
Get the product id
(most likely an ASIN or ISBN)
at line line 161
setProductIdCode(string $productIdCode)
at line line 173
string
getProductIdType()
Get the product id type
Usually just 'asin'
at line line 181
setProductIdType(string $productIdType)
at line line 191
array
getExtras()
Get an array of all extras
at line line 199
setExtras(array $extras)
at line line 211
mixed
getExtra(string $key)
Get a single extra
at line line 221
bool
hasEanIdType()
Check if the EAN is provided in the extra properties
at line line 233
bool
hasExtra(string $key)
Check whether there is an extra defined with the specified key
at line line 243
bool
hasUpcIdType()
Check if the UPC is provided in the extra properties