Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • OpenDNS
    • MES
      • Recurring
      • Reporting
      • Trident

Classes

  • Create
  • Delete
  • RecurringDetailRequest
  • Request
  • Update
 1 <?php
 2 namespace OpenDNS\MES\Recurring;
 3 
 4 /**
 5  * Creates a recurring billing profile.
 6  */
 7 class Create extends RecurringDetailRequest
 8 {
 9     const FREQUENCY_MONTHLY = 'MONTHLY';
10     const FREQUENCY_QUARTERLY = 'QUARTERLY';
11     const FREQUENCY_ANNUALLY = 'ANNUALLY';
12 
13     /** @var string $apiEndpointPath */
14     protected $apiEndpointPath = 'rbsCreate';
15 
16     /** @var array default payment field values */
17     protected $defaultFieldValues = array(
18         'recur_num_pmt' => 0,
19         'payment_type' => 'CC',
20     );
21 
22     /**
23      *  Sets how often to bill the customer's card.
24      *
25      *  @param string One of the FREQUENCY constants from this class
26      *
27      *  @return self
28      */
29     public function setRecurFrequency($frequency)
30     {
31         return $this->setField('recur_frequency', $frequency);
32     }
33 
34 }
35 
API documentation generated by ApiGen