mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 15:06:23 +02:00
refactored base codeclimate warnings
This commit is contained in:
parent
cda56c735f
commit
a8f1f885de
4 changed files with 3 additions and 8 deletions
|
@ -21,7 +21,7 @@ module EisBilling
|
||||||
registrar = invoice.buyer
|
registrar = invoice.buyer
|
||||||
bank.create_activity(registrar, invoice)
|
bank.create_activity(registrar, invoice)
|
||||||
|
|
||||||
render status: 200, json: { status: 'ok' }
|
render status: 200, json: { status: :ok }
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -13,8 +13,7 @@ class Registrar
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show; end
|
||||||
end
|
|
||||||
|
|
||||||
def cancel
|
def cancel
|
||||||
@invoice.cancel
|
@invoice.cancel
|
||||||
|
|
|
@ -34,8 +34,7 @@ module EisBilling
|
||||||
'Accept' => TOKEN
|
'Accept' => TOKEN
|
||||||
}
|
}
|
||||||
|
|
||||||
res = http.post(invoice_generator_url, json_obj.to_json, headers)
|
http.post(invoice_generator_url, json_obj.to_json, headers)
|
||||||
res
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def invoice_generator_url
|
def invoice_generator_url
|
||||||
|
|
|
@ -8,8 +8,5 @@ module EisBilling
|
||||||
# => "PLEASE CREATE INVOICE"
|
# => "PLEASE CREATE INVOICE"
|
||||||
TOKEN = 'Bearer WA9UvDmzR9UcE5rLqpWravPQtdS8eDMAIynzGdSOTw==--9ZShwwij3qmLeuMJ--NE96w2PnfpfyIuuNzDJTGw=='.freeze
|
TOKEN = 'Bearer WA9UvDmzR9UcE5rLqpWravPQtdS8eDMAIynzGdSOTw==--9ZShwwij3qmLeuMJ--NE96w2PnfpfyIuuNzDJTGw=='.freeze
|
||||||
BASE_URL = ENV['eis_billing_system_base_url']
|
BASE_URL = ENV['eis_billing_system_base_url']
|
||||||
|
|
||||||
protected
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue