def bootstrap_sms(apps, schema_editor):
    bootstrap_grapevine_gateway(apps)
    bootstrap_mach_gateway(apps)
    bootstrap_tropo_gateway(apps)
    bootstrap_unicel_gateway(apps)
    bootstrap_usage_fees(apps)
    bootstrap_moz_gateway(apps)
    bootstrap_test_gateway(apps)
    bootstrap_telerivet_gateway(apps)
    bootstrap_yo_gateway(apps)
    add_moz_zero_charge(apps)
    bootstrap_grapevine_gateway_update(apps)
Ejemplo n.º 2
0
    def forwards(self, orm):
        # hack: manually force sync SMS design docs before
        # we try to load from them. the bootstrap commands are dependent on these.
        sync_docs.sync(sms_models, verbosity=2)

        # ensure default currency
        orm['accounting.Currency'].objects.get_or_create(code=settings.DEFAULT_CURRENCY)
        orm['accounting.Currency'].objects.get_or_create(code='EUR')
        orm['accounting.Currency'].objects.get_or_create(code='INR')

        bootstrap_grapevine_gateway(orm)
        bootstrap_mach_gateway(orm)
        bootstrap_tropo_gateway(orm)
        bootstrap_twilio_gateway(orm)
        bootstrap_unicel_gateway(orm)
        call_command('bootstrap_usage_fees')
Ejemplo n.º 3
0
def bootstrap_sms(apps, schema_editor):
    bootstrap_grapevine_gateway(apps)
    bootstrap_mach_gateway(apps)
    bootstrap_tropo_gateway(apps)
    bootstrap_twilio_gateway(
        apps,
        'corehq/apps/smsbillables/management/commands/pricing_data/twilio-rates-2015_10_06.csv'
    )
    bootstrap_unicel_gateway(apps)
    bootstrap_usage_fees(apps)
    bootstrap_moz_gateway(apps)
    bootstrap_test_gateway(apps)
    bootstrap_telerivet_gateway(apps)
    bootstrap_twilio_gateway_incoming(apps)
    bootstrap_yo_gateway(apps)
    add_moz_zero_charge(apps)
    bootstrap_grapevine_gateway_update(apps)
Ejemplo n.º 4
0
    def forwards(self, orm):
        # hack: manually force sync SMS design docs before
        # we try to load from them. the bootstrap commands are dependent on these.
        sync_docs.sync(sms_models, verbosity=2)

        # ensure default currency
        orm['accounting.Currency'].objects.get_or_create(
            code=settings.DEFAULT_CURRENCY)
        orm['accounting.Currency'].objects.get_or_create(code='EUR')
        orm['accounting.Currency'].objects.get_or_create(code='INR')

        bootstrap_grapevine_gateway(orm)
        bootstrap_mach_gateway(orm)
        bootstrap_tropo_gateway(orm)
        bootstrap_twilio_gateway(orm)
        bootstrap_unicel_gateway(orm)
        call_command('bootstrap_usage_fees')
Ejemplo n.º 5
0
def bootstrap_sms(apps, schema_editor):
    get_preindex_plugin('sms').sync_design_docs()
    bootstrap_grapevine_gateway(apps)
    bootstrap_mach_gateway(apps)
    bootstrap_tropo_gateway(apps)
    bootstrap_twilio_gateway(
        apps,
        'corehq/apps/smsbillables/management/commands/pricing_data/twilio-rates-2015_10_06.csv'
    )
    bootstrap_unicel_gateway(apps)
    call_command('bootstrap_usage_fees')
    bootstrap_moz_gateway(apps)
    bootstrap_test_gateway(apps)
    bootstrap_telerivet_gateway(apps)
    bootstrap_twilio_gateway_incoming(apps)
    bootstrap_yo_gateway(apps)
    add_moz_zero_charge(apps)
    bootstrap_grapevine_gateway_update(apps)