Documentation

OptionsApi extends ResourceApi

V3ApiBase

Add constructors and some basic scaffolding that will work for all API classes regardless of which endpoints they implement

Table of Contents

OPTION_ENDPOINT  = 'catalog/products/%d/options/%d'
OPTIONS_ENDPOINT  = 'catalog/products/%d/options'
RESOURCE_NAME  = 'options'
__construct()  : mixed
create()  : OptionResponse
get()  : OptionResponse
getAll()  : OptionsResponse
getClient()  : Client
getParentResourceId()  : int|null
getResourceId()  : int|null
update()  : OptionResponse
value()  : ProductOptionValuesApi
values()  : ProductOptionValuesApi

Constants

OPTION_ENDPOINT

public mixed OPTION_ENDPOINT = 'catalog/products/%d/options/%d'

OPTIONS_ENDPOINT

public mixed OPTIONS_ENDPOINT = 'catalog/products/%d/options'

RESOURCE_NAME

public mixed RESOURCE_NAME = 'options'

Methods

__construct()

public __construct(Client $client[, int|null $resourceId = null ][, int|null $parentResourceId = null ]) : mixed
Parameters
$client : Client
$resourceId : int|null = null
$parentResourceId : int|null = null
Return values
mixed

getAll()

public getAll([array<string|int, mixed> $filters = [] ][, int $page = 1 ][, int $limit = 250 ]) : OptionsResponse
Parameters
$filters : array<string|int, mixed> = []
$page : int = 1
$limit : int = 250
Return values
OptionsResponse

getParentResourceId()

public getParentResourceId() : int|null
Return values
int|null

getResourceId()

public getResourceId() : int|null
Return values
int|null

Search results