ref: 210ab8cb0592d25cfe84f1f9e9f68ccc54319eb0 sgx-jmp/lib/bandwidth_tn_order.rb -rw-r--r-- 1.6 KiB
Helper to allow ordering phone number from Bandwidth v2

Uses their gem which uses Faraday. Set Faraday to em-synchrony so their gem is
now using EventMachine but still sync so their code will work unchanged.  Wrap
all uses of the gem in EM.promise_fiber to get a promise back out of that.

Implement a poll helper that can wait until a new order is complete at Bandwidth
before continuing.  They support an HTTP callback method, but only global on
account? This is much easier to work with in our context.