| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Paymill::REST::Item::Payment; |
|
2
|
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
6620
|
use Moose; |
|
|
9
|
|
|
|
|
28
|
|
|
|
9
|
|
|
|
|
78
|
|
|
4
|
9
|
|
|
9
|
|
64214
|
use MooseX::Types::DateTime::ButMaintained qw(DateTime); |
|
|
9
|
|
|
|
|
25
|
|
|
|
9
|
|
|
|
|
130
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
with 'Paymill::REST::Operations::Delete'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has _factory => (is => 'ro', isa => 'Object'); |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has id => (is => 'ro', isa => 'Str'); |
|
11
|
|
|
|
|
|
|
has type => (is => 'ro', isa => 'CCorDebit'); |
|
12
|
|
|
|
|
|
|
has client => (is => 'ro', isa => 'Str'); |
|
13
|
|
|
|
|
|
|
has expire_month => (is => 'ro', isa => 'Int'); |
|
14
|
|
|
|
|
|
|
has expire_year => (is => 'ro', isa => 'Int'); |
|
15
|
|
|
|
|
|
|
has last4 => (is => 'ro', isa => 'Int'); |
|
16
|
|
|
|
|
|
|
has card_type => (is => 'ro', isa => 'Str'); |
|
17
|
|
|
|
|
|
|
has card_holder => (is => 'ro', isa => 'Undef|Str'); |
|
18
|
|
|
|
|
|
|
has country => (is => 'ro', isa => 'Undef|Str'); |
|
19
|
|
|
|
|
|
|
has code => (is => 'ro', isa => 'Str'); |
|
20
|
|
|
|
|
|
|
has account => (is => 'ro', isa => 'Str'); |
|
21
|
|
|
|
|
|
|
has holder => (is => 'ro', isa => 'Str'); |
|
22
|
|
|
|
|
|
|
has app_id => (is => 'ro', isa => 'Undef|Str'); |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has created_at => (is => 'ro', isa => DateTime, coerce => 1); |
|
25
|
|
|
|
|
|
|
has updated_at => (is => 'ro', isa => DateTime, coerce => 1); |
|
26
|
|
|
|
|
|
|
|
|
27
|
9
|
|
|
9
|
|
19529
|
no Moose; |
|
|
9
|
|
|
|
|
33
|
|
|
|
9
|
|
|
|
|
54
|
|
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
__END__ |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding utf-8 |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Paymill::REST::Item::Payment - Item class for a payment |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my $payment_api = Paymill::REST::Payments->new; |
|
40
|
|
|
|
|
|
|
$payment = $payment_api->find('pay_lk2j34h5lk34h5lkjh2'); |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
say $payment->last4; # Prints last4 of the payment |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Represents a payment with all attributes. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=over 4 |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item id |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
String containing the identifier of the payment |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item type |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
String identifying the type of the payment, can be either C<creditcard> or C<debit> |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item client |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
String containing the identifier of the client |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item expire_month |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Integer representing the expiry month of the credit card |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item expire_year |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Integer representing the expiry year of the credit card |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item last4 |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Integer representing the last four digits of the credit card |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item card_type |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
String containing the card type eg. visa, mastercard |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item card_holder |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
String containing the name of the card holder |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item country |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
String representing the country of the credit card |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item code |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
String containing the bank code |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item account |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
String containing the account number |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=item holder |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
String containing the name of the account holder |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=item created_at |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
L<DateTime> object indicating the date of the creation as returned by the API |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=item updated_at |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
L<DateTime> object indicating the date of the last update as returned by the API |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=item app_id |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
String representing the app id that created this payment |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=back |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 AVAILABLE OPERATIONS |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=over 4 |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=item delete |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
L<Paymill::REST::Operations::Delete> |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=back |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
L<Paymill::REST> for more documentation. |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head1 AUTHOR |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Matthias Dietrich E<lt>perl@rainboxx.deE<gt> |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 COPYRIGHT |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Copyright 2013 - Matthias Dietrich |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 LICENSE |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
139
|
|
|
|
|
|
|
it under the same terms as Perl itself. |