NAME

PayProp::API::Public::Client::Request::Entity::Payment - Payment entity module.

SYNOPSIS

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

DESCRIPTION

Implementation for creating, retrieving and updating (CRU) payment entity results via API. This module is intended to be accessed via instance of PayProp::API::Public::Client.

Example:

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

list_p

Call to API payment entity that returns Mojo::Promise.

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

Return:

C<Mojo::Promise> containing an instance of C<PayProp::API::Public::Client::Response::Entity::Payment> on success.

or

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

create_p

Call to API payment entity that returns Mojo::Promise.

$self
	->create_p({ ... })
	->then( sub {
		my ( $Payment ) = @_;
		...;
	} )
	->catch( sub {
		my ( $Exception ) = @_;
		...;
	} )
	->wait
;

Return:

C<Mojo::Promise> containing an instance of C<PayProp::API::Public::Client::Response::Entity::Payment> on success.

or

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

update_p

Call to API payment entity that returns Mojo::Promise.

$self
	->update_p({ ... })
	->then( sub {
		my ( $Payment ) = @_;
		...;
	} )
	->catch( sub {
		my ( $Exception ) = @_;
		...;
	} )
	->wait
;

Return:

C<Mojo::Promise> containing an instance of C<PayProp::API::Public::Client::Response::Entity::Payment> on success.

or

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