payjp / payjp-node

PAY.JP server-side JavaScript & Typescirpt SDK :tada: (Note. will remove npm beta tag) Tutorial:
https://pay.jp/docs/started
MIT License
33 stars 8 forks source link

add type of transfer.summary.dispute_info #34

Closed darai0512 closed 3 years ago

darai0512 commented 3 years ago

See http://payjp-announce.hatenablog.com/entry/2020/12/10/141657

Add types of (tenant_)transfer.summary.dispute_amount and dispute_count.

import * as Payjp from './src'
const payjp = Payjp('sk_test_c62fade9d045b54cd76d7036')
payjp.transfers.list({
  limit: 1,
}).then((transfers: Payjp.List<Payjp.Transfer>): number => {
    return transfers.data[0].summary.dispute_amount
}).then(console.log)