Skip to content

Commit

Permalink
feat(api): rename associated_legal_entity to child_legal_entity (#…
Browse files Browse the repository at this point in the history
…361)

feat(api): rename `id_type` enum from `cl_nut` to `cl_rut`
  • Loading branch information
stainless-app[bot] committed Mar 19, 2024
1 parent 008af46 commit 5da0450
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 102 deletions.
30 changes: 15 additions & 15 deletions src/resources/connection-legal-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export namespace ConnectionLegalEntityCreateParams {
last_name?: string | null;

/**
* The legal entity associations and its associated legal entities.
* The legal entity associations and its child legal entities.
*/
legal_entity_associations?: Array<LegalEntity.LegalEntityAssociation> | null;

Expand Down Expand Up @@ -258,7 +258,7 @@ export namespace ConnectionLegalEntityCreateParams {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand All @@ -279,35 +279,35 @@ export namespace ConnectionLegalEntityCreateParams {
relationship_types: Array<'beneficial_owner' | 'control_person'>;

/**
* The associated legal entity.
* The child legal entity.
*/
associated_legal_entity?: LegalEntityAssociation.AssociatedLegalEntity;
child_legal_entity?: LegalEntityAssociation.ChildLegalEntity;

/**
* The ID of the associated legal entity.
* The ID of the child legal entity.
*/
associated_legal_entity_id?: string;
child_legal_entity_id?: string;

/**
* The associated entity's ownership percentage iff they are a beneficial owner.
* The child entity's ownership percentage iff they are a beneficial owner.
*/
ownership_percentage?: number | null;

/**
* The job title of the associated entity at the associator entity.
* The job title of the child entity at the parent entity.
*/
title?: string | null;
}

export namespace LegalEntityAssociation {
/**
* The associated legal entity.
* The child legal entity.
*/
export interface AssociatedLegalEntity {
export interface ChildLegalEntity {
/**
* A list of addresses for the entity.
*/
addresses?: Array<AssociatedLegalEntity.Address>;
addresses?: Array<ChildLegalEntity.Address>;

/**
* The business's legal business name.
Expand Down Expand Up @@ -339,7 +339,7 @@ export namespace ConnectionLegalEntityCreateParams {
/**
* A list of identifications for the legal entity.
*/
identifications?: Array<AssociatedLegalEntity.Identification>;
identifications?: Array<ChildLegalEntity.Identification>;

/**
* An individual's last name.
Expand Down Expand Up @@ -369,15 +369,15 @@ export namespace ConnectionLegalEntityCreateParams {
*/
metadata?: Record<string, string>;

phone_numbers?: Array<AssociatedLegalEntity.PhoneNumber>;
phone_numbers?: Array<ChildLegalEntity.PhoneNumber>;

/**
* The entity's primary website URL.
*/
website?: string | null;
}

export namespace AssociatedLegalEntity {
export namespace ChildLegalEntity {
export interface Address {
/**
* Country code conforms to [ISO 3166-1 alpha-2]
Expand Down Expand Up @@ -423,7 +423,7 @@ export namespace ConnectionLegalEntityCreateParams {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand Down
30 changes: 15 additions & 15 deletions src/resources/counterparties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ export namespace CounterpartyCreateParams {
last_name?: string | null;

/**
* The legal entity associations and its associated legal entities.
* The legal entity associations and its child legal entities.
*/
legal_entity_associations?: Array<LegalEntity.LegalEntityAssociation> | null;

Expand Down Expand Up @@ -727,7 +727,7 @@ export namespace CounterpartyCreateParams {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand All @@ -748,35 +748,35 @@ export namespace CounterpartyCreateParams {
relationship_types: Array<'beneficial_owner' | 'control_person'>;

/**
* The associated legal entity.
* The child legal entity.
*/
associated_legal_entity?: LegalEntityAssociation.AssociatedLegalEntity;
child_legal_entity?: LegalEntityAssociation.ChildLegalEntity;

/**
* The ID of the associated legal entity.
* The ID of the child legal entity.
*/
associated_legal_entity_id?: string;
child_legal_entity_id?: string;

/**
* The associated entity's ownership percentage iff they are a beneficial owner.
* The child entity's ownership percentage iff they are a beneficial owner.
*/
ownership_percentage?: number | null;

/**
* The job title of the associated entity at the associator entity.
* The job title of the child entity at the parent entity.
*/
title?: string | null;
}

export namespace LegalEntityAssociation {
/**
* The associated legal entity.
* The child legal entity.
*/
export interface AssociatedLegalEntity {
export interface ChildLegalEntity {
/**
* A list of addresses for the entity.
*/
addresses?: Array<AssociatedLegalEntity.Address>;
addresses?: Array<ChildLegalEntity.Address>;

/**
* The business's legal business name.
Expand Down Expand Up @@ -808,7 +808,7 @@ export namespace CounterpartyCreateParams {
/**
* A list of identifications for the legal entity.
*/
identifications?: Array<AssociatedLegalEntity.Identification>;
identifications?: Array<ChildLegalEntity.Identification>;

/**
* An individual's last name.
Expand Down Expand Up @@ -838,15 +838,15 @@ export namespace CounterpartyCreateParams {
*/
metadata?: Record<string, string>;

phone_numbers?: Array<AssociatedLegalEntity.PhoneNumber>;
phone_numbers?: Array<ChildLegalEntity.PhoneNumber>;

/**
* The entity's primary website URL.
*/
website?: string | null;
}

export namespace AssociatedLegalEntity {
export namespace ChildLegalEntity {
export interface Address {
/**
* Country code conforms to [ISO 3166-1 alpha-2]
Expand Down Expand Up @@ -892,7 +892,7 @@ export namespace CounterpartyCreateParams {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand Down
34 changes: 17 additions & 17 deletions src/resources/legal-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export interface LegalEntity {
last_name?: string | null;

/**
* The legal entity associations and its associated legal entities.
* The legal entity associations and its child legal entities.
*/
legal_entity_associations?: Array<LegalEntityAssociationsAPI.LegalEntityAssociation> | null;

Expand Down Expand Up @@ -232,7 +232,7 @@ export namespace LegalEntity {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand Down Expand Up @@ -316,7 +316,7 @@ export interface LegalEntityCreateParams {
last_name?: string | null;

/**
* The legal entity associations and its associated legal entities.
* The legal entity associations and its child legal entities.
*/
legal_entity_associations?: Array<LegalEntityCreateParams.LegalEntityAssociation> | null;

Expand Down Expand Up @@ -392,7 +392,7 @@ export namespace LegalEntityCreateParams {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand All @@ -413,35 +413,35 @@ export namespace LegalEntityCreateParams {
relationship_types: Array<'beneficial_owner' | 'control_person'>;

/**
* The associated legal entity.
* The child legal entity.
*/
associated_legal_entity?: LegalEntityAssociation.AssociatedLegalEntity;
child_legal_entity?: LegalEntityAssociation.ChildLegalEntity;

/**
* The ID of the associated legal entity.
* The ID of the child legal entity.
*/
associated_legal_entity_id?: string;
child_legal_entity_id?: string;

/**
* The associated entity's ownership percentage iff they are a beneficial owner.
* The child entity's ownership percentage iff they are a beneficial owner.
*/
ownership_percentage?: number | null;

/**
* The job title of the associated entity at the associator entity.
* The job title of the child entity at the parent entity.
*/
title?: string | null;
}

export namespace LegalEntityAssociation {
/**
* The associated legal entity.
* The child legal entity.
*/
export interface AssociatedLegalEntity {
export interface ChildLegalEntity {
/**
* A list of addresses for the entity.
*/
addresses?: Array<AssociatedLegalEntity.Address>;
addresses?: Array<ChildLegalEntity.Address>;

/**
* The business's legal business name.
Expand Down Expand Up @@ -473,7 +473,7 @@ export namespace LegalEntityCreateParams {
/**
* A list of identifications for the legal entity.
*/
identifications?: Array<AssociatedLegalEntity.Identification>;
identifications?: Array<ChildLegalEntity.Identification>;

/**
* An individual's last name.
Expand Down Expand Up @@ -503,15 +503,15 @@ export namespace LegalEntityCreateParams {
*/
metadata?: Record<string, string>;

phone_numbers?: Array<AssociatedLegalEntity.PhoneNumber>;
phone_numbers?: Array<ChildLegalEntity.PhoneNumber>;

/**
* The entity's primary website URL.
*/
website?: string | null;
}

export namespace AssociatedLegalEntity {
export namespace ChildLegalEntity {
export interface Address {
/**
* Country code conforms to [ISO 3166-1 alpha-2]
Expand Down Expand Up @@ -557,7 +557,7 @@ export namespace LegalEntityCreateParams {
| 'ar_cuit'
| 'br_cnpj'
| 'br_cpf'
| 'cl_nut'
| 'cl_rut'
| 'co_cedulas'
| 'co_nit'
| 'hn_id'
Expand Down
Loading

0 comments on commit 5da0450

Please sign in to comment.