function commerce_avatax_rules_action_info in Drupal Commerce Connector for AvaTax 7.4
Same name and namespace in other branches
- 7.5 commerce_avatax.rules.inc \commerce_avatax_rules_action_info()
Implements hook_rules_action_info().
File
- ./
commerce_avatax.rules.inc, line 11 - Rules supporting AvaTax Sales Order Processing.
Code
function commerce_avatax_rules_action_info() {
$parameter = array(
'order' => array(
'type' => 'commerce_order',
'label' => t('Commerce Order'),
),
);
$actions = array(
'commerce_avatax_calculate_sales_tax' => array(
'label' => t('Calculate sales tax for order'),
'group' => t('Commerce AvaTax'),
'parameter' => $parameter,
),
'commerce_avatax_delete_avatax_line_items' => array(
'label' => t('Delete AvaTax line items'),
'group' => t('Commerce AvaTax'),
'parameter' => $parameter,
),
'commerce_avatax_commit_transaction' => array(
'label' => t('Change status of sales tax to COMMITTED in AvaTax'),
'group' => t('Commerce AvaTax'),
'parameter' => $parameter,
),
'commerce_avatax_cancel_transaction' => array(
'label' => t('Change status of sales tax to VOIDED in AvaTax'),
'group' => t('Commerce AvaTax'),
'parameter' => $parameter,
),
);
return $actions;
}