« Shopify/Model/Refund/RefundDuties.pm
↑ Summary
Shopify/Model/Refund/Transaction/PaymentDetails.pm »
| 1 | package WWW::Shopify::Model::Refund::Transaction; | ||
| 2 | use parent 'WWW::Shopify::Model::Transaction'; | ||
| 3 | use Clone qw(clone); | ||
| 4 | |||
| 5 | my $fields = clone(WWW::Shopify::Model::Transaction->fields); | ||
| 6 | $fields->{"receipt"} = new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Refund::Transaction::Receipt"); | ||
| 7 | $fields->{"receipt"}->name("receipt"); | ||
| 8 | $fields->{"payment_details"} = new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Refund::Transaction::PaymentDetails"); | ||
| 9 | $fields->{"payment_details"}->name("payment_details"); | ||
| 10 | $fields->{"order_id"} = new WWW::Shopify::Field::Relation::ReferenceOne("WWW::Shopify::Model::Order"); | ||
| 11 | $fields->{"order_id"}->name("order_id"); | ||
| 12 | |||
| 13 | sub fields { return $fields; } | ||
| 14 | |||
| 15 | sub parent { return 'WWW::Shopify::Model::Refund'; } | ||
| 16 | sub included_in_parent { return 1; } | ||
| 17 | sub is_nested { return 1; } | ||
| 18 | |||
| 19 | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||
| 20 | |||
| 21 | 1; |