NAME
PayProp::API::Public::Client::Role::APIRequest - Role to encapsulate API requests.
SYNOPSIS
package PayProp::API::Public::Client::Request::*;
with qw/ PayProp::API::Public::Client::Role::APIRequest /;
...;
__PACKAGE__->meta->make_immutable;
DESCRIPTION
Define methods to call various API endpoints via retry flow.
METHODS
api_request_p(\%args)
Method to be called from API modules that implements retry mechanism and handles exceptions.
my $Promise = $self->api_request_p({
method => 'POST',
params => { ... },
});
Returns Mojo::Promise
resolving to underlying API response modules on success or PayProp::API::Public::Client::Exception::Response
on API error response.
AUTHOR
Yanga Kandeni <yangak@cpan.org>
Valters Skrupskis <malishew@cpan.org>
COPYRIGHT
Copyright 2023- PayProp
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
If you would like to contribute documentation or file a bug report then please raise an issue / pull request: