README.md

# ChargebeeElixir


Elixir implementation of [Chargebee API](https://apidocs.chargebee.com/docs/api).

## v0.1.5
This is a work in progress: right now, we only implement those methods:
- list
- retrieve
- create

on those resources:
- addon
- customer
- hosted_page
  - also checkout_new
  - also checkout_existing
- subscription
  - also create_for_customer
- plan
- portal_session
- subscription
- invoice
  - also close
  - also import_invoice

## Installation
The package can be installed by adding `chargebee_elixir` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [
    {:chargebee_elixir, "~> 0.1.5"}
  ]
end
```

## Configuration
```elixir
# config/dev.ex
config :chargebee_elixir,
  namespace: "$your_namespace",
  api_key: "$your_api_key"
```

## Usage
```elixir
# e.g.
ChargebeeElixir.Plan.list()
```

## Run tests
```sh
mix test
```

## Publish
```
mix hex.publish
```