packages feed

stripe-haskell 0.1.0.1 → 0.1.0.2

raw patch · 1 files changed

+11/−12 lines, 1 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

stripe-haskell.cabal view
@@ -1,5 +1,5 @@ name:                stripe-haskell-version:             0.1.0.1+version:             0.1.0.2 synopsis:            Stripe API for Haskell license:             MIT license-file:        LICENSE@@ -19,12 +19,11 @@     (<https://stripe.com/docs/api>) All Stripe commands are supported,     including but not limited to Charges, Refunds, Customers, Cards,     Subscriptions, Plans, Coupons, Discounts, Invoices, Invoice Items,-    Disputes, Transfers, Recipients, Application Fees, Application Fees Refunds,+    Disputes, Transfers, Recipients, Application Fees, Application Fee Refunds,     Account, Balance, Events and Tokens     .-    .     [100+ Hspec Tests:] Thoroughly unit-tested with hspec.-    All API commands are unit tested before inclusion into the API (see the tests directory).+    All API commands are unit-tested before inclusion into the API (see the tests directory).     To run the tests, perform the following:     .     >  cabal clean && cabal configure --enable-tests && cabal build tests && dist/build/tests/tests@@ -33,7 +32,7 @@     [Pagination:] Pagination is possible on all API calls that return a JSON array.     (<https://stripe.com/docs/api#pagination>)     Any API call that returns a `StripeList` is eligible for pagination.-    To use in practice do the following.+    To use in practice do the following:     .     > import Web.Stripe     > import Web.Stripe.Customer@@ -46,23 +45,23 @@     >                                  (StartingAfter $ CustomerId "customer_id0")     >                                  (EndingBefore $ CustomerId "customer_id30")     >   case result of-    >     Right (StripeList stripelist)  -> print (list stripelist :: [Customer])+    >     Right stripelist -> print (list stripelist :: [Customer])     >     Left stripeError -> print stripeError     >     .     [Versioning:] All versioning is hard-coded (for safety)     (<https://stripe.com/docs/api#versioning>)-    Stripe API versions specified in the HTTP headers of Stripe requests take precendence -    over the API version specified in your Stripe Admin Panel. In an attempt to ensure+    Stripe API versions specified in the HTTP headers of Stripe requests take precedence +    over the API version specified in your Stripe Dashboard. In an attempt to ensure     API consistency and correct parsing of returned JSON, all Stripe versions are hard-coded, and -    not accessible to the end users of this library. When a new Stripe API version is released +    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:] Object expansion is supported on Stripe objects eligible for expansion though the `ExpandParams` type     (<https://stripe.com/docs/api#expansion>)     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.+    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:     .@@ -76,7 +75,7 @@     >                                  (CustomerId "customerid")     >                                  (["default_card"] :: ExpandParams)     >   case result of-    >     Right (Customer customer) -> print (defaultCard customer) -- Will be an `ExpandedCard`+    >     Right customer -> print (defaultCard customer) -- Will be an `ExpandedCard`     >     Left stripeError -> print stripeError     >     .@@ -94,7 +93,7 @@     >   let config = StripeConfig "secret key"     >   result <- stripe config $ updateCoupon (CouponId "couponid") [("key1", value2"), ("key2", "value2")]     >   case result of-    >     Right (Coupon coupon) -> print (couponMetaData coupon)+    >     Right coupon -> print $ couponMetaData coupon     >     Left stripeError -> print stripeError     .     [Issues:] Any API recommendations or bugs can be reported here: (<https://github.com/dmjio/stripe-haskell/issues>)