mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Move bulk domain renew BL to REPP
This commit is contained in:
parent
13455b398c
commit
b8aeba6beb
5 changed files with 70 additions and 11 deletions
|
@ -30,6 +30,15 @@ module Depp
|
|||
['10 years', '10y'],
|
||||
]
|
||||
|
||||
def self.bulk_renew(domains, period, _registrar)
|
||||
payload = { domains: domains, renew_period: period }
|
||||
headers = { Authorization: 'Basic dGVzdDp0ZXN0MTIz' }
|
||||
|
||||
RestClient.post("#{ENV['repp_url']}domains/renew/bulk", payload, headers).response
|
||||
rescue RestClient::ExceptionWithResponse => e
|
||||
e.response
|
||||
end
|
||||
|
||||
def initialize(args = {})
|
||||
self.current_user = args[:current_user]
|
||||
self.epp_xml = EppXml::Domain.new(cl_trid_prefix: current_user.tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue