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