Branch Coverage

blib/lib/Business/AuthorizeNet/CIM.pm
Criterion Covered Total %
branch 0 276 0.0


line true false branch
15 0 0 scalar @_ % 2 ? :
18 0 0 unless $args->{'login'}
19 0 0 unless $args->{'transactionKey'}
21 0 0 if ($args->{'test_mode'} or $args->{'test_host_only'}) { }
27 0 0 unless ($args->{'ua'})
38 0 0 scalar @_ % 2 ? :
45 0 0 if defined $args->{'refId'}
48 0 0 if exists $args->{'amount'}
50 0 0 if (exists $args->{'opaqueData'})
60 0 0 if (exists $args->{'customerProfileId'} and exists $args->{'customerPaymentProfileId'})
69 0 0 if (exists $args->{'creditCard'})
74 0 0 if exists $args->{'creditCard'}{$k}
79 0 0 if (exists $args->{'bankAccount'})
91 0 0 if exists $args->{'refTransId'} and $trans_type eq 'priorAuthCaptureTransaction' || $trans_type eq 'refundTransaction' || $trans_type eq 'voidTransaction'
93 0 0 if (exists $args->{'order'})
97 0 0 if exists $args->{'order'}{$k}
102 0 0 if (exists $args->{'lineItems'})
104 0 0 ref $args->{'lineItems'} eq 'ARRAY' ? :
109 0 0 if exists $lineItem->{$k}
117 0 0 unless exists $args->{$type}
121 0 0 if exists $args->{$type}{$k}
126 0 0 if exists $args->{'poNumber'}
127 0 0 if exists $args->{'taxExempt'}
129 0 0 if (exists $args->{'customerId'})
136 0 0 exists $args->{'billTo'} ? :
137 0 0 if (grep {exists $bill_addr->{$_};} @flds)
141 0 0 if exists $bill_addr->{$k}
146 0 0 exists $args->{'shipTo'} ? :
147 0 0 if (grep {exists $ship_addr->{$_};} @flds)
151 0 0 if exists $ship_addr->{$k}
156 0 0 if exists $args->{'customerIP'}
158 0 0 if (exists $args->{'transactionSettings'})
188 0 0 scalar @_ % 2 ? :
197 0 0 if exists $args->{'refId'}
202 0 0 if exists $args->{$k}
211 0 0 if ($need_payment_profiles)
213 0 0 if exists $args->{'customerType'}
215 0 0 if (exists $args->{'billTo'} or $args->{'use_shipToList_as_billTo'} and $args->{'shipToList'})
216 0 0 exists $args->{'billTo'} ? :
220 0 0 if exists $addr->{$k}
227 0 0 if (exists $args->{'creditCard'})
231 0 0 if exists $args->{'creditCard'}{$k}
235 0 0 if (exists $args->{'bankAccount'})
242 0 0 if (exists $args->{'opaqueData'})
254 0 0 if (exists $args->{'shipToList'} or $args->{'use_billTo_as_shipToList'} and $args->{'billTo'})
255 0 0 exists $args->{'shipToList'} ? :
259 0 0 if exists $addr->{$k}
265 0 0 if ($need_payment_profiles)
266 0 0 if ($self->{'test_mode'}) { }
0 0 elsif ($args->{'validationMode'}) { }
282 0 0 scalar @_ % 2 ? :
291 0 0 if exists $args->{'refId'}
294 0 0 if exists $args->{'customerType'}
297 0 0 exists $args->{'billTo'} ? :
298 0 0 if (grep {exists $addr->{$_};} @flds)
302 0 0 if exists $addr->{$k}
309 0 0 if (exists $args->{'creditCard'})
313 0 0 if exists $args->{'creditCard'}{$k}
317 0 0 if (exists $args->{'bankAccount'})
324 0 0 if (exists $args->{'opaqueData'})
335 0 0 if ($self->{'test_mode'}) { }
0 0 elsif ($args->{'validationMode'}) { }
350 0 0 scalar @_ % 2 ? :
359 0 0 if exists $args->{'refId'}
364 0 0 exists $args->{'shipToList'} ? :
367 0 0 if exists $addr->{$k}
380 0 0 scalar @_ % 2 ? :
389 0 0 if exists $args->{'refId'}
392 0 0 if exists $args->{'amount'}
395 0 0 unless exists $args->{$type}
399 0 0 if exists $args->{$type}{$k}
405 0 0 if (exists $args->{'lineItems'})
406 0 0 ref $args->{'lineItems'} eq 'ARRAY' ? :
411 0 0 if exists $lineItem->{$k}
418 0 0 if $args->{'customerProfileId'}
420 0 0 if $args->{'customerPaymentProfileId'}
422 0 0 if $args->{'customerShippingAddressId'}
424 0 0 if ($trans_type eq "profileTransRefund")
427 0 0 if exists $args->{$k}
432 0 0 if (exists $args->{'order'})
436 0 0 if exists $args->{'order'}{$k}
443 0 0 if exists $args->{'transId'} and $trans_type eq 'profileTransPriorAuthCapture' || $trans_type eq 'profileTransRefund' || $trans_type eq 'profileTransVoid'
446 0 0 if exists $args->{'taxExempt'}
448 0 0 if exists $args->{'recurringBilling'}
449 0 0 if exists $args->{'cardCode'}
451 0 0 if exists $args->{'splitTenderId'}
453 0 0 if exists $args->{'approvalCode'} and $trans_type eq "profileTransCaptureOnly"
459 0 0 if exists $args->{'extraOptions'}
533 0 0 unless $d->{'ids'}
536 0 0 defined $id_num ? :
0 0 ref $id_num eq 'ARRAY' ? :
574 0 0 if ($args)
579 0 0 if (ref $args eq 'HASH') { }
622 0 0 if ($args)
641 0 0 scalar @_ % 2 ? :
650 0 0 if exists $args->{'refId'}
655 0 0 if exists $args->{$k}
667 0 0 scalar @_ % 2 ? :
676 0 0 if exists $args->{'refId'}
680 0 0 if exists $args->{'customerType'}
683 0 0 exists $args->{'billTo'} ? :
684 0 0 if (grep {exists $addr->{$_};} @flds)
688 0 0 if exists $addr->{$k}
695 0 0 if (exists $args->{'creditCard'})
699 0 0 if exists $args->{'creditCard'}{$k}
703 0 0 if (exists $args->{'bankAccount'})
710 0 0 if (exists $args->{'opaqueData'})
722 0 0 if ($self->{'test_mode'}) { }
0 0 elsif ($args->{'validationMode'}) { }
737 0 0 scalar @_ % 2 ? :
746 0 0 if exists $args->{'refId'}
748 0 0 if exists $args->{'customerProfileId'}
752 0 0 exists $args->{'shipToList'} ? :
755 0 0 if exists $addr->{$k}
787 0 0 scalar @_ % 2 ? :
799 0 0 if $args->{'customerShippingAddressId'}
800 0 0 if $args->{'cardCode'}
802 0 0 if ($self->{'test_mode'}) { }
815 0 0 scalar @_ % 2 ? :
829 0 0 scalar @_ % 2 ? :
836 0 0 if defined $args->{'refId'}
847 0 0 scalar @_ % 2 ? :
854 0 0 if defined $args->{'refId'}
857 0 0 if $args->{'customerPaymentProfileId'}
869 0 0 scalar @_ % 2 ? :
876 0 0 if defined $args->{'refId'}
888 0 0 scalar @_ % 2 ? :
895 0 0 if defined $args->{'refId'}
897 0 0 if defined $args->{'includeStatistics'}
899 0 0 if defined $args->{'firstSettlementDate'}
901 0 0 if defined $args->{'lastSettlementDate'}
911 0 0 scalar @_ % 2 ? :
918 0 0 if defined $args->{'refId'}
939 0 0 unless my $hash = $argsref->{$tagname}
940 0 0 unless @selectedkeys
944 0 0 if defined $hash->{$k}
953 0 0 if $self->{'debug'}
955 0 0 if $self->{'debug'}