@motionpicture/coa-service
COA client library for Node.js
Last updated 4 months ago by hataguchi .
UNLICENSED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @motionpicture/coa-service 
SYNC missed versions from official npm registry.

COA client library for Node.js

npm (scoped) CircleCI Coverage Status Dependency Status Known Vulnerabilities npm

Node.jsでCOAサービスを使うためのライブラリです。

Table of contents

Specification

COA APIの仕様で注意すべき点は以下の通りです。

  • 正常時レスポンスにはstatusが含まれるが、0以外のステータスはない。
  • カタカナは全角統一(半角はありえない)
  • 仮予約番号と購入番号の型はnumberで統一。
  • 座席番号は半角と全角を区別する、
  • 購入番号は劇場内でユニーク、劇場コード合わせれば全体でユニーク。
  • 購入番号は連番かどうか
    • 仮予約番号は連番だが、購入番号は仮予約番号と同じ番号。よって、仮予約で止めたり、仮予約のキャンセルが発生すると、空き番号が発生しうる。
  • 購入番号は最大8桁。 最大番号(99999999)を超える時点で1に戻る。
  • 劇場コードは、基本的に3桁(001、018等)だが、場合によっては1桁や2桁(1、18等)の表示になっていることはあるかもしれない、とのこと。
  • 座席の解放については、基幹システム側では何も行っていない。

Usage

npm install @motionpicture/coa-service
const COA = require('@motionpicture/coa-service');

Environment variables

Name Required Value Purpose
DEBUG false coa-service:* Debug

劇場情報を取得する

const COA = require('@motionpicture/coa-service');

const masterService = new COA.service.Master({
    endpoint: '',
    auth: new COA.auth.RefreshTokenClient({
        endpoint: '',
        refreshToken: ''
    })
});

masterService.theater({
    theaterCode: '123'
})
    .then(console.log)
    .catch(console.error);

Code Samples

Code sample are here.

Documentation

npm run doc emits typedoc to ./docs.

License

UNLICENSED

Current Tags

  • 8.0.1                                ...           latest (4 months ago)
  • 8.0.0-alpha.0                                ...           next (6 months ago)

65 Versions

  • 8.0.1                                ...           4 months ago
  • 8.0.0                                ...           5 months ago
  • 8.0.0-alpha.0                                ...           6 months ago
  • 7.0.0                                ...           a year ago
  • 7.0.0-alpha.0                                ...           a year ago
  • 6.0.1                                ...           a year ago
  • 6.0.0                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.1-alpha.0                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 4.2.0-alpha.0                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.1.0-alpha.0                                ...           2 years ago
  • 4.0.11                                ...           2 years ago
  • 4.0.10                                ...           2 years ago
  • 4.0.9                                ...           2 years ago
  • 4.0.8                                ...           3 years ago
  • 4.0.7                                ...           3 years ago
  • 4.0.6                                ...           3 years ago
  • 4.0.6-alpha.0                                ...           3 years ago
  • 4.0.5                                ...           3 years ago
  • 4.0.4                                ...           3 years ago
  • 4.0.4-alpha.0                                ...           3 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.2-alpha.2                                ...           3 years ago
  • 4.0.2-alpha.1                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.4.0                                ...           3 years ago
  • 3.3.1                                ...           3 years ago
  • 3.3.0                                ...           3 years ago
  • 3.2.0                                ...           3 years ago
  • 3.1.2                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.10                                ...           3 years ago
  • 2.0.8                                ...           3 years ago
  • 2.0.6                                ...           3 years ago
  • 2.0.5                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.3                                ...           3 years ago
  • 1.4.2                                ...           3 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.9                                ...           3 years ago
  • 1.1.8                                ...           3 years ago
  • 1.1.7                                ...           3 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (25)

Copyright 2014 - 2016 © taobao.org |