You are here

private static function Braintree_Subscription::_addOnDiscountSignature in Commerce Braintree 7

2 calls to Braintree_Subscription::_addOnDiscountSignature()
Braintree_Subscription::_createSignature in braintree_php/lib/Braintree/Subscription.php
Braintree_Subscription::_updateSignature in braintree_php/lib/Braintree/Subscription.php

File

braintree_php/lib/Braintree/Subscription.php, line 152

Class

Braintree_Subscription
Braintree Subscription module

Code

private static function _addOnDiscountSignature() {
  return array(
    array(
      'addOns' => array(
        array(
          'add' => array(
            'amount',
            'inheritedFromId',
            'neverExpires',
            'numberOfBillingCycles',
            'quantity',
          ),
        ),
        array(
          'update' => array(
            'amount',
            'existingId',
            'neverExpires',
            'numberOfBillingCycles',
            'quantity',
          ),
        ),
        array(
          'remove' => array(
            '_anyKey_',
          ),
        ),
      ),
    ),
    array(
      'discounts' => array(
        array(
          'add' => array(
            'amount',
            'inheritedFromId',
            'neverExpires',
            'numberOfBillingCycles',
            'quantity',
          ),
        ),
        array(
          'update' => array(
            'amount',
            'existingId',
            'neverExpires',
            'numberOfBillingCycles',
            'quantity',
          ),
        ),
        array(
          'remove' => array(
            '_anyKey_',
          ),
        ),
      ),
    ),
  );
}