Condition Coverage

blib/lib/Net/API/Stripe.pm
Criterion Covered Total %
condition 0 953 0.0


and 3 conditions

line !l l&&!r l&&r condition
640 0 0 0 length $json->{'livemode'} and not length $self->{'livemode'}
647 0 0 0 not $self->{$_} and length $json->{$_}
681 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
683 0 0 0 &Scalar::Util::blessed($self->{'api_uri'}) and $self->{'api_uri'}->isa('URI')
947 0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Customer')
0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Payment::Card')
981 0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Customer')
0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Payment::Card')
1055 0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Customer')
0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Payment::Card')
1109 0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Customer')
0 0 0 $self->_is_object($_[0]) and $_[0]->isa('Net::API::Stripe::Payment::Card')
1176 0 0 0 exists $args->{'destination'} and not scalar grep(/^account$/, @{$$args{'destination'};})
1187 0 0 0 exists $args->{'amount'} and length $args->{'amount'}
1218 0 0 0 exists $args->{'destination'} and not scalar grep(/^account$/, @{$$args{'destination'};})
1347 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
1384 0 0 0 $_[0] =~ /^\d+(\.\d+)?$/ && $_[0] > 0 && $_[0] <= 100
1495 0 0 0 $args->{'_object'} and $self->_is_object($args->{'_object'}{'invoice'})
0 0 0 $args->{'_object'} and $self->_is_object($args->{'_object'}{'invoice'}) and $args->{'_object'}->invoice->isa('Net::API::Stripe::Billing::Invoice')
1551 0 0 0 $args->{'_object'} and $self->_is_object($args->{'_object'}{'invoice'})
0 0 0 $args->{'_object'} and $self->_is_object($args->{'_object'}{'invoice'}) and $args->{'_object'}->invoice->isa('Net::API::Stripe::Billing::Invoice')
1619 0 0 0 $obj and $obj->invoice
1763 0 0 0 $args->{'tax_info'} and $args->{'tax_info'}{'type'} ne 'vat'
1909 0 0 0 $args and ref $args ne 'HASH'
1911 0 0 0 $self->_is_object($path) and $path->can('path')
1921 0 0 0 $args and %$args
2187 0 0 0 $args and ref $args ne 'HASH'
2189 0 0 0 $self->_is_object($path) and $path->can('path')
2199 0 0 0 $args and %$args
2246 0 0 0 $obj and $obj->customer
0 0 0 $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2253 0 0 0 $obj and $obj->subscription
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'})
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2357 0 0 0 $obj and $obj->customer
0 0 0 $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2364 0 0 0 $obj and $obj->schedule
0 0 0 $obj and $obj->schedule and $obj->schedule->id
0 0 0 $args->{'schedule'} and $self->_is_object($args->{'schedule'})
0 0 0 $args->{'schedule'} and $self->_is_object($args->{'schedule'}) and $args->{'schedule'}->isa('Net::API::Stripe::Billing::Subscription::Schedule')
2371 0 0 0 $obj and $obj->subscription
0 0 0 $obj and $obj->subscription and $obj->subscription->id
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'})
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2422 0 0 0 $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2427 0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'})
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2469 0 0 0 $obj and $obj->payment_method
0 0 0 $args->{'payment_method'} and $self->_is_object($args->{'payment_method'})
0 0 0 $args->{'payment_method'} and $self->_is_object($args->{'payment_method'}) and $args->{'payment_method'}->isa('Net::API::Stripe::Payment::Method')
2476 0 0 0 $obj and $obj->source
0 0 0 $args->{'source'} and $self->_is_object($args->{'source'})
0 0 0 $args->{'source'} and $self->_is_object($args->{'source'}) and $args->{'source'}->isa('Net::API::Stripe::Payment::Source')
2543 0 0 0 $obj and $obj->customer
0 0 0 $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2550 0 0 0 $obj and $obj->schedule
0 0 0 $args->{'schedule'} and $self->_is_object($args->{'schedule'})
0 0 0 $args->{'schedule'} and $self->_is_object($args->{'schedule'}) and $args->{'schedule'}->isa('Net::API::Stripe::Billing::Subscription::Schedule')
2557 0 0 0 $obj and $obj->subscription
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'})
0 0 0 $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2921 0 0 0 $nickname and $this->nickname eq $nickname
2940 0 0 0 $nickname and $this->nickname eq $nickname
2959 0 0 0 $self->_is_object($args->{'product'}) and $args->{'product'}->isa('Net::API::Stripe::Product')
3016 0 0 0 $self->_is_object($args->{'product'}) and $args->{'product'}->isa('Net::API::Stripe::Product')
3075 0 0 0 $self->_is_object($args->{'product'}) and $args->{'product'}->isa('Net::API::Stripe::Product')
3103 0 0 0 $args and ref $args ne 'HASH'
3106 0 0 0 $self->_is_object($path) and $path->can('path')
3142 0 0 0 $args and ref $args ne 'HASH'
3145 0 0 0 $self->_is_object($path) and $path->can('path')
3217 0 0 0 $self->_is_object($args->{'product'}) and $args->{'product'}->isa('Net::API::Stripe::Product')
3254 0 0 0 $self->_is_object($args->{'product'}) and $args->{'product'}->isa('Net::API::Stripe::Product')
3317 0 0 0 $self->_is_object($args->{'product'}) and $args->{'product'}->isa('Net::API::Stripe::Product')
3361 0 0 0 $name and $this->name eq $name
0 0 0 $nickname and $this->nickname eq $nickname
3384 0 0 0 ref $_[0] eq 'ARRAY' && scalar @{$_[0];} <= 5
3388 0 0 0 ref $_[0] eq 'ARRAY' && scalar @{$_[0];} <= 8
3483 0 0 0 ref $_[0] eq 'ARRAY' && scalar @{$_[0];} <= 5
3487 0 0 0 ref $_[0] eq 'ARRAY' && scalar @{$_[0];} <= 8
4238 0 0 0 @_ and ref $_[0] eq 'HASH'
4280 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
4299 0 0 0 @_ and ref $_[0] eq 'HASH'
4362 0 0 0 @_ and ref $_[0] eq 'HASH'
4436 0 0 0 ref $hash->{$k} eq 'HASH' and ref $mirror->{$k} eq 'HASH'
0 0 0 ref $hash->{$k} eq 'HASH' and ref $mirror->{$k} eq 'HASH' and ++$seen->{$addr} == 1
4449 0 0 0 exists $hash->{$k} and length $hash->{$k}
4482 0 0 0 $dict->{'fields'} and ref $dict->{'fields'} eq 'ARRAY'
4485 0 0 0 ref $args->{$k} eq 'ARRAY' and $dict->{'type'} eq 'array'
4518 0 0 0 exists $parent_hash->{$p} and ref $parent_hash->{$p} eq 'HASH'
4530 0 0 0 ref $args->{$k} eq 'ARRAY' and $dict->{'type'} eq 'array'
4551 0 0 0 $dict->{'required'} and not exists $args->{$k}
0 0 0 $pkg = $self->_is_object($args->{$k}) and $dict->{'package'}
0 0 0 $pkg = $self->_is_object($args->{$k}) and $dict->{'package'} and $dict->{'package'} ne $pkg
0 0 0 $dict->{'re'} and ref $dict->{'re'} eq 'Regexp'
0 0 0 $dict->{'re'} and ref $dict->{'re'} eq 'Regexp' and not $args->{$k} =~ /$dict->{'re'}/
0 0 0 $dict->{'type'} and $dict->{'type'} eq 'scalar' && ref $args->{$k} || $dict->{'type'} ne 'scalar' && ref $args->{$k} && lc ref $args->{$k} ne $dict->{'type'}
0 0 0 $dict->{'type'} eq 'boolean' and length $args->{$k}
4579 0 0 0 $self->_is_object($args->{$k}) and $args->{$k}->isa('DateTime')
4583 0 0 0 $dict->{'type'} eq 'date' and $args->{$k} =~ /^(?<year>\d{4})[\.|\-](?<month>\d{1,2})[\.|\-](?<day>\d{1,2})$/
0 0 0 $dict->{'type'} eq 'datetime' and $args->{$k} =~ /^(?<year>\d{4})[\.|\-](?<month>\d{1,2})[\.|\-](?<day>\d{1,2})[T|[:blank:]]+(?<hour>\d{1,2}):(?<minute>\d{1,2}):(?<second>\d{1,2})$/
4602 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
4623 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
4637 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
4673 0 0 0 exists $okParams->{'expandable'} and exists $okParams->{'expandable'}{'allowed'}
0 0 0 exists $okParams->{'expandable'} and exists $okParams->{'expandable'}{'allowed'} and ref $okParams->{'expandable'}{'allowed'} eq 'ARRAY'
4686 0 0 0 scalar @{$args->{'expand'};} and exists $okParams->{'expandable'}
4755 0 0 0 exists $args->{$f} and length $args->{$f}
4771 0 0 0 $self->_is_object($this->{$k}) and $this->{$k}->isa('Module::Generic::Boolean')
4801 0 0 0 ref $data eq 'SCALAR' and $$data == 1 || $$daata == 0
4807 0 0 0 $pkg and $pkg =~ /^Net::API::Stripe/
0 0 0 $pkg and $pkg =~ /^Net::API::Stripe/ and $data->{$k}->can('id')
0 0 0 $pkg and $pkg =~ /^Net::API::Stripe/ and $data->{$k}->can('id') and $data->{$k}->id
4858 0 0 0 scalar @_ and ref $_[-1] eq 'HASH'
4900 0 0 0 ref $data eq 'SCALAR' and $$data == 1 || $$daata == 0
4908 0 0 0 $pkg and $pkg =~ /^Net::API::Stripe/
0 0 0 $pkg and $pkg =~ /^Net::API::Stripe/ and $data->{$k}->can('id')
0 0 0 $pkg and $pkg =~ /^Net::API::Stripe/ and $data->{$k}->can('id') and $data->{$k}->id
0 0 0 ref $data->{$k} eq 'HASH' and exists $data->{$k}{'_filepath'}
4990 0 0 0 scalar @_ == 1 and not defined $_[0]
5002 0 0 0 $self->_is_object($_[0]) and $_[0]->isa($class)
5045 0 0 0 exists $self->{$name} and &Scalar::Util::blessed($self->{$name})
5063 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
5200 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')

