ProductBulkPricingRulesApi 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
- 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
- get() : ProductBulkPricingRuleResponse
- getAll() : ProductBulkPricingRulesResponse
- getClient() : Client
- getParentResourceId() : int|null
- getResourceId() : int|null
Constants
BULK_PRICING_RULE_ENDPOINT
public
mixed
BULK_PRICING_RULE_ENDPOINT
= 'catalog/products/%d/bulk-pricing-rules/%d'
BULK_PRICING_RULES_ENDPOINT
public
mixed
BULK_PRICING_RULES_ENDPOINT
= 'catalog/products/%d/bulk-pricing-rules'
RESOURCE_NAME
public
mixed
RESOURCE_NAME
= 'bulk-pricing-rules'
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 —get()
public
get() : ProductBulkPricingRuleResponse
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
Return values
ProductBulkPricingRulesResponse —getClient()
public
getClient() : Client
Return values
Client —getParentResourceId()
public
getParentResourceId() : int|null
Return values
int|null —getResourceId()
public
getResourceId() : int|null