class OffersResponse extends BaseResponse

Class OffersResponse

Represents an offers call response from NodeMWS

Methods

__construct()

Construct an instance of a BaseResponse.

null|ResponseInterface
getInnerResponse()

No description

setInnerResponse(ResponseInterface $innerResponse)

No description

addOffer(string $type, string $condition, Offer $offer)

Add a offer to the response.

Offer[]
getFbaNewOffers()

Get new FBA offers

Offer[]
getFbaUsedOffers()

Get used FBA offers

Offer[]
getMerchantNewOffers()

Get new merchant offers

Offer[]
getMerchantUsedOffers()

Get used merchant offers

string
getProductIdCode()

Get the product id

setProductIdCode(string $productIdCode)

No description

string
getProductIdType()

Get the product id type

setProductIdType(string $productIdType)

No description

array
getExtras()

Get an array of all extras

setExtras(array $extras)

No description

mixed
getExtra(string $key)

Get a single extra

bool
hasEanIdType()

Check if the EAN is provided in the extra properties

bool
hasExtra(string $key)

Check whether there is an extra defined with the specified key

bool
hasUpcIdType()

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()

Return Value

null|ResponseInterface

in BaseResponse at line line 43
setInnerResponse(ResponseInterface $innerResponse)

Parameters

ResponseInterface $innerResponse

at line line 83
addOffer(string $type, string $condition, Offer $offer)

Add a offer to the response.

Parameters

string $type
string $condition
Offer $offer

Exceptions

InvalidArgumentException

at line line 111
Offer[] getFbaNewOffers()

Get new FBA offers

Return Value

Offer[]

at line line 121
Offer[] getFbaUsedOffers()

Get used FBA offers

Return Value

Offer[]

at line line 131
Offer[] getMerchantNewOffers()

Get new merchant offers

Return Value

Offer[]

at line line 141
Offer[] getMerchantUsedOffers()

Get used merchant offers

Return Value

Offer[]

at line line 153
string getProductIdCode()

Get the product id

(most likely an ASIN or ISBN)

Return Value

string

at line line 161
setProductIdCode(string $productIdCode)

Parameters

string $productIdCode

at line line 173
string getProductIdType()

Get the product id type

Usually just 'asin'

Return Value

string

at line line 181
setProductIdType(string $productIdType)

Parameters

string $productIdType

at line line 191
array getExtras()

Get an array of all extras

Return Value

array

at line line 199
setExtras(array $extras)

Parameters

array $extras

at line line 211
mixed getExtra(string $key)

Get a single extra

Parameters

string $key

Return Value

mixed

at line line 221
bool hasEanIdType()

Check if the EAN is provided in the extra properties

Return Value

bool

at line line 233
bool hasExtra(string $key)

Check whether there is an extra defined with the specified key

Parameters

string $key

Return Value

bool

at line line 243
bool hasUpcIdType()

Check if the UPC is provided in the extra properties

Return Value

bool