mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #34624 from marlosin/update-stripe-v3-source-owner-address
[stripe-v3] extract owner's adress to an interface
This commit is contained in:
Vendored
+11
-9
@@ -57,15 +57,17 @@ declare namespace stripe {
|
||||
personal_id_number: string;
|
||||
}
|
||||
|
||||
interface OwnerAddress {
|
||||
city?: string;
|
||||
country?: string;
|
||||
line1?: string;
|
||||
line2?: string;
|
||||
postal_code?: string;
|
||||
state?: string;
|
||||
}
|
||||
|
||||
interface OwnerInfo {
|
||||
address?: {
|
||||
city?: string;
|
||||
country?: string;
|
||||
line1?: string;
|
||||
line2?: string;
|
||||
postal_code?: string;
|
||||
state?: string;
|
||||
};
|
||||
address?: OwnerAddress;
|
||||
name?: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
@@ -115,7 +117,7 @@ declare namespace stripe {
|
||||
currency: string;
|
||||
id: string;
|
||||
owner: {
|
||||
address: string | null;
|
||||
address: OwnerAddress | null;
|
||||
email: string | null;
|
||||
name: string | null;
|
||||
phone: string | null;
|
||||
|
||||
Reference in New Issue
Block a user