code: function setTransactionBitFlags(transaction, options) {
    for (var flagName in options.flags) {
      var flag = options.flags[flagName];
  
      // Set transaction flags
      if (!(flag.name in options.input)) {
        continue;
      }
  
      var value = options.input[flag.name];
  
      if (value === options.clear_setting) {
        value = false;
      }
  
      if (flag.unset) {
        transaction.setFlags(value ? flag.set : flag.unset);
      } else if (flag.set && value) {
        transaction.setFlags(flag.set);
      }
    }
  }
docs: Helper that sets bit flags on transactions
  
  @param {Transaction} transaction - Transaction object that is used to submit
  requests to ripple
  @param {Object} options
  @param {Object} options.flags - Holds flag names to set on transaction when
  parameter values are true or false on input
  @param {Object} options.input - Holds parameter values
  @param {String} options.clear_setting - Used to check if parameter values
  besides false mean false
  
  
  @returns undefined