From adbbd3281d7f90cf03d5e71d564495136f76a27b Mon Sep 17 00:00:00 2001 From: Philippe Gerber Date: Wed, 15 Oct 2014 22:18:37 +0200 Subject: [PATCH 1/2] \PayPal\Api\Invoice: Added missing $headers argument in \PayPal\Common\ResourceModel::executeCall() calls --- lib/PayPal/Api/Invoice.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/PayPal/Api/Invoice.php b/lib/PayPal/Api/Invoice.php index 65d8401..e80af0d 100644 --- a/lib/PayPal/Api/Invoice.php +++ b/lib/PayPal/Api/Invoice.php @@ -846,6 +846,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -869,6 +870,7 @@ class Invoice extends ResourceModel "/v1/invoicing/search", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -892,6 +894,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/send", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -915,6 +918,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/remind", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -938,6 +942,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/cancel", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -961,6 +966,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/record-payment", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -984,6 +990,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/record-refund", "POST", $payLoad, + [], $apiContext, $restCall ); @@ -1006,6 +1013,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/$invoiceId", "GET", $payLoad, + [], $apiContext, $restCall ); @@ -1028,6 +1036,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/", "GET", $payLoad, + [], $apiContext, $restCall ); @@ -1051,6 +1060,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}", "PUT", $payLoad, + [], $apiContext, $restCall ); @@ -1073,6 +1083,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}", "DELETE", $payLoad, + [], $apiContext, $restCall ); From f1a089e54c6fe2d7e2deab12b217b937a47e5308 Mon Sep 17 00:00:00 2001 From: Philippe Gerber Date: Wed, 15 Oct 2014 22:29:20 +0200 Subject: [PATCH 2/2] \PayPal\Api\Invoice: Added missing $headers argument in \PayPal\Common\ResourceModel::executeCall() calls --- lib/PayPal/Api/Invoice.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/PayPal/Api/Invoice.php b/lib/PayPal/Api/Invoice.php index e80af0d..548e81a 100644 --- a/lib/PayPal/Api/Invoice.php +++ b/lib/PayPal/Api/Invoice.php @@ -846,7 +846,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -870,7 +870,7 @@ class Invoice extends ResourceModel "/v1/invoicing/search", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -894,7 +894,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/send", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -918,7 +918,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/remind", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -942,7 +942,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/cancel", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -966,7 +966,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/record-payment", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -990,7 +990,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}/record-refund", "POST", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -1013,7 +1013,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/$invoiceId", "GET", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -1036,7 +1036,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/", "GET", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -1060,7 +1060,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}", "PUT", $payLoad, - [], + array(), $apiContext, $restCall ); @@ -1083,7 +1083,7 @@ class Invoice extends ResourceModel "/v1/invoicing/invoices/{$this->getId()}", "DELETE", $payLoad, - [], + array(), $apiContext, $restCall );