NAME

PayProp::API::Public::Client::Request::Export::Tenants - Tenant export module.

SYNOPSIS

my $Tenants = PayProp::API::Public::Client::Request::Export::Tenants->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 tenant 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
	->tenants
	->list_p({ ... })
	->then( sub {
		my ( $tenants ) = @_;
		...;
	} )
	->catch( sub {
		my ( $Exception ) = @_;
		...;
	} )
	->wait
;

list_p

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

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

Return:

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

or

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