Skip to content

Commit

Permalink
feat(api): updates (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Mar 25, 2024
1 parent dab08f7 commit 9829324
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 9 deletions.
16 changes: 16 additions & 0 deletions src/resources/bulk-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ export interface BulkRequestCreateParams {
| BulkRequestCreateParams.ExpectedPaymentCreateRequest
| BulkRequestCreateParams.LedgerTransactionCreateRequest
| BulkRequestCreateParams.TransactionCreateRequest
| BulkRequestCreateParams.ID
| BulkRequestCreateParams.PaymentOrderUpdateRequestWithID
| BulkRequestCreateParams.ExpectedPaymentUpdateRequestWithID
| BulkRequestCreateParams.TransactionUpdateRequestWithID
| BulkRequestCreateParams.LedgerTransactionUpdateRequestWithID
>;

Expand Down Expand Up @@ -1226,6 +1228,10 @@ export namespace BulkRequestCreateParams {
vendor_description?: string | null;
}

export interface ID {
id?: string;
}

export interface PaymentOrderUpdateRequestWithID {
id?: string;

Expand Down Expand Up @@ -1826,6 +1832,16 @@ export namespace BulkRequestCreateParams {
type?: ExpectedPaymentsAPI.ExpectedPaymentType | null;
}

export interface TransactionUpdateRequestWithID {
id?: string;

/**
* Additional data in the form of key-value pairs. Pairs can be removed by passing
* an empty string or `null` as the value.
*/
metadata?: Record<string, string>;
}

export interface LedgerTransactionUpdateRequestWithID {
id?: string;

Expand Down
10 changes: 8 additions & 2 deletions src/resources/connection-legal-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,12 @@ export namespace ConnectionLegalEntityCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down Expand Up @@ -429,9 +432,12 @@ export namespace ConnectionLegalEntityCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down
10 changes: 8 additions & 2 deletions src/resources/counterparties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,12 @@ export namespace CounterpartyCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down Expand Up @@ -898,9 +901,12 @@ export namespace CounterpartyCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down
15 changes: 12 additions & 3 deletions src/resources/legal-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,12 @@ export namespace LegalEntity {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down Expand Up @@ -398,9 +401,12 @@ export namespace LegalEntityCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down Expand Up @@ -563,9 +569,12 @@ export namespace LegalEntityCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down
10 changes: 8 additions & 2 deletions src/resources/legal-entity-associations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,12 @@ export namespace LegalEntityAssociation {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down Expand Up @@ -421,9 +424,12 @@ export namespace LegalEntityAssociationCreateParams {
| 'hn_id'
| 'hn_rtn'
| 'passport'
| 'sa_tin'
| 'sa_vat'
| 'us_ein'
| 'us_itin'
| 'us_ssn';
| 'us_ssn'
| 'vn_tin';

/**
* The ISO 3166-1 alpha-2 country code of the country that issued the
Expand Down

0 comments on commit 9829324

Please sign in to comment.