From e9dabd88999846d8bfe254fd745e97f42f1c87b9 Mon Sep 17 00:00:00 2001 From: Marlos Borges Date: Wed, 10 Apr 2019 14:17:07 +0200 Subject: [PATCH] [stripe-v3] extract owner's adress to an interface --- types/stripe-v3/index.d.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/types/stripe-v3/index.d.ts b/types/stripe-v3/index.d.ts index b23b384d45..9a55284b17 100644 --- a/types/stripe-v3/index.d.ts +++ b/types/stripe-v3/index.d.ts @@ -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;