Skip to content

Commit 1a3c3fe

Browse files
ilyamermanKATT
andauthored
0.9.6 (#120)
* export `PaymentStatus` * Add missing `PaymentStatus`: `PendingReview` Defined in the docs here https://docs.unit.co/payments#ach-status * Update `UnitErrorPayload.status` to string I'm actually receiving `string`s on this thing defined as a `number`. * 0.9.6 Co-authored-by: Alex Johansson <[email protected]>
1 parent d76482e commit 1a3c3fe

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unit-finance/unit-node-sdk",
3-
"version": "0.9.5",
3+
"version": "0.9.6",
44
"description": "",
55
"main": "dist/unit.js",
66
"types": "dist/unit.d.ts",

types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export class UnitError extends Error {
390390

391391
// https://docs.unit.co/#intro-errors
392392
export interface UnitErrorPayload {
393-
status: number // http status code
393+
status: number | string // http status code
394394
title: string
395395
code?: string
396396
details?: string

types/payments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Relationship, Counterparty, WireCounterparty } from "./common"
22

3-
type PaymentStatus = "Pending" | "Rejected" | "Clearing" | "Sent" | "Canceled" | "Returned"
3+
export type PaymentStatus = "Pending" | "PendingReview" | "Rejected" | "Clearing" | "Sent" | "Canceled" | "Returned"
44

55
export type Payment = AchPayment | BookPayment | WirePayment | BillPayment
66

0 commit comments

Comments
 (0)