Skip to content

Commit 753967b

Browse files
committed
Make subscriptions optional
1 parent 7410fba commit 753967b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stripe-core/src/Web/Stripe/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ data Customer = Customer {
251251
, customerDescription :: Maybe Description
252252
, customerEmail :: Maybe Email
253253
, customerDelinquent :: Bool
254-
, customerSubscriptions :: StripeList Subscription
254+
, customerSubscriptions :: Maybe (StripeList Subscription)
255255
, customerDiscount :: Maybe Discount
256256
, customerAccountBalance :: Int
257257
, customerCards :: StripeList Card
@@ -278,7 +278,7 @@ instance FromJSON Customer where
278278
<*> o .:? "description"
279279
<*> (fmap Email <$> o .:? "email")
280280
<*> o .: "delinquent"
281-
<*> o .: "subscriptions"
281+
<*> o .:? "subscriptions"
282282
<*> o .:? "discount"
283283
<*> o .: "account_balance"
284284
<*> o .: "cards"

0 commit comments

Comments
 (0)