packages feed

stripe-concepts 1.0.1.0 → 1.0.2.0

raw patch · 3 files changed

+37/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Stripe.Concepts: ApiVersion :: Text -> ApiVersion
+ Stripe.Concepts: DefaultApiVersion :: RequestApiVersion
+ Stripe.Concepts: OverrideApiVersion :: ApiVersion -> RequestApiVersion
+ Stripe.Concepts: data RequestApiVersion
+ Stripe.Concepts: instance GHC.Classes.Eq Stripe.Concepts.ApiVersion
+ Stripe.Concepts: instance GHC.Classes.Eq Stripe.Concepts.RequestApiVersion
+ Stripe.Concepts: newtype ApiVersion

Files

changelog.md view
@@ -16,3 +16,9 @@ New:  - `CouponId` type++## 1.0.2.0 - 2019-09-30++New:++- `ApiVersion` and `RequestApiVersion` types
library/Stripe/Concepts.hs view
@@ -21,6 +21,9 @@   , PlanId (..), SubscriptionId (..), InvoiceId (..)   , CouponId (..) +  -- * API Versioning+  , ApiVersion (..), RequestApiVersion (..)+   ) where  -- bytestring@@ -208,3 +211,29 @@ <https://stripe.com/docs/api/coupons Stripe> -}  newtype CouponId = CouponId Data.Text.Text deriving Eq++------------------------------------------------------------++{- | When Stripe makes a backwards-incompatible change to the API, they release+a new API version. The versions are named by the date of their release (e.g.+"2019-09-09"). -}++newtype ApiVersion = ApiVersion Data.Text.Text deriving Eq++{- |  Your account API settings specify:++  - Which API version is used by default for requests;+  - Which API version is used for webhook events.++However, you can override the API version for specific requests. "To set the API+version on a specific request, send a @Stripe-Version@ header." -+<https://stripe.com/docs/api/versioning Stripe> -}++data RequestApiVersion =+    DefaultApiVersion+      -- ^ Use the default API version specified by your account settings.+  | OverrideApiVersion ApiVersion+      {- ^ Use a specific API version for this request. (Please note however+           that any webhook events generated as a result of this request will+           still use your account's default API version.) -}+    deriving Eq
stripe-concepts.cabal view
@@ -1,5 +1,5 @@ name: stripe-concepts-version: 1.0.1.0+version: 1.0.2.0  synopsis: Types for the Stripe API category: Web@@ -14,7 +14,7 @@ author:     Chris Martin maintainer: Chris Martin, Julie Moronuki -copyright: 2018 Typeclass Consulting, LLC+copyright: 2019 Typeclass Consulting, LLC license: MIT license-file: license.txt