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

filter: Statementstmt 14.5% 18 / 124 Branchbran 0.9% 1 / 108 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 10.1% 6 / 59 Podpod 1.8% 1 / 54 totaltotal 7.5% 26 / 345 CC 54 SCAR 17.2
CC
54
Cov
8%
ack
5.8
action
5.8
amount
5.8
CRAP 5.6
« blib/lib/WWW/Shopify/Model/Customer.pm ↑ Summary blib/lib/WWW/Shopify/Model/Locale.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 162 ▶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 # Shopify payments.
46 "object" => new WWW::Shopify::Field::String(),
47 "created" => new WWW::Shopify::Field::Int(),
48 "livemode" => new WWW::Shopify::Field::Boolean(),
49 "paid" => new WWW::Shopify::Field::Boolean(),
50 "currency" => new WWW::Shopify::Field::String(),
51 "refunded" => new WWW::Shopify::Field::Freeform(),
52 "card" => new WWW::Shopify::Field::Freeform(),
53 "captured" => new WWW::Shopify::Field::Boolean(),
54 "refunds" => new WWW::Shopify::Field::Freeform(),
55 "balance_transaction" => new WWW::Shopify::Field::Freeform(),
56 "failure_message" => new WWW::Shopify::Field::Freeform(),
57 "failure_code" => new WWW::Shopify::Field::Freeform(),
58 "amount_refunded" => new WWW::Shopify::Field::Int(),
59 "customer" => new WWW::Shopify::Field::Freeform(),
60 "invoice" => new WWW::Shopify::Field::Freeform(),
61 "description" => new WWW::Shopify::Field::String(),
62 "dispute" => new WWW::Shopify::Field::Freeform(),
63 "metadata" => new WWW::Shopify::Field::Freeform(),
64 "statement_description" => new WWW::Shopify::Field::Freeform(),
65 "fraud_details" => new WWW::Shopify::Field::Freeform(),
66 "receipt_email" => new WWW::Shopify::Field::Freeform(),
67 "receipt_number" => new WWW::Shopify::Field::Freeform(),
68 "shipping" => new WWW::Shopify::Field::Freeform(),
69 }; }
70  
71 0 ▶eval(__PACKAGE__->generate_accessors); die $@ if $@;
Subroutine ack: not called CC=2 SCAR=17.6
Subroutine action: not called CC=2 SCAR=17.6
Subroutine amount: not called CC=2 SCAR=17.6
Subroutine amount_currency: not called CC=2 SCAR=17.6
Subroutine amount_refunded: not called CC=2 SCAR=17.6
Subroutine authorization: not called CC=2 SCAR=17.6
Subroutine authorization_code: not called CC=2 SCAR=17.6
Subroutine avs_code: not called CC=2 SCAR=17.6
Subroutine avs_end: not called CC=2 SCAR=17.6
Subroutine avs_result: not called CC=2 SCAR=17.6
Subroutine avs_result_code: not called CC=2 SCAR=17.6
Subroutine balance_transaction: not called CC=2 SCAR=17.6
Subroutine build: not called CC=2 SCAR=17.6
Subroutine captured: not called CC=2 SCAR=17.6
Subroutine card: not called CC=2 SCAR=17.6
Subroutine card_code: not called CC=2 SCAR=17.6
Subroutine cardholder_authorization_code: not called CC=2 SCAR=17.6
Subroutine code: not called CC=2 SCAR=17.6
Subroutine correlation_id: not called CC=2 SCAR=17.6
Subroutine created: not called CC=2 SCAR=17.6
Subroutine currency: not called CC=2 SCAR=17.6
Subroutine customer: not called CC=2 SCAR=17.6
Subroutine cvv2_code: not called CC=2 SCAR=17.6
Subroutine description: not called CC=2 SCAR=17.6
Subroutine dispute: not called CC=2 SCAR=17.6
Subroutine failure_code: not called CC=2 SCAR=17.6
Subroutine failure_message: not called CC=2 SCAR=17.6
Subroutine fraud_details: not called CC=2 SCAR=17.6
Subroutine front_end: not called CC=2 SCAR=17.6
Subroutine invoice: not called CC=2 SCAR=17.6
Subroutine livemode: not called CC=2 SCAR=17.6
Subroutine message: not called CC=2 SCAR=17.6
Subroutine metadata: not called CC=2 SCAR=17.6
Subroutine object: not called CC=2 SCAR=17.6
Subroutine order_number: not called CC=2 SCAR=17.6
Subroutine paid: not called CC=2 SCAR=17.6
Subroutine payment_details: not called CC=2 SCAR=17.6
Subroutine receipt_email: not called CC=2 SCAR=17.6
Subroutine receipt_number: not called CC=2 SCAR=17.6
Subroutine recurring: not called CC=2 SCAR=17.6
Subroutine reference: not called CC=2 SCAR=17.6
Subroutine refunded: not called CC=2 SCAR=17.6
Subroutine refunds: not called CC=2 SCAR=17.6
Subroutine response_code: not called CC=2 SCAR=17.6
Subroutine response_reason_code: not called CC=2 SCAR=17.6
Subroutine risk: not called CC=2 SCAR=17.6
Subroutine shipping: not called CC=2 SCAR=17.6
Subroutine statement_description: not called CC=2 SCAR=17.6
Subroutine success: not called CC=2 SCAR=17.6
Subroutine testcase: not called CC=2 SCAR=17.6
Subroutine timestamp: not called CC=2 SCAR=17.6
Subroutine transaction_id: not called CC=2 SCAR=17.6
Subroutine version: not called CC=2 SCAR=17.6
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
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: 54 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 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
72  
73 1 1;
« blib/lib/WWW/Shopify/Model/Customer.pm ↑ Summary blib/lib/WWW/Shopify/Model/Locale.pm »