GoCardless/TransferredMandate.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond 75.0% 3 / 4 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 85.1% 23 / 27 CC 3 SCAR 4.8
CC
3
Cov
94%
mandate_id
2.1
customer_bank_account_id
2.0
BEGIN
1.0
CRAP 1.6
« GoCardless/SchemeIdentifier.pm ↑ Summary GoCardless/BillingRequest.pm »
1 package Business::GoCardless::TransferredMandate;
2  
3 =head1 NAME
4  
5 Business::GoCardless::TransferredMandate
6  
7 =head1 DESCRIPTION
8  
9 A class for a gocardless transferred mandate, extends L<Business::GoCardless::Resource>
10  
11 The encrypted updated customer bank details of a mandate that has been
12 transferred using the Current Account Switch Service. You will need to decrypt
13 these with your private key, see
14 L<https://developer.gocardless.com/api-reference/#mandates-transferred-mandate>
15  
16 =cut
17  
18 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 5 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 5 extends 'Business::GoCardless::Resource';
23  
24 =head1 ATTRIBUTES
25  
26 encrypted_customer_bank_details
27 encrypted_decryption_key
28 id
29 links
30 public_key_id
31  
32 =cut
33  
34 5 has [ qw/
35 encrypted_customer_bank_details
36 encrypted_decryption_key
37 id
38 links
39 public_key_id
40 / ] => (
41 is => 'rw',
42 );
43  
44 =head1 Links
45  
46 Shortcut methods to get the IDs of the linked resources
47  
48 customer_bank_account_id
49 mandate_id
50  
51 =cut
52  
53 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 // {}
l!l
11
MC/DC100%1/1
(shift())->links // {}
(shift())->links
Truth table100%2/2
A
A= (shift())->links
Aresult
11
00
54 1 ▶sub mandate_id { return ( shift->links // {} )->{mandate} }
Subroutine mandate_id: called CC=2 SCAR=7.6
Pod undocumented
Condition50%1/2
(shift())->links // {}
l!l
10
MC/DC0%0/1
(shift())->links // {}
(shift())->links
Truth table50%1/2
A
A= (shift())->links
Aresult
11
00
55  
56 =head1 AUTHOR
57  
58 Lee Johnson - C<lee@payprop.com>
59  
60 This library is free software; you can redistribute it and/or modify it under
61 the same terms as Perl itself. If you would like to contribute documentation,
62 features, bug fixes, or anything else then please raise an issue / pull request:
63  
64 https://github.com/payprop/business-gocardless
65  
66 =cut
67  
68 5 1;
69  
70 # vim: ts=4:sw=4:et
« GoCardless/SchemeIdentifier.pm ↑ Summary GoCardless/BillingRequest.pm »