| 1 | package Business::GoCardless::MandateImportEntry; | ||||||||||||
| 2 | |||||||||||||
| 3 | =head1 NAME | ||||||||||||
| 4 | |||||||||||||
| 5 | Business::GoCardless::MandateImportEntry | ||||||||||||
| 6 | |||||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||||
| 8 | |||||||||||||
| 9 | A class for a gocardless mandate import entry, 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 | created_at | ||||||||||||
| 22 | links | ||||||||||||
| 23 | processing_errors | ||||||||||||
| 24 | record_identifier | ||||||||||||
| 25 | |||||||||||||
| 26 | =cut | ||||||||||||
| 27 | |||||||||||||
| 28 | 5 | has [ qw/ | |||||||||||
| 29 | created_at | ||||||||||||
| 30 | links | ||||||||||||
| 31 | processing_errors | ||||||||||||
| 32 | record_identifier | ||||||||||||
| 33 | / ] => ( | ||||||||||||
| 34 | is => 'rw', | ||||||||||||
| 35 | ); | ||||||||||||
| 36 | |||||||||||||
| 37 | has '+endpoint' => ( | ||||||||||||
| 38 | 5 | ▶ | default => sub { '/mandate_import_entries/%s' }, | ||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||
| 39 | 5 | ); | |||||||||||
| 40 | |||||||||||||
| 41 | =head1 Links | ||||||||||||
| 42 | |||||||||||||
| 43 | Shortcut methods to get the IDs of the linked resources | ||||||||||||
| 44 | |||||||||||||
| 45 | mandate_import_id | ||||||||||||
| 46 | mandate_id | ||||||||||||
| 47 | customer_id | ||||||||||||
| 48 | customer_bank_account_id | ||||||||||||
| 49 | |||||||||||||
| 50 | =cut | ||||||||||||
| 51 | |||||||||||||
| 52 | 1 | ▶ | sub mandate_import_id { return ( shift->links // {} )->{mandate_import} } | ||||||||||
|
Subroutine
mandate_import_id: called CC=2 SCAR=7.6
Pod
undocumented
Condition50%1/2
(shift())->links // {}
MC/DC0%0/1
(shift())->links // {}
(shift())->links
Truth table50%1/2
A
A= (shift())->links
| |||||||||||||
| 53 | 1 | ▶ | sub mandate_id { return ( shift->links // {} )->{mandate} } | ||||||||||
|
Subroutine
mandate_id: called CC=2 SCAR=7.6
Pod
undocumented
Condition50%1/2
(shift())->links // {}
MC/DC0%0/1
(shift())->links // {}
(shift())->links
Truth table50%1/2
A
A= (shift())->links
| |||||||||||||
| 54 | 1 | ▶ | sub customer_id { return ( shift->links // {} )->{customer} } | ||||||||||
|
Subroutine
customer_id: called CC=2 SCAR=7.6
Pod
undocumented
Condition50%1/2
(shift())->links // {}
MC/DC0%0/1
(shift())->links // {}
(shift())->links
Truth table50%1/2
A
A= (shift())->links
| |||||||||||||
| 55 | 2 | ▶ | sub customer_bank_account_id { return ( shift->links // {} )->{customer_bank_account} } | ||||||||||
|
Subroutine
customer_bank_account_id: called CC=2 SCAR=6.9
Pod
undocumented
Condition100%2/2
(shift())->links // {}
MC/DC100%1/1
(shift())->links // {}
(shift())->links
Truth table100%2/2
A
A= (shift())->links
| |||||||||||||
| 56 | |||||||||||||
| 57 | =head1 AUTHOR | ||||||||||||
| 58 | |||||||||||||
| 59 | Lee Johnson - C<lee@payprop.com> | ||||||||||||
| 60 | |||||||||||||
| 61 | This library is free software; you can redistribute it and/or modify it under | ||||||||||||
| 62 | the same terms as Perl itself. If you would like to contribute documentation, | ||||||||||||
| 63 | features, bug fixes, or anything else then please raise an issue / pull request: | ||||||||||||
| 64 | |||||||||||||
| 65 | https://github.com/payprop/business-gocardless | ||||||||||||
| 66 | |||||||||||||
| 67 | =cut | ||||||||||||
| 68 | |||||||||||||
| 69 | 5 | 1; | |||||||||||
| 70 | |||||||||||||
| 71 | # vim: ts=4:sw=4:et | ||||||||||||