Merge branch 'preserve-parent' * preserve-parent: Preserve previous parent id when re-activating plan
Preserve previous parent id when re-activating plan
Use trampoline instead of custom fiber
Merge branch 'only-bill-if-expired' * only-bill-if-expired: Only bill customer if they for sure have balance and are expired Allow an in-transaction condition for billing Change multiline chain style
Allow an in-transaction condition for billing
CustomerPlan.extract To allow building from a hash with extra keys. Makes the CustomerRepo more readable.
Postgres#query_one Helper for queries that only return a single row.
Merge branch 'insert-settled-after' * insert-settled-after: Credit card transactions settle after 90 days, bills instantly
Merge branch 'bill-with-note' * bill-with-note: Add a note when billing account
Add a note when billing account
Credit card transactions settle after 90 days, bills instantly
Merge branch 'activate-with-balance' * activate-with-balance: If customer already has enough balance, just bill them and finish New BillPay registration step Save plan to DB as soon as it is selected Move credit_to lookup into relevant class
Save plan to DB as soon as it is selected Customer will appear as instantly expired (having been active for 1 second in the immediate past). This can replace the pending_plan key for BTC activations. It also serves as a record for mail-in activation of what plan they had selected. Once the account is really activated the tiny row is removed.
Represent plan limit details as a useful object
Default to 0, even if constructed with nil
Merge branch 'overage-limit' * overage-limit: auto_top_up_amount and monthly_overage_limit from CustomerRepo Move Bandwidth Tn remote operations to BandwidthTnRepo Use value_semantics to DRY up CustomerRepo Use NotFound exception for all customer not found cases
auto_top_up_amount and monthly_overage_limit from CustomerRepo Move load of auto_top_up_amount to the repo, and load monthly_overage_limit in the same operation.
Customer Info Forms and More Info There's a bit extra info I wanted about users, so since I was doing this anyway I figured I may as well port the existing forms to the new form renderer. Then, in order to fit within the guidelines I needed subforms, so partials were added.
Merge branch 'rubocop' * rubocop: Additional fixes for rubocop 1.10.1 Switch to rubocop 0.89.1
Switch to rubocop 0.89.1 This is the rubocop in new Debian stable