Skip to content

Commit 0b8d441

Browse files
authored
BREAKING: Update 1099 stateTaxInfo types and remove 1099-MISC (#89)
1 parent 1f31582 commit 0b8d441

File tree

11 files changed

+166
-166
lines changed

11 files changed

+166
-166
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": "2.2.0",
3+
"version": "3.0.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/abound.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export * from "./resources/base/AboundResponse";
1818
// document-types
1919
export * from "./resources/document-types/1099INT";
2020
export * from "./resources/document-types/1099K";
21-
export * from "./resources/document-types/1099MISC";
21+
// export * from "./resources/document-types/1099MISC";
2222
export * from "./resources/document-types/1099NEC";
2323
export * from "./resources/document-types/AccountStatement";
2424
export * from "./resources/document-types/W9";

src/resources/Documents.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AboundBulkResponse, AboundResponse } from "./base/AboundResponse";
33
import { AboundUserScopedResource } from "./base/AboundUserScopedResource";
44
import { Ten99INTDocumentRequest } from "./document-types/1099INT";
55
import { Ten99KDocumentRequest } from "./document-types/1099K";
6-
import { Ten99MISCDocumentRequest } from "./document-types/1099MISC";
6+
// import { Ten99MISCDocumentRequest } from "./document-types/1099MISC";
77
import { Ten99NECDocumentRequest } from "./document-types/1099NEC";
88
import { AccountStatementDocumentRequest } from "./document-types/AccountStatement";
99
import { W9DocumentRequest } from "./document-types/W9";
@@ -17,7 +17,7 @@ export type DocumentRequest =
1717
| AccountStatementDocumentRequest
1818
| Ten99INTDocumentRequest
1919
| Ten99KDocumentRequest
20-
| Ten99MISCDocumentRequest
20+
// | Ten99MISCDocumentRequest
2121
| Ten99NECDocumentRequest
2222
| W9DocumentRequest;
2323

@@ -45,7 +45,7 @@ export enum DocumentType {
4545
ACCOUNT_STATEMENT = "accountStatement",
4646
TEN99INT = "1099int",
4747
TEN99K = "1099k",
48-
TEN99MISC = "1099misc",
48+
// TEN99MISC = "1099misc",
4949
TEN99NEC = "1099nec",
5050
W9 = "w9",
5151
}

src/resources/document-types/1099INT.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ export interface Ten99INTDocumentRequest extends BaseDocumentRequest {
116116
/**
117117
* Up to two (2) state tax information objects.
118118
*/
119-
stateTaxInfo?: StateTaxInfo[];
119+
stateTaxInfo: StateTaxInfo[];
120120
}

src/resources/document-types/1099K.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface Ten99KDocumentRequest extends BaseDocumentRequest {
7676
/**
7777
* Up to two (2) state tax information objects.
7878
*/
79-
stateTaxInfo?: StateTaxInfo[];
79+
stateTaxInfo: StateTaxInfo[];
8080
}
8181

