public static function requestCreditCardId($token, Infusionsoft_App $app = null)
 {
     $params = array($token);
     $result = parent::send($app, "CreditCardSubmissionService.requestCreditCardId", $params);
     foreach ($result as $key => $value) {
         $cc_data[ucfirst($key)] = $value;
     }
     $cc = new Infusionsoft_CreditCard();
     $cc->loadFromArray($cc_data);
     return $cc;
 }
 public static function authenticateUser($username, $passwordHash, Infusionsoft_App $app = null)
 {
     $params = array($username, $passwordHash);
     return parent::send($app, "DataService.authenticateUser", $params);
 }
 public static function listLinkedContacts($contactId1, Infusionsoft_App $app = null)
 {
     $params = array((int) $contactId1);
     return parent::send($app, "ContactService.listLinkedContacts", $params);
 }
 public static function getHTML($webformId, Infusionsoft_App $app = null)
 {
     $params = array((int) $webformId);
     return parent::send($app, "WebFormService.getHTML", $params);
 }
 public static function placeOrder($contactId, $creditCardId, $payPlanId, $productIds, $subscriptionPlanIds, $processSpecials, $promoCodes, $leadAffiliateId = 0, $affiliatedId = 0, Infusionsoft_App $app = null)
 {
     $params = array((int) $contactId, (int) $creditCardId, (int) $payPlanId, $productIds, $subscriptionPlanIds, (bool) $processSpecials, $promoCodes, $leadAffiliateId, $affiliatedId);
     return parent::send($app, "OrderService.placeOrder", $params);
 }
 public static function getOptStatus($email, Infusionsoft_App $app = null)
 {
     $params = array($email);
     return parent::send($app, "APIEmailService.getOptStatus", $params, null, true);
 }
 public static function applyActivityHistoryTemplate($contactId, $historyId, $userId, Infusionsoft_App $app = null)
 {
     $params = array((int) $contactId, (int) $historyId, (int) $userId);
     return parent::send($app, "ContactService.applyActivityHistoryTemplate", $params);
 }
 public static function getRedirectLinksForAffiliate($affiliateId, Infusionsoft_App $app = null)
 {
     $params = array((int) $affiliateId);
     return parent::send($app, "AffiliateService.getRedirectLinksForAffiliate", $params);
 }
 public static function updatePhoneStats($firstName, $lastName, $calls, $totalTime, $averageTime, Infusionsoft_App $app = null)
 {
     $params = array($firstName, $lastName, (int) $calls, $totalTime, $averageTime);
     return parent::send($app, "APIAffiliateService.updatePhoneStats", $params);
 }
 public static function deactivateCreditCard($creditCardId, Infusionsoft_App $app = null)
 {
     $params = array((int) $creditCardId);
     return parent::send($app, "ProductService.deactivateCreditCard", $params);
 }
 public static function getUpsShippingOption($optionId, Infusionsoft_App $app = null)
 {
     $params = array((int) $optionId);
     return parent::send($app, "ShippingService.getUpsShippingOption", $params);
 }
 public static function getDefaultQuickSearch($userId, Infusionsoft_App $app = null)
 {
     $params = array((int) $userId);
     return parent::send($app, "SearchService.getDefaultQuickSearch", $params);
 }
 public static function deleteInvoice($invoiceId, Infusionsoft_App $app = null)
 {
     $params = array((int) $invoiceId);
     return parent::send($app, "InvoiceService.deleteInvoice", $params);
 }
 public static function getOrderTotalDiscount($discountId, Infusionsoft_App $app = null)
 {
     $params = array((int) $discountId);
     return parent::send($app, "DiscountService.getOrderTotalDiscount", $params);
 }
 public static function achieveGoal($integration, $callName, $contactId = 0, Infusionsoft_App $app = null)
 {
     $params = array($integration, $callName, (int) $contactId);
     return parent::send($app, "FunnelService.achieveGoal", $params);
 }
 public static function renameFile($fileId, $fileName, Infusionsoft_App $app = null)
 {
     $params = array((int) $fileId, $fileName);
     return parent::send($app, "FileService.renameFile", $params);
 }