Skip to content

Commit 2a385aa

Browse files
authored
Add dbaName to user business (#84)
1 parent a9e8042 commit 2a385aa

File tree

7 files changed

+18
-8
lines changed

7 files changed

+18
-8
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.0.0",
3+
"version": "2.1.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/TaxPayments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface TaxPayment extends TaxPaymentRequest {
3030
createdDate: Readonly<string>;
3131
document?: TaxPaymentDocument;
3232
status: string;
33+
submittedDate?: Readonly<string>;
3334
}
3435

3536
export interface TaxPaymentDocument {

src/resources/Users.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export interface UserProfile {
3535
export interface UserBusiness {
3636
ein: string; // no hyphens, numerical digits only
3737
name: string;
38+
dbaName?: string;
3839
taxClassification?: TaxClassification;
3940
address?: string;
4041
address2?: string;

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.0.0";
2+
export const version = "2.1.0";

tests/resources/TaxPayments.spec.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ describe("Abound Tax Payments", () => {
9999
"taxPaymentId_test614d255d3048f6f7b3b5bb219b18f0f065d3"
100100
);
101101

102-
expect(normalizeNonIdempotentFields(taxPayment.data))
103-
.toMatchInlineSnapshot(`
102+
expect(
103+
normalizeNonIdempotentFields(taxPayment.data)
104+
).toMatchInlineSnapshot(
105+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
106+
{ submittedDate: expect.any(String) },
107+
`
104108
Object {
105109
"amount": 154.66,
106110
"createdDate": "2021-09-05",
@@ -114,11 +118,12 @@ describe("Abound Tax Payments", () => {
114118
"paymentMethodId": "paymentMethodId_test32920837fa800382b7ee5676f281fbfc18cb",
115119
"period": "Q2",
116120
"status": "done",
117-
"submittedDate": "2022-09-13",
121+
"submittedDate": Any<String>,
118122
"taxPaymentId": "taxPaymentId_test614d255d3048f6f7b3b5bb219b18f0f065d3",
119123
"year": "2020",
120124
}
121-
`);
125+
`
126+
);
122127
});
123128
});
124129
});

tests/resources/users.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Object {
5050
"address2": "Suite 501",
5151
"city": "Palo Alto",
5252
"country": "US",
53+
"dbaName": "InGen",
5354
"name": "Aviato",
5455
"state": "CA",
5556
"taxClassification": "cCorporation",
@@ -95,6 +96,7 @@ Object {
9596
"address2": "Suite 501",
9697
"city": "Palo Alto",
9798
"country": "US",
99+
"dbaName": "InGen",
98100
"name": "InGen Corporation",
99101
"state": "CA",
100102
"taxClassification": "cCorporation",
@@ -178,6 +180,7 @@ Object {
178180
"address2": "Suite 501",
179181
"city": "Palo Alto",
180182
"country": "US",
183+
"dbaName": "InGen",
181184
"name": "InGen Corporation",
182185
"state": "CA",
183186
"taxClassification": "sCorporation",

0 commit comments

Comments
 (0)