NAME

PayProp::API::Public::Client::Request::Export::Beneficiaries - Beneficiary export module.

SYNOPSIS

my $Beneficiaries = PayProp::API::Public::Client::Request::Export::Beneficiaries->new(
	domain => 'API_DOMAIN.com',                                         # Required: API domain.
	authorization => C<PayProp::API::Public::Client::Authorization::*>, # Required: Instance of an authorization module.
);

DESCRIPTION

Implementation for retrieving beneficiary export results via API. This module is intended to be accessed via instance of PayProp::API::Public::Client.

Example:

PayProp::API::Public::Client->new( ... )
	->export
	->beneficiaries
	->list_p({ ... })
	->then( sub {
		my ( $beneficiaries ) = @_;
		...;
	} )
	->catch( sub {
		my ( $Exception ) = @_;
		...;
	} )
	->wait
;

list_p

Call to API beneficiaries export that returns Mojo::Promise.

$self
	->list_p({ ... })
	->then( sub {
		my ( $beneficiaries, $optional ) = @_;
		...;
	} )
	->catch( sub {
		my ( $Exception ) = @_;
		...;
	} )
	->wait
;

Return:

C<Mojo::Promise> containing list of C<PayProp::API::Public::Client::Response::Export::Beneficiary> on success.

or

C<PayProp::API::Public::Client::Exception::Response> on failure.