stripe-haskell 2.0.0 → 2.0.1
raw patch · 1 files changed
+5/−12 lines, 1 files
Files
- stripe-haskell.cabal +5/−12
stripe-haskell.cabal view
@@ -1,11 +1,11 @@ name: stripe-haskell-version: 2.0.0+version: 2.0.1 synopsis: Stripe API for Haskell license: MIT license-file: LICENSE-author: David Johnson+author: David Johnson, Jeremy Shaw maintainer: djohnson.m@gmail.com-copyright: Copyright (c) 2015 David M. Johnson, Jeremy Shaw+copyright: Copyright (c) 2016 David M. Johnson, Jeremy Shaw homepage: https://github.com/dmjio/stripe bug-reports: https://github.com/dmjio/stripe/issues category: Web@@ -28,13 +28,12 @@ . > cabal clean && cabal configure --enable-tests && cabal build tests && dist/build/tests/tests -- You will be prompted to enter your *TEST* key .- [Pagination - <https://stripe.com/docs/api#pagination>] Pagination is possible on all API calls that return a JSON array. Any API call that returns a `StripeList` is eligible for pagination. To use in practice do the following: .- > {-# LANGUAGE OverloadedStrings #-}+ > > import Web.Stripe > import Web.Stripe.Customer >@@ -49,7 +48,6 @@ > Right stripelist -> print (list stripelist :: [Customer]) > Left stripeError -> print stripeError >- . [Versioning - <https://stripe.com/docs/api#versioning>] All versioning is hard-coded (for safety). Stripe API versions specified in the HTTP headers of Stripe requests take precedence@@ -58,14 +56,12 @@ inaccessible to the end-users of this library. When a new Stripe API version is released this library will increment the hard-coded API version. .- [Expansion - <https://stripe.com/docs/api#expansion>] Object expansion is supported on Stripe objects eligible for expansion though the `ExpandParams` type. Object expansion allows normal Stripe API calls to return expanded objects inside of other objects. For example, a `Customer` object contains a Card ID hash on the default_card field. This default_card hash can be expanded into a full `Card` object inside a `Customer` object. As an example: .- > {-# LANGUAGE OverloadedStrings #-} > import Web.Stripe > import Web.Stripe.Customer >@@ -79,14 +75,11 @@ > Right customer -> print (defaultCard customer) -- Will be an `Expanded` `Card` > Left stripeError -> print stripeError >- .- [MetaData - <https://stripe.com/docs/api#metadata>] Stripe objects allow the embedding of arbitrary metadata. Any Stripe object that supports the embedding of metadata is available via this API. As an example: .- > {-# LANGUAGE OverloadedStrings #-} > import Web.Stripe > import Web.Stripe.Coupon >@@ -94,7 +87,7 @@ > main = do > let config = StripeConfig (StripeKey "secret key") > result <- stripe config $ updateCoupon (CouponId "couponid")- -&- MetaData [("key1", "value2"), ("key2", "value2")]+ > -&- MetaData [("key1", "value2"), ("key2", "value2")] > case result of > Right coupon -> print $ couponMetaData coupon > Left stripeError -> print stripeError