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:
Benjamin Lichtman
2019-04-10 09:16:21 -07:00
committed by GitHub
+11 -9
View File
@@ -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;