Stripe/Connect/Account/Link.pm

filter: Statementstmt 66.6% 8 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 100% 4 / 4 totaltotal 65.2% 15 / 23 CC 1 SCAR 4.5
CC
1
Cov
67%
object
2.0
created
2.0
expires_at
2.0
CRAP 1.6
« Stripe/Connect/Account/Document.pm ↑ Summary Stripe/Dispute/EvidenceDetails.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Link.pm
3 ## Version v0.100.0
4 ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <@sitael.tokyo.deguest.jp>
6 ## Created 2019/11/02
7 ## Modified 2020/05/15
8 ##
9 ##----------------------------------------------------------------------------
10 package Net::API::Stripe::Connect::Account::Link;
11 BEGIN
12 {
13 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶ our( $VERSION ) = 'v0.100.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 };
17  
18 0 ▶sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub created { return( shift->_set_get_datetime( 'created', @_ ) ) };
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶sub expires_at { return( shift->_set_get_datetime( 'expires_at', @_ ) ) };
Subroutine expires_at: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub url { return( shift->_set_get_uri( 'url', @_ ) ) };
Subroutine url: not called CC=1 SCAR=6.9
Pod documented
25  
26 1 1;
27  
28 __END__
29  
30 =encoding utf8
31  
32 =head1 NAME
33  
34 Net::API::Stripe::Connect::Account::Link - A Stripe Account Link Object
35  
36 =head1 SYNOPSIS
37  
38 my $lnk = $stripe->account_link({
39 expires_at => '2020-06-01',
40 url => 'https://example.com/some/file.pdf',
41 });
42  
43 =head1 VERSION
44  
45 v0.100.0
46  
47 =head1 DESCRIPTION
48  
49 Account Links are the means by which a Connect platform grants a connected account permission to access Stripe-hosted applications, such as Connect Onboarding.
50  
51 =head1 CONSTRUCTOR
52  
53 =over 4
54  
55 =item B<new>( %ARG )
56  
57 Creates a new L<Net::API::Stripe::Connect::Account::Link> object.
58 It may also take an hash like arguments, that also are method of the same name.
59  
60 =back
61  
62 =head1 METHODS
63  
64 =over 4
65  
66 =item B<object> string, value is "account_link"
67  
68 String representing the object’s type. Objects of the same type share the same value.
69  
70 =item B<created> timestamp
71  
72 Time at which the object was created. Measured in seconds since the Unix epoch.
73  
74 =item B<expires_at> timestamp
75  
76 The timestamp at which this account link will expire.
77  
78 =item B<url> string
79  
80 The URL for the account link.
81  
82 =back
83  
84 =head1 API SAMPLE
85  
86 {
87 "object": "account_link",
88 "created": 1571480455,
89 "expires_at": 1571480755,
90 "url": "https://connect.stripe.com/setup/c/mbmnjccbnmcbnmcb"
91 }
92  
93 =head1 HISTORY
94  
95 =head2 v0.1
96  
97 Initial version
98  
99 =head1 AUTHOR
100  
101 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
102  
103 =head1 SEE ALSO
104  
105 Stripe API documentation:
106  
107 L<https://stripe.com/docs/api/account_links>, L<https://stripe.com/docs/connect/connect-onboarding>
108  
109 =head1 COPYRIGHT & LICENSE
110  
111 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
112  
113 You can use, copy, modify and redistribute this package and associated
114 files under the same terms as Perl itself.
115  
116 =cut
« Stripe/Connect/Account/Document.pm ↑ Summary Stripe/Dispute/EvidenceDetails.pm »