Stripe/CustomField.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 76.4% 13 / 17 CC 1 SCAR 3.4
CC
1
Cov
80%
name
2.0
value
2.0
BEGIN
1.0
CRAP 1.4
« Stripe/Connect/CountrySpec/VerificationFields/Details.pm ↑ Summary Stripe/Customer/TaxInfo.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/CustomField.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 package Net::API::Stripe::CustomField;
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 name { return( shift->_set_get_scalar( 'name', @_ ) ); }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub value { return( shift->_set_get_scalar( 'value', @_ ) ); }
Subroutine value: not called CC=1 SCAR=6.9
Pod documented
21  
22 1 1;
23  
24 __END__
25  
26 =encoding utf8
27  
28 =head1 NAME
29  
30 Net::API::Stripe::CustomField - A Stripe Custom Field Object
31  
32 =head1 SYNOPSIS
33  
34 my $customs = $stripe->invoice->custom_fields([
35 {
36 name => 'some name',
37 value => 'some value,
38 },
39 {
40 name => 'other name',
41 value => 'other value,
42 },
43 ]);
44  
45 =head1 VERSION
46  
47 v0.100.0
48  
49 =head1 DESCRIPTION
50  
51 This defines the custom fields showing on an invoice and is referred to by Stripe as C<invoice_settings>
52  
53 It is used by L<Net::API::Stripe::Billing::Invoice>, L<Net::API::Stripe::Customer::TaxIds>, and L<Net::API::Stripe::Customer>
54  
55 =head1 CONSTRUCTOR
56  
57 =over 4
58  
59 =item B<new>( %ARG )
60  
61 Creates a new L<Net::API::Stripe::CustomField> object.
62 It may also take an hash like arguments, that also are method of the same name.
63  
64 =back
65  
66 =head1 METHODS
67  
68 =over 4
69  
70 =item B<name> string
71  
72 The name of the custom field.
73  
74 =item B<value> string
75  
76 The value of the custom field.
77  
78 =back
79  
80 =head1 API SAMPLE
81  
82 No sample data found yet
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/invoices/object>
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
« Stripe/Connect/CountrySpec/VerificationFields/Details.pm ↑ Summary Stripe/Customer/TaxInfo.pm »