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