| 1 | package Business::GoCardless::BankAccountHolderVerification; | ||||||||||||
| 2 | |||||||||||||
| 3 | =head1 NAME | ||||||||||||
| 4 | |||||||||||||
| 5 | Business::GoCardless::BankAccountHolderVerification | ||||||||||||
| 6 | |||||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||||
| 8 | |||||||||||||
| 9 | A class for a gocardless bank account holder verification, extends L<Business::GoCardless::Resource> | ||||||||||||
| 10 | |||||||||||||
| 11 | =cut | ||||||||||||
| 12 | |||||||||||||
| 13 | 5 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | 5 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | |||||||||||||
| 16 | 5 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | 5 | extends 'Business::GoCardless::Resource'; | |||||||||||
| 18 | |||||||||||||
| 19 | =head1 ATTRIBUTES | ||||||||||||
| 20 | |||||||||||||
| 21 | actual_account_name | ||||||||||||
| 22 | id | ||||||||||||
| 23 | result | ||||||||||||
| 24 | status | ||||||||||||
| 25 | type | ||||||||||||
| 26 | |||||||||||||
| 27 | =cut | ||||||||||||
| 28 | |||||||||||||
| 29 | 5 | has [ qw/ | |||||||||||
| 30 | actual_account_name | ||||||||||||
| 31 | id | ||||||||||||
| 32 | result | ||||||||||||
| 33 | status | ||||||||||||
| 34 | type | ||||||||||||
| 35 | / ] => ( | ||||||||||||
| 36 | is => 'rw', | ||||||||||||
| 37 | ); | ||||||||||||
| 38 | |||||||||||||
| 39 | =head1 Status checks on a bank account holder verification | ||||||||||||
| 40 | |||||||||||||
| 41 | pending | ||||||||||||
| 42 | completed | ||||||||||||
| 43 | |||||||||||||
| 44 | if ( $BankAccountHolderVerification->pending ) { | ||||||||||||
| 45 | ... | ||||||||||||
| 46 | } | ||||||||||||
| 47 | |||||||||||||
| 48 | =cut | ||||||||||||
| 49 | |||||||||||||
| 50 | 3 | ▶ | sub pending { return ( shift->status // '' ) eq 'pending' } | ||||||||||
|
Subroutine
pending: called CC=2 SCAR=6.9
Pod
undocumented
Condition100%2/2
(shift())->status // ""
MC/DC100%1/1
(shift())->status // ""
(shift())->status
Truth table100%2/2
A
A= (shift())->status
| |||||||||||||
| 51 | 2 | ▶ | sub completed { return ( shift->status // '' ) eq 'completed' } | ||||||||||
|
Subroutine
completed: called CC=2 SCAR=7.6
Pod
undocumented
Condition50%1/2
(shift())->status // ""
MC/DC0%0/1
(shift())->status // ""
(shift())->status
Truth table50%1/2
A
A= (shift())->status
| |||||||||||||
| 52 | |||||||||||||
| 53 | =head1 AUTHOR | ||||||||||||
| 54 | |||||||||||||
| 55 | Lee Johnson - C<lee@payprop.com> | ||||||||||||
| 56 | |||||||||||||
| 57 | This library is free software; you can redistribute it and/or modify it under | ||||||||||||
| 58 | the same terms as Perl itself. If you would like to contribute documentation, | ||||||||||||
| 59 | features, bug fixes, or anything else then please raise an issue / pull request: | ||||||||||||
| 60 | |||||||||||||
| 61 | https://github.com/payprop/business-gocardless | ||||||||||||
| 62 | |||||||||||||
| 63 | =cut | ||||||||||||
| 64 | |||||||||||||
| 65 | 5 | 1; | |||||||||||
| 66 | |||||||||||||
| 67 | # vim: ts=4:sw=4:et | ||||||||||||