Skip to content

Commit

Permalink
Update W9 types (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmealhouse authored Aug 13, 2024
1 parent d0f01d9 commit 858ffc3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@withabound/node-sdk",
"version": "5.1.17",
"version": "5.2.0",
"description": "The Abound Node library provides convenient access to the Abound API from applications written in server-side JavaScript.",
"author": "Abound <api@withabound.com>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/resources/types/payee.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { type TinVerificationStatus } from "../tin-verifications.js";
import type { TinType, TinVerificationStatus } from "../tin-verifications.js";

export type Payee = {
name: string;
name2?: string;
tin: string;
tinType?: "INDIVIDUAL" | "BUSINESS";
tinType?: TinType;
tinFingerprint: string;
tinVerificationId: string;
tinVerificationStatus: TinVerificationStatus;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/types/payer.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { type TinVerificationStatus } from "../tin-verifications.js";
import type { TinType, TinVerificationStatus } from "../tin-verifications.js";

export type Payer = {
name: string;
name2?: string;
tin: string;
tinType?: "INDIVIDUAL" | "BUSINESS";
tinType?: TinType;
tinFingerprint: string;
tinVerificationId: string;
tinVerificationStatus: TinVerificationStatus;
Expand Down
9 changes: 7 additions & 2 deletions src/resources/w-9.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { AboundContext } from "../abound.js";
import { get, list, post } from "./base/base-resource.js";
import type { TinType } from "./tin-verifications.js";
import type { Pagination } from "./types/pagination.js";
import type { Payee, PayeeRequest } from "./types/payee.js";
import type { Payer, PayerRequest } from "./types/payer.js";
Expand All @@ -17,7 +18,9 @@ export type FormW9 = {

// Request body
export type FormW9Request = {
payee: PayeeRequest;
payee: PayeeRequest & {
tinType?: TinType;
};
payer?: PayerRequest;
formFields: FormW9FormFields;
userId?: string;
Expand All @@ -32,6 +35,7 @@ export type FormW9Parameters = Pagination & {

export type FormW9FormFields = {
taxClassification: TaxClassification;
otherTaxClassification?: string;
exemptPayeeCode?: ExemptPayeeCode;
exemptFatcaCode?: ExemptFatcaCode;
accountNumbers?: string[];
Expand All @@ -49,7 +53,8 @@ export type TaxClassification =
| "ESTATE"
| "LLC_PARTNERSHIP"
| "LLC_C_CORPORATION"
| "LLC_S_CORPORATION";
| "LLC_S_CORPORATION"
| "OTHER";

export type ExemptPayeeCode =
| "1"
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated by genversion.
export const version = "5.1.17";
export const version = "5.2.0";

0 comments on commit 858ffc3

Please sign in to comment.