\PayPal\Api\Invoice: Added missing $headers argument in \PayPal\Common\ResourceModel::executeCall() calls

This commit is contained in:
Philippe Gerber
2014-10-15 22:18:37 +02:00
parent 8e19366415
commit adbbd3281d

View File

@@ -846,6 +846,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices", "/v1/invoicing/invoices",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -869,6 +870,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/search", "/v1/invoicing/search",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -892,6 +894,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}/send", "/v1/invoicing/invoices/{$this->getId()}/send",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -915,6 +918,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}/remind", "/v1/invoicing/invoices/{$this->getId()}/remind",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -938,6 +942,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}/cancel", "/v1/invoicing/invoices/{$this->getId()}/cancel",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -961,6 +966,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}/record-payment", "/v1/invoicing/invoices/{$this->getId()}/record-payment",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -984,6 +990,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}/record-refund", "/v1/invoicing/invoices/{$this->getId()}/record-refund",
"POST", "POST",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -1006,6 +1013,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/$invoiceId", "/v1/invoicing/invoices/$invoiceId",
"GET", "GET",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -1028,6 +1036,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/", "/v1/invoicing/invoices/",
"GET", "GET",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -1051,6 +1060,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}", "/v1/invoicing/invoices/{$this->getId()}",
"PUT", "PUT",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );
@@ -1073,6 +1083,7 @@ class Invoice extends ResourceModel
"/v1/invoicing/invoices/{$this->getId()}", "/v1/invoicing/invoices/{$this->getId()}",
"DELETE", "DELETE",
$payLoad, $payLoad,
[],
$apiContext, $apiContext,
$restCall $restCall
); );