Lookup all coupon redemptions on an invoice given query params.

@param invoiceId String invoice id
@param params {@link QueryParams}
@return the coupon redemptions for this invoice on success, null otherwise
499824
public Redemptions getCouponRedemptionsByInvoice(final String invoiceId, final QueryParams params) {
        return doGET(Invoices.INVOICES_RESOURCE + "/" + invoiceId + Redemption.REDEMPTION_RESOURCE,
                Redemptions.class, params);
    }
1176889
public function redeem($promotionTierId, $params)
    {
        return $this->client->post("/promotions/tiers/" . rawurlencode($promotionTierId) . "/redemption/", $params, null);
    }
1041302
public Map<String, String> getUriVariablesForFastFind(String query, FastFindParams params) {

		Map<String, String> uriVariables = params.getParameterMap();

		uriVariables.put(BH_REST_TOKEN, bullhornApiRest.getBhRestToken());
		uriVariables.put(QUERY, query);

		return uriVariables;
	}
1147947
def invoices(self, **params):
        """"""
        params['customer'] = self.id
        return Invoice.all(self.api_key, **params)
458640
public Integer getTransactionsCount(final QueryParams params) {
        FluentCaseInsensitiveStringsMap map = doHEAD(Transactions.TRANSACTIONS_RESOURCE, params);
        return Integer.parseInt(map.getFirstValue(X_RECORDS_HEADER_NAME));
    }
246342
public CreditPayments getCreditPayments(final String accountCode, final QueryParams params) {
        final String path = Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + CreditPayments.CREDIT_PAYMENTS_RESOURCE;
        return doGET(path, CreditPayments.class, params);
    }
34725
public JSONObject getByBuyersCompany(String buyerCompanyReference, HashMap<String, String> params) throws JSONException {
        return oClient.get("/finreports/v2/buyer_companies/" + buyerCompanyReference + "/billings", params);
    }
1370507
@Override
	public List<CommerceOrder> findByBillingAddressId(long billingAddressId) {
		return findByBillingAddressId(billingAddressId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1182711
@Override
	public List<CommerceAccount> findByCompanyId(long companyId) {
		return findByCompanyId(companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
			null);
	}
665466
protected final PrcSalesInvoiceServiceLineSave<RS>
    lazyGetPrcSalesInvoiceServiceLineSave(
      final Map<String, Object> pAddParam) throws Exception {
    @SuppressWarnings("unchecked")
    PrcSalesInvoiceServiceLineSave<RS> proc =
      (PrcSalesInvoiceServiceLineSave<RS>) this.processorsMap
        .get(PrcSalesInvoiceServiceLineSave.class.getSimpleName());
    if (proc == null) {
      proc = new PrcSalesInvoiceServiceLineSave<RS>();
      proc.setSrvAccSettings(getSrvAccSettings());
      proc.setSrvOrm(getSrvOrm());
      proc.setUtlInvLine(lazyGetUtlSalSrLn(pAddParam));
      //assigning fully initialized object:
      this.processorsMap
        .put(PrcSalesInvoiceServiceLineSave.class.getSimpleName(), proc);
    }
    return proc;
  }
642132
public Coupons getUniqueCouponCodes(final String couponCode, final QueryParams params) {
        return doGET(Coupon.COUPON_RESOURCE + "/" + couponCode + Coupon.UNIQUE_CODES_RESOURCE,
                Coupons.class, params);
    }
1054005
public final List<T> findByQuery(String query, Object... params) {
        return this.findSortedByQuery(query, null, params);
    }
310093
@Override
	public List<CommerceOrderPayment> findByCommerceOrderId(
		long commerceOrderId) {
		return findByCommerceOrderId(commerceOrderId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
860178
public static Topup create(Map<String, Object> params) throws StripeException {
    return create(params, (RequestOptions) null);
  }
1040916
public static Invoice retrieve(String invoice) throws StripeException {
    return retrieve(invoice, (Map<String, Object>) null, (RequestOptions) null);
  }
1163829
public static function batchCreateCoupons($id, $params = null, $options = null)
    {
        $url = static::classUrl() . '/' . $id . '/coupons';
        return static::_directRequest('post', $url, $params, $options);
    }
1044232
public <T> QueryCriteria addParameter( String listId, T... param ) {
        if( param.length == 0 ) {
            return null;
        }
        if( QueryCriteriaType.REGEXP.equals(this.type) && ! (param[0] instanceof String) ) {
            throw new IllegalArgumentException("Only String parameters may be used in regular expressions.");
        }
        QueryCriteria criteria =  new QueryCriteria(listId, this.union, this.type, param.length);
        for( T paramElem : param ) {
           criteria.addParameter(paramElem);
        }
        addCriteria(criteria);
        return criteria;
    }