Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1410

Merged
merged 3 commits into from
May 4, 2022
Merged
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
18 changes: 18 additions & 0 deletions types/2020-08-27/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,11 @@ declare module 'stripe' {
*/
political_exposure?: Individual.PoliticalExposure;

/**
* The individual's registered address.
*/
registered_address?: Individual.RegisteredAddress;

/**
* The last four digits of the individual's Social Security Number (U.S. only).
*/
Expand Down Expand Up @@ -1934,6 +1939,10 @@ declare module 'stripe' {

type PoliticalExposure = 'existing' | 'none';

interface RegisteredAddress extends Omit<Stripe.AddressParam, 'line1'> {
dcr-stripe marked this conversation as resolved.
Show resolved Hide resolved
line1?: string;
}

interface Verification {
/**
* A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
Expand Down Expand Up @@ -2980,6 +2989,11 @@ declare module 'stripe' {
*/
political_exposure?: Individual.PoliticalExposure;

/**
* The individual's registered address.
*/
registered_address?: Individual.RegisteredAddress;

/**
* The last four digits of the individual's Social Security Number (U.S. only).
*/
Expand Down Expand Up @@ -3015,6 +3029,10 @@ declare module 'stripe' {

type PoliticalExposure = 'existing' | 'none';

interface RegisteredAddress extends Omit<Stripe.AddressParam, 'line1'> {
line1?: string;
}

interface Verification {
/**
* A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Issuing/Cardholders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ declare module 'stripe' {

interface SpendingLimit {
/**
* Maximum amount allowed to spend per interval.
* Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
*/
amount: number;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ declare module 'stripe' {

interface SpendingLimit {
/**
* Maximum amount allowed to spend per interval.
* Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
*/
amount: number;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ declare module 'stripe' {
/**
* Portion of the amount that corresponds to a tip.
*/
amount: number | null;
amount?: number;
}
}

Expand Down
20 changes: 20 additions & 0 deletions types/2020-08-27/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ declare module 'stripe' {
*/
political_exposure?: Person.PoliticalExposure;

registered_address?: Stripe.Address;

relationship?: Person.Relationship;

/**
Expand Down Expand Up @@ -689,6 +691,11 @@ declare module 'stripe' {
*/
political_exposure?: string;

/**
* The person's registered address.
*/
registered_address?: PersonCreateParams.RegisteredAddress;

/**
* The relationship that this person has with the account's legal entity.
*/
Expand Down Expand Up @@ -767,6 +774,10 @@ declare module 'stripe' {
}
}

interface RegisteredAddress extends Omit<Stripe.AddressParam, 'line1'> {
line1?: string;
}

interface Relationship {
/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
Expand Down Expand Up @@ -956,6 +967,11 @@ declare module 'stripe' {
*/
political_exposure?: string;

/**
* The person's registered address.
*/
registered_address?: PersonUpdateParams.RegisteredAddress;

/**
* The relationship that this person has with the account's legal entity.
*/
Expand Down Expand Up @@ -1034,6 +1050,10 @@ declare module 'stripe' {
}
}

interface RegisteredAddress extends Omit<Stripe.AddressParam, 'line1'> {
line1?: string;
}

interface Relationship {
/**
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
Expand Down
Loading