Skip to content

Commit 858ffc3

Browse files
authored
Update W9 types (#304)
1 parent d0f01d9 commit 858ffc3

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
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": "@withabound/node-sdk",
3-
"version": "5.1.17",
3+
"version": "5.2.0",
44
"description": "The Abound Node library provides convenient access to the Abound API from applications written in server-side JavaScript.",
55
"author": "Abound <[email protected]>",
66
"license": "MIT",

src/resources/types/payee.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { type TinVerificationStatus } from "../tin-verifications.js";
1+
import type { TinType, TinVerificationStatus } from "../tin-verifications.js";
22

33
export type Payee = {
44
name: string;
55
name2?: string;
66
tin: string;
7-
tinType?: "INDIVIDUAL" | "BUSINESS";
7+
tinType?: TinType;
88
tinFingerprint: string;
99
tinVerificationId: string;
1010
tinVerificationStatus: TinVerificationStatus;

src/resources/types/payer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { type TinVerificationStatus } from "../tin-verifications.js";
1+
import type { TinType, TinVerificationStatus } from "../tin-verifications.js";
22

33
export type Payer = {
44
name: string;
55
name2?: string;
66
tin: string;
7-
tinType?: "INDIVIDUAL" | "BUSINESS";
7+
tinType?: TinType;
88
tinFingerprint: string;
99
tinVerificationId: string;
1010
tinVerificationStatus: TinVerificationStatus;

src/resources/w-9.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { AboundContext } from "../abound.js";
22
import { get, list, post } from "./base/base-resource.js";
3+
import type { TinType } from "./tin-verifications.js";
34
import type { Pagination } from "./types/pagination.js";
45
import type { Payee, PayeeRequest } from "./types/payee.js";
56
import type { Payer, PayerRequest } from "./types/payer.js";
@@ -17,7 +18,9 @@ export type FormW9 = {
1718

1819
// Request body
1920
export type FormW9Request = {
20-
payee: PayeeRequest;
21+
payee: PayeeRequest & {
22+
tinType?: TinType;
23+
};
2124
payer?: PayerRequest;
2225
formFields: FormW9FormFields;
2326
userId?: string;
@@ -32,6 +35,7 @@ export type FormW9Parameters = Pagination & {
3235

3336
export type FormW9FormFields = {
3437
taxClassification: TaxClassification;
38+
otherTaxClassification?: string;
3539
exemptPayeeCode?: ExemptPayeeCode;
3640
exemptFatcaCode?: ExemptFatcaCode;
3741
accountNumbers?: string[];
@@ -49,7 +53,8 @@ export type TaxClassification =
4953
| "ESTATE"
5054
| "LLC_PARTNERSHIP"
5155
| "LLC_C_CORPORATION"
52-
| "LLC_S_CORPORATION";
56+
| "LLC_S_CORPORATION"
57+
| "OTHER";
5358

5459
export type ExemptPayeeCode =
5560
| "1"

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated by genversion.
2-
export const version = "5.1.17";
2+
export const version = "5.2.0";

0 commit comments

Comments
 (0)