blib/lib/WWW/Shopify/Model/Transaction/Receipt.pm

filter: Statementstmt 23.0% 18 / 78 Branchbran 1.6% 1 / 62 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 16.6% 6 / 36 Podpod 3.2% 1 / 31 totaltotal 12.5% 26 / 207 CC 31 SCAR 16.7
CC
31
Cov
14%
ack
5.7
action
5.7
amount
5.7
CRAP 5.3
« blib/lib/WWW/Shopify/Model/Comment.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/Fulfillment.pm »
1 #!/usr/bin/perl
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use WWW::Shopify;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 package WWW::Shopify::Model::Transaction::Receipt;
9 1 ▶use parent 'WWW::Shopify::Model::NestedItem';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 93 ▶my $fields; sub fields { return $fields; }
Subroutine fields: called CC=1 SCAR=0.0
Pod documented
12 1 ▶BEGIN { $fields = {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 "testcase" => new WWW::Shopify::Field::Boolean(),
14 "authorization" => new WWW::Shopify::Field::String::Regex("[0-9]{4,10}"),
15 # Stripe?
16 "code" => new WWW::Shopify::Field::String(),
17 "success" => new WWW::Shopify::Field::String(),
18 "message" => new WWW::Shopify::Field::String(),
19 "front_end" => new WWW::Shopify::Field::Int(),
20 "avs_end" => new WWW::Shopify::Field::String(),
21 "avs_result" => new WWW::Shopify::Field::String(),
22 "avs_result_code" => new WWW::Shopify::Field::String(),
23 "card_code" => new WWW::Shopify::Field::String(),
24 "authorization_code" => new WWW::Shopify::Field::String(),
25 "cardholder_authorization_code" => new WWW::Shopify::Field::String(),
26 "action" => new WWW::Shopify::Field::String(),
27 "risk" => new WWW::Shopify::Field::String(),
28 "reference" => new WWW::Shopify::Field::String(),
29 "order_number" => new WWW::Shopify::Field::String(),
30 "recurring" => new WWW::Shopify::Field::String(),
31 # Paypal
32 "ack" => new WWW::Shopify::Field::String::Enum(["Success", "Failure"]),
33 "timestamp" => new WWW::Shopify::Field::Date(),
34 "correlation_id" => new WWW::Shopify::Field::String(),
35 "version" => new WWW::Shopify::Field::Int(),
36 "build" => new WWW::Shopify::Field::Int(),
37 "amount" => new WWW::Shopify::Field::Money(),
38 "amount_currency" => new WWW::Shopify::Field::Currency(),
39 "avs_code" => new WWW::Shopify::Field::String(),
40 "cvv2_code" => new WWW::Shopify::Field::String(),
41 "transaction_id" => new WWW::Shopify::Field::String(),
42 "payment_details" => new WWW::Shopify::Field::Freeform(),
43 "response_code" => new WWW::Shopify::Field::String(),
44 "response_reason_code" => new WWW::Shopify::Field::String(),
45 }; }
46  
47 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine ack: not called CC=2 SCAR=17.4
Subroutine action: not called CC=2 SCAR=17.4
Subroutine amount: not called CC=2 SCAR=17.4
Subroutine amount_currency: not called CC=2 SCAR=17.4
Subroutine authorization: not called CC=2 SCAR=17.4
Subroutine authorization_code: not called CC=2 SCAR=17.4
Subroutine avs_code: not called CC=2 SCAR=17.4
Subroutine avs_end: not called CC=2 SCAR=17.4
Subroutine avs_result: not called CC=2 SCAR=17.4
Subroutine avs_result_code: not called CC=2 SCAR=17.4
Subroutine build: not called CC=2 SCAR=17.4
Subroutine card_code: not called CC=2 SCAR=17.4
Subroutine cardholder_authorization_code: not called CC=2 SCAR=17.4
Subroutine code: not called CC=2 SCAR=17.4
Subroutine correlation_id: not called CC=2 SCAR=17.4
Subroutine cvv2_code: not called CC=2 SCAR=17.4
Subroutine front_end: not called CC=2 SCAR=17.4
Subroutine message: not called CC=2 SCAR=17.4
Subroutine order_number: not called CC=2 SCAR=17.4
Subroutine payment_details: not called CC=2 SCAR=17.4
Subroutine recurring: not called CC=2 SCAR=17.4
Subroutine reference: not called CC=2 SCAR=17.4
Subroutine response_code: not called CC=2 SCAR=17.4
Subroutine response_reason_code: not called CC=2 SCAR=17.4
Subroutine risk: not called CC=2 SCAR=17.4
Subroutine success: not called CC=2 SCAR=17.4
Subroutine testcase: not called CC=2 SCAR=17.4
Subroutine timestamp: not called CC=2 SCAR=17.4
Subroutine transaction_id: not called CC=2 SCAR=17.4
Subroutine version: not called CC=2 SCAR=17.4
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Pod undocumented
Branch: 31 branches
BranchTrueFalseTotal
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if defined $_[1] 0 0 0
if $@ 0 1 1
48  
49 1 1;
« blib/lib/WWW/Shopify/Model/Comment.pm ↑ Summary blib/lib/WWW/Shopify/Model/Order/Fulfillment.pm »