File Coverage

lib/Net/API/Stripe/Payment/GeneratedFrom.pm
Criterion Covered Total %
statement 19 22 86.3
branch n/a
condition n/a
subroutine 7 10 70.0
pod 3 3 100.0
total 29 35 82.8


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/usr/local/src/perl/Net-API-Stripe/lib/Net/API/Stripe/Payment/GeneratedFrom.pm
3             ## Version v0.101.0
4             ## Copyright(c) 2020 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/11/28
8             ## All rights reserved
9             ##
10             ## This program is free software; you can redistribute it and/or modify it
11             ## under the same terms as Perl itself.
12             ##----------------------------------------------------------------------------
13             BEGIN
14             {
15             use strict;
16 1     1   1052 use warnings;
  1         5  
  1         32  
17 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         3  
  1         29  
18 1     1   7 use vars qw( $VERSION );
  1         2  
  1         9  
19 1     1   74 our( $VERSION ) = 'v0.101.0';
  1         2  
  1         64  
20 1     1   21 };
21              
22             use strict;
23 1     1   6 use warnings;
  1         3  
  1         34  
24 1     1   7  
  1         7  
  1         123  
25              
26 0     0 1    
27              
28 0     0 1   1;
29              
30 0     0 1    
31             =encoding utf8
32              
33             =head1 NAME
34              
35             Net::API::Stripe::Payment::GeneratedFrom - A Stripe Payment Method Origin Object
36              
37             =head1 SYNOPSIS
38              
39             my $form = $stripe->card->generated_from({
40             ## Net::API::Stripe::Charge
41             charge => 'ch_fake1234567890',
42             ## Net::API::Stripe::Payment::Method::Details
43             payment_method_details => $payment_method_details_object,
44             ## Net::API::Stripe::SetupAttempt
45             setup_attempt => $setup_attempt_object,
46             });
47              
48             =head1 VERSION
49              
50             v0.101.0
51              
52             =head1 DESCRIPTION
53              
54             Details of the original PaymentMethod that created this object.
55              
56             This is used in L<Net::API::Stripe::Connect::ExternalAccount::Card> itself used in L<Net::API::Stripe::Payment::Method>
57              
58             =head1 CONSTRUCTOR
59              
60             =head2 new( %ARG )
61              
62             Creates a new L<Net::API::Stripe::Payment::GeneratedFrom> object.
63             It may also take an hash like arguments, that also are method of the same name.
64              
65             =head1 METHODS
66              
67             =head2 charge string expandable
68              
69             The charge that created this object.
70              
71             This is a L<Net::API::Stripe::Charge> object.
72              
73             =head2 payment_method_details hash
74              
75             Transaction-specific details of the payment method used in the payment.
76              
77             This is a L<Net::API::Stripe::Payment::Method::Details> object.
78              
79             =head2 setup_attempt string expandable
80              
81             The ID of the SetupAttempt that generated this PaymentMethod, if any.
82              
83             This is a L<Net::API::Stripe::SetupAttempt> object.
84              
85             =head1 HISTORY
86              
87             =head2 v0.1
88              
89             Initial version
90              
91             =head1 AUTHOR
92              
93             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
94              
95             =head1 SEE ALSO
96              
97             Stripe API documentation:
98              
99             L<https://stripe.com/docs/api>
100              
101             =head1 COPYRIGHT & LICENSE
102              
103             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
104              
105             You can use, copy, modify and redistribute this package and associated
106             files under the same terms as Perl itself.
107              
108             =cut