8282
export enum PayerClassification {
Lines changed: 107 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
1-
import { BaseDocumentRequest, DocumentType } from "../Documents";
2-
import { StateTaxInfoWithIncome } from "./StateTaxInfo";
3-
4-
// request body
5-
export interface Ten99MISCDocumentRequest extends BaseDocumentRequest {
6-
type: DocumentType.TEN99MISC;
7-
payerId: string;
8-
year: number;
9-
10-
/**
11-
* Required if you have multiple accounts for a recipient for whom you are filing more than one Form
12-
* 1099-MISC. Required if `hasFatcaFilingRequirement` is true.
13-
*/
14-
accountNumber?: string;
15-
16-
/**
17-
* Satisfying a requirement to report with respect to a U.S. account for chapter 4 purposes.
18-
*/
19-
hasFatcaFilingRequirement?: boolean;
20-
21-
/**
22-
* Report rents from real estate on Schedule E (Form 1040). However, report rents on Schedule C
23-
* (Form 1040) if you provided significant services to the tenant, sold real estate as a business,
24-
* or rented personal property as a business.
25-
*/
26-
rents?: number; // float
27-
28-
/**
29-
* Report royalties from oil, gas, or mineral properties; copyrights; and patents on Schedule E
30-
* (Form 1040).
31-
*/
32-
royalties?: number; // float
33-
34-
/**
35-
* The amount shown may be payments received as the beneficiary of a deceased employee, prizes,
36-
* awards, taxable damages, Indian gaming profits, or other taxable income.
37-
*/
38-
otherIncome?: number; // float
39-
40-
/**
41-
* The backup withholding or withholding on Indian gaming profits. Generally, a payer must backup
42-
* withhold if recipient did not furnish a TIN.
43-
*/
44-
federalIncomeTaxWithheld?: number; // float
45-
46-
/**
47-
* The amount paid to a fishing boat crew member who is considered by the operator to be
48-
* self-employed.
49-
*/
50-
fishingBoatProceeds?: number; // float
51-
52-
/**
53-
* The medical and health care payments for individuals.
54-
*/
55-
medicalPayments?: number; // float
56-
57-
/**
58-
* If true, consumer products totaling $5,000 or more were sold for resale, on a buy-sell,
59-
* a deposit-commission, or other basis.
60-
*/
61-
hasDirectSalesOver5000?: boolean;
62-
63-
/**
64-
* The substitute payments in lieu of dividends or tax-exempt interest received by your broker
65-
* on your behalf as a result of a loan of your securities.
66-
*/
67-
substitutePayments?: number; // float
68-
69-
/**
70-
* The crop insurance proceeds of $600 or more paid to farmers by insurance companies unless the
71-
* farmer has informed the insurance company that expenses have been capitalized under section 278, 263A, or 447.
72-
*/
73-
cropInsuranceProceeds?: number; // float
74-
75-
/**
76-
* The gross proceeds paid to an attorney in connection with legal services.
77-
*/
78-
grossProceedsAttorney?: number; // float
79-
80-
/**
81-
* The amount paid for the purchase of fish for resale from any person engaged in the trade or business of
82-
* catching fish.
83-
*/
84-
fishPurchasedForResale?: number; // float
85-
86-
/**
87-
* The current year deferrals as a nonemployee under a nonqualified deferred compensation (NQDC) plan that
88-
* is subject to the requirements of section 409A plus any earnings on current and prior year deferrals.
89-
*/
90-
section409ADeferrals?: number; // float
91-
92-
/**
93-
* The total compensation of excess golden parachute payments subject to a 20% excise tax.
94-
*/
95-
excessGoldenParachutePayments?: number; // float
96-
97-
/**
98-
* The income as a nonemployee under an NQDC plan that does not meet the requirements of section 409A. Any
99-
* amount included in `section409A` that is currently taxable should also be included.
100-
*/
101-
nqdc?: number; // float
102-
103-
/**
104-
* Up to two (2) state tax information objects.
105-
*/
106-
stateTaxInfo?: StateTaxInfoWithIncome[];
107-
}
1+
// import { BaseDocumentRequest, DocumentType } from "../Documents";
2+
// import { StateTaxInfoWithIncome } from "./StateTaxInfo";
3+
4+
// // request body
5+
// export interface Ten99MISCDocumentRequest extends BaseDocumentRequest {
6+
// type: DocumentType.TEN99MISC;
7+
// payerId: string;
8+
// year: number;
9+
10+
// /**
11+
// * Required if you have multiple accounts for a recipient for whom you are filing more than one Form
12+
// * 1099-MISC. Required if `hasFatcaFilingRequirement` is true.
13+
// */
14+
// accountNumber?: string;
15+
16+
// /**
17+
// * Satisfying a requirement to report with respect to a U.S. account for chapter 4 purposes.
18+
// */
19+
// hasFatcaFilingRequirement?: boolean;
20+
21+
// /**
22+
// * Report rents from real estate on Schedule E (Form 1040). However, report rents on Schedule C
23+
// * (Form 1040) if you provided significant services to the tenant, sold real estate as a business,
24+
// * or rented personal property as a business.
25+
// */
26+
// rents?: number; // float
27+
28+
// /**
29+
// * Report royalties from oil, gas, or mineral properties; copyrights; and patents on Schedule E
30+
// * (Form 1040).
31+
// */
32+
// royalties?: number; // float
33+
34+
// /**
35+
// * The amount shown may be payments received as the beneficiary of a deceased employee, prizes,
36+
// * awards, taxable damages, Indian gaming profits, or other taxable income.
37+
// */
38+
// otherIncome?: number; // float
39+
40+
// /**
41+
// * The backup withholding or withholding on Indian gaming profits. Generally, a payer must backup
42+
// * withhold if recipient did not furnish a TIN.
43+
// */
44+
// federalIncomeTaxWithheld?: number; // float
45+
46+
// /**
47+
// * The amount paid to a fishing boat crew member who is considered by the operator to be
48+
// * self-employed.
49+
// */
50+
// fishingBoatProceeds?: number; // float
51+
52+
// /**
53+
// * The medical and health care payments for individuals.
54+
// */
55+
// medicalPayments?: number; // float
56+
57+
// /**
58+
// * If true, consumer products totaling $5,000 or more were sold for resale, on a buy-sell,
59+
// * a deposit-commission, or other basis.
60+
// */
61+
// hasDirectSalesOver5000?: boolean;
62+
63+
// /**
64+
// * The substitute payments in lieu of dividends or tax-exempt interest received by your broker
65+
// * on your behalf as a result of a loan of your securities.
66+
// */
67+
// substitutePayments?: number; // float
68+
69+
// /**
70+
// * The crop insurance proceeds of $600 or more paid to farmers by insurance companies unless the
71+
// * farmer has informed the insurance company that expenses have been capitalized under section 278, 263A, or 447.
72+
// */
73+
// cropInsuranceProceeds?: number; // float
74+
75+
// /**
76+
// * The gross proceeds paid to an attorney in connection with legal services.
77+
// */
78+
// grossProceedsAttorney?: number; // float
79+
80+
// /**
81+
// * The amount paid for the purchase of fish for resale from any person engaged in the trade or business of
82+
// * catching fish.
83+
// */
84+
// fishPurchasedForResale?: number; // float
85+
86+
// /**
87+
// * The current year deferrals as a nonemployee under a nonqualified deferred compensation (NQDC) plan that
88+
// * is subject to the requirements of section 409A plus any earnings on current and prior year deferrals.
89+
// */
90+
// section409ADeferrals?: number; // float
91+
92+
// /**
93+
// * The total compensation of excess golden parachute payments subject to a 20% excise tax.
94+
// */
95+
// excessGoldenParachutePayments?: number; // float
96+
97+
// /**
98+
// * The income as a nonemployee under an NQDC plan that does not meet the requirements of section 409A. Any
99+
// * amount included in `section409A` that is currently taxable should also be included.
100+
// */
101+
// nqdc?: number; // float
102+
103+
// /**
104+
// * Up to two (2) state tax information objects.
105+
// */
106+
// stateTaxInfo: StateTaxInfoWithIncome[];
107+
// }

src/resources/document-types/1099NEC.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ export interface Ten99NECDocumentRequest extends BaseDocumentRequest {
3333
/**
3434
* Up to two (2) state tax information objects.
3535
*/
36-
stateTaxInfo?: StateTaxInfoWithIncome[];
36+
stateTaxInfo: StateTaxInfoWithIncome[];
3737
}

src/resources/document-types/StateTaxInfo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export interface StateTaxInfo {
22
/**
3-
* The filing state code. The lowercase abbreviation of the state (ca for California).
3+
* The filing state code. The abbreviation of the state (CA for California).
44
*/
5-
filingState?: string;
5+
filingState: string;
66

77
/**
88
* The payer's state identification number.

src/util/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 = "2.2.0";
2+
export const version = "3.0.0";

0 commit comments

Comments
 (0)