File Coverage

blib/lib/Net/API/Stripe/Payment/GeneratedFrom.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 12 16 75.0


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Payment/GeneratedFrom.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::Payment::GeneratedFrom;
11             BEGIN
12             {
13 1     1   856 use strict;
  1         2  
  1         27  
14 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         4  
15 1     1   107 our( $VERSION ) = 'v0.100.0';
16             };
17              
18 0     0 1   sub charge { return( shift->_set_get_scalar( 'charge', @_ ) ); }
19              
20 0     0 1   sub payment_method_details { return( shift->_set_get_object( 'payment_method_details', 'Net::API::Stripe::Payment::Method::Details', @_ ) ); }
21              
22             1;
23              
24             __END__
25              
26             =encoding utf8
27              
28             =head1 NAME
29              
30             Net::API::Stripe::Payment::GeneratedFrom - A Stripe Payment Method Origin Object
31              
32             =head1 SYNOPSIS
33              
34             my $form = $stripe->card->generated_from({
35             charge => 'ch_fake1234567890',
36             payment_method_details => $payment_method_details_object,
37             });
38              
39             =head1 VERSION
40              
41             v0.100.0
42              
43             =head1 DESCRIPTION
44              
45             Details of the original PaymentMethod that created this object.
46              
47             This is used in L<Net::API::Stripe::Connect::ExternalAccount::Card> itself used in L<Net::API::Stripe::Payment::Method>
48              
49             =head1 CONSTRUCTOR
50              
51             =over 4
52              
53             =item B<new>( %ARG )
54              
55             Creates a new L<Net::API::Stripe::Payment::GeneratedFrom> object.
56             It may also take an hash like arguments, that also are method of the same name.
57              
58             =back
59              
60             =head1 METHODS
61              
62             =over 4
63              
64             =item B<charge> string
65              
66             The charge that created this object.
67              
68             =item B<payment_method_details> hash
69              
70             Transaction-specific details of the payment method used in the payment.
71              
72             This is a L<Net::API::Stripe::Payment::Method::Details> object.
73              
74             =back
75              
76             =head1 HISTORY
77              
78             =head2 v0.1
79              
80             Initial version
81              
82             =head1 AUTHOR
83              
84             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
85              
86             =head1 SEE ALSO
87              
88             Stripe API documentation:
89              
90             L<https://stripe.com/docs/api>
91              
92             =head1 COPYRIGHT & LICENSE
93              
94             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
95              
96             You can use, copy, modify and redistribute this package and associated
97             files under the same terms as Perl itself.
98              
99             =cut