anchor.diff:              Context
       end.
   
  +confirm_address(Context, Id, ?HTTP_POST) ->
  +    AccountId = cb_context:account_id(Context),
  +    ReqData = cb_context:req_data(Context),
  +    Db = kz_util:format_account_id(AccountId, 'encoded'),
  +    {'ok', Doc} = kz_datamgr:open_doc(Db, Id),
  +    NewDoc = kz_json:set_value(<<"pvt_address_confirmed">>, kz_json:get_value(<<"address_confirmed">>, ReqData), Doc),
  +    crossbar_doc:save(cb_context:set_doc(Context, NewDoc));
  +confirm_address(Context, _Id, _) ->
  +    Context.
  
positive.code: 
  -define(CB_E911_ADDRESSES, <<"onbill_e911/addresses">>).
  -define(BIN_DATA, <<"raw">>).
  
  -define(ATTACHMENT_MIME_TYPES, ?PDF_CONTENT_TYPES ++ ?IMAGE_CONTENT_TYPES).
  
  
negative.code: validate(Context, Id) ->
      validate_e911_doc(Context, Id, cb_context:req_verb(Context)).
  
  validate(Context, Id, ?CONFIRM_ADDRESS) ->
      confirm_address(Context, Id, cb_context:req_verb(Context));
  validate(Context, Id, ?BIN_DATA) ->
      lager:debug("uploading binary data to '~s'", [Id]),
      validate_attachment_binary(Context, kz_http_util:urlencode(Id), cb_context:req_verb(Context), cb_context:req_files(Context)).
  