File Coverage

lib/Net/API/Stripe/Connect/Account/Link.pm
Criterion Covered Total %
statement 19 23 82.6
branch n/a
condition n/a
subroutine 7 11 63.6
pod 4 4 100.0
total 30 38 78.9


line stmt bran cond sub pod time code
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 <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/05/15
8             ##
9             ##----------------------------------------------------------------------------
10             BEGIN
11             {
12             use strict;
13 2     2   23888236 use warnings;
  2         12  
  2         61  
14 2     2   11 use parent qw( Net::API::Stripe::Generic );
  2         4  
  2         63  
15 2     2   9 use vars qw( $VERSION );
  2         4  
  2         13  
16 2     2   150 our( $VERSION ) = 'v0.100.0';
  2         7  
  2         134  
17 2     2   44 };
18              
19             use strict;
20 2     2   10 use warnings;
  2         3  
  2         38  
21 2     2   10  
  2         4  
  2         227  
22              
23 0     0 1    
24              
25 0     0 1    
26             1;
27 0     0 1    
28              
29 0     0 1   =encoding utf8
30              
31             =head1 NAME
32              
33             Net::API::Stripe::Connect::Account::Link - A Stripe Account Link Object
34              
35             =head1 SYNOPSIS
36              
37             my $lnk = $stripe->account_link({
38             expires_at => '2020-06-01',
39             url => 'https://example.com/some/file.pdf',
40             });
41              
42             =head1 VERSION
43              
44             v0.100.0
45              
46             =head1 DESCRIPTION
47              
48             Account Links are the means by which a Connect platform grants a connected account permission to access Stripe-hosted applications, such as Connect Onboarding.
49              
50             =head1 CONSTRUCTOR
51              
52             =head2 new( %ARG )
53              
54             Creates a new L<Net::API::Stripe::Connect::Account::Link> object.
55             It may also take an hash like arguments, that also are method of the same name.
56              
57             =head1 METHODS
58              
59             =head2 object string, value is "account_link"
60              
61             String representing the object’s type. Objects of the same type share the same value.
62              
63             =head2 created timestamp
64              
65             Time at which the object was created. Measured in seconds since the Unix epoch.
66              
67             =head2 expires_at timestamp
68              
69             The timestamp at which this account link will expire.
70              
71             =head2 url string
72              
73             The URL for the account link.
74              
75             =head1 API SAMPLE
76              
77             {
78             "object": "account_link",
79             "created": 1571480455,
80             "expires_at": 1571480755,
81             "url": "https://connect.stripe.com/setup/c/mbmnjccbnmcbnmcb"
82             }
83              
84             =head1 HISTORY
85              
86             =head2 v0.1
87              
88             Initial version
89              
90             =head1 AUTHOR
91              
92             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
93              
94             =head1 SEE ALSO
95              
96             Stripe API documentation:
97              
98             L<https://stripe.com/docs/api/account_links>, L<https://stripe.com/docs/connect/connect-onboarding>
99              
100             =head1 COPYRIGHT & LICENSE
101              
102             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
103              
104             You can use, copy, modify and redistribute this package and associated
105             files under the same terms as Perl itself.
106              
107             =cut