« Shopify/Model/Product/Variant.pm
↑ Summary
Shopify/Model/Product/Variant/PresentmentPrice/MoneySet.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use WWW::Shopify; | ||
| 7 | |||
| 8 | package WWW::Shopify::Model::Product::Variant::PresentmentPrice; | ||
| 9 | use parent 'WWW::Shopify::Model::NestedItem'; | ||
| 10 | |||
| 11 | my $fields; sub fields { return $fields; } | ||
| 12 | BEGIN { $fields = { | ||
| 13 | "price" => new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Product::Variant::PresentmentPrice::MoneySet"), | ||
| 14 | "compare_at_price" => new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Product::Variant::PresentmentPrice::MoneySet") | ||
| 15 | |||
| 16 | }; } | ||
| 17 | |||
| 18 | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||
| 19 | |||
| 20 | 1 |