NAME
Business::CyberSource::Request - Abstract Request Class
VERSION
version 0.005004
DESCRIPTION
extends Business::CyberSource::Message
Here are the provided Request subclasses.
note: You can use the Business:CyberSource::Request::Credit class but, it requires traits to be applied depending on the type of request you need, and thus does not currently work with the factory.
METHODS
new
serialize
returns a hashref suitable for passing to XML::Compile::SOAP
create
DEPRECATED consider using Business::CyberSource::RequestFactory instead
( $implementation, { hashref for new } )
Create a new request object. create
takes a request implementation and a hashref to pass to the implementation's new
method. The implementation string accepts any implementation whose package name is prefixed by Business::CyberSource::Request::
.
my $req = $factory->create(
'Capture',
{
first_name => 'John',
last_name => 'Smith',
...
}
);
Please see the following Business::CyberSource::Request::
packages for implementation and required attributes:
ATTRIBUTES
foreign_amount
Reader: foreign_amount
Type: MooseX::Types::Common::Numeric::PositiveOrZeroNum
comments
Reader: comments
Type: Str
cvn
Reader: cvn
Type: MooseX::Types::CreditCard::CardSecurityCode
Additional documentation: Card Verification Numbers
total
Reader: total
Type: MooseX::Types::Common::Numeric::PositiveOrZeroNum
Additional documentation: Grand total for the order. You must include either this field or item_#_unitPrice in your request
cc_exp_month
Reader: cc_exp_month
This attribute is required.
Additional documentation: Two-digit month that the credit card expires in. Format: MM.
card_type
Reader: card_type
Type: MooseX::Types::CyberSource::CardTypeCode
Additional documentation: Type of card to authorize
credit_card
Reader: credit_card
Type: MooseX::Types::CreditCard::CreditCard
Customer's credit card number
reference_code
Reader: reference_code
Type: MooseX::Types::CyberSource::_VarcharFifty
cv_indicator
Reader: cv_indicator
Type: MooseX::Types::CyberSource::CvIndicator
Flag that indicates whether a CVN code was sent
currency
Reader: currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
exchange_rate
Reader: exchange_rate
Type: MooseX::Types::Common::Numeric::PositiveOrZeroNum
exchange_rate_timestamp
Reader: exchange_rate_timestamp
Type: Str
full_name
Reader: full_name
Type: MooseX::Types::CyberSource::_VarcharSixty
cc_exp_year
Reader: cc_exp_year
Four-digit year that the credit card expires in. Format: YYYY.
foreign_currency
Reader: foreign_currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
Billing currency returned by the DCC service. For the possible values, see the ISO currency codes
items
Reader: items
Type: ArrayRef[MooseX::Types::CyberSource::Item]
is_skipable
Type: Bool
an optimization to see if we can skip sending the request and just construct a response. This attribute is for use by Business::CyberSource::Client only and may change names later.
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/Business-CyberSource/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
Caleb Cushing <xenoterracide@gmail.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)