line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Stripe::PaymentMethod; |
2
|
|
|
|
|
|
|
$Net::Stripe::PaymentMethod::VERSION = '0.40_005'; # TRIAL |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
15
|
$Net::Stripe::PaymentMethod::VERSION = '0.40005';use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
16
|
|
5
|
2
|
|
|
2
|
|
11699
|
use Moose::Util::TypeConstraints qw(enum); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
16
|
|
6
|
2
|
|
|
2
|
|
812
|
use Kavorka; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
14
|
|
7
|
|
|
|
|
|
|
extends 'Net::Stripe::Resource'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: represent a PaymentMethod object from Stripe |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Args for posting to PaymentMethod endpoints |
12
|
|
|
|
|
|
|
has 'billing_details' => (is => 'ro', isa => 'Maybe[HashRef]'); |
13
|
|
|
|
|
|
|
has 'card' => (is => 'ro', isa => 'Maybe[Net::Stripe::Card|StripeTokenId]'); |
14
|
|
|
|
|
|
|
has 'fpx' => (is => 'ro', isa => 'Maybe[HashRef]'); |
15
|
|
|
|
|
|
|
has 'ideal' => (is => 'ro', isa => 'Maybe[HashRef]'); |
16
|
|
|
|
|
|
|
has 'metadata' => (is => 'ro', isa => 'Maybe[HashRef[Str]|EmptyStr]'); |
17
|
|
|
|
|
|
|
has 'sepa_debit' => (is => 'ro', isa => 'Maybe[HashRef]'); |
18
|
|
|
|
|
|
|
has 'type' => (is => 'ro', isa => 'StripePaymentMethodType'); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Args returned by the API |
21
|
|
|
|
|
|
|
has 'id' => (is => 'ro', isa => 'StripePaymentMethodId'); |
22
|
|
|
|
|
|
|
has 'card_present' => (is => 'ro', isa => 'Maybe[HashRef]'); |
23
|
|
|
|
|
|
|
has 'created' => (is => 'ro', isa => 'Int'); |
24
|
|
|
|
|
|
|
has 'customer' => (is => 'ro', isa => 'Maybe[StripeCustomerId]'); |
25
|
|
|
|
|
|
|
has 'livemode' => (is => 'ro', isa => 'Bool'); |
26
|
|
|
|
|
|
|
|
27
|
2
|
0
|
|
2
|
|
4101
|
method form_fields { |
|
2
|
|
|
0
|
|
7
|
|
|
2
|
|
|
|
|
291
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return $self->form_fields_for(qw/ |
29
|
|
|
|
|
|
|
billing_details card customer expand fpx ideal metadata sepa_debit type |
30
|
|
|
|
|
|
|
/); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=pod |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Net::Stripe::PaymentMethod - represent a PaymentMethod object from Stripe |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.40_005 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 billing_details |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Reader: billing_details |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 boolean_attributes |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Reader: boolean_attributes |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Type: ArrayRef[Str] |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 card |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Reader: card |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Type: Maybe[Net::Stripe::Card|StripeTokenId] |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 card_present |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Reader: card_present |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 created |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Reader: created |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Type: Int |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 customer |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Reader: customer |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Type: Maybe[StripeCustomerId] |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 fpx |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Reader: fpx |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 id |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Reader: id |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Type: StripePaymentMethodId |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 ideal |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Reader: ideal |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 livemode |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Reader: livemode |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Type: Bool |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 metadata |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Reader: metadata |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Type: Maybe[EmptyStr|HashRef[Str]] |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 sepa_debit |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Reader: sepa_debit |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 type |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Reader: type |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Type: StripePaymentMethodType |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head1 AUTHORS |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=over 4 |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=item * |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Luke Closs |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=item * |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Rusty Conover |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=back |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
147
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |