Skip to content

Commit 03cda60

Browse files
committed
Release 6.0.2
1 parent 8ce6006 commit 03cda60

File tree

24 files changed

+304
-127
lines changed

24 files changed

+304
-127
lines changed

.mock/definition/access-tokens.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ imports:
22
errors: types/errors.yml
33
headers: types/headers.yml
44
common: types/common.yml
5+
payer: types/payer.yml
56
types:
67
AccessTokenSchema:
78
examples:
@@ -21,6 +22,101 @@ types:
2122
expiresAt:
2223
type: datetime
2324
docs: The expiration date and time of the access token in `ISO 8601` format.
25+
customizations: optional<CustomizationsSchema>
26+
userId:
27+
type: optional<string>
28+
docs: The unique identifier of the user associated with this access token.
29+
CustomizationsSchema:
30+
docs: The component customizations for this access token.
31+
properties:
32+
payeeTaxProfile:
33+
type: optional<PayeeTaxProfileSchema>
34+
docs: The Payee Tax Profile component customizations.
35+
PayeeTaxProfileSchema:
36+
properties:
37+
shouldPreloadFromUserId:
38+
type: optional<boolean>
39+
docs: >-
40+
Determines if Abound should preload the Payee Tax Profile by `userId`
41+
lookup. Default is `true`.
42+
shouldCollectElectronicDeliveryConsent:
43+
type: optional<boolean>
44+
docs: >-
45+
Determines if the electronic delivery consent question should be asked
46+
in the Payee Tax Profile component. Default is `true`.
47+
supportedTaxForms:
48+
type: optional<list<SupportedTaxFormsEnum>>
49+
docs: >-
50+
A list of the forms your organizaton intends to support and collect
51+
during a Payee Tax Profile submission. Default is all forms:
52+
`["FORM_W_9", "FORM_W_8BEN", "FORM_W_8BEN_E"]`.
53+
defaults:
54+
type: optional<DefaultsSchema>
55+
docs: >-
56+
Used to preload the Payee Tax Profile with default values. These
57+
defaults will be ignored if data is preloaded by `userId`.
58+
requestingPayer:
59+
type: optional<payer.PayerRequestSchema>
60+
docs: >-
61+
If supplied, a Payee Tax Profile submission that creates a Form W-9
62+
will attach this information as the `Payer`.
63+
DefaultsSchema:
64+
properties:
65+
firstName:
66+
type: optional<string>
67+
docs: The payee's legal first name.
68+
lastName:
69+
type: optional<string>
70+
docs: The payee's legal last name.
71+
businessName:
72+
type: optional<string>
73+
docs: The payee's business name.
74+
dateOfBirth:
75+
type: optional<date>
76+
docs: The date, in `YYYY-MM-DD` format, the payee was born on.
77+
address:
78+
type: optional<string>
79+
docs: The legal address.
80+
address2:
81+
type: optional<string>
82+
docs: >-
83+
The second part of the legal address, such as an apartment or suite
84+
number.
85+
city:
86+
type: optional<string>
87+
docs: >-
88+
The city associated with the street address. Required if `country` is
89+
`US`.
90+
state:
91+
type: optional<string>
92+
docs: >-
93+
The two-letter character code for this state (`CA` for California,
94+
`ME` for Maine). Required if `country` is `US`. If foreign, use the
95+
province.
96+
postalCode:
97+
type: optional<string>
98+
docs: >-
99+
The postal code associated with the street address. Required to be a
100+
5-digit numerical value if `country` is `US`. If foreign, use the
101+
foreign postal code.
102+
country:
103+
type: optional<string>
104+
validation:
105+
minLength: 2
106+
maxLength: 2
107+
docs: The country adhering to `ISO 3166-2` standards.
108+
email:
109+
type: optional<string>
110+
validation:
111+
format: email
112+
docs: >-
113+
The payee's email address. Abound assume's you have taken the proper
114+
steps to verify the ownership of this email address.
115+
SupportedTaxFormsEnum:
116+
enum:
117+
- FORM_W_9
118+
- FORM_W_8BEN
119+
- FORM_W_8BEN_E
24120
service:
25121
auth: false
26122
base-path: ''
@@ -39,6 +135,7 @@ service:
39135
expiresIn:
40136
type: integer
41137
docs: The number of seconds until the access token expires.
138+
customizations: optional<CustomizationsSchema>
42139
userId:
43140
type: optional<string>
44141
docs: >-

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": "6.0.1",
3+
"version": "6.0.2",
44
"private": false,
55
"repository": "https://github.com/withabound/abound-node",
66
"main": "./index.js",

