[stripe-v3] extract owner's adress to an interface

This commit is contained in:
Marlos Borges
2019-04-10 14:24:33 +02:00
parent 5923986633
commit e9dabd8899
+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;