| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::WebhookNotification::Kind; | ||
| 4 | 22 | $WebService::Braintree::WebhookNotification::Kind::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::WebhookNotification::Kind | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class contains constants for the kinds of webhook notifications. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | =head1 CONSTANTS | ||
| 19 | |||
| 20 | =over 4 | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | =item PartnerMerchantConnected | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 22 | ▶ | use constant PartnerMerchantConnected => "partner_merchant_connected"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | |||
| 30 | =item PartnerMerchantDisconnected | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 22 | ▶ | use constant PartnerMerchantDisconnected => "partner_merchant_disconnected"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | |||
| 36 | =item PartnerMerchantDeclined | ||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | 22 | ▶ | use constant PartnerMerchantDeclined => "partner_merchant_declined"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | |||
| 42 | =item SubscriptionCanceled | ||
| 43 | |||
| 44 | =cut | ||
| 45 | |||
| 46 | 22 | ▶ | use constant SubscriptionCanceled => "subscription_canceled"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | |||
| 48 | =item SubscriptionChargedSuccessfully | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 22 | ▶ | use constant SubscriptionChargedSuccessfully => "subscription_charged_successfully"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 53 | |||
| 54 | =item SubscriptionChargedUnsuccessfully | ||
| 55 | |||
| 56 | =cut | ||
| 57 | |||
| 58 | 22 | ▶ | use constant SubscriptionChargedUnsuccessfully => "subscription_charged_unsuccessfully"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 59 | |||
| 60 | =item SubscriptionExpired | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | 22 | ▶ | use constant SubscriptionExpired => "subscription_expired"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 65 | |||
| 66 | =item SubscriptionTrialEnded | ||
| 67 | |||
| 68 | =cut | ||
| 69 | |||
| 70 | 22 | ▶ | use constant SubscriptionTrialEnded => "subscription_trial_ended"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 71 | |||
| 72 | =item SubscriptionWentActive | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | 22 | ▶ | use constant SubscriptionWentActive => "subscription_went_active"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 77 | |||
| 78 | =item SubscriptionWentPastDue | ||
| 79 | |||
| 80 | =cut | ||
| 81 | |||
| 82 | 22 | ▶ | use constant SubscriptionWentPastDue => "subscription_went_past_due"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 83 | |||
| 84 | =item SubMerchantAccountApproved | ||
| 85 | |||
| 86 | =cut | ||
| 87 | |||
| 88 | 22 | ▶ | use constant SubMerchantAccountApproved => "sub_merchant_account_approved"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 89 | |||
| 90 | =item SubMerchantAccountDeclined | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | 22 | ▶ | use constant SubMerchantAccountDeclined => "sub_merchant_account_declined"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 95 | |||
| 96 | =item TransactionDisbursed | ||
| 97 | |||
| 98 | =cut | ||
| 99 | |||
| 100 | 22 | ▶ | use constant TransactionDisbursed => "transaction_disbursed"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 101 | |||
| 102 | =item DisbursementException | ||
| 103 | |||
| 104 | =cut | ||
| 105 | |||
| 106 | 22 | ▶ | use constant DisbursementException => "disbursement_exception"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 107 | |||
| 108 | =item Disbursement | ||
| 109 | |||
| 110 | =cut | ||
| 111 | |||
| 112 | 22 | ▶ | use constant Disbursement => "disbursement"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 113 | |||
| 114 | =item DisputeOpened | ||
| 115 | |||
| 116 | =cut | ||
| 117 | |||
| 118 | 22 | ▶ | use constant DisputeOpened => "dispute_opened"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 119 | |||
| 120 | =item DisputeLost | ||
| 121 | |||
| 122 | =cut | ||
| 123 | |||
| 124 | 22 | ▶ | use constant DisputeLost => "dispute_lost"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 125 | |||
| 126 | =item DisputeWon | ||
| 127 | |||
| 128 | =cut | ||
| 129 | |||
| 130 | 22 | ▶ | use constant DisputeWon => "dispute_won"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 131 | |||
| 132 | =item All | ||
| 133 | |||
| 134 | This returns an arrayref of all other constants in the order they are defined | ||
| 135 | in this module. | ||
| 136 | |||
| 137 | =cut | ||
| 138 | |||
| 139 | 22 | ▶ | use constant All => ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 140 | PartnerMerchantConnected, | ||
| 141 | PartnerMerchantDisconnected, | ||
| 142 | PartnerMerchantDeclined, | ||
| 143 | SubscriptionCanceled, | ||
| 144 | SubscriptionChargedSuccessfully, | ||
| 145 | SubscriptionChargedUnsuccessfully, | ||
| 146 | SubscriptionExpired, | ||
| 147 | SubscriptionTrialEnded, | ||
| 148 | SubscriptionWentActive, | ||
| 149 | SubscriptionWentPastDue, | ||
| 150 | SubMerchantAccountApproved, | ||
| 151 | SubMerchantAccountDeclined, | ||
| 152 | TransactionDisbursed, | ||
| 153 | DisbursementException, | ||
| 154 | Disbursement, | ||
| 155 | DisputeOpened, | ||
| 156 | DisputeLost, | ||
| 157 | DisputeWon, | ||
| 158 | 22 | ); | |
| 159 | |||
| 160 | =back | ||
| 161 | |||
| 162 | =cut | ||
| 163 | |||
| 164 | 22 | 1; | |
| 165 | __END__ | ||