652 Commits

Author SHA1 Message Date
Brandur
9b1315d08c Bump version to 1.36.0 v1.36.0 2016-02-08 08:24:04 -08:00
Brandur
85f191217b A few more nominal whitespace tweaks 2016-02-08 08:23:33 -08:00
Brandur
555341029b Tweak whitespace for consistency 2016-02-08 08:21:34 -08:00
Brandur
b2d74b09ff Merge pull request #376 from Easybring/master
support for country_spec
2016-02-08 08:19:36 -08:00
Ioannis Kolovos
f8532d225e Support for Stripe::CountrySpec 2016-02-06 16:55:29 +02:00
Brandur
3a258806a2 Bump version to 1.35.1 v1.35.1 2016-02-03 14:06:08 -08:00
Brandur
d8fc785f34 Merge pull request #374 from stripe/brandur-refund-fallback
Provide compatibility patch the Charge#refund helper
2016-02-03 14:04:54 -08:00
Brandur
65b92dec4b Provide compatibility patch the Charge#refund helper
An unfortunate side effect of #364 is that it broke compatibility for
users on very old API versions because their `refunds` field will come
back as an array.

This adds a compatibility layer that will allow even users on old API
versions to seamlessly upgrade their gem versions.
2016-02-03 13:45:01 -08:00
Brandur
23c61cc867 Bump version to 1.35.0 v1.35.0 2016-02-01 05:14:43 -08:00
Brandur
687be7015d Merge pull request #372 from stripe/brandur-update-bundle
Update CA bundle
2016-02-01 05:12:26 -08:00
Brandur
7aed899e1a Merge pull request #371 from stripe/brandur-configuration-ca-bundle-path
Allow the CA bundle to be configured
2016-02-01 05:12:14 -08:00
Brandur
31bbf02d4d Update CA bundle
Our CA bundle has fallen quite out of date since it was last pulled.
This patch updates it and adds a Rake task to make this task more
repeatable.

One thing worth noting is I've switched us over from the Ubuntu bundle
to the Mozilla bundle that's maintained by cURL. The bundle seemed to be
previously extracted by a custom script that I don't really want to
maintain. cURL and Excon both use the Mozilla bundle and it should be a
safe replacement.
2016-01-26 14:32:16 -08:00
Brandur
61ba47d619 Allow the CA bundle to be configured
As requested in #370, this will allow advanced users to configure a
certificate bundle that is expected to be more up-to-date than what
we've managed to include with the gem.
2016-01-26 14:19:07 -08:00
Brandur
91f42f4bc2 Bump version to 1.34.0 v1.34.0 2016-01-25 11:24:07 -08:00
Brandur
a508688c3c Merge pull request #368 from stripe/rasmus-support_product_sku_deletion
Support deleting SKUs and products.
2016-01-25 11:22:59 -08:00
Rasmus Rygaard
8d8fb67aae Support deleting SKUs and products. 2016-01-25 10:32:49 -08:00
Brandur
03086b8086 Bump version to 1.33.1 v1.33.1 2016-01-21 15:16:34 -08:00
Brandur
89cf6071b7 Merge pull request #366 from yogeshjain999/charge_refund_fix
Forward parameters passed to charge.refund
2016-01-21 11:54:33 -08:00
Yogesh Khater
4fe8474279 Forward parameters passed to charge.refund
fixes #365
2016-01-21 12:00:42 +05:30
Brandur
932ddb825a Bump version to 1.33.0 v1.33.0 2016-01-19 15:48:20 -08:00
Brandur
52a26ff08f Merge pull request #364 from stripe/brandur-deprecate-refund-helpers
Deprecate `#refund` helpers on `Charge` and `ApplicationFee`
2016-01-19 15:46:54 -08:00
Brandur
13cba9f29a Remove deprecations 2016-01-19 15:31:44 -08:00
Brandur
437c2dfa02 Move extend to top of file 2016-01-15 10:37:24 -08:00
Brandur
cd9d2bc71e Also re-implement Charge#refund to use our new endpoint
This was already done for `ApplicationFee`.
2016-01-15 10:36:42 -08:00
Brandur
8a20ab8972 Deprecate #refund helpers on Charge and ApplicationFee
As discussed previously in #354 and alluded to in #363, this patch
deprecates the `#refund` helpers on `Charge` and `ApplicationFee` in
favor of the resource-centric approach (i.e. `charge.refunds.create`).

We do this for a few reasons:

1. The new approach is far preferred and uses our modern endpoints. It's
   also been the mechanism suggested by the documentation for ages now.
2. The old approach is somewhat risky in that a forgotten "s" can lead
   to an accidental refund (i.e. `charge.refund` instead of
   `charge.refunds`).

Follows up #354. Fixes #363.
2016-01-14 18:16:56 -08:00
Brandur
0c14e6ec1f Bump version to 1.32.1 v1.32.1 2016-01-07 10:57:46 -07:00
Brandur
6fca0e63d9 Merge pull request #361 from stripe/brandur-init-original-values
Always initialize `original_values` ivar in `StripeObject`
2016-01-07 10:46:32 -07:00
Brandur
4521bfe626 Merge pull request #362 from iloveitaly/bitcoin-refresh-fix
BitcoinReceiver refresh fix
2016-01-06 20:12:26 -07:00
Michael Bianco
2255dd73a8 Adding nil customer value to mock bitcoin receiver hash 2016-01-06 21:47:32 -05:00
Michael Bianco
c259547dd7 Check for nil customer value when determining bitcoin receiver URL
Stripe API responses include `customer: nil`, which causes `refresh`
to throw an exception
2016-01-06 21:45:29 -05:00
Brandur
2564990aa2 Always initialize original_values ivar in StripeObject
This is kind of a weird one because it'll only cause a failure when
serializing a subobject or hash of a `StripeObject`, but it's good
practice to initialize instance variables anyway.

Fixes #360.
2016-01-06 14:40:52 -07:00
Brandur
121a8bfee4 Merge pull request #359 from rthbound/list-object-extends-api-operations
ListObject extends ApiOperations::Create
2016-01-06 09:22:10 -07:00
Ryan T. Hosford
0acf314e30 ListObject extends ApiOperations::Create
- Addresses a bit of duplication.
2016-01-05 22:52:33 -06:00
Brandur
c78b1b8337 Bump version to 1.32.0 v1.32.0 2016-01-05 10:19:23 -07:00
Brandur
d5f5efb77d Merge pull request #354 from stripe/brandur-refund-url-correction-2
Update application fee refunds (round 2)
2015-12-03 17:37:36 -08:00
Kyle Conroy
4e01b13efc Merge pull request #353 from nbrustein/retry-network-failures
feat(request): optionally retry network failures
2015-11-23 13:37:38 -08:00
Nate Brustein
a31986fa6e feat(request): optionally retry all requests that fail on a network failure 2015-11-23 14:30:54 -05:00
Brandur
53ff2ef7f4 Add a semi-deprecation comment 2015-11-19 14:23:33 -08:00
Brandur
c7e515ba7b Use refunds.create + maintain backward compatibility 2015-11-19 14:10:33 -08:00
Brandur
bc66a38cd4 Update application fee refunds (round 2)
Follows up the patch in #351, which I now believe is wrong. The trouble
is that we were mutating the application fee object, when in reality an
application fee refund is actually a completely new resource (see
[creating a refund][create-refund]). This patch edits the original
attempt to cut a new object and updates tests accordingly.

Once again, related to stripe/stripe-php#208.

[create-refund]: https://stripe.com/docs/api#create_fee_refund
2015-11-18 12:25:52 -08:00
Brandur
02f68e45e7 Merge pull request #351 from stripe/brandur-refund-url-correction
Correct URL used for refunding application fees
2015-11-16 13:06:26 -08:00
Brandur
c7fd5b6baa Correct URL used for refunding application fees
This uses the new endpoint instead of the deprecated one.

Related to stripe/stripe-php#208.
2015-11-16 11:07:32 -08:00
Brandur
59e7752a00 Merge pull request #349 from stripe/brandur-remove-18-hacks
Remove test hacks introduced to work around Ruby 1.8 limitations
2015-11-04 17:44:54 -08:00
Brandur
03b64a059d Remove test hacks introduced to work around Ruby 1.8 limitations 2015-11-04 16:41:59 -08:00
Kyle Conroy
90c9d8efa2 Merge pull request #348 from stripe/ruby18
No longer support Ruby 1.8.7
2015-11-04 15:52:18 -08:00
Kyle Conroy
7bf660d124 Only support Ruby >= 1.9.3
Update the README, Gemfiles, and gemspec to remove all references to
Rubies < 1.9.3.
2015-11-04 14:52:56 -08:00
Brandur
159335078c For completeness, add a test case with an empty string 2015-11-03 13:38:59 -08:00
Brandur
5769eb7c1e More consistent spacing 2015-11-03 09:31:21 -08:00
Brandur
492b24894d Fix identation 2015-11-02 13:40:39 -08:00
Brandur
3eca0a4be4 Fix spacing between sentences 2015-11-02 13:17:19 -08:00