Stripe/Connect/Account/LoginLink.pm

filter: Statementstmt 72.7% 8 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 70.0% 14 / 20 CC 1 SCAR 4.1
CC
1
Cov
73%
object
2.0
created
2.0
url
2.0
CRAP 1.5
« Stripe/Connect/Account/Branding.pm ↑ Summary Stripe/Connect/Account/Settings/Payments.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/LoginLink.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 ## https://stripe.com/docs/api/account/login_link
11 # (
12 # "object": "login_link",
13 # "created": 1540170121,
14 # "url": "https://connect.stripe.com/express/JC0IkhqjOUma"
15 # )
16 package Net::API::Stripe::Connect::Account::LoginLink;
17 BEGIN
18 {
19 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶ our( $VERSION ) = 'v0.100.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
22 };
23  
24 0 ▶sub object { shift->_set_get_scalar( 'object', @_ ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub created { shift->_set_get_datetime( 'created', @_ ); }
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub url { shift->_set_get_uri( 'url', @_ ); }
Subroutine url: not called CC=1 SCAR=6.9
Pod documented
29  
30 1 1;
31  
32 __END__
33  
34 =encoding utf8
35  
36 =head1 NAME
37  
38 Net::API::Stripe::Connect::Account::LoginLink - A Stripe Login Link Object
39  
40 =head1 SYNOPSIS
41  
42 my $login_lnk = $stripe->login_link({
43 url => 'https://example.com/login',
44 });
45  
46 =head1 VERSION
47  
48 v0.100.0
49  
50 =head1 DESCRIPTION
51  
52 Login link module as documented on the Stripe Account section
53  
54 =head1 CONSTRUCTOR
55  
56 =over 4
57  
58 =item B<new>( %ARG )
59  
60 Creates a new L<Net::API::Stripe::Connect::Account::LoginLink> object.
61 It may also take an hash like arguments, that also are method of the same name.
62  
63 =back
64  
65 =head1 METHODS
66  
67 =over 4
68  
69 =item B<object> string, value is "login_link"
70  
71 String representing the object’s type. Objects of the same type share the same value.
72  
73 =item B<created> timestamp
74  
75 Time at which the object was created. Measured in seconds since the Unix epoch.
76  
77 =item B<url> string
78  
79 The URL for the login link.
80  
81 =back
82  
83 =head1 API SAMPLE
84  
85 {
86 "object": "login_link",
87 "created": 1571735987,
88 "url": "https://connect.stripe.com/express/nnmcnbmzbcnm"
89 }
90  
91 =head1 HISTORY
92  
93 =head2 v0.1
94  
95 Initial version
96  
97 =head1 AUTHOR
98  
99 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
100  
101 =head1 SEE ALSO
102  
103 Stripe API documentation:
104  
105 L<https://stripe.com/docs/api/account/login_link>
106  
107 =head1 COPYRIGHT & LICENSE
108  
109 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
110  
111 You can use, copy, modify and redistribute this package and associated
112 files under the same terms as Perl itself.
113  
114 =cut
« Stripe/Connect/Account/Branding.pm ↑ Summary Stripe/Connect/Account/Settings/Payments.pm »