| 1 | package Net::Braintree::Disbursement; | ||
| 2 | |||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | extends "Net::Braintree::ResultObject"; | |
| 5 | 1 | my $meta = __PACKAGE__->meta; | |
| 6 | |||
| 7 | 0 | ▶ | sub BUILD { |
|
Subroutine
BUILD: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | my ($self, $attributes) = @_; | |
| 9 | 0 | $meta->add_attribute('merchant_account', is => 'rw'); | |
| 10 | 0 | $self->merchant_account(Net::Braintree::MerchantAccount->new($attributes->{merchant_account})); | |
| 11 | 0 | delete($attributes->{merchant_account}); | |
| 12 | 0 | $self->set_attributes_from_hash($self, $attributes); | |
| 13 | } | ||
| 14 | |||
| 15 | 0 | ▶ | sub transactions { |
|
Subroutine
transactions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 16 | 0 | my $self = shift; | |
| 17 | 0 | ▶ | Net::Braintree::Transaction->search(sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 18 | 0 | my $search = shift; | |
| 19 | 0 | $search->ids->in($self->transaction_ids); | |
| 20 | 0 | }); | |
| 21 | } | ||
| 22 | |||
| 23 | 1 | 1; | |