ProductBulkPricingRulesApi
extends ResourceApi
in package
V3ApiBase
Add constructors and some basic scaffolding that will work for all API classes regardless of which endpoints they implement
Tags
Table of Contents
- BULK_PRICING_RULE_ENDPOINT = 'catalog/products/%d/bulk-pricing-rules/%d'
- BULK_PRICING_RULES_ENDPOINT = 'catalog/products/%d/bulk-pricing-rules'
- RESOURCE_NAME = 'bulk-pricing-rules'
- __construct() : mixed
- create() : ProductBulkPricingRuleResponse
- delete() : ResponseInterface
- get() : ProductBulkPricingRuleResponse
- getAll() : ProductBulkPricingRulesResponse
- getClient() : Client
- getParentResourceId() : int|null
- getResourceId() : int|null
- multipleResourceUrl() : string
- singleResourceUrl() : string
- update() : ProductBulkPricingRuleResponse
Constants
BULK_PRICING_RULE_ENDPOINT
public
mixed
BULK_PRICING_RULE_ENDPOINT
= 'catalog/products/%d/bulk-pricing-rules/%d'
Tags
BULK_PRICING_RULES_ENDPOINT
public
mixed
BULK_PRICING_RULES_ENDPOINT
= 'catalog/products/%d/bulk-pricing-rules'
Tags
RESOURCE_NAME
public
mixed
RESOURCE_NAME
= 'bulk-pricing-rules'
Tags
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
Tags
Return values
mixed —create()
public
create(ProductBulkPricingRule $bulkPricingRule) : ProductBulkPricingRuleResponse
Parameters
- $bulkPricingRule : ProductBulkPricingRule
Tags
Return values
ProductBulkPricingRuleResponse —delete()
public
delete() : ResponseInterface
Tags
Return values
ResponseInterface —get()
public
get() : ProductBulkPricingRuleResponse
Tags
Return values
ProductBulkPricingRuleResponse —getAll()
public
getAll([array<string|int, mixed> $filters = [] ][, int $page = 1 ][, int $limit = 250 ]) : ProductBulkPricingRulesResponse
Parameters
- $filters : array<string|int, mixed> = []
- $page : int = 1
- $limit : int = 250
Tags
Return values
ProductBulkPricingRulesResponse —getClient()
public
getClient() : Client
Tags
Return values
Client —getParentResourceId()
public
getParentResourceId() : int|null
Tags
Return values
int|null —getResourceId()
public
getResourceId() : int|null
Tags
Return values
int|null —multipleResourceUrl()
public
abstract multipleResourceUrl() : string
Tags
Return values
string —singleResourceUrl()
public
abstract singleResourceUrl() : string
Tags
Return values
string —update()
public
update(ProductBulkPricingRule $bulkPricingRule) : ProductBulkPricingRuleResponse
Parameters
- $bulkPricingRule : ProductBulkPricingRule