If rate is zero, then minutes remaining becomes infinite.
That's hard to express in json...
So instead I just leave the limits out, which downstream can interpret
as "unlimited".
* sim-top-up:
Cronjob to auto top up and renew and warn about data plan SIMs
Get list of all SIMs from Keepgo
Factor out identical part of keepgo requests
Add newline in low balance notification with target
Split direct sources/direct targets
Stephen Paul Weber
created
cff0794
Cronjob to auto top up and renew and warn about data plan SIMs
dd532cc
Support full state/province names in search queries
Click to expand commit body
Instead of broadening the patterns, this relies on realizing that almost all
query formats either won't match when a state name is present, or will work when
that name is replaced by the code. So just preprocess the query string to
replace state names with their code before pattern matching.
Special case for vanity pattern ~ which can really be anything at all so don't
process that.
Stephen Paul Weber
created
274677b
Braintree can't charge for sub-cent, so make sure it doesn't try
* child-signup:
Refactor CutomerPlan to use value semantics
Allow setting parent during signup using a special referral code
Stephen Paul Weber
created
eeb7208
Refactor CutomerPlan to use value semantics
Stephen Paul Weber
created
aab558d
Allow setting parent during signup using a special referral code
Click to expand commit body
Lookup any referral code to see if it is one for setting a parent, if so set the
parent when we set the plan. In the invite code flow, reload customer and check
balance and if there is enough then we can bill customer and proceed, no need to
add more credit or another code.
Verify parent when setting to make sure it has the same currency as the child
plan at creation time (note that updating the parent plan in the future can
violate this, so be very careful if/when we allow for that!)