-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathProductFields.php
53 lines (50 loc) · 1.69 KB
/
ProductFields.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Shopify\Enum\Fields;
class ProductFields extends AbstractObjectEnum
{
const BODY_HTML = 'body_html';
const CREATED_AT = 'created_at';
const HANDLE = 'handle';
const ID = 'id';
const IMAGES = 'images';
const OPTIONS = 'options';
const PRODUCT_TYPE = 'product_type';
const PUBLISHED_AT = 'published_at';
const PUBLISHED = 'published';
const PUBLISHED_SCOPE = 'published_scope';
const TAGS = 'tags';
const TEMPLATE_SUFFIX = 'template_suffix';
const TITLE = 'title';
const METAFIELDS = 'metafields';
const METAFIELDS_GLOBAL_TITLE_TAG = 'metafields_global_title_tag';
const METAFIELDS_GLOBAL_DESCRIPTION_TAG = 'metafields_global_description_tag';
const UPDATED_AT = 'updated_at';
const VARIANTS = 'variants';
const VENDOR = 'vendor';
const IMAGE = 'image';
public function getFieldTypes()
{
return array(
'body_html' => 'string',
'created_at' => 'DateTime',
'handle' => 'string',
'id' => 'integer',
'images' => 'ProductImage[]',
'options' => 'ProductOption[]',
'product_type' => 'string',
'published_at' => 'DateTime',
'published' => 'boolean',
'published_scope' => 'string',
'tags' => 'string',
'template_suffix' => 'string',
'title' => 'string',
'metafields' => 'Metafield[]',
'metafields_global_title_tag' => 'string',
'metafields_global_description_tag' => 'string',
'updated_at' => 'DateTime',
'variants' => 'ProductVariant[]',
'vendor' => 'string',
'image' => 'ProductImage'
);
}
}