ePages 7.47.0 - DE_EPAGES/MolliePayments/API/Requests/Methods.pm

Package DE_EPAGES::MolliePayments::API::Requests::Methods

Helper module for generating MolliePayments Methods requests to epagesj

Functions

getEpagesjRequestSuffixUrlPath
getHttpHeaders
getQueryParams
handleResponse
new
withProfileId

getEpagesjRequestSuffixUrlPath

It returns the Methods postfix url path from the epagesj endpoint

Syntax
$Url = $MethodsRequest->getEpagesjRequestSuffixUrlPath( $HttpRequestMethod );
Input
$HttpRequestMethod (string)
HTTP request method string
Return
$Url (string)
Methods suffix url path from the epagesj endpoint

getHttpHeaders

It returns required headers of the Methods request

Syntax
$hRequestHeader = $self->getHttpHeaders( $HttpRequestMethod );
Input
$HttpRequestMethod (string)
HTTP request method string
Return
$hRequestHeader (hash.ref)
Methods request headers hash

getQueryParams

It returns the query Params of the Methods request

Syntax
$QueryParams = $self->getQueryParams();
Input
$HttpRequestMethod (string)
HTTP request method string
Return
$QueryParams (string)
Methods request $QueryParams string

handleResponse

It returns the response filtered

Syntax
$hFilteredResponse = $self->handleResponse($hResponse);
Input
$hResponse (hash.ref)
response hash
Return
$hFilteredResponse (hash.ref)
filtered response hash

new

MolliePayments Methods requests to epagesj helper constructor

Syntax
DE_EPAGES::MolliePayments::API::Requests::Methods->new($hMethodsData);
Input
$hMethodsData (hash.ref)
required data to generate Methods requests to epagesj
Return
$Object (DE_EPAGES::MolliePayments::API::Requests::Methods)
new object

withProfileId

Set profile id as part of the payload

Syntax
$self->withProfileId($ProfileId);
Return
$Object (DE_EPAGES::MolliePayments::API::Requests::Methods)
new object