/** * Lookup all coupon redemptions on an account. * * @param accountCode recurly account id * @return the coupon redemptions for this account on success, null otherwise */ public Redemptions getCouponRedemptionsByAccount(final String accountCode) { return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + Redemption.REDEMPTIONS_RESOURCE, Redemptions.class, new QueryParams()); }
/** * 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()); }
/** * Get Account Adjustments * <p> * * @param accountCode recurly account id * @return the adjustments on the account */ public Adjustments getAccountAdjustments(final String accountCode) { return getAccountAdjustments(accountCode, null, null, new QueryParams()); }
/** * Get Gift Cards * <p> * Returns information about all gift cards. * * @return gitfcards object on success, null otherwise */ public GiftCards getGiftCards() { return doGET(GiftCards.GIFT_CARDS_RESOURCE, GiftCards.class, new QueryParams()); }
/** * Get Account Adjustments * <p> * * @param accountCode recurly account id * @param type {@link com.ning.billing.recurly.model.Adjustments.AdjustmentType} * @return the adjustments on the account */ public Adjustments getAccountAdjustments(final String accountCode, final Adjustments.AdjustmentType type) { return getAccountAdjustments(accountCode, type, null, new QueryParams()); }
/** * Get Accounts * <p> * Returns information about all accounts. * * @return Accounts on success, null otherwise */ public Accounts getAccounts() { return doGET(Accounts.ACCOUNTS_RESOURCE, Accounts.class, new QueryParams()); }
/** * Get Account Adjustments * <p> * * @param accountCode recurly account id * @param type {@link com.ning.billing.recurly.model.Adjustments.AdjustmentType} * @param state {@link com.ning.billing.recurly.model.Adjustments.AdjustmentState} * @return the adjustments on the account */ public Adjustments getAccountAdjustments(final String accountCode, final Adjustments.AdjustmentType type, final Adjustments.AdjustmentState state) { return getAccountAdjustments(accountCode, type, state, new QueryParams()); }
/** * Get all the subscriptions on the site * <p> * Returns all the subscriptions on the site * * @return Subscriptions on the site */ public Subscriptions getSubscriptions() { return doGET(Subscriptions.SUBSCRIPTIONS_RESOURCE, Subscriptions.class, new QueryParams()); }
/** * List an account's notes * <p> * Returns the account's notes * * @param accountCode recurly account id * @return the notes associated with this account on success, null otherwise */ public AccountNotes getAccountNotes(final String accountCode) { return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + AccountNotes.ACCOUNT_NOTES_RESOURCE, AccountNotes.class, new QueryParams()); }
/** * Get Credit Payments * <p> * Returns information about all credit payments. * * @return CreditPayments on success, null otherwise */ public CreditPayments getCreditPayments() { return doGET(CreditPayments.CREDIT_PAYMENTS_RESOURCE, CreditPayments.class, new QueryParams()); }
/** * Get Coupons * <p> * Returns information about all accounts. * * @return Coupons on success, null otherwise */ public Coupons getCoupons() { return doGET(Coupons.COUPONS_RESOURCE, Coupons.class, new QueryParams()); }
/** * Lookup an account's transactions history * <p> * Returns the account's transaction history * * @param accountCode recurly account id * @return the transaction history associated with this account on success, null otherwise */ public Transactions getAccountTransactions(final String accountCode) { return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + Transactions.TRANSACTIONS_RESOURCE, Transactions.class, new QueryParams()); }
/** * Return all the transactions on an invoice. Only use this endpoint * if you have more than 500 transactions on an invoice. * <p> * * @param invoiceId String Recurly Invoice ID * @return all the transactions on the invoice */ public Transactions getInvoiceTransactions(final String invoiceId) { return doGET(Invoices.INVOICES_RESOURCE + "/" + invoiceId + Transactions.TRANSACTIONS_RESOURCE, Transactions.class, new QueryParams()); }
/** * Lookup an account's invoices * <p> * Returns the account's invoices * * @param accountCode recurly account id * @return the invoices associated with this account on success, null otherwise */ public Invoices getAccountInvoices(final String accountCode) { return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + Invoices.INVOICES_RESOURCE, Invoices.class, new QueryParams()); }
/** * Lookup all invoices * <p> * Returns all invoices on the site * * @return the invoices associated with this site on success, null otherwise */ public Invoices getInvoices() { return doGET(Invoices.INVOICES_RESOURCE, Invoices.class, new QueryParams()); }
/** * Return all the plans * <p> * * @return the plan object as identified by the passed in ID */ public Plans getPlans() { return doGET(Plans.PLANS_RESOURCE, Plans.class, new QueryParams()); }
/** * Get site's transaction history * <p> * All transactions on the site * * @return the transaction history of the site on success, null otherwise */ public Transactions getTransactions() { return doGET(Transactions.TRANSACTIONS_RESOURCE, Transactions.class, new QueryParams()); }
/** * Lookup an invoice's original invoices (e.g. a refund invoice has original_invoices) * <p> * Returns the invoice's original invoices * * @param invoiceId the invoice id * @return the original invoices associated with this invoice on success. Throws RecurlyAPIError if not found */ public Invoices getOriginalInvoices(final String invoiceId) { return doGET(Invoices.INVOICES_RESOURCE + "/" + invoiceId + "/original_invoices", Invoices.class, new QueryParams()); }
/** * Lookup an account's shipping addresses * <p> * Returns the account's shipping addresses * * @param accountCode recurly account id * @return the shipping addresses associated with this account on success, null otherwise */ public ShippingAddresses getAccountShippingAddresses(final String accountCode) { return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + ShippingAddresses.SHIPPING_ADDRESSES_RESOURCE, ShippingAddresses.class, new QueryParams()); }
/** * Return all the MeasuredUnits * <p> * * @return the MeasuredUnits object as identified by the passed in ID */ public MeasuredUnits getMeasuredUnits() { return doGET(MeasuredUnits.MEASURED_UNITS_RESOURCE, MeasuredUnits.class, new QueryParams()); }