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,6 +43,9 @@ $webProfile->setName("YeowZa! T-Shirt Shop" . uniqid())
// Parameters for style and presentation.
->setPresentation($presentation);
// For Sample Purposes Only.
$request = clone $webProfile;
try {
// Use this call to create a profile.
$createProfileResponse = $webProfile->create($apiContext);
@@ -55,6 +58,6 @@ try {
exit(1);
}
print_result("Created Web Profile", "Web Profile", $createProfileResponse->getId(), $createProfileResponse);
ResultPrinter::printResult("Created Web Profile", "Web Profile", $createProfileResponse->getId(), $request, $createProfileResponse);
return $createProfileResponse;

View File

@@ -27,4 +27,4 @@ try {
exit(1);
}
print_result("Deleted Web Profile", "Web Profile", $createProfileResponse->getId());
ResultPrinter::printResult("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, null);

View File

@@ -23,6 +23,6 @@ try {
exit(1);
}
print_result("Get Web Profile", "Web Profile", $webProfile->getId(), $webProfile);
ResultPrinter::printResult("Get Web Profile", "Web Profile", $webProfile->getId(), null, $webProfile);
return $webProfile;

View File

@@ -23,6 +23,6 @@ foreach ($list as $object) {
$result .= $object->toJSON(128) . PHP_EOL;
}
print_result("Get List of All Web Profiles", "Web Profiles", null, $result);
ResultPrinter::printResult("Get List of All Web Profiles", "Web Profiles", null, null, $result);
return $list;

View File

@@ -45,4 +45,4 @@ try {
exit(1);
}
print_result("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile);
ResultPrinter::printResult("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $webProfile);

View File

@@ -29,4 +29,4 @@ try {
exit(1);
}
print_result("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $updatedWebProfile);
ResultPrinter::printResult("Updated Web Profile", "Web Profile", $updatedWebProfile->getId(), $webProfile, $updatedWebProfile);