ProductVariantMetafield
extends Metafield
in package
Tags
Table of Contents
- PERMISSION__APP_ONLY = 'app_only'
- Private to the app that owns the field
- PERMISSION__READ = 'read'
- Visible to all API consumers
- PERMISSION__READ_AND_STOREFRONT = 'read_and_sf_access'
- Visible to all API consumers, and available on the storefront (e.g. via GraphQL)
- PERMISSION__WRITE = 'write'
- Writeable by all API consumers
- PERMISSION__WRITE_AND_STOREFRONT = 'write_and_sf_access'
- Writeable by to all API consumers, and available on the storefront (e.g. via GraphQL)
- $date_created : string
- $date_modified : string
- $description : string
- $id : int
- $key : string
- $namespace : string
- $permission_set : string
- $resource_id : int
- $resource_type : string
- $value : string
- __construct() : mixed
- jsonSerialize() : array<string|int, mixed>
Constants
PERMISSION__APP_ONLY
Private to the app that owns the field
public
mixed
PERMISSION__APP_ONLY
= 'app_only'
Tags
PERMISSION__READ
Visible to all API consumers
public
mixed
PERMISSION__READ
= 'read'
Tags
PERMISSION__READ_AND_STOREFRONT
Visible to all API consumers, and available on the storefront (e.g. via GraphQL)
public
mixed
PERMISSION__READ_AND_STOREFRONT
= 'read_and_sf_access'
Tags
PERMISSION__WRITE
Writeable by all API consumers
public
mixed
PERMISSION__WRITE
= 'write'
Tags
PERMISSION__WRITE_AND_STOREFRONT
Writeable by to all API consumers, and available on the storefront (e.g. via GraphQL)
public
mixed
PERMISSION__WRITE_AND_STOREFRONT
= 'write_and_sf_access'
Tags
Properties
$date_created
public
string
$date_created
Tags
$date_modified
public
string
$date_modified
Tags
$description
public
string
$description
Tags
$id
public
int
$id
Tags
$key
public
string
$key
Tags
$namespace
public
string
$namespace
Tags
$permission_set
public
string
$permission_set
Tags
$resource_id
public
int
$resource_id
Tags
$resource_type
public
string
$resource_type
= 'variant'
Tags
$value
public
string
$value
Tags
Methods
__construct()
public
__construct([stdClass|null $optionObject = null ]) : mixed
Parameters
- $optionObject : stdClass|null = null
Tags
Return values
mixed —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>