ePages 7.48.0 - DE_EPAGES/MolliePayments/API/Requests/OrdersLines.pm

Package DE_EPAGES::MolliePayments::API::Requests::OrdersLines

Helper module for generating MolliePayments orders lines requests to epagesj

Functions

getEpagesjRequestSuffixUrlPath
getHttpHeaders
getPayload
getQueryParams
handleResponse
new
withOrderLineItem
withOrderLineItemIdList

getEpagesjRequestSuffixUrlPath

It returns the orders lines postfix url path from the epagesj endpoint

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

getHttpHeaders

It returns required headers of the orders lines request

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

getPayload

It returns the body payload of the orders lines request

Syntax
$hPayload = $self->getPayload( $HttpRequestMethod );
Input
$HttpRequestMethod (string)
HTTP request method string
Return
$hPayload (hash.ref)
order lines request payload 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
$hMollieOrder (hash.ref)
filtered response hash

new

MolliePayments orders lines requests to epagesj helper constructor

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

withOrderLineItem

It adds to the object required order line information for patch (put) an order line

Syntax
$self->withOrderLineItem( $hLineItem );
Input
$hLineItem (hash.ref)
order line item data hash

withOrderLineItemIdList

It adds to the object required order line information for cancelling a list of order lines

Syntax
$self->withOrderLineItemIdList( $aLineItemIDs );
Input
$aLineItemIDs (array.ref)
order line item ids array