Stripe/Address.pm

filter: Statementstmt 56.2% 9 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.0% 3 / 10 Podpod 85.7% 6 / 7 totaltotal 54.5% 18 / 33 CC 1 SCAR 5.3
CC
1
Cov
56%
city
2.0
country
2.0
line1
2.0
CRAP 1.7
« Stripe/Issuing/Card/AuthorizationsControl.pm ↑ Summary Stripe/Bitcoin/Transaction.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Address.pm
3 ## Version v0.100.0
4 ## Copyright(c) 2020 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::Address;
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 city { shift->_set_get_scalar( 'city', @_ ); }
Subroutine city: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub country { shift->_set_get_scalar( 'country', @_ ); }
Subroutine country: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶sub line1 { shift->_set_get_scalar( 'line1', @_ ); }
Subroutine line1: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub line2 { shift->_set_get_scalar( 'line2', @_ ); }
Subroutine line2: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub postal_code { shift->_set_get_scalar( 'postal_code', @_ ); }
Subroutine postal_code: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub state { shift->_set_get_scalar( 'state', @_ ); }
Subroutine state: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub town { return( shift->_set_get_scalar( 'town', @_ ) ); }
Subroutine town: not called CC=1 SCAR=6.9
Pod undocumented
31  
32 1 *zip_code = \&postal_code;
33  
34 1 1;
35  
36 __END__
37  
38 =encoding utf8
39  
40 =head1 NAME
41  
42 Net::API::Stripe::Address - A Stripe Address Object
43  
44 =head1 SYNOPSIS
45  
46 my $addr = $stripe->address({
47 line1 => '1-2-3 Kudan-minami, Chiyoda-ku',
48 line2 => 'Big Bldg 12F',
49 city => 'Tokyo',
50 postal_code => '123-4567',
51 country => 'jp',
52 });
53  
54 =head1 VERSION
55  
56 v0.100.0
57  
58 =head1 DESCRIPTION
59  
60 This is an Address module used everywhere in Stripe API.
61  
62 =head1 CONSTRUCTOR
63  
64 =over 4
65  
66 =item B<new>( %ARG )
67  
68 Creates a new L<Net::API::Stripe::Address> object.
69 It may also take an hash like arguments, that also are method of the same name.
70  
71 =back
72  
73 =head1 METHODS
74  
75 =over 4
76  
77 =item B<city> string
78  
79 City/District/Suburb/Town/Village.
80  
81 =item B<country> string
82  
83 2-letter country code.
84  
85 =item B<line1> string
86  
87 Address line 1 (Street address/PO Box/Company name).
88  
89 =item B<line2> string
90  
91 Address line 2 (Apartment/Suite/Unit/Building).
92  
93 =item B<postal_code> string
94  
95 ZIP or postal code.
96  
97 =item B<state> string
98  
99 State/County/Province/Region.
100  
101 =back
102  
103 =head1 HISTORY
104  
105 =head2 v0.1
106  
107 Initial version
108  
109 =head1 AUTHOR
110  
111 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
112  
113 =head1 SEE ALSO
114  
115 Stripe API documentation:
116  
117 L<https://stripe.com/docs/api>
118  
119 =head1 COPYRIGHT & LICENSE
120  
121 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
122  
123 You can use, copy, modify and redistribute this package and associated
124 files under the same terms as Perl itself.
125  
126 =cut
« Stripe/Issuing/Card/AuthorizationsControl.pm ↑ Summary Stripe/Bitcoin/Transaction.pm »