« lib/WebService/Braintree/_/Transaction/VenmoAccountDetail.pm
↑ Summary
lib/WebService/Braintree/_/UsBankAccount.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::_::TransactionLineItem; | ||
| 4 | 22 | $WebService::Braintree::_::TransactionLineItem::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::_::TransactionLineItem | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class represents a transaction line-item. | ||
| 15 | |||
| 16 | This class will only be created as part of a L<response|WebService::Braintree::Result> or L<error response|WebService::Braintree::ErrorResult>. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 22 | ▶ | use MooX::Aliases; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 22 | extends 'WebService::Braintree::_'; | |
| 24 | |||
| 25 | =head1 ATTRIBUTES | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | =head2 commodity_code() | ||
| 30 | |||
| 31 | This is the commodity code for this transaction line-item. | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | 22 | has commodity_code => ( | |
| 36 | is => 'ro', | ||
| 37 | ); | ||
| 38 | |||
| 39 | =head2 description() | ||
| 40 | |||
| 41 | This is the description for this transaction line-item. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 22 | has description => ( | |
| 46 | is => 'ro', | ||
| 47 | ); | ||
| 48 | |||
| 49 | =head2 discount_amount() | ||
| 50 | |||
| 51 | This is the discount amount for this transaction line-item. | ||
| 52 | |||
| 53 | =cut | ||
| 54 | |||
| 55 | # Coerce to "big_decimal" | ||
| 56 | 22 | has discount_amount => ( | |
| 57 | is => 'ro', | ||
| 58 | ); | ||
| 59 | |||
| 60 | =head2 kind() | ||
| 61 | |||
| 62 | This is the kind for this transaction line-item. | ||
| 63 | |||
| 64 | =cut | ||
| 65 | |||
| 66 | 22 | has kind => ( | |
| 67 | is => 'ro', | ||
| 68 | ); | ||
| 69 | |||
| 70 | =head2 name() | ||
| 71 | |||
| 72 | This is the name for this transaction line-item. | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | 22 | has name => ( | |
| 77 | is => 'ro', | ||
| 78 | ); | ||
| 79 | |||
| 80 | =head2 product_code() | ||
| 81 | |||
| 82 | This is the product code for this transaction line-item. | ||
| 83 | |||
| 84 | =cut | ||
| 85 | |||
| 86 | 22 | has product_code => ( | |
| 87 | is => 'ro', | ||
| 88 | ); | ||
| 89 | |||
| 90 | =head2 quantity() | ||
| 91 | |||
| 92 | This is the quantity for this transaction line-item. | ||
| 93 | |||
| 94 | =cut | ||
| 95 | |||
| 96 | # Coerce to "big_decimal" | ||
| 97 | 22 | has quantity => ( | |
| 98 | is => 'ro', | ||
| 99 | ); | ||
| 100 | |||
| 101 | =head2 total_amount() | ||
| 102 | |||
| 103 | This is the total amount for this transaction line-item. | ||
| 104 | |||
| 105 | =cut | ||
| 106 | |||
| 107 | # Coerce to "big_decimal" | ||
| 108 | 22 | has total_amount => ( | |
| 109 | is => 'ro', | ||
| 110 | ); | ||
| 111 | |||
| 112 | =head2 unit_amount() | ||
| 113 | |||
| 114 | This is the unit amount for this transaction line-item. | ||
| 115 | |||
| 116 | =cut | ||
| 117 | |||
| 118 | # Coerce to "big_decimal" | ||
| 119 | 22 | has unit_amount => ( | |
| 120 | is => 'ro', | ||
| 121 | ); | ||
| 122 | |||
| 123 | =head2 unit_of_measure() | ||
| 124 | |||
| 125 | This is the unit of measure for this transaction line-item. | ||
| 126 | |||
| 127 | =cut | ||
| 128 | |||
| 129 | 22 | has unit_of_measure => ( | |
| 130 | is => 'ro', | ||
| 131 | ); | ||
| 132 | |||
| 133 | =head2 unit_tax_amount() | ||
| 134 | |||
| 135 | This is the unit tax amount for this transaction line-item. | ||
| 136 | |||
| 137 | =cut | ||
| 138 | |||
| 139 | # Coerce to "big_decimal" | ||
| 140 | 22 | has unit_tax_amount => ( | |
| 141 | is => 'ro', | ||
| 142 | ); | ||
| 143 | |||
| 144 | =head2 url() | ||
| 145 | |||
| 146 | This is the url for this transaction line-item. | ||
| 147 | |||
| 148 | =cut | ||
| 149 | |||
| 150 | # Coerce to URI | ||
| 151 | 22 | has url => ( | |
| 152 | is => 'ro', | ||
| 153 | ); | ||
| 154 | |||
| 155 | 22 | __PACKAGE__->meta->make_immutable; | |
| 156 | |||
| 157 | 22 | 1; | |
| 158 | __END__ | ||