# typedef-payjp-webhook

> PAY.JPのWebhookのリクエストボディの型定義を提供する。

Latest version **1.2.0** (published 2026-02-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install typedef-payjp-webhook
pnpm add typedef-payjp-webhook
yarn add typedef-payjp-webhook
bun add typedef-payjp-webhook
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2026-02-13 |
| First published | 2023-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Maintainers | nemuvski |
| Keywords | typescript, type, payjp |

## Links

- npm: https://www.npmjs.com/package/typedef-payjp-webhook
- Repository: https://github.com/nemuvski/typedef-payjp-webhook
- Issues: https://github.com/nemuvski/typedef-payjp-webhook/issues
- npm.io page: https://npm.io/package/typedef-payjp-webhook

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2026-02-13
- 1.1.1 — 2025-10-15
- 1.1.0 — 2024-12-26
- 1.0.1 — 2023-07-24
- 1.0.0 — 2023-03-14

## README

# typedef-payjp-webhook

PAY.JPのWebhookのリクエストボディの型定義を提供します。

TypeScriptで開発しているプロジェクトにて、PAY.JPのイベントWebhookエンドポイントの作成時に役立ちます。


## 導入

```bash
# npm
npm install typedef-payjp-webhook

# yarn
yarn add typedef-payjp-webhook
```

※ [payjp](https://www.npmjs.com/package/payjp) は別途インストールが必要です。


## 利用例

```typescript
import { PayjpWebhook } from 'typedef-payjp-webhook'

export async function sampleHandler(req) {
  const body: PayjpWebhook.RequestBody = req.body

  switch (body.type) {
    case PayjpWebhook.EventTypeIdentifier.CustomerCreated:
      // この時、body.dataはPayjp.Customerのオブジェクトと型推測できる
      break

    case PayjpWebhook.EventTypeIdentifier.PlanCreated:
      // この時、body.dataはPayjp.Planのオブジェクトと型推測できる
      break
  }

  return { statusCode: 200, body: 'OK' }
}
```

---
_Source: https://npm.io/package/typedef-payjp-webhook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
