« lib/WebService/Braintree/Transaction/Source.pm
↑ Summary
lib/WebService/Braintree/Transaction/Type.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::Transaction::Status; | ||
| 4 | 22 | $WebService::Braintree::Transaction::Status::VERSION = '1.7'; | |
| 5 | 22 | ▶ | use 5.010_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 22 | ▶ | use strictures 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | WebService::Braintree::Transaction::Status | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class contains constants for transaction statuses. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | =head1 CONSTANTS | ||
| 19 | |||
| 20 | =over 4 | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | =item AuthorizationExpired | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 22 | ▶ | use constant AuthorizationExpired => 'authorization_expired'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | |||
| 30 | =item Authorizing | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 22 | ▶ | use constant Authorizing => 'authorizing'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | |||
| 36 | =item Authorized | ||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | 22 | ▶ | use constant Authorized => 'authorized'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | |||
| 42 | =item GatewayRejected | ||
| 43 | |||
| 44 | =cut | ||
| 45 | |||
| 46 | 22 | ▶ | use constant GatewayRejected => 'gateway_rejected'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | |||
| 48 | =item Failed | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 22 | ▶ | use constant Failed => 'failed'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 53 | |||
| 54 | =item ProcessorDeclined | ||
| 55 | |||
| 56 | =cut | ||
| 57 | |||
| 58 | 22 | ▶ | use constant ProcessorDeclined => 'processor_declined'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 59 | |||
| 60 | =item Settled | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | 22 | ▶ | use constant Settled => 'settled'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 65 | |||
| 66 | =item Settling | ||
| 67 | |||
| 68 | =cut | ||
| 69 | |||
| 70 | 22 | ▶ | use constant Settling => 'settling'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 71 | |||
| 72 | =item SubmittedForSettlement | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | 22 | ▶ | use constant SubmittedForSettlement => 'submitted_for_settlement'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 77 | |||
| 78 | =item SettlementDeclined | ||
| 79 | |||
| 80 | =cut | ||
| 81 | |||
| 82 | 22 | ▶ | use constant SettlementDeclined => 'settlement_declined'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 83 | |||
| 84 | =item SettlementPending | ||
| 85 | |||
| 86 | =cut | ||
| 87 | |||
| 88 | 22 | ▶ | use constant SettlementPending => 'settlement_pending'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 89 | |||
| 90 | =item Voided | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | 22 | ▶ | use constant Voided => 'voided'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 95 | |||
| 96 | =item All | ||
| 97 | |||
| 98 | This returns an arrayref of all other constants in the order they are defined | ||
| 99 | in this module. | ||
| 100 | |||
| 101 | =cut | ||
| 102 | |||
| 103 | 22 | ▶ | use constant All => ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 104 | AuthorizationExpired, | ||
| 105 | Authorizing, | ||
| 106 | Authorized, | ||
| 107 | GatewayRejected, | ||
| 108 | Failed, | ||
| 109 | ProcessorDeclined, | ||
| 110 | Settled, | ||
| 111 | SettlementDeclined, | ||
| 112 | SettlementPending, | ||
| 113 | Settling, | ||
| 114 | SubmittedForSettlement, | ||
| 115 | Voided, | ||
| 116 | 22 | ); | |
| 117 | |||
| 118 | =back | ||
| 119 | |||
| 120 | =cut | ||
| 121 | |||
| 122 | 22 | 1; | |
| 123 | __END__ | ||