« blib/lib/WebService/Braintree/Test/VenmoSdk.pm
↑ Summary
lib/WebService/Braintree/TransparentRedirectGateway.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::Transaction::PaymentInstrumentType; | ||
| 4 | $WebService::Braintree::Transaction::PaymentInstrumentType::VERSION = '1.7'; | ||
| 5 | use 5.010_001; | ||
| 6 | use strictures 1; | ||
| 7 | |||
| 8 | use Exporter; | ||
| 9 | our @ISA = qw(Exporter); | ||
| 10 | our @EXPORT = qw(PAYPAL_ACCOUNT SEPA_BANK_ACCOUNT CREDIT_CARD ANY UNKNOWN); | ||
| 11 | our @EXPORT_OK = qw(); | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | WebService::Braintree::Transaction::PaymentInstrumentType | ||
| 16 | |||
| 17 | =head1 PURPOSE | ||
| 18 | |||
| 19 | This class contains constants for transaction payment instrument types. | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | =head1 CONSTANTS | ||
| 24 | |||
| 25 | =over 4 | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | =item PAYPAL_ACCOUNT | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | use constant PAYPAL_ACCOUNT => 'paypal_account'; | ||
| 34 | |||
| 35 | =item SEPA_BANK_ACCOUNT | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | use constant SEPA_BANK_ACCOUNT => 'sepa_bank_account'; | ||
| 40 | |||
| 41 | =item CREDIT_CARD | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | use constant CREDIT_CARD => 'credit_card'; | ||
| 46 | |||
| 47 | =item ANY | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | use constant ANY => 'any'; | ||
| 52 | |||
| 53 | =item UNKNOWN | ||
| 54 | |||
| 55 | =cut | ||
| 56 | |||
| 57 | use constant UNKNOWN => 'unknown'; | ||
| 58 | |||
| 59 | =item All | ||
| 60 | |||
| 61 | This returns an arrayref of all other constants in the order they are defined | ||
| 62 | in this module. | ||
| 63 | |||
| 64 | =cut | ||
| 65 | |||
| 66 | use constant All => [ | ||
| 67 | PAYPAL_ACCOUNT, | ||
| 68 | SEPA_BANK_ACCOUNT, | ||
| 69 | CREDIT_CARD, | ||
| 70 | ANY, | ||
| 71 | ]; | ||
| 72 | |||
| 73 | =back | ||
| 74 | |||
| 75 | =cut | ||
| 76 | |||
| 77 | 1; | ||
| 78 | __END__ |