/** * Lookup all coupon redemptions on an invoice given query params. * * @deprecated Prefer using Invoice#getId() as the id param (which is a String) * * @param invoiceNumber invoice number * @param params {@link QueryParams} * @return the coupon redemptions for this invoice on success, null otherwise */ @Deprecated public Redemptions getCouponRedemptionsByInvoice(final Integer invoiceNumber, final QueryParams params) { return getCouponRedemptionsByInvoice(invoiceNumber.toString(), params); }
/** * Lookup all coupon redemptions on an invoice. * * @param invoiceId String invoice id * @return the coupon redemptions for this invoice on success, null otherwise */ public Redemptions getCouponRedemptionsByInvoice(final String invoiceId) { return getCouponRedemptionsByInvoice(invoiceId, new QueryParams()); }
/** * Lookup all coupon redemptions on an invoice. * * @deprecated Prefer using Invoice#getId() as the id param (which is a String) * * @param invoiceNumber invoice number * @return the coupon redemptions for this invoice on success, null otherwise */ @Deprecated public Redemptions getCouponRedemptionsByInvoice(final Integer invoiceNumber) { return getCouponRedemptionsByInvoice(invoiceNumber.toString(), new QueryParams()); }