You are here

function commerce_recurring_rules_action_info in Commerce Recurring Framework 7

Same name and namespace in other branches
  1. 7.2 commerce_recurring.rules.inc \commerce_recurring_rules_action_info()

Implements hook_rules_action_info().

File

./commerce_recurring.rules.inc, line 103

Code

function commerce_recurring_rules_action_info() {
  $actions = array();
  $actions['commerce_recurring_process_recurring'] = array(
    'label' => t('Generate new recurring orders'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Master order'),
      ),
    ),
    'provides' => array(
      'recurring_order' => array(
        'type' => 'commerce_order',
        'label' => t('New Order'),
        'description' => t('The new repeat of the order'),
      ),
    ),
    'group' => t('Commerce Recurring'),
  );
  $actions['commerce_recurring_load_recurring'] = array(
    'label' => t('Load recurring orders'),
    'parameter' => array(),
    'provides' => array(
      'orders' => array(
        'type' => 'list<commerce_order>',
        'label' => t('Recurring Orders'),
        'description' => t('Recurring orders'),
      ),
    ),
    'group' => t('Commerce Recurring'),
  );
  $actions['commerce_recurring_load_payments_due'] = array(
    'label' => t('Load recurring orders with due payments'),
    'parameter' => array(),
    'provides' => array(
      'orders' => array(
        'type' => 'list<commerce_order>',
        'label' => t('Recurring Orders'),
        'description' => t('Due recurring orders'),
      ),
    ),
    'group' => t('Commerce Recurring'),
  );
  $actions['commerce_recurring_process_payment'] = array(
    'label' => t('Process payments against recurring orders'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Due order'),
      ),
    ),
    'group' => t('Commerce Recurring'),
  );
  $actions['commerce_recurring_initialise_recurring'] = array(
    'label' => t('Mark an order as a recurring master'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order'),
        'description' => t('The master order'),
      ),
    ),
    'group' => t('Commerce Recurring'),
  );
  return $actions;
}