Return true for null response

This commit is contained in:
siddick
2014-03-28 22:41:23 +05:30
parent a3aba308f4
commit 699d6b86f1
2 changed files with 7 additions and 7 deletions

View File

@@ -789,7 +789,7 @@ class Invoice extends PPModel implements IResource {
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/send", "POST", $payLoad);
return;
return true;
}
/*
@@ -812,7 +812,7 @@ class Invoice extends PPModel implements IResource {
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/remind", "POST", $payLoad);
return;
return true;
}
/*
@@ -835,7 +835,7 @@ class Invoice extends PPModel implements IResource {
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/cancel", "POST", $payLoad);
return;
return true;
}
/*
@@ -858,7 +858,7 @@ class Invoice extends PPModel implements IResource {
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/record-payment", "POST", $payLoad);
return;
return true;
}
/*
@@ -881,7 +881,7 @@ class Invoice extends PPModel implements IResource {
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/record-refund", "POST", $payLoad);
return;
return true;
}
/*
@@ -960,6 +960,6 @@ class Invoice extends PPModel implements IResource {
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}", "DELETE", $payLoad);
return;
return true;
}
}