internetee/registry

View on GitHub
app/services/eis_billing/get_invoice_number.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module EisBilling
  class GetInvoiceNumber < EisBilling::Base
    def self.send_invoice
      send_request
    end

    def self.send_request
      http = EisBilling::Base.base_request(url: invoice_number_generator_url)
      http.post(invoice_number_generator_url, nil, EisBilling::Base.headers)
    end

    def self.invoice_number_generator_url
      "#{BASE_URL}/api/v1/invoice_generator/invoice_number_generator"
    end
  end
end