Commit log

4e57aea Transaction Delete and Existance

Click to expand commit body
Now that Transaction acts as a kind of repo, there's two other methods
I'm going to want for the future.

Christopher Vollick created

e065650 Split CreditCardSale from Transaction

Click to expand commit body
This is a refactor that involves pulling the Credit Card stuff (meaning
braintree) out of the Transaction stuff. This makes Transaction a more
generic implementation of our Transaction table.

This commit should maintain the status quo, though. The places that used
to call Transaction.sale now call CreditCardSale.create, and that got a
little easier because we now do the `.insert` inside the create, because
previously all the callsites just got the transaction out and then
inserted anyway.

So they got a little bit simpler, but the main value of this is that now
we can insert other kinds of transactions and not just credit card
transactions!

Christopher Vollick created

e292f20 Merge branch 'command-icons'

Click to expand commit body
* command-icons:
  Add emoji icons for each command

Stephen Paul Weber created

8e07718 Switch from unbilled to direct targets

Click to expand commit body
Instead of just having a list of targets we don't charge for and that don't
count towards limits, instead a list of targets where we know their JID and send
them messages directly, bypassing even the SGX.

In practise we will use this for support.  This means support messages will not
traverse billing code, or the sgx, and will work even if the sgx is down or the
customer has no configuration there at all (or a broken configuration there)
including if the customer has no phone number.

Support will get messages from customer_<customerid>@jmp.chat and can reply to
those.  Customers will still message the support phone number via @cheogram.com
and see the replies coming from the support number.

Anyone messaging the support phone number from outside our system (ie from
carrier SMS) will still show up as phonenumber@cheogram.com to support, since
that won't traverse this path.  If someone messages support without a cheogram
route that will still come as whispers since those don't traverse sgx-jmp at all
right now.

In the unlikely case that someone has a cheogram route set, but no customer id
at all, then these will come from <escaped jid>@jmp.chat and currently cannot be
replied to, but at least support will see that something is up and be able to
take action.

Stephen Paul Weber created

02d8328 Allow SGX with a node

Click to expand commit body
This is not common, but if that's what the config says we shouldn't erase the node.

Stephen Paul Weber created

24b079a Update Admin Actions for Ruby 3

Click to expand commit body
In Ruby 3 hashes no longer work as keyword args like we expected, so we
have to be a bit more explicit.

Should be compatible with Ruby 2.

Christopher Vollick created

8785676 Renamed file with a mistype.

Click to expand commit body
Renamed lib/customer_finacials.rb to lib/customer_financials.rb
Edited the 'require' in lib/customer.rb and lib/financial_info.rb

root21 created

4c70ba8 Add emoji icons for each command

Stephen Paul Weber created

4b045d1 Merge branch 'simpleswap'

Click to expand commit body
* simpleswap:
  Integrate SimpleSwap into alt top up

Stephen Paul Weber created

38d58f6 Integrate SimpleSwap into alt top up

Click to expand commit body
Allow choosing Done, Add Bitcoin, XMR, or ETH with the last two being SimpleSwap
swap addresses (and thus only one-time use, for safety, we don't know how long
they keep a record of swaps etc).

Stephen Paul Weber created

b640c8e Merge branch 'low-balance-target'

Click to expand commit body
* low-balance-target:
  Fix linter, integrate patch feedback
  Add low balance/auto top up with target amount

Stephen Paul Weber created

cc8787a Fix linter, integrate patch feedback

Stephen Paul Weber created

1a2640d Add low balance/auto top up with target amount

Osakpolor Obaseki created

07575ad Take in Carrier if Port is Canadian

Click to expand commit body
Canadian ports need this extra info to port them in. Up until now I've
been messaging people manually to ask for it, but that adds a delay to
the porting process since I can't move forwards until they've told me,
and it may be hours between when they fill out the form and when I'm
processing it.

So this will just ask for all the data upfront, meaning I can fully
process them right away.

Christopher Vollick created

94298f5 Refactor alt top up to use FormTemplate

Stephen Paul Weber created

8715e74 Remove expired payment methods from customer list of payment methods [with tests]

Osakpolor Obaseki created

78c1b39 Command to show details (currently just remaining data) for account SIMs

Stephen Paul Weber created

ec30012 Fix test

Stephen Paul Weber created

c68cc15 Merge branch 'use-tel-we-have'

Click to expand commit body
* use-tel-we-have:
  Skip asking backend about registration when we know the tel already

Stephen Paul Weber created

502c8cf Hotfix tests on master

Stephen Paul Weber created

a006893 Better text for when used with webview

Stephen Paul Weber created

08b2f8b Merge branch 'fix-info-when-no-plan'

Click to expand commit body
* fix-info-when-no-plan:
  Fix rendering info when there is no plan

Stephen Paul Weber created

6e0b6b1 Merge branch 'outbound-call-customer-not-found'

Click to expand commit body
* outbound-call-customer-not-found:
  Actually handle outbound attempt from unknown customer

Stephen Paul Weber created

e1e0ddb Fix rendering info when there is no plan

Stephen Paul Weber created

07c3da0 Render useful message when trying to leave voicemail for no customer

Stephen Paul Weber created

f5ad677 Actually handle outbound attempt from unknown customer

Stephen Paul Weber created

6ce95ed Skip asking backend about registration when we know the tel already

Click to expand commit body
This is an optimization.  If we are looking up by tel already, then we don't
need to ask the backend sgx if they have a tel or what it is, we know that, so
just use that information directly and save us a call.

Stephen Paul Weber created

eb16aef Added number change Admin command to bot.

Click to expand commit body
V3 commit.

	modified:   forms/admin_menu.rb
	new file:   forms/admin_number_change.rb
	new file:   lib/admin_actions/number_change.rb
	modified:   lib/admin_command.rb

root21 created

30485ca Merge branch 'preserve-parent'

Click to expand commit body
* preserve-parent:
  Preserve previous parent id when re-activating plan

Stephen Paul Weber created

25d74f5 Merge branch 'show-remaining-included-calling-credit'

Click to expand commit body
* show-remaining-included-calling-credit:
  Show remaining included calling credit in customer info
  Add missing require

Stephen Paul Weber created

5000e1b Show remaining included calling credit in customer info

root21 created

1648439 Add missing require

root21 created

6e32ea1 Merge branch 'ruby3'

Click to expand commit body
* ruby3:
  Fix for ruby3
  Test on Ubuntu LTS (with ruby3)
  Update to new minitest

Stephen Paul Weber created

9037e5c Merge branch 'longer-auto-top-up-block'

Click to expand commit body
* longer-auto-top-up-block:
  The secondary block should be longer than the main lock...

Stephen Paul Weber created

0001880 The secondary block should be longer than the main lock...

Stephen Paul Weber created

e3712fc Merge branch 'customer_id_in_order'

Click to expand commit body
* customer_id_in_order:
  Include customer id as CustomerOrderId when ordering number

Stephen Paul Weber created

1ff1310 Search again if no tel selected

Stephen Paul Weber created

6f01945 Include customer id as CustomerOrderId when ordering number

Click to expand commit body
So we can tell who ordered a number in case of issues

Stephen Paul Weber created

e33ce01 Preserve previous parent id when re-activating plan

Stephen Paul Weber created

27b2711 Merge branch 'prev'

Click to expand commit body
* prev:
  Allow prev from mail-in registration
  Allow prev from invite code
  Allow prev from credit card form
  Make sure OOB comes first in payload
  Allow prev from Bitcoin registration
  Allow prev action on TelSelections search results

Stephen Paul Weber created

1c4bb40 Fix for ruby3

Stephen Paul Weber created

5d3f180 Test on Ubuntu LTS (with ruby3)

Stephen Paul Weber created

298ff66 Update to new minitest

Stephen Paul Weber created

575804c Merge branch 'disable-voicemail'

Click to expand commit body
* disable-voicemail:
  Allow infinite timeout / disabled voicemail

Stephen Paul Weber created

4acf6c3 Allow infinite timeout / disabled voicemail

Click to expand commit body
Use Forward to hand control completely to the target call.  If something ends up
at our voicemail due to error or similar, just hang up.

Stephen Paul Weber created

dd9dfe8 Merge branch 'tel-in-ogm'

Click to expand commit body
* tel-in-ogm:
  Switch default OGM to include tel

Stephen Paul Weber created

d622bc0 Transcription Retry Metadata Uses Symbols

Click to expand commit body
We transform the keys into symbols, but then index with a string.

Christopher Vollick created

04ab66b Switch default OGM to include tel

Stephen Paul Weber created

470beb3 Trust level Olympias

Stephen Paul Weber created

4486e59 Include tel in note for billing transactions

Stephen Paul Weber created