| 1 | package Business::GoCardless::SchemeIdentifier; | ||||||||||||
| 2 | |||||||||||||
| 3 | =head1 NAME | ||||||||||||
| 4 | |||||||||||||
| 5 | Business::GoCardless::SchemeIdentifier | ||||||||||||
| 6 | |||||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||||
| 8 | |||||||||||||
| 9 | A class for a gocardless scheme identifier, extends L<Business::GoCardless::Resource> | ||||||||||||
| 10 | |||||||||||||
| 11 | =cut | ||||||||||||
| 12 | |||||||||||||
| 13 | 7 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | 7 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 15 | |||||||||||||
| 16 | 7 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | 7 | extends 'Business::GoCardless::Resource'; | |||||||||||
| 18 | |||||||||||||
| 19 | =head1 ATTRIBUTES | ||||||||||||
| 20 | |||||||||||||
| 21 | address_line1 | ||||||||||||
| 22 | address_line2 | ||||||||||||
| 23 | address_line3 | ||||||||||||
| 24 | can_specify_mandate_reference | ||||||||||||
| 25 | city | ||||||||||||
| 26 | country_code | ||||||||||||
| 27 | created_at | ||||||||||||
| 28 | currency | ||||||||||||
| 29 | |||||||||||||
| 30 | id | ||||||||||||
| 31 | minimum_advance_notice | ||||||||||||
| 32 | name | ||||||||||||
| 33 | phone_number | ||||||||||||
| 34 | postal_code | ||||||||||||
| 35 | reference | ||||||||||||
| 36 | region | ||||||||||||
| 37 | scheme | ||||||||||||
| 38 | status | ||||||||||||
| 39 | |||||||||||||
| 40 | =cut | ||||||||||||
| 41 | |||||||||||||
| 42 | 7 | has [ qw/ | |||||||||||
| 43 | address_line1 | ||||||||||||
| 44 | address_line2 | ||||||||||||
| 45 | address_line3 | ||||||||||||
| 46 | can_specify_mandate_reference | ||||||||||||
| 47 | city | ||||||||||||
| 48 | country_code | ||||||||||||
| 49 | created_at | ||||||||||||
| 50 | currency | ||||||||||||
| 51 | |||||||||||||
| 52 | id | ||||||||||||
| 53 | minimum_advance_notice | ||||||||||||
| 54 | name | ||||||||||||
| 55 | phone_number | ||||||||||||
| 56 | postal_code | ||||||||||||
| 57 | reference | ||||||||||||
| 58 | region | ||||||||||||
| 59 | scheme | ||||||||||||
| 60 | status | ||||||||||||
| 61 | / ] => ( | ||||||||||||
| 62 | is => 'rw', | ||||||||||||
| 63 | ); | ||||||||||||
| 64 | |||||||||||||
| 65 | =head1 Status checks on a scheme identifier | ||||||||||||
| 66 | |||||||||||||
| 67 | pending | ||||||||||||
| 68 | active | ||||||||||||
| 69 | |||||||||||||
| 70 | if ( $SchemeIdentifier->pending ) { | ||||||||||||
| 71 | ... | ||||||||||||
| 72 | } | ||||||||||||
| 73 | |||||||||||||
| 74 | =cut | ||||||||||||
| 75 | |||||||||||||
| 76 | 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
| |||||||||||||
| 77 | 2 | ▶ | sub active { return ( shift->status // '' ) eq 'active' } | ||||||||||
|
Subroutine
active: 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
| |||||||||||||
| 78 | |||||||||||||
| 79 | =head1 AUTHOR | ||||||||||||
| 80 | |||||||||||||
| 81 | Lee Johnson - C<lee@payprop.com> | ||||||||||||
| 82 | |||||||||||||
| 83 | This library is free software; you can redistribute it and/or modify it under | ||||||||||||
| 84 | the same terms as Perl itself. If you would like to contribute documentation, | ||||||||||||
| 85 | features, bug fixes, or anything else then please raise an issue / pull request: | ||||||||||||
| 86 | |||||||||||||
| 87 | https://github.com/payprop/business-gocardless | ||||||||||||
| 88 | |||||||||||||
| 89 | =cut | ||||||||||||
| 90 | |||||||||||||
| 91 | 7 | 1; | |||||||||||
| 92 | |||||||||||||
| 93 | # vim: ts=4:sw=4:et | ||||||||||||