| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | package WWW::Shopify::Model::SmartCollection::Image; | ||
| 7 | use parent 'WWW::Shopify::Model::NestedItem'; | ||
| 8 | |||
| 9 | my $fields; sub fields { return $fields; } | ||
| 10 | BEGIN { $fields = { | ||
| 11 | "created_at" => new WWW::Shopify::Field::Date(), | ||
| 12 | "src" => new WWW::Shopify::Field::String::URL::Shopify(), | ||
| 13 | "alt" => new WWW::Shopify::Field::String(), | ||
| 14 | "width" => new WWW::Shopify::Field::Int(), | ||
| 15 | "height" => new WWW::Shopify::Field::Int(), | ||
| 16 | "attachment" => new WWW::Shopify::Field::String::Base64() | ||
| 17 | }; } | ||
| 18 | sub get_fields { return qw(created_at src); } | ||
| 19 | sub creation_minimal { return qw(attachment); } | ||
| 20 | sub creation_filled { return qw(src created_at width height); } | ||
| 21 | sub is_single { 1; } | ||
| 22 | |||
| 23 | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||
| 24 | |||
| 25 | 1; |