Finds the price with the default locationGroupId
480666
def get_price(item):
    """"""
    the_price = "No Default Pricing"
    for price in item.get('prices', []):
        if not price.get('locationGroupId'):
            the_price = "%0.4f" % float(price['hourlyRecurringFee'])
    return the_price
1314971
def get_item_prices(self, package_id):
        
        mask = 'mask[pricingLocationGroup[locations]]'

        prices = self.package_svc.getItemPrices(id=package_id, mask=mask)
        return prices
723590
def prices(self):
        
        if self.root.stale:
            self.root.update(self.now, None)
        return self._prices.loc[:self.now]
189357
public static List<CommerceWarehouse> findByG_A_C(long groupId,
		boolean active, long commerceCountryId) {
		return getPersistence().findByG_A_C(groupId, active, commerceCountryId);
	}
210861
@Override
	public List<CPInstance> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
441485
func (r Location_Group_Pricing) GetLocationGroupType() (resp datatypes.Location_Group_Type, err error) {
	err = r.Session.DoRequest("SoftLayer_Location_Group_Pricing", "getLocationGroupType", nil, &r.Options, &resp)
	return
}
379608
@Override
	public List<CommerceDiscount> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
594533
def list_fees(location_id, opts = {})
      data, _status_code, _headers = list_fees_with_http_info(location_id, opts)
      return data
    end
901033
public int get(Object key, int defaultValue) {
        if (key == null) { key = UniqueTag.NULL_VALUE; }
        int index = findIndex(key);
        if (0 <= index) {
            return values[index];
        }
        return defaultValue;
    }
781078
public static CommercePriceListAccountRel removeByUUID_G(String uuid,
		long groupId)
		throws com.liferay.commerce.price.list.exception.NoSuchPriceListAccountRelException {
		return getPersistence().removeByUUID_G(uuid, groupId);
	}
1133820
@Override
	public List<CommerceWarehouse> findByG_A_P(long groupId, boolean active,
		boolean primary) {
		return findByG_A_P(groupId, active, primary, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1169422
function lookup(name, stack, defaultValue) {
    if (name === ".") {
      return stack[stack.length - 1];
    }

    var names = name.split(".");
    var lastIndex = names.length - 1;
    var target = names[lastIndex];

    var value, context, i = stack.length, j, localStack;
    while (i) {
      localStack = stack.slice(0);
      context = stack[--i];

      j = 0;
      while (j < lastIndex) {
        context = context[names[j++]];

        if (context == null) {
          break;
        }

        localStack.push(context);
      }

      if (context && typeof context === "object" && target in context) {
        value = context[target];
        break;
      }
    }

    // If the value is a function, call it in the current context.
    if (typeof value === "function") {
      value = value.call(localStack[localStack.length - 1]);
    }

    if (value == null)  {
      return defaultValue;
    }

    return value;
  }
819021
def get_location(opts=None, provider=None):
    '''
    
    '''
    if opts is None:
        opts = {}
    ret = opts.get('location')
    if ret is None and provider is not None:
        ret = provider.get('location')
    if ret is None:
        ret = get_region_from_metadata()
    if ret is None:
        ret = DEFAULT_LOCATION
    return ret
524429
public static List<CommerceDiscount> findByG_C(long groupId,
		String couponCode) {
		return getPersistence().findByG_C(groupId, couponCode);
	}
370028
@Override
	public List<CommerceDiscount> filterFindByGroupId(long groupId) {
		return filterFindByGroupId(groupId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
256283
@Override
	public List<CPOptionValue> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
941215
def location_query(self):
        
        value = []
        for option in self.options:
            if option.number == defines.OptionRegistry.LOCATION_QUERY.number:
                value.append(option.value)
        return value