internetee/registry

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module EisBilling
  class GetMonthlyInvoiceNumbers < EisBilling::Base
    def self.send_request(count)
      prepared_data = {
        count: count,
      }
      http = EisBilling::Base.base_request(url: invoice_numbers_generator_url)
      http.post(invoice_numbers_generator_url, prepared_data.to_json, EisBilling::Base.headers)
    end

    def self.invoice_numbers_generator_url
      "#{BASE_URL}/api/v1/invoice_generator/monthly_invoice_numbers_generator"
    end
  end
end