stripe-servant 0.2.1.0 → 0.3.0.0
raw patch · 3 files changed
+7/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Stripe.Resources: [csAllowPromotionCodes] :: CheckoutSession -> Maybe Bool
+ Stripe.Resources: [cscAllowPromotionCodes] :: CheckoutSessionCreate -> Maybe Bool
- Stripe.Resources: CheckoutSession :: CheckoutSessionId -> Bool -> Maybe Text -> Text -> Text -> Vector Text -> Maybe SubscriptionId -> CheckoutSession
+ Stripe.Resources: CheckoutSession :: CheckoutSessionId -> Bool -> Maybe Text -> Text -> Text -> Vector Text -> Maybe SubscriptionId -> Maybe Bool -> CheckoutSession
- Stripe.Resources: CheckoutSessionCreate :: Text -> Text -> [Text] -> Text -> Maybe Text -> Maybe CustomerId -> [CheckoutSessionCreateLineItem] -> CheckoutSessionCreate
+ Stripe.Resources: CheckoutSessionCreate :: Text -> Text -> [Text] -> Text -> Maybe Text -> Maybe CustomerId -> Maybe Bool -> [CheckoutSessionCreateLineItem] -> CheckoutSessionCreate
Files
- LICENSE +1/−1
- src/Stripe/Resources.hs +3/−0
- stripe-servant.cabal +3/−3
LICENSE view
@@ -1,4 +1,4 @@-Copyright Alexander Thiemann <mail@thiemann.at> (c) 2020+Copyright Alexander Thiemann <mail@thiemann.at> (c) 2020-2021 All rights reserved.
src/Stripe/Resources.hs view
@@ -230,6 +230,7 @@ , csSuccessUrl :: T.Text , csPaymentMethodTypes :: V.Vector T.Text -- TODO: make enum , csSubscription :: Maybe SubscriptionId+ , csAllowPromotionCodes :: Maybe Bool } deriving (Show, Eq) data CheckoutSessionCreate@@ -240,6 +241,7 @@ , cscSuccessUrl :: T.Text , cscClientReferenceId :: Maybe T.Text , cscCustomer :: Maybe CustomerId+ , cscAllowPromotionCodes :: Maybe Bool , cscLineItems :: [CheckoutSessionCreateLineItem] } deriving (Show, Eq, Generic) @@ -345,4 +347,5 @@ , ("mode", [cscMode csc]) , ("client_reference_id", maybeToList $ cscClientReferenceId csc) , ("customer", maybeToList $ fmap toUrlPiece $ cscCustomer csc)+ , ("allow_promotion_codes", maybeToList $ toUrlPiece <$> cscAllowPromotionCodes csc) ] <> lineItems <> pmt
stripe-servant.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: ddf6361d6626079588fbe50aa6741d6eea065cb93fa602ad4c538c44ccb2c69d+-- hash: 1abd3898b7ca575a0cf267fc7887fd59c7b166197a463357cb1a81b2fc3b48d5 name: stripe-servant-version: 0.2.1.0+version: 0.3.0.0 synopsis: Unofficial Stripe servant types description: Unofficial description of the Stripe API using servant types category: Web@@ -15,7 +15,7 @@ bug-reports: https://github.com/agrafix/stripe-hs/issues author: Alexander Thiemann <mail@thiemann.at> maintainer: Alexander Thiemann <mail@thiemann.at>-copyright: 2020 Alexander Thiemann <mail@thiemann.at>+copyright: 2020-2021 Alexander Thiemann <mail@thiemann.at> license: BSD3 license-file: LICENSE build-type: Simple