<s> from django . core . management . base import LabelCommand <EOL> from corehq . apps . accounting . models import Currency <EOL> from corehq . apps . sms . models import INCOMING , OUTGOING <EOL> from corehq . apps . smsbillables . models import SmsGatewayFee , SmsGatewayFeeCriteria <EOL> from corehq . apps . smsbillables . utils import log_smsbillables_info <EOL> from corehq . messaging . smsbackends . unicel . models import SQLUnicelBackend <EOL> def bootstrap_unicel_gateway ( apps ) : <EOL> currency = ( apps . get_model ( '<STR_LIT>' ) if apps else Currency ) . objects . get ( code = "<STR_LIT>" ) <EOL> sms_gateway_fee_class = apps . get_model ( '<STR_LIT>' ) if apps else SmsGatewayFee <EOL> sms_gateway_fee_criteria_class = apps . get_model ( '<STR_LIT>' ) if apps else SmsGatewayFeeCriteria <EOL> SmsGatewayFee . create_new ( SQLUnicelBackend . get_api_id ( ) , INCOMING , <NUM_LIT> , <EOL> currency = currency , <EOL> fee_class = sms_gateway_fee_class , <EOL> criteria_class = sms_gateway_fee_criteria_class ) <EOL> SmsGatewayFee . create_new ( SQLUnicelBackend . get_api_id ( ) , OUTGOING , <NUM_LIT> , <EOL> currency = currency , <EOL> fee_class = sms_gateway_fee_class , <EOL> criteria_class = sms_gateway_fee_criteria_class ) <EOL> log_smsbillables_info ( "<STR_LIT>" ) <EOL> class Command ( LabelCommand ) : <EOL> help = "<STR_LIT>" <EOL> args = "<STR_LIT>" <EOL> label = "<STR_LIT>" <EOL> def handle ( self , * labels , ** options ) : <EOL> bootstrap_unicel_gateway ( None ) </s>
