| 1 | package Business::CyberSource::Request::StandAloneCredit; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | our $VERSION = '0.010008'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | extends 'Business::CyberSource::Request::Credit'; | |||||||||
| 10 | 1 | with qw( | |||||||||
| 11 | Business::CyberSource::Request::Role::BillingInfo | ||||||||||
| 12 | Business::CyberSource::Request::Role::CreditCardInfo | ||||||||||
| 13 | ); | ||||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub BUILD { ## no critic ( Subroutines::RequireFinalReturn ) | ||||||||
|
Subroutine
BUILD: not called CC=2 SCAR=17.9
| |||||||||||
| 16 | 0 | my $self = shift; | |||||||||
| 17 | 0 | ▶ | die ## no critic ( ErrorHandling::RequireCarping ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | use_module('Business::CyberSource::Exception::AttributeIsRequiredNotToBeSet') | ||||||||||
| 19 | ->new( | ||||||||||
| 20 | attribute_name => 'request_id', | ||||||||||
| 21 | class_name => __PACKAGE__, | ||||||||||
| 22 | message => 'a Stand Alone Credit should not set a request_id' | ||||||||||
| 23 | ) if $self->service->has_request_id; | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 27 | 1 | 1; | |||||||||
| 28 | |||||||||||
| 29 | # ABSTRACT: CyberSource Credit Request Object | ||||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||