Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • OpenDNS
    • MES
      • Recurring
      • Reporting
      • Trident

Classes

  • Create
  • Delete
  • RecurringDetailRequest
  • Request
  • Update
 1 <?php
 2 namespace OpenDNS\MES\Recurring;
 3 use OpenDNS\MES\Request as BaseRequest;
 4 
 5 /**
 6  * Abstract for CUD operations on Recurring billing Profiles.
 7  */
 8 abstract class Request extends BaseRequest
 9 {
10     const FREQUENCY_MONTHLY = 'MONTHLY';
11     const FREQUENCY_QUARTERLY = 'QUARTERLY';
12     const FREQUENCY_ANNUALLY = 'ANNUALLY';
13 
14     /**
15      * @var string $apiBasePath
16      */
17     protected $apiBasePath = '/srv/api';
18 
19     protected $httpMethod = 'GET';
20 
21     /**
22      * Sets authentication info.
23      *
24      * @param int $profileId
25      * @param int|string $userId
26      * @param int|string $password
27      *
28      * @return self
29      */
30     public function setAuthenticationInfo($profileId, $userId, $password)
31     {
32         return $this->setField('profileId', $profileId)
33                     ->setField('userId', $userId)
34                     ->setField('userPass', $password);
35     }
36 
37     /**
38      * Sets a Unique ID for the customer.
39      *
40      * @param int|string $customerId
41      *
42      * @return self
43      */
44     public function setCustomerId($customerId)
45     {
46         return $this->setField('customer_id', $customerId);
47     }
48 
49 }
50 
API documentation generated by ApiGen