Skip to content

Commit

Permalink
API Updates (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe authored May 4, 2022
1 parent e615655 commit babff9b
Show file tree
Hide file tree
Showing 7 changed files with 1,499 additions and 29 deletions.
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'> {
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

0 comments on commit babff9b

Please sign in to comment.