or 2 conditions

line l !l condition
614 0 0 $self->{'currency'} ||= 'jpy'
703 0 0 $self->_get_method('balance', $action, $allowed) || (return)
725 0 0 $self->_get_method('balance_transaction', $action, $allowed) || (return)
760 0 0 $self->get('balance_transactions', $args) || (return)
776 0 0 delete $args->{'id'} || (return $self->error('No balance transaction id was provided to retrieve its information.'))
777 0 0 $self->get("balance/history/$id") || (return)
779 0 0 $self->_object_type_to_class($hash->{'object'}) || (return)
790 0 0 $self->_get_method('bank_account', $action, $allowed) || (return)
822 0 0 $self->post("accounts/$id/external_accounts", $args) || (return)
839 0 0 delete $args->{'id'} || (return $self->error('No bank account id was provided to delete its information.'))
841 0 0 $self->delete("accounts/$acct/external_accounts/$id", $args) || (return)
864 0 0 $self->get('coupons', $args) || (return)
881 0 0 delete $args->{'id'} || (return $self->error('No bank account id was provided to retrieve its information.'))
883 0 0 $self->get("accounts/$acct/external_accounts/$id", $args) || (return)
907 0 0 delete $args->{'id'} || (return $self->error(q[No bank account id was provided to update coupon's details]))
909 0 0 $self->post("accounts/$acct/external_accounts/$id", $args) || (return)
928 0 0 $self->_get_method('card', $action, $allowed) || (return)
968 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to create a card for the customer'))
969 0 0 $self->post("customers/$id/sources", $args) || (return)
971 0 0 $self->_object_type_to_class($hash->{'object'}) || (return)
1013 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to delete his/her card'))
1014 0 0 delete $args->{'card_id'} || (return $self->error(q[No card id was provided to delete customer's card]))
1015 0 0 $self->delete("customers/$id/sources/$cardId", $args) || (return)
1034 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to list his/her cards'))
1039 0 0 $self->get("customers/$id/sources", $args) || (return)
1082 0 0 delete $args->{'customer'} || (return $self->error('No customer id was provided to retrieve his/her card'))
1083 0 0 delete $args->{'id'} || (return $self->error(q[No card id was provided to retrieve customer's card]))
1084 0 0 $self->get("customers/$id/sources/$cardId", $args) || (return)
1137 0 0 delete $args->{'customer'} || (return $self->error('No customer id was provided to update his/her card.'))
1138 0 0 delete $args->{'id'} || (return $self->error(q[No card id was provided to update customer's card]))
1139 0 0 $self->post("customers/$id/sources/$cardId", $args) || (return)
1151 0 0 $self->_get_method('charge', $action, $allowed) || (return)
1175 0 0 delete $args->{'id'} || (return $self->error('No charge id was provided to update its charge details.'))
1177 0 0 $self->post("charges/$id/capture", $args) || (return)
1219 0 0 $self->post('charges', $args) || (return)
1254 0 0 $self->get('charges', $args) || (return)
1270 0 0 delete $args->{'id'} || (return $self->error('No charge id was provided to retrieve its charge details'))
1271 0 0 $self->get("charges/$id", $args) || (return)
1303 0 0 delete $args->{'id'} || (return $self->error('No charge id was provided to update its charge details'))
1304 0 0 $self->post("charges/$id", $args) || (return)
1311 0 0 shift @_ || (return $self->error('No code was provided to get the related error'))
1333 0 0 'IO::File'->new("<$file") || (return $self->error("Unable to open configuration file ${file}: $!"))
1363 0 0 $self->_get_method('coupon', $action, $allowed) || (return)
1389 0 0 $self->post('coupons', $args) || (return)
1405 0 0 delete $args->{'id'} || (return $self->error('No coupon id was provided to delete its information.'))
1406 0 0 $self->delete("coupons/$id", $args) || (return)
1433 0 0 $self->get('coupons', $args) || (return)
1449 0 0 delete $args->{'id'} || (return $self->error('No coupon id was provided to retrieve its information.'))
1450 0 0 $self->get("coupons/$id", $args) || (return)
1471 0 0 delete $args->{'id'} || (return $self->error(q[No coupon id was provided to update coupon's details]))
1472 0 0 $self->post("coupons/$id", $args) || (return)
1485 0 0 $self->_get_method('coupons', $action, $allowed) || (return)
1500 0 0 $cred->invoice->id || (return $self->error('The Invoice object provided for this credit note has no id.'))
1519 0 0 $self->post('credit_notes', $args) || (return)
1541 0 0 $self->get("credit_notes/$id/lines", $args) || (return)
1556 0 0 $cred->invoice->id || (return $self->error('The Invoice object provided for this credit note has no id.'))
1580 0 0 $self->get("credit_notes/preview/$id/lines", $args) || (return)
1607 0 0 $self->get('coupons', $args) || (return)
1621 0 0 $obj->invoice->id || (return $self->error('The Invoice object provided for this credit note has no id.'))
1640 0 0 $self->post('credit_notes/preview', $args) || (return)
1656 0 0 delete $args->{'id'} || (return $self->error('No credit note id was provided to retrieve its information.'))
1657 0 0 $self->get("credit_notes/$id", $args) || (return)
1678 0 0 delete $args->{'id'} || (return $self->error(q[No credit note id was provided to update credit note's details]))
1679 0 0 $self->post("credit_notes/$id", $args) || (return)
1695 0 0 delete $args->{'id'} || (return $self->error('No credit note id was provided to void it.'))
1696 0 0 $self->post("credit_notes/$id/void", $args) || (return)
1721 0 0 $self->_get_method('customer', $action, $allowed) || (return)
1764 0 0 $self->post('customers', $args) || (return)
1782 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to delete its information.'))
1783 0 0 $self->delete("customers/$id") || (return)
1799 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to delete its coupon.'))
1800 0 0 $self->delete("customers/$id/discount", $args) || (return)
1832 0 0 $self->get('customers', $args) || (return)
1848 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to retrieve its information.'))
1849 0 0 $self->get("customers/$id", $args) || (return)
1899 0 0 delete $args->{'id'} || (return $self->error(q[No customer id was provided to update customer's details]))
1900 0 0 $self->post("customers/$id", $args) || (return)
1907 0 0 shift @_ || (return $self->error('No api endpoint (path) was provided.'))
1956 0 0 $self->_get_method('dispute', $action, $allowed) || (return)
1972 0 0 delete $args->{'id'} || (return $self->error('No dispute id was provided to close.'))
1973 0 0 $self->delete("disputes/$id/close", $args) || (return)
2004 0 0 $self->get('disputes', $args) || (return)
2020 0 0 delete $args->{'id'} || (return $self->error('No dispute id was provided to retrieve its information.'))
2021 0 0 $self->get("disputes/$id", $args) || (return)
2042 0 0 delete $args->{'id'} || (return $self->error(q[No dispute id was provided to update dispute's details]))
2043 0 0 $self->post("disputes/$id", $args) || (return)
2057 0 0 shift @_ || (return $self->error('No object type was provided to get its list of methods.'))
2090 0 0 $self->_get_method('files', $action, $allowed) || (return)
2126 0 0 $self->post_multipart('files', $args) || (return)
2154 0 0 $self->get('files', $args) || (return)
2170 0 0 delete $args->{'id'} || (return $self->error('No file id was provided to retrieve its information.'))
2171 0 0 $self->get("files/$id", $args) || (return)
2185 0 0 shift @_ || (return $self->error('No api endpoint (path) was provided.'))
2235 0 0 $self->_get_method('coupons', $action, $allowed) || (return)
2250 0 0 $cust->id || (return $self->error('The Customer object provided for this invoice has no id.'))
2257 0 0 $sub->id || (return $self->error('The Subscription object provided for this invoice has no id.'))
2282 0 0 $self->post('invoices', $args) || (return)
2299 0 0 delete $args->{'id'} || (return $self->error('No draft invoice id was provided to delete its information.'))
2300 0 0 $self->delete("invoices/$id", $args) || (return)
2317 0 0 delete $args->{'id'} || (return $self->error('No invoice id was provided to pay it.'))
2318 0 0 $self->post("invoices/$id/finalize", $args) || (return)
2346 0 0 $self->get("invoices/$id/lines", $args) || (return)
2361 0 0 $cust->id || (return $self->error('No customer id could be found in this customer object.'))
2368 0 0 $sched->id || (return $self->error('No subscription schedule id could be found in this subscription schedule object.'))
2375 0 0 $sub->id || (return $self->error('No subscription id could be found in this subscription object.'))
2414 0 0 $self->get('invoices/upcoming/lines', $args) || (return)
2424 0 0 $args->{'customer'}->id || (return $self->error('No customer id could be found in this customer object.'))
2429 0 0 $args->{'subscription'}->id || (return $self->error('No subscription id could be found in this subscription object.'))
2459 0 0 $self->get('invoices', $args) || (return)
2473 0 0 $pm->id || (return $self->error('No payment method id could be found in this payment method object.'))
2480 0 0 $src->id || (return $self->error('No payment source id could be found in this payment source object.'))
2497 0 0 delete $args->{'id'} || (return $self->error('No invoice id was provided to pay it.'))
2498 0 0 $self->post("invoices/$id/pay", $args) || (return)
2514 0 0 delete $args->{'id'} || (return $self->error('No invoice id was provided to retrieve its information.'))
2515 0 0 $self->get("invoices/$id", $args) || (return)
2531 0 0 delete $args->{'id'} || (return $self->error('No invoice id was provided to send it.'))
2532 0 0 $self->post("invoices/$id/send", $args) || (return)
2547 0 0 $cust->id || (return $self->error('No customer id could be found in this customer object.'))
2554 0 0 $sched->id || (return $self->error('No subscription schedule id could be found in this subscription schedule object.'))
2561 0 0 $sub->id || (return $self->error('No subscription id could be found in this subscription object.'))
2594 0 0 $self->post('invoices/upcoming', $args) || (return)
2627 0 0 delete $args->{'id'} || (return $self->error(q[No invoice id was provided to update invoice's details]))
2628 0 0 $self->post("invoices/$id", $args) || (return)
2644 0 0 delete $args->{'id'} || (return $self->error('No invoice id was provided to void it.'))
2645 0 0 $self->post("invoices/$id/void", $args) || (return)
2661 0 0 delete $args->{'id'} || (return $self->error('No invoice id was provided to make it uncollectible.'))
2662 0 0 $self->post("invoices/$id/mark_uncollectible", $args) || (return)
2714 0 0 $self->_get_method('payment_method', $action, $allowed) || (return)
2749 0 0 delete $args->{'id'} || (return $self->error(qq[No payment method id was provided to attach to attach it to the customer with id "$args->{'customer'}".]))
2750 0 0 $self->post("payment_methods/$id/attach", $args) || (return)
2772 0 0 $self->post('payment_methods', $args) || (return)
2815 0 0 delete $args->{'id'} || (return $self->error(qq[No payment method id was provided to attach to attach it to the customer with id "$args->{'customer'}".]))
2816 0 0 $self->post("payment_methods/$id/detach", $args) || (return)
2839 0 0 $self->get('payment_methods', $args) || (return)
2855 0 0 delete $args->{'id'} || (return $self->error('No payment method id was provided to retrieve its information.'))
2856 0 0 $self->get("payment_methods/$id", $args) || (return)
2879 0 0 delete $args->{'id'} || (return $self->error(q[No payment method id was provided to update payment method's details]))
2880 0 0 $self->post("payment_methods/$id", $args) || (return)
2895 0 0 $self->_get_method('plan', $action, $allowed) || (return)
2915 0 0 $self->plans('list', $args) || (return)
2936 0 0 $self->plans('list', $args) || (return)
2989 0 0 $self->post('plans', $args) || (return)
3007 0 0 delete $args->{'id'} || (return $self->error('No plan id was provided to delete its information.'))
3008 0 0 $self->delete("plans/$id", $args) || (return)
3048 0 0 $self->get('plans', $args) || (return)
3064 0 0 delete $args->{'id'} || (return $self->error('No plan id was provided to retrieve its information.'))
3065 0 0 $self->get("plans/$id", $args) || (return)
3093 0 0 delete $args->{'id'} || (return $self->error(q[No plan id was provided to update plan's details]))
3094 0 0 $self->post("plans/$id", $args) || (return)
3101 0 0 shift @_ || (return $self->error('No api endpoint (path) was provided.'))
3140 0 0 shift @_ || (return $self->error('No api endpoint (path) was provided.'))
3185 0 0 $ref->{'type'} ||= 'text/plain'
3207 0 0 $self->_get_method('price', $action, $allowed) || (return)
3246 0 0 $self->post('prices', $args) || (return)
3290 0 0 $self->get('prices', $args) || (return)
3306 0 0 delete $args->{'id'} || (return $self->error('No price id was provided to retrieve its information.'))
3307 0 0 $self->get("prices/$id", $args) || (return)
3335 0 0 delete $args->{'id'} || (return $self->error(q[No price id was provided to update price's details]))
3336 0 0 $self->post("prices/$id", $args) || (return)
3347 0 0 $self->_get_method('product', $action, $allowed) || (return)
3357 0 0 $self->products('list', $args) || (return)
3398 0 0 $self->post('products', $args) || (return)
3416 0 0 delete $args->{'id'} || (return $self->error('No product id was provided to delete its information.'))
3417 0 0 $self->delete("products/$id", $args) || (return)
3451 0 0 $self->get('products', $args) || (return)
3467 0 0 delete $args->{'id'} || (return $self->error('No product id was provided to retrieve its information.'))
3468 0 0 $self->get("products/$id", $args) || (return)
3501 0 0 delete $args->{'id'} || (return $self->error(q[No product id was provided to update product's details]))
3502 0 0 $self->post("products/$id", $args) || (return)
3521 0 0 $self->_get_method('schedule', $action, $allowed) || (return)
3543 0 0 delete $args->{'id'} || (return $self->error('No subscription schedule id was provided to cancel.'))
3544 0 0 $self->post("subscription_schedules/$id/cancel", $args) || (return)
3572 0 0 $self->post('subscription_schedules', $args) || (return)
3616 0 0 $self->get('subscription_schedules', $args) || (return)
3635 0 0 delete $args->{'id'} || (return $self->error('No subscription schedule id was provided to retrieve its information.'))
3636 0 0 $self->post("subscription_schedules/$id/release", $args) || (return)
3652 0 0 delete $args->{'id'} || (return $self->error('No subscription schedule id was provided to retrieve its information.'))
3653 0 0 $self->get("subscription_schedules/$id", $args) || (return)
3678 0 0 delete $args->{'id'} || (return $self->error(q[No subscription schedule id was provided to update subscription schedule's details]))
3679 0 0 $self->post("subscription_schedules/$id", $args) || (return)
3694 0 0 $self->_get_method('subscription', $action, $allowed) || (return)
3728 0 0 $self->post('checkout/sessions', $args) || (return)
3752 0 0 $self->get('checkout/sessions', $args) || (return)
3759 0 0 shift @_ || (return $self->error('No parameters were provided to retrieve a tax id'))
3767 0 0 delete $args->{'id'} || (return $self->error('No tax id was provided to retrieve its details'))
3768 0 0 $self->get("checkout/sessions/$id", $args) || (return)
3787 0 0 $self->_get_method('source', $action, $allowed) || (return)
3822 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to attach the source to.'))
3823 0 0 $self->post("customers/$id/sources", $args) || (return)
3851 0 0 $self->post('sources', $args) || (return)
3888 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to detach the source from it.'))
3889 0 0 delete $args->{'source'} || (return $self->error('No source id was provided to detach.'))
3890 0 0 $self->delete("customers/$id/sources/$src_id", $args) || (return)
3906 0 0 delete $args->{'id'} || (return $self->error('No source id was provided to retrieve its information.'))
3907 0 0 $self->get("sources/$id", $args) || (return)
3930 0 0 delete $args->{'id'} || (return $self->error(q[No source id was provided to update source's details]))
3931 0 0 $self->post("sources/$id", $args) || (return)
3944 0 0 $self->_get_method('subscription', $action, $allowed) || (return)
3962 0 0 delete $args->{'id'} || (return $self->error('No subscription id was provided to cancel.'))
3963 0 0 $self->delete("subscriptions/$id", $args) || (return)
4004 0 0 $self->post('subscriptions', $args) || (return)
4020 0 0 delete $args->{'id'} || (return $self->error('No subscription id was provided to delete its coupon.'))
4021 0 0 $self->delete("subscriptions/$id/discount", $args) || (return)
4055 0 0 $self->get('subscriptions', $args) || (return)
4071 0 0 delete $args->{'id'} || (return $self->error('No subscription id was provided to retrieve its information.'))
4072 0 0 $self->get("subscriptions/$id", $args) || (return)
4113 0 0 delete $args->{'id'} || (return $self->error(q[No subscription id was provided to update subscription's details]))
4114 0 0 $self->post("subscriptions/$id", $args) || (return)
4125 0 0 $self->_get_method('tax_id', $action, $allowed) || (return)
4144 0 0 delete $args->{'customer'} || (return $self->error('No customer id was provided to create a tax_id for the customer'))
4145 0 0 $self->post("customers/$id/tax_ids", $args) || (return)
4162 0 0 delete $args->{'id'} || (return $self->error('No tax id was provided to delete.'))
4163 0 0 delete $args->{'customer'} || (return $self->error('No customer id was provided to delete his/her tax_id'))
4164 0 0 $self->delete("customers/$cust_id/tax_ids/$id", $args) || (return)
4184 0 0 delete $args->{'id'} || (return $self->error('No customer id was provided to list his/her tax ids'))
4189 0 0 $self->get("customers/$id/tax_ids", $args) || (return)
4206 0 0 delete $args->{'id'} || (return $self->error(q[No tax id was provided to retrieve customer's tax_id]))
4207 0 0 delete $args->{'customer'} || (return $self->error('No customer id was provided to retrieve his/her tax_id'))
4208 0 0 $self->get("customers/$cust_id/tax_ids/$id", $args) || (return)
4243 0 0 $opts->{'time_tolerance'} ||= 300
4763 0 0 shift @_ || (return)
5000 0 0 shift @_ || (return $self->error('No class was provided to get its information as parameters.'))
5054 0 0 $class->new('debug', $self->debug, 'verbose', $self->verbose) || (return $self->pass_error($class->error))
5137 0 0 shift @_ || (return $self->error('No class was provided to find its associated type.'))
5150 0 0 shift @_ || (return $self->error('No object type was provided'))
5161 0 0 shift @_ || (return)

or 3 conditions

line l !l&&r !l&&!r condition
1188 0 0 0 $args->{'currency'} ||= $self->currency
2246 0 0 0 $obj and $obj->customer or $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2253 0 0 0 $obj and $obj->subscription or $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2357 0 0 0 $obj and $obj->customer or $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2364 0 0 0 $obj and $obj->schedule and $obj->schedule->id or $args->{'schedule'} and $self->_is_object($args->{'schedule'}) and $args->{'schedule'}->isa('Net::API::Stripe::Billing::Subscription::Schedule')
2371 0 0 0 $obj and $obj->subscription and $obj->subscription->id or $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2469 0 0 0 $obj and $obj->payment_method or $args->{'payment_method'} and $self->_is_object($args->{'payment_method'}) and $args->{'payment_method'}->isa('Net::API::Stripe::Payment::Method')
2476 0 0 0 $obj and $obj->source or $args->{'source'} and $self->_is_object($args->{'source'}) and $args->{'source'}->isa('Net::API::Stripe::Payment::Source')
2543 0 0 0 $obj and $obj->customer or $self->_is_object($args->{'customer'}) and $args->{'customer'}->isa('Net::API::Stripe::Customer')
2550 0 0 0 $obj and $obj->schedule or $args->{'schedule'} and $self->_is_object($args->{'schedule'}) and $args->{'schedule'}->isa('Net::API::Stripe::Billing::Subscription::Schedule')
2557 0 0 0 $obj and $obj->subscription or $args->{'subscription'} and $self->_is_object($args->{'subscription'}) and $args->{'subscription'}->isa('Net::API::Stripe::Billing::Subscription')
2906 0 0 0 $id or $nickname
3040 0 0 0 $args->{$bool} eq 'true' || $args->{$bool} ne 'false' && $args->{$bool}
3282 0 0 0 $args->{$bool} eq 'true' || $args->{$bool} ne 'false' && $args->{$bool}
3361 0 0 0 $name and $this->name eq $name or $nickname and $this->nickname eq $nickname
4304 0 0 0 'Net::IP'->new($opts->{'ip'}) || do { warn "Warning only: IP '${raw}' is not valid: ", 'Net::IP'->Error, "\n"; push @$err, sprintf("IP '${raw}' is not valid: %s", 'Net::IP'->Error); return '' }
4380 0 0 0 ref $this->{$k} eq 'HASH' or $self->_is_object($this->{$k})
4391 0 0 0 ref $that eq 'HASH' or $self->_is_object($that)
4461 0 0 0 $k eq 'expand' or $k eq 'expandable'
0 0 0 $k eq 'expand' or $k eq 'expandable' or substr($k, 0, 1) eq '_'
4467 0 0 0 $okParams->{'_cleanup'} or $args->{'_cleanup'}
0 0 0 $okParams->{'_cleanup'} or $args->{'_cleanup'} or $self->ignore_unknown_parameters
4551 0 0 0 $dict->{'type'} eq 'scalar' && ref $args->{$k} || $dict->{'type'} ne 'scalar' && ref $args->{$k} && lc ref $args->{$k} ne $dict->{'type'}
0 0 0 $dict->{'type'} eq 'date' or $dict->{'type'} eq 'datetime'
4575 0 0 0 $args->{$k} eq 'true' || $args->{$k} ne 'false' && $args-- > {$k}
4665 0 0 0 $args->{'expand'} eq 'all' or $args->{'expand'} =~ /^\d+$/
4801 0 0 0 ref $data eq 'JSON::PP::Boolean' or ref $data eq 'Module::Generic::Boolean'
0 0 0 $$data == 1 || $$daata == 0
4874 0 0 0 $param->{'encoding'} eq 'qp' or $param->{'encoding'} eq 'quoted-printable'
4900 0 0 0 ref $data eq 'JSON::PP::Boolean' or ref $data eq 'Module::Generic::Boolean'
0 0 0 $$data == 1 || $$daata == 0
4934 0 0 0 'IO::File'->new("<$this_file") || do { $self->error(qq[Cannot open file "$this_file": $!]); next }
4990 0 0 0 not scalar @_ or scalar @_ == 1 and not defined $_[0]
5091 0 0 0 $resp->is_success or $resp->is_redirect
5115 0 0 0 $hash->{'error'} // $hash
5162 0 0 0 not ref $ref or ref $ref ne 'ARRAY'