line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::CyberSource::Request::Authorization; |
2
|
3
|
|
|
3
|
|
1708211
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
118
|
|
3
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
80
|
|
4
|
3
|
|
|
3
|
|
878
|
use namespace::autoclean; |
|
3
|
|
|
|
|
27198
|
|
|
3
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.010006'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
1272
|
use Moose; |
|
3
|
|
|
|
|
740472
|
|
|
3
|
|
|
|
|
22
|
|
9
|
|
|
|
|
|
|
extends 'Business::CyberSource::Request'; |
10
|
|
|
|
|
|
|
with qw( |
11
|
|
|
|
|
|
|
Business::CyberSource::Request::Role::BillingInfo |
12
|
|
|
|
|
|
|
Business::CyberSource::Request::Role::CreditCardInfo |
13
|
|
|
|
|
|
|
Business::CyberSource::Request::Role::DCC |
14
|
|
|
|
|
|
|
Business::CyberSource::Request::Role::TaxService |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
3
|
|
18283
|
use MooseX::Types::CyberSource qw( BusinessRules ); |
|
3
|
|
|
|
|
15
|
|
|
3
|
|
|
|
|
22
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has '+service' => ( remote_name => 'ccAuthService' ); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has business_rules => ( |
22
|
|
|
|
|
|
|
isa => BusinessRules, |
23
|
|
|
|
|
|
|
remote_name => 'businessRules', |
24
|
|
|
|
|
|
|
traits => ['SetOnce'], |
25
|
|
|
|
|
|
|
is => 'rw', |
26
|
|
|
|
|
|
|
coerce => 1, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# ABSTRACT: CyberSource Authorization Request object |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Business::CyberSource::Request::Authorization - CyberSource Authorization Request object |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.010006 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
use Business::CyberSource::Request::Authorization; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Business::CyberSource::Request::Authorization->new({ |
53
|
|
|
|
|
|
|
reference_code => '42', |
54
|
|
|
|
|
|
|
bill_to => { |
55
|
|
|
|
|
|
|
first_name => 'Caleb', |
56
|
|
|
|
|
|
|
last_name => 'Cushing', |
57
|
|
|
|
|
|
|
street => '100 somewhere st', |
58
|
|
|
|
|
|
|
city => 'Houston', |
59
|
|
|
|
|
|
|
state => 'TX', |
60
|
|
|
|
|
|
|
postal_code => '77064', |
61
|
|
|
|
|
|
|
country => 'US', |
62
|
|
|
|
|
|
|
email => 'xenoterracide@gmail.com', |
63
|
|
|
|
|
|
|
}, |
64
|
|
|
|
|
|
|
purchase_totals => { |
65
|
|
|
|
|
|
|
currency => 'USD', |
66
|
|
|
|
|
|
|
total => 5.00, |
67
|
|
|
|
|
|
|
}, |
68
|
|
|
|
|
|
|
card => { |
69
|
|
|
|
|
|
|
account_number => '4111111111111111', |
70
|
|
|
|
|
|
|
expiration => { |
71
|
|
|
|
|
|
|
month => 9, |
72
|
|
|
|
|
|
|
year => 2025, |
73
|
|
|
|
|
|
|
}, |
74
|
|
|
|
|
|
|
}, |
75
|
|
|
|
|
|
|
}); |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 DESCRIPTION |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Offline authorization means that when you submit an order using a credit card, |
80
|
|
|
|
|
|
|
you will not know if the funds are available until you capture the order and |
81
|
|
|
|
|
|
|
receive confirmation of payment. You typically will not ship the goods until |
82
|
|
|
|
|
|
|
you receive this payment confirmation. For offline credit cards, it will take |
83
|
|
|
|
|
|
|
typically five days longer to receive payment confirmation than for online |
84
|
|
|
|
|
|
|
cards. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 EXTENDS |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
L<Business::CyberSource::Request> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 WITH |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=over |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=item L<Business::CyberSource::Request::Role::BillingInfo> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=item L<Business::CyberSource::Request::Role::CreditCardInfo> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item L<Business::CyberSource::Request::Role::DCC> |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=item L<Business::CyberSource::Request::Role::TaxService> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=back |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 references_code |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Merchant Reference Code |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 bill_to |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
L<Business::CyberSource::RequestPart::BillTo> |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 purchase_totals |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
L<Business::CyberSource::RequestPart::PurchaseTotals> |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 card |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
L<Business::CyberSource::RequestPart::Card> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 business_rules |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
L<Business::CyberSource::RequestPart::BusinessRules> |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=for Pod::Coverage BUILD |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head1 BUGS |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
131
|
|
|
|
|
|
|
https://github.com/xenoterracide/business-cybersource/issues |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
134
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
135
|
|
|
|
|
|
|
feature. |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head1 AUTHOR |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
Caleb Cushing <xenoterracide@gmail.com> |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
This software is Copyright (c) 2015 by Caleb Cushing <xenoterracide@gmail.com>. |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
This is free software, licensed under: |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |