| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use WWW::Shopify; | ||
| 7 | |||
| 8 | package WWW::Shopify::Model::CustomerGroup; | ||
| 9 | use parent "WWW::Shopify::Model::Item"; | ||
| 10 | |||
| 11 | my $fields; sub fields { return $fields; } | ||
| 12 | BEGIN { $fields = { | ||
| 13 | "created_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'), | ||
| 14 | "updated_at" => new WWW::Shopify::Field::Date(min => '2010-01-01 00:00:00', max => 'now'), | ||
| 15 | "id" => new WWW::Shopify::Field::Identifier(), | ||
| 16 | "name" => new WWW::Shopify::Field::String::Words(1, 3), | ||
| 17 | "query" => new WWW::Shopify::Field::String::Custom(sub { | ||
| 18 | return 1; | ||
| 19 | }) | ||
| 20 | }; } | ||
| 21 | |||
| 22 | sub creation_minimal { return qw(name query); } | ||
| 23 | sub creation_filled { return qw(created_at id); } | ||
| 24 | sub update_filled { return qw(updated_at); } | ||
| 25 | sub update_fields { return qw(name query); } | ||
| 26 | sub throws_webhooks { return 1; } | ||
| 27 | |||
| 28 | sub read_scope { return "read_customers"; } | ||
| 29 | sub write_scope { return "write_customers"; } | ||
| 30 | |||
| 31 | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||
| 32 | |||
| 33 | 1; |