Skip to content

Commit

Permalink
Make subscriptions optional
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjio committed Aug 9, 2019
1 parent 7410fba commit 753967b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stripe-core/src/Web/Stripe/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ data Customer = Customer {
, customerDescription :: Maybe Description
, customerEmail :: Maybe Email
, customerDelinquent :: Bool
, customerSubscriptions :: StripeList Subscription
, customerSubscriptions :: Maybe (StripeList Subscription)
, customerDiscount :: Maybe Discount
, customerAccountBalance :: Int
, customerCards :: StripeList Card
Expand All @@ -278,7 +278,7 @@ instance FromJSON Customer where
<*> o .:? "description"
<*> (fmap Email <$> o .:? "email")
<*> o .: "delinquent"
<*> o .: "subscriptions"
<*> o .:? "subscriptions"
<*> o .:? "discount"
<*> o .: "account_balance"
<*> o .: "cards"
Expand Down

0 comments on commit 753967b

Please sign in to comment.