NAME

MooseX::Types::CyberSource - Moose Types specific to CyberSource

VERSION

version 0.005003

SYNOPSIS

{
	package My::CyberSource::Response;
	use Moose;
	use MooseX::Types::CyberSource qw( Decision );

	has decision => (
		is => 'ro',
		isa => Decision,
	);
	__PACKAGE__->meta->make_immutable;
}

my $response = My::CyberSource::Response->new({
	decison => 'ACCEPT'
});

DESCRIPTION

This module provides CyberSource specific Moose Types.

TYPES

  • Decision

    Base Type: enum

    CyberSource Response Decision

  • CardTypeCode

    Base Type: enum

    Numeric codes that specify Card types. Codes denoted with an asterisk* are automatically detected when using Business::CyberSource::Request::Role::CreditCardInfo

    • 001: Visa*

    • 002: MasterCard, Eurocard*

    • 003: American Express*

    • 004: Discover*

    • 005: Diners Club

    • 006: Carte Blanche

    • 007: JCB*

    • 014: EnRoute*

    • 021: JAL

    • 024: Maestro (UK Domestic)

    • 031: Delta

    • 033: Visa Electron

    • 034: Dankort

    • 035: Laser*

    • 036: Carte Bleue

    • 037: Carta Si

    • 039: Encoded account number

    • 040: UATP

    • 042: Maestro (International)

    • 043: Santander card

  • CvResults

    Base Type: enum

    Single character code that defines the result of having sent a CVN. See CyberSource's Documentation on Card Verification Results for more information.

  • AVSResults

    Base Type: enum

    Single character code that defines the result of having sent a CVN. See CyberSource's Documentation on AVS Results for more information.

  • DCCIndicator

    Base Type: enum

    Single character code that defines the DCC status

    • 1

      Converted - DCC is being used.

    • 2

      Non-convertible - DCC cannot be used.

    • 3

      Declined - DCC could be used, but the customer declined it.

  • Item

    Base Type: Dict

    Here's the current list of valid keys and their types for the Dictionary

    unit_price   => PositiveOrZeroNum,
    quantity     => Int,
    product_code => Optional[Str],
    product_name => Optional[Str],
    product_sku  => Optional[Str],
    product_risk => Optional[Str],
    tax_amount   => Optional[PositiveOrZeroNum],
    tax_rate     => Optional[PositiveOrZeroNum],
    national_tax => Optional[PositiveOrZeroNum],

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)