« lib/WebService/Braintree/SettlementBatchSummary.pm
↑ Summary
lib/WebService/Braintree/_/Transaction/ApplePayDetail.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 finds transaction line items. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 22 | with 'WebService::Braintree::Role::Interface'; | |
| 21 | |||
| 22 | =head1 CLASS METHODS | ||
| 23 | |||
| 24 | =head2 find_all($transaction_id) | ||
| 25 | |||
| 26 | This takes a transaction id and returns an arrayref of the transaction's line-items. | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | 0 | ▶ | sub find_all { |
|
Subroutine
find_all: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | 0 | my ($self, $txn_id) = @_; | |
| 32 | 0 | return $self->gateway->transaction_line_item->find_all($txn_id); | |
| 33 | } | ||
| 34 | |||
| 35 | 22 | __PACKAGE__->meta->make_immutable; | |
| 36 | |||
| 37 | 22 | 1; | |
| 38 | __END__ | ||