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
|
||||
bank.create_activity(registrar, invoice)
|
||||
|
||||
render status: 200, json: { status: 'ok' }
|
||||
render status: 200, json: { status: :ok }
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -13,8 +13,7 @@ class Registrar
|
|||
end
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
def show; end
|
||||
|
||||
def cancel
|
||||
@invoice.cancel
|
||||
|
|
|
@ -34,8 +34,7 @@ module EisBilling
|
|||
'Accept' => TOKEN
|
||||
}
|
||||
|
||||
res = http.post(invoice_generator_url, json_obj.to_json, headers)
|
||||
res
|
||||
http.post(invoice_generator_url, json_obj.to_json, headers)
|
||||
end
|
||||
|
||||
def invoice_generator_url
|
||||
|
|
|
@ -8,8 +8,5 @@ module EisBilling
|
|||
# => "PLEASE CREATE INVOICE"
|
||||
TOKEN = 'Bearer WA9UvDmzR9UcE5rLqpWravPQtdS8eDMAIynzGdSOTw==--9ZShwwij3qmLeuMJ--NE96w2PnfpfyIuuNzDJTGw=='.freeze
|
||||
BASE_URL = ENV['eis_billing_system_base_url']
|
||||
|
||||
protected
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue