# @teamtito/checkout-client

> # Usage:

Latest version **0.5.7** (published 2023-03-30) · 0 weekly downloads

## Install

```sh
npm install @teamtito/checkout-client
pnpm add @teamtito/checkout-client
yarn add @teamtito/checkout-client
bun add @teamtito/checkout-client
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.7 |
| Published | 2023-03-30 |
| First published | 2019-08-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 30.3 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | paulca, billhorsman, c0js |

## Links

- npm: https://www.npmjs.com/package/@teamtito/checkout-client
- npm.io page: https://npm.io/package/@teamtito/checkout-client

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## Recent versions

- 0.5.7 (latest) — 2023-03-30
- 0.5.6 — 2020-10-06
- 0.5.5 — 2020-02-27
- 0.5.4 — 2019-12-03
- 0.5.3 — 2019-12-03
- 0.5.2 — 2019-11-04
- 0.5.1 — 2019-08-29
- 0.5.0 — 2019-08-29
- 0.4.4 — 2019-08-23
- 0.4.3 — 2019-08-23
- 0.4.2 — 2019-08-22
- 0.4.1 — 2019-08-22
- 0.4.0 — 2019-08-22
- 0.3.0 — 2019-08-22
- 0.2.0 — 2019-08-22
- … 2 more at https://npm.io/package/@teamtito/checkout-client/versions

## README

# Tito Checkout API JavaScript Client

# Usage:

## Import as an ES module

```
import Tito from "@teamtito/checkout-client/dist/client.esm"
```

## Get an Event

```javascript
const event = await Tito.TitoEvent.get("ultimateconf/2013");
```

## Create a Registration

```javascript
const registration = await Tito.Registration.create({event: "ultimateconf/2013", line_items: {...}})
```

## Update Registration

```javascript
const updated = await registration.update({
  name: "Indiana Jones",
  email: "ijones@barnett.edu"
});
```

## Update a Ticket

```javascript
const updated = await ticket.update({
  first_name: "Henry",
  last_name: "Jones",
  email: "hjones@cairo.ac.uk"
});
```

## Getting started

Clone this repository and install its dependencies:

```bash
git clone https://github.com/rollup/rollup-starter-lib
cd rollup-starter-lib
npm install
```

`npm run build` builds the library to `dist`, generating three files:

- `dist/client.cjs.js`
  A CommonJS bundle, suitable for use in Node.js, that `require`s the external dependency. This corresponds to the `"main"` field in package.json
- `dist/client.esm.js`
  an ES module bundle, suitable for use in other people's libraries and applications, that `import`s the external dependency. This corresponds to the `"module"` field in package.json
- `dist/client.umd.js`
  a UMD build, suitable for use in any environment (including the browser, as a `<script>` tag), that includes the external dependency. This corresponds to the `"browser"` field in package.json

`npm run dev` builds the library, then keeps rebuilding it whenever the source files change using [rollup-watch](https://github.com/rollup/rollup-watch).

`npm test` builds the library, then tests it.

## License

[MIT](LICENSE).

---
_Source: https://npm.io/package/@teamtito/checkout-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
