GoCardless/Creditor.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GoCardless/Block.pm ↑ Summary GoCardless/CurrencyExchangeRate.pm »
1 package Business::GoCardless::Creditor;
2  
3 =head1 NAME
4  
5 Business::GoCardless::Creditor
6  
7 =head1 DESCRIPTION
8  
9 A class for a gocardless creditor, 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 bank_reference_prefix
25 can_create_refunds
26 city
27 country_code
28 created_at
29 creditor_type
30 custom_payment_pages_enabled
31 fx_payout_currency
32 id
33 links
34 logo_url
35 mandate_imports_enabled
36 merchant_responsible_for_notifications
37 name
38 postal_code
39 region
40 scheme_identifiers
41 verification_status
42  
43 =cut
44  
45 7 has [ qw/
46 address_line1
47 address_line2
48 address_line3
49 bank_reference_prefix
50 can_create_refunds
51 city
52 country_code
53 created_at
54 creditor_type
55 custom_payment_pages_enabled
56 fx_payout_currency
57 id
58 links
59 logo_url
60 mandate_imports_enabled
61 merchant_responsible_for_notifications
62 name
63 postal_code
64 region
65 scheme_identifiers
66 verification_status
67 / ] => (
68 is => 'rw',
69 );
70  
71 =head1 Operations on a creditor
72  
73 =head2 update
74  
75 Update the creditor:
76  
77 $Creditor->update( name => 'New name' );
78  
79 =cut
80  
81 2 ▶sub update { shift->_update( @_ ); }
Subroutine update: called CC=1 SCAR=0.0
Pod documented
82  
83 =head1 AUTHOR
84  
85 Lee Johnson - C<lee@payprop.com>
86  
87 This library is free software; you can redistribute it and/or modify it under
88 the same terms as Perl itself. If you would like to contribute documentation,
89 features, bug fixes, or anything else then please raise an issue / pull request:
90  
91 https://github.com/payprop/business-gocardless
92  
93 =cut
94  
95 7 1;
96  
97 # vim: ts=4:sw=4:et
« GoCardless/Block.pm ↑ Summary GoCardless/CurrencyExchangeRate.pm »