Shopify/Model/DraftOrder/LineItem.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
identifier
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use WWW::Shopify;
7  
8 package WWW::Shopify::Model::DraftOrder::LineItem;
9 use parent "WWW::Shopify::Model::NestedItem";
10  
11 my $fields; sub fields { return $fields; }
12  
13 sub identifier { (); }
14 BEGIN { $fields = {
15 "product_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Product', 1),
16 "variant_id" => new WWW::Shopify::Field::Relation::ReferenceOne('WWW::Shopify::Model::Product::Variant', 1),
17 "title" => new WWW::Shopify::Field::String::Words(),
18 # Depsite being on the documentation, this field does not get passed back. It definitely has one internally, but Shopify does not release it.
19 # You can infer it from the admin_graph_ql id.
20 # "id" => new WWW::Shopify::Field::Identifier(),
21 "name" => new WWW::Shopify::Field::String::Words(),
22 "variant_title" => new WWW::Shopify::Field::String::Words(),
23 "sku" => new WWW::Shopify::Field::String(),
24 "vendor" => new WWW::Shopify::Field::String(),
25 "price" => new WWW::Shopify::Field::Money(),
26 "grams" => new WWW::Shopify::Field::Int(),
27 "quantity" => new WWW::Shopify::Field::Int(),
28 "requires_shipping" => new WWW::Shopify::Field::Boolean(),
29 "taxable" => new WWW::Shopify::Field::Boolean(),
30 "gift_card" => new WWW::Shopify::Field::Boolean(),
31 "fulfillment_service" => new WWW::Shopify::Field::String::Enum(["automatic", "manual"]),
32 "tax_lines" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::DraftOrder::LineItem::TaxLine"),
33 "applied_discount" => new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::DraftOrder::LineItem::AppliedDiscount"),
34 "properties" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::DraftOrder::LineItem::Property"),
35 "custom" => new WWW::Shopify::Field::Boolean(),
36 } }
37  
38 sub singular { return 'line_item'; }
39 sub creation_filled { return (); }
40  
41 eval(__PACKAGE__->generate_accessors); die $@ if $@;
42  
43 1