getClient(); } public function testMigrateWithMappings() { $client = self::$client; $subscriptionID = 'E962B901-DB0C-4BE5-8E29-AF1F6F59F666'; $subscription = Bf_Subscription::getByID($subscriptionID); // 'Other Gold' C9F5BB57-DE63-49BE-973B-56F331313EDA // 'Gold' 8FE8761D-82B2-4363-9977-8D5E6018F0B6 $newProductRatePlanID = 'C9F5BB57-DE63-49BE-973B-56F331313EDA'; // map pricing component names to values $componentNameToValueMap = array( 'CPU' => 10, 'Bandwidth' => 20 ); $createdAmendment = $subscription->migratePlan($componentNameToValueMap, $newProductRatePlanID); var_export($createdAmendment); } }