Enabled Billing Plans and Agreements APIs

- Added API Classes, Samples, and Tests
- Updated Functional Tests
- Updated Documentation with new SDK Name
- Updated Few Samples to use newer nicer result page
This commit is contained in:
japatel
2014-10-31 10:16:13 -05:00
parent f55fd3d984
commit 4d481ad104
192 changed files with 13310 additions and 1045 deletions

View File

@@ -43,15 +43,4 @@ try {
exit(1);
}
?>
<html>
<head>
<title>Cancel Invoice</title>
</head>
<body>
<div>Cancel Invoice:</div>
<pre><?php echo $invoice->toJSON(128); ?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
ResultPrinter::printResult("Cancel Invoice", "Invoice", $invoice->getId(), $notify, null);

View File

@@ -93,6 +93,9 @@ $invoice->getShippingInfo()->getAddress()
->setPostalCode("97217")
->setCountryCode("US");
// For Sample Purposes Only.
$request = clone $invoice;
try {
// ### Create Invoice
// Create an invoice by calling the invoice->create() method
@@ -103,17 +106,6 @@ try {
var_dump($ex->getData());
exit(1);
}
?>
<html>
<head>
<title>Invoice Creation</title>
</head>
<body>
<div>
Created Invoice:
<?php echo $invoice->getId(); ?>
</div>
<pre><?php echo $invoice->toJSON(128); ?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
ResultPrinter::printResult("Invoice Creation", "Invoice", $invoice->getId(), $request, $invoice);

View File

@@ -22,14 +22,5 @@ try {
var_dump($ex->getData());
exit(1);
}
?>
<html>
<head>
<title>Lookup invoice details</title>
</head>
<body>
<div>Retrieving Invoice: <?php echo $invoiceId;?></div>
<pre><?php echo $invoice->toJSON(128); ?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
ResultPrinter::printResult("Get Invoice", "Invoice", $invoice->getId(), $invoiceId, $invoice);

View File

@@ -19,14 +19,4 @@ try {
var_dump($ex->getData());
exit(1);
}
?>
<html>
<head>
<title>Lookup invoice history</title>
</head>
<body>
<div>Got invoices </div>
<pre><?php echo $invoices->toJSON(128); ?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
ResultPrinter::printResult("Lookup Invoice History", "Invoice", null, null, $invoices);

View File

@@ -41,15 +41,5 @@ try {
exit(1);
}
?>
ResultPrinter::printResult("Remind Invoice", "Invoice", null, $notify, null);
<html>
<head>
<title>Remind Invoice</title>
</head>
<body>
<div>Remind Invoice:</div>
<pre><?php echo $invoice->toJSON(128); ?></pre>
<a href='../index.html'>Back</a>
</body>
</html>

View File

@@ -27,14 +27,4 @@ try {
exit(1);
}
?>
<html>
<head>
<title>Send Invoice</title>
</head>
<body>
<div>Send Invoice:</div>
<pre><?php echo $invoice->toJSON(128); ?></pre>
<a href='../index.html'>Back</a>
</body>
</html>
ResultPrinter::printResult("Send Invoice", "Invoice", $invoice->getId(), null, null);