src/api/resources/accessTokens/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class AccessTokens {
5959
Authorization: await this._getAuthorizationHeader(),
6060
"X-Fern-Language": "JavaScript",
6161
"X-Fern-SDK-Name": "@withabound/node-sdk",
62-
"X-Fern-SDK-Version": "6.0.1",
63-
"User-Agent": "@withabound/node-sdk/6.0.1",
62+
"X-Fern-SDK-Version": "6.0.2",
63+
"User-Agent": "@withabound/node-sdk/6.0.2",
6464
"X-Fern-Runtime": core.RUNTIME.type,
6565
"X-Fern-Runtime-Version": core.RUNTIME.version,
6666
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,

src/api/resources/accessTokens/client/requests/AccessTokenRequestSchema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface AccessTokenRequestSchema {
1414
"Idempotency-Key"?: Abound.types.IdempotencyKey | undefined;
1515
/** The number of seconds until the access token expires. */
1616
expiresIn: number;
17+
customizations?: Abound.CustomizationsSchema;
1718
/** The unique identifier of the user associated with this access token. */
1819
userId?: string;
1920
}

src/api/resources/accessTokens/types/AccessTokenSchema.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
import * as Abound from "../../../index";
6+
57
/**
68
* @example
79
* {
@@ -17,4 +19,7 @@ export interface AccessTokenSchema {
1719
createdAt: string;
1820
/** The expiration date and time of the access token in `ISO 8601` format. */
1921
expiresAt: string;
22+
customizations?: Abound.CustomizationsSchema;
23+
/** The unique identifier of the user associated with this access token. */
24+
userId?: string;
2025
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Abound from "../../../index";
6+
7+
/**
8+
* The component customizations for this access token.
9+
*/
10+
export interface CustomizationsSchema {
11+
/** The Payee Tax Profile component customizations. */
12+
payeeTaxProfile?: Abound.PayeeTaxProfileSchema;
13+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface DefaultsSchema {
6+
/** The payee's legal first name. */
7+
firstName?: string;
8+
/** The payee's legal last name. */
9+
lastName?: string;
10+
/** The payee's business name. */
11+
businessName?: string;
12+
/** The date, in `YYYY-MM-DD` format, the payee was born on. */
13+
dateOfBirth?: string;
14+
/** The legal address. */
15+
address?: string;
16+
/** The second part of the legal address, such as an apartment or suite number. */
17+
address2?: string;
18+
/** The city associated with the street address. Required if `country` is `US`. */
19+
city?: string;
20+
/** The two-letter character code for this state (`CA` for California, `ME` for Maine). Required if `country` is `US`. If foreign, use the province. */
21+
state?: string;
22+
/** The postal code associated with the street address. Required to be a 5-digit numerical value if `country` is `US`. If foreign, use the foreign postal code. */
23+
postalCode?: string;
24+
/** The country adhering to `ISO 3166-2` standards. */
25+
country?: string;
26+
/** The payee's email address. Abound assume's you have taken the proper steps to verify the ownership of this email address. */
27+
email?: string;
28+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Abound from "../../../index";
6+
7+
export interface PayeeTaxProfileSchema {
8+
/** Determines if Abound should preload the Payee Tax Profile by `userId` lookup. Default is `true`. */
9+
shouldPreloadFromUserId?: boolean;
10+
/** Determines if the electronic delivery consent question should be asked in the Payee Tax Profile component. Default is `true`. */
11+
shouldCollectElectronicDeliveryConsent?: boolean;
12+
/** A list of the forms your organizaton intends to support and collect during a Payee Tax Profile submission. Default is all forms: `["FORM_W_9", "FORM_W_8BEN", "FORM_W_8BEN_E"]`. */
13+
supportedTaxForms?: Abound.SupportedTaxFormsEnum[];
14+
/** Used to preload the Payee Tax Profile with default values. These defaults will be ignored if data is preloaded by `userId`. */
15+
defaults?: Abound.DefaultsSchema;
16+
/** If supplied, a Payee Tax Profile submission that creates a Form W-9 will attach this information as the `Payer`. */
17+
requestingPayer?: Abound.types.PayerRequestSchema;
18+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export type SupportedTaxFormsEnum = "FORM_W_9" | "FORM_W_8BEN" | "FORM_W_8BEN_E";
6+
7+
export const SupportedTaxFormsEnum = {
8+
FormW9: "FORM_W_9",
9+
FormW8Ben: "FORM_W_8BEN",
10+
FormW8BenE: "FORM_W_8BEN_E",
11+
} as const;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
export * from "./AccessTokenSchema";
2+
export * from "./CustomizationsSchema";
3+
export * from "./PayeeTaxProfileSchema";
4+
export * from "./DefaultsSchema";
5+
export * from "./SupportedTaxFormsEnum";

0 commit comments

Comments
 (0)