line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::CyberSource::Request::Credit; |
2
|
1
|
|
|
1
|
|
1489653
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
4
|
1
|
|
|
1
|
|
3
|
use namespace::autoclean; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
9
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.010007'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
73
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
extends 'Business::CyberSource::Request'; |
10
|
|
|
|
|
|
|
with qw( |
11
|
|
|
|
|
|
|
Business::CyberSource::Request::Role::DCC |
12
|
|
|
|
|
|
|
Business::CyberSource::Request::Role::TaxService |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
4830
|
use MooseX::Types::CyberSource qw( BillTo Card CreditService); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
6271
|
use Module::Runtime qw( use_module ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub _build_service { |
20
|
1
|
|
|
1
|
|
3948
|
use_module('Business::CyberSource::RequestPart::Service::Credit'); |
21
|
1
|
|
|
|
|
43
|
return Business::CyberSource::RequestPart::Service::Credit->new; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has '+service' => ( |
25
|
|
|
|
|
|
|
isa => CreditService, |
26
|
|
|
|
|
|
|
remote_name => 'ccCreditService' |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has bill_to => ( |
30
|
|
|
|
|
|
|
isa => BillTo, |
31
|
|
|
|
|
|
|
remote_name => 'billTo', |
32
|
|
|
|
|
|
|
traits => ['SetOnce'], |
33
|
|
|
|
|
|
|
is => 'rw', |
34
|
|
|
|
|
|
|
coerce => 1, |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
has card => ( |
38
|
|
|
|
|
|
|
isa => Card, |
39
|
|
|
|
|
|
|
remote_name => 'card', |
40
|
|
|
|
|
|
|
traits => ['SetOnce'], |
41
|
|
|
|
|
|
|
is => 'rw', |
42
|
|
|
|
|
|
|
coerce => 1, |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
# ABSTRACT: CyberSource Credit Request Object |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=pod |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=encoding UTF-8 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 NAME |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Business::CyberSource::Request::Credit - CyberSource Credit Request Object |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 VERSION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
version 0.010007 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SYNOPSIS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
use Business::CyberSource::Request::Credit; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
my $req = Business::CyberSource::Request::Credit->new({ |
69
|
|
|
|
|
|
|
reference_code => 'merchant reference code', |
70
|
|
|
|
|
|
|
bill_to => { |
71
|
|
|
|
|
|
|
first_name => 'Caleb', |
72
|
|
|
|
|
|
|
last_name => 'Cushing', |
73
|
|
|
|
|
|
|
street => 'somewhere', |
74
|
|
|
|
|
|
|
city => 'Houston', |
75
|
|
|
|
|
|
|
state => 'TX', |
76
|
|
|
|
|
|
|
postal_code => '77064', |
77
|
|
|
|
|
|
|
country => 'US', |
78
|
|
|
|
|
|
|
email => 'xenoterracide@gmail.com', |
79
|
|
|
|
|
|
|
}, |
80
|
|
|
|
|
|
|
purchase_totals => { |
81
|
|
|
|
|
|
|
total => 5.00, |
82
|
|
|
|
|
|
|
currency => 'USD', |
83
|
|
|
|
|
|
|
}, |
84
|
|
|
|
|
|
|
card => { |
85
|
|
|
|
|
|
|
account_number => '4111-1111-1111-1111', |
86
|
|
|
|
|
|
|
expiration => { |
87
|
|
|
|
|
|
|
month => '09', |
88
|
|
|
|
|
|
|
year => '2025', |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
}, |
91
|
|
|
|
|
|
|
}); |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 DESCRIPTION |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
This object allows you to create a request for a credit. You can use |
96
|
|
|
|
|
|
|
L<Business::CyberSource::Request::StandAloneCredit> or the |
97
|
|
|
|
|
|
|
L<Business::CyberSource::Request::FollowOnCredit> if you want your objects to |
98
|
|
|
|
|
|
|
be checked for all required fields. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 EXTENDS |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
L<Business::CyberSource::Request> |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 WITH |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=over |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=item L<Business::CyberSource::Request::Role::DCC> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=back |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 BUGS |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
115
|
|
|
|
|
|
|
https://github.com/xenoterracide/business-cybersource/issues |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
118
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
119
|
|
|
|
|
|
|
feature. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=head1 AUTHOR |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
Caleb Cushing <xenoterracide@gmail.com> |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>. |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
This is free software, licensed under: |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=cut |