File Coverage

lib/Net/API/Stripe/Financial/Connections/AccountOwnership.pm
Criterion Covered Total %
statement 7 11 63.6
branch n/a
condition n/a
subroutine 3 7 42.8
pod 4 4 100.0
total 14 22 63.6


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Financial/Connections/AccountOwnership.pm
3             ## Version v0.1.0
4             ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2022/10/29
7             ## Modified 2022/10/29
8             ##
9             ##----------------------------------------------------------------------------
10             package Net::API::Stripe::Financial::Connections::AccountOwnership;
11             BEGIN
12             {
13 2     2   21107250 use strict;
  2         21  
  2         68  
14 2     2   10 use parent qw( Net::API::Stripe::Generic );
  2         4  
  2         10  
15 2     2   360 our( $VERSION ) = 'v0.1.0';
16             };
17              
18 0     0 1   sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
19              
20 0     0 1   sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
21              
22 0     0 1   sub created { return( shift->_set_get_datetime( 'created', @_ ) ); }
23              
24 0     0 1   sub owners { return( shift->_set_get_object( 'owners', 'Net::API::Stripe::List', @_ ) ); }
25              
26             1;
27             # NOTE: POD
28             __END__
29              
30             =encoding utf8
31              
32             =head1 NAME
33              
34             Net::API::Stripe::Financial::Connections::AccountOwnership - The Account Ownership object
35              
36             =head1 SYNOPSIS
37              
38             =head1 VERSION
39              
40             v0.1.0
41              
42             =head1 DESCRIPTION
43              
44             Describes a snapshot of the owners of an account at a particular point in time.
45              
46             =head1 METHODS
47              
48             =head2 id string
49              
50             Unique identifier for the object.
51              
52             =head2 object string
53              
54             String representing the object's type. Objects of the same type share the same value.
55              
56             =head2 created timestamp
57              
58             Time at which the object was created. Measured in seconds since the Unix epoch.
59              
60             =head2 owners object
61              
62             A paginated list of owners for this account.
63              
64             This is a L<Net::API::Stripe::List> object.
65              
66             =head1 API SAMPLE
67              
68             [
69             {
70             "created" : "1662261086",
71             "id" : "fcaowns_1Le9F42eZvKYlo2CfwkUGxZt",
72             "object" : "linked_account_ownership",
73             "owners" : {
74             "data" : [],
75             "has_more" : 0,
76             "object" : "list",
77             "url" : "/v1/linked_accounts/fca_1Le9F42eZvKYlo2CEjemQrlf/owners?ownership=fcaowns_1Le9F42eZvKYlo2CfwkUGxZt"
78             }
79             }
80             ]
81              
82             =head1 HISTORY
83              
84             =head2 v0.1.0
85              
86             Initial version
87              
88             =head1 AUTHOR
89              
90             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
91              
92             =head1 SEE ALSO
93              
94             L<Stripe API documentation|https://stripe.com/docs/api/financial_connections/ownership>
95              
96             =head1 COPYRIGHT & LICENSE
97              
98             Copyright (c) 2019-2022 DEGUEST Pte. Ltd.
99              
100             You can use, copy, modify and redistribute this package and associated
101             files under the same terms as Perl itself.
102              
103             =cut