0.0
No commit activity in last 3 years
No release in over 3 years
credit_device project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
>= 0
~> 10.0
~> 3.0
 Project Readme

CreditDevice

  • That gem is not ready yet, is missing reports and few stuffs

Installation

Add this line to your application's Gemfile:

gem 'credit_device'

And then execute:

$ bundle

Or install it yourself as:

$ gem install credit_device

Usage

config file

      CreditDevice.configure do |config|
        config.url = "url"
        config.username = "username"
        config.password = "password"
      end

check status

# check the status after setup your configuration CreaditDevice 
CreditDevice::Status.check_status

get all companies by term

@company = CreditDevice::Company.new("ABN", "NL",1)
@company.get_all

get all companies with filter by type:

@company = CreditDevice::Company.new("97123456", "NL",1, type: CreditDevice::Type::QueryParameterType::REG_NUMBER)
@company.get_all

Get Inquiry from the company:

ex: using Inquiry above:

# D44CI701 => type -> all types on  https://inquiry.creditandcollection.nl/docs/inquiry.html
# l7Ox1kNbDBaL3ljSsWZi+A== => company_id
# NL = country language
@inquery = CreditDevice::Inquiry.new("D44CI701", "l7Ox1kNbDBaL3ljSs12asd==", "NL")

GET Report from path or company_id

CreditDevice::Report.new("inquiries/150987/").request_report 
or
CreditDevice::Report.new(nil, inquiry_id: 150987).request_report

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rodrigobarreto/credit_device. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the CreditDevice project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

rubygems page

The gem is available in Credit Device.