« lib/WebService/Braintree/_/SettlementBatchSummaryRecord.pm
↑ Summary
lib/WebService/Braintree/_/ThreeDSecureInfo.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::_::Subscription::StatusDetail; | ||
| 4 | 22 | $WebService::Braintree::_::Subscription::StatusDetail::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 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | WebService::Braintree::_::Subscription::StatusDetail | ||
| 13 | |||
| 14 | =head1 PURPOSE | ||
| 15 | |||
| 16 | This class represents a subscription status history detail. | ||
| 17 | |||
| 18 | This class will only be created as part of a L<response|WebService::Braintree::Result> or L<error response|WebService::Braintree::ErrorResult>. | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | 22 | extends 'WebService::Braintree::_'; | |
| 23 | |||
| 24 | =head1 ATTRIBUTES | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | =head2 balance() | ||
| 29 | |||
| 30 | This is the balance for this subscription status history detail. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | # Coerce to "big_decimal"? | ||
| 35 | 22 | has balance => ( | |
| 36 | is => 'ro', | ||
| 37 | ); | ||
| 38 | |||
| 39 | =head2 currency_iso_code() | ||
| 40 | |||
| 41 | This is the currency ISO code for this subscription status history detail. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 22 | has currency_iso_code => ( | |
| 46 | is => 'ro', | ||
| 47 | ); | ||
| 48 | |||
| 49 | =head2 plan_id() | ||
| 50 | |||
| 51 | This is the plan id for this subscription status history detail. | ||
| 52 | |||
| 53 | =cut | ||
| 54 | |||
| 55 | 22 | has plan_id => ( | |
| 56 | is => 'ro', | ||
| 57 | ); | ||
| 58 | |||
| 59 | =head2 price() | ||
| 60 | |||
| 61 | This is the price for this subscription status history detail. | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | 22 | has price => ( | |
| 66 | is => 'ro', | ||
| 67 | ); | ||
| 68 | |||
| 69 | =head2 status() | ||
| 70 | |||
| 71 | This is the status for this subscription status history detail. | ||
| 72 | |||
| 73 | =cut | ||
| 74 | |||
| 75 | 22 | has status => ( | |
| 76 | is => 'ro', | ||
| 77 | ); | ||
| 78 | |||
| 79 | =head2 subscription_source() | ||
| 80 | |||
| 81 | This is the subscription source for this subscription status history detail. | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | 22 | has subscription_source => ( | |
| 86 | is => 'ro', | ||
| 87 | ); | ||
| 88 | |||
| 89 | =head2 timestamp() | ||
| 90 | |||
| 91 | This is the timestamp for this subscription status history detail. | ||
| 92 | |||
| 93 | =cut | ||
| 94 | |||
| 95 | # Coerce this to DateTime (?) | ||
| 96 | 22 | has timestamp => ( | |
| 97 | is => 'ro', | ||
| 98 | ); | ||
| 99 | |||
| 100 | =head2 user() | ||
| 101 | |||
| 102 | This is the user for this subscription status history detail. | ||
| 103 | |||
| 104 | =cut | ||
| 105 | |||
| 106 | 22 | has user => ( | |
| 107 | is => 'ro', | ||
| 108 | ); | ||
| 109 | |||
| 110 | 22 | __PACKAGE__->meta->make_immutable; | |
| 111 | |||
| 112 | 22 | 1; | |
| 113 | __END__ | ||