Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: 49d468466a752f8ea72af00d00683f50
openapi_spec_hash: 401f6df4ddb87d8ac1109027a32db945
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/resources/check-transfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,9 @@ export namespace CheckTransferCreateParams {
check_voucher_image_file_id?: string;

/**
* The descriptor that will be printed on the letter included with the check.
* A few paragraphs of text printed on the letter included with the check. It can
* contain at most 24 lines. Paragraphs will wrap at about 120 characters, but
* depending on your exact message, it might be slightly more or slightly less.
*/
note?: string;

Expand Down
192 changes: 191 additions & 1 deletion src/resources/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1436,8 +1436,15 @@ export interface EntityCreateParams {
* - `joint` - Multiple individual people.
* - `trust` - A trust.
* - `government_authority` - A government authority.
* - `sole_proprietorship` - A sole proprietorship.
*/
structure: 'corporation' | 'natural_person' | 'joint' | 'trust' | 'government_authority';
structure:
| 'corporation'
| 'natural_person'
| 'joint'
| 'trust'
| 'government_authority'
| 'sole_proprietorship';

/**
* Details of the corporation entity to create. Required if `structure` is equal to
Expand Down Expand Up @@ -1476,6 +1483,12 @@ export interface EntityCreateParams {
*/
risk_rating?: EntityCreateParams.RiskRating;

/**
* Details of the sole proprietorship entity to create. Required if `structure` is
* equal to `sole_proprietorship`.
*/
sole_proprietorship?: EntityCreateParams.SoleProprietorship;

/**
* Additional documentation associated with the entity.
*/
Expand Down Expand Up @@ -2421,6 +2434,183 @@ export namespace EntityCreateParams {
rating: 'low' | 'medium' | 'high';
}

/**
* Details of the sole proprietorship entity to create. Required if `structure` is
* equal to `sole_proprietorship`.
*/
export interface SoleProprietorship {
/**
* The sole proprietorship's business address. Mail receiving locations like PO
* Boxes and PMB's are disallowed.
*/
address: SoleProprietorship.Address;

/**
* The individual who operates the sole proprietorship.
*/
sole_proprietor: SoleProprietorship.SoleProprietor;

/**
* The name under which the sole proprietorship does business, if it is different
* from the name of the sole proprietor.
*/
doing_business_as_name?: string;

/**
* An email address for the sole proprietorship. Not every program requires an
* email for submitted Entities.
*/
email?: string;

/**
* The North American Industry Classification System (NAICS) code for the sole
* proprietorship's primary line of business. This is a number, like `5132` for
* `Software Publishers`. A full list of classification codes is available
* [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
*/
industry_code?: string;

/**
* The United States Employer Identification Number (EIN) for the sole
* proprietorship, if the sole proprietor has one. Submit nine digits with no
* dashes or other separators.
*/
tax_identifier?: string;

/**
* A website for the sole proprietorship. Not every program requires a website for
* submitted Entities.
*/
website?: string;
}

export namespace SoleProprietorship {
/**
* The sole proprietorship's business address. Mail receiving locations like PO
* Boxes and PMB's are disallowed.
*/
export interface Address {
/**
* The city of the address.
*/
city: string;

/**
* The first line of the address. This is usually the street number and street.
*/
line1: string;

/**
* The two-letter United States Postal Service (USPS) abbreviation for the state of
* the address.
*/
state: string;

/**
* The ZIP code of the address.
*/
zip: string;

/**
* The second line of the address. This might be the floor or room number.
*/
line2?: string;
}

/**
* The individual who operates the sole proprietorship.
*/
export interface SoleProprietor {
/**
* The individual's physical address. Mail receiving locations like PO Boxes and
* PMB's are disallowed.
*/
address: SoleProprietor.Address;

/**
* The person's date of birth in YYYY-MM-DD format.
*/
date_of_birth: string;

/**
* A means of verifying the person's identity. Sole proprietors must be identified
* with a `social_security_number` or an
* `individual_taxpayer_identification_number`.
*/
identification: SoleProprietor.Identification;

/**
* The person's legal name.
*/
name: string;
}

export namespace SoleProprietor {
/**
* The individual's physical address. Mail receiving locations like PO Boxes and
* PMB's are disallowed.
*/
export interface Address {
/**
* The city, district, town, or village of the address.
*/
city: string;

/**
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
*
* Defaults to `US`.
*/
country: string;

/**
* The first line of the address. This is usually the street number and street.
*/
line1: string;

/**
* The second line of the address. This might be the floor or room number.
*/
line2?: string;

/**
* The two-letter United States Postal Service (USPS) abbreviation for the US
* state, province, or region of the address. Required in certain countries.
*/
state?: string;

/**
* The ZIP or postal code of the address. Required in certain countries.
*/
zip?: string;
}

/**
* A means of verifying the person's identity. Sole proprietors must be identified
* with a `social_security_number` or an
* `individual_taxpayer_identification_number`.
*/
export interface Identification {
/**
* A method that can be used to verify the individual's identity.
*
* - `social_security_number` - A social security number.
* - `individual_taxpayer_identification_number` - An individual taxpayer
* identification number (ITIN).
*/
method: 'social_security_number' | 'individual_taxpayer_identification_number';

/**
* An identification number that can be used to verify the individual's identity,
* such as a social security number. Submit nine digits with no dashes or other
* separators. When testing in sandbox, use one of our
* [sandbox test values](https://increase.com/documentation/sandbox-test-values).
*/
number: string;
}
}
}

export interface SupplementalDocument {
/**
* The identifier of the File containing the document.
Expand Down
27 changes: 27 additions & 0 deletions tests/api-resources/entities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,33 @@ describe('resource entities', () => {
confirmed_no_us_tax_id: true,
},
risk_rating: { rated_at: '2019-12-27T18:11:19.117Z', rating: 'low' },
sole_proprietorship: {
address: {
city: 'x',
line1: 'x',
state: 'xx',
zip: 'x',
line2: 'x',
},
sole_proprietor: {
address: {
city: 'x',
country: 'x',
line1: 'x',
line2: 'x',
state: 'x',
zip: 'x',
},
date_of_birth: '2019-12-27',
identification: { method: 'social_security_number', number: 'xxxx' },
name: 'x',
},
doing_business_as_name: 'x',
email: '[email protected]',
industry_code: 'x',
tax_identifier: 'x',
website: 'website',
},
supplemental_documents: [{ file_id: 'file_id' }],
terms_agreements: [
{
Expand Down
Loading