| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | use WWW::Shopify; | ||
| 5 | |||
| 6 | package WWW::Shopify::Model::Currency; | ||
| 7 | use parent "WWW::Shopify::Model::Item"; | ||
| 8 | |||
| 9 | my $fields; sub fields { return $fields; } | ||
| 10 | BEGIN { $fields = { | ||
| 11 | "currency" => new WWW::Shopify::Field::Currency(), | ||
| 12 | "rate_updated_at" => new WWW::Shopify::Field::Date(), | ||
| 13 | "enabled" => new WWW::Shopify::Field::Boolean() | ||
| 14 | }; } | ||
| 15 | sub plural { return "currencies"; } | ||
| 16 | |||
| 17 | sub creatable { undef; } | ||
| 18 | sub singlable { undef; } | ||
| 19 | sub updatable { undef; } | ||
| 20 | |||
| 21 | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||
| 22 | |||
| 23 | 1 |