stripe 7.2.0.pre.beta.5 → 8.1.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/save.rb +5 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +0 -1
- data/lib/stripe/resources/refund.rb +0 -4
- data/lib/stripe/resources/subscription.rb +0 -25
- data/lib/stripe/resources.rb +0 -1
- data/lib/stripe/version.rb +1 -1
- metadata +3 -4
- data/lib/stripe/resources/sku.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cb12dd5dd45d62c3b3654cf042efa420b63efa12d57d42e8c716b35a5001662
|
4
|
+
data.tar.gz: 9bf006e3ec120c1b2de9e4b4effaaa0f9765bf4b286a9d450384ca5fd969725f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b93f4d51eb84cae12db238d0a4824292a4caeec63f9fcb56232454af06941a56bc9ce4243a779fc5afd3448abf5eaedef17030a1e04af847f4fd75e101c4bc7
|
7
|
+
data.tar.gz: f6cdf5426a5f61f80bdc7a171de9162b25f17a10b08ba893bb4d3d86133bcb26cb193d79befa4759616a256f7a3ef6c8511bddc918e9617dd3ac908c8242f24e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.1.0-beta.1 - 2022-12-08
|
4
|
+
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
5
|
+
* Updated stable APIs to the latest version
|
6
|
+
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
|
7
|
+
* Updated stable APIs to the latest version
|
8
|
+
|
9
|
+
## 8.0.0 - 2022-11-16
|
10
|
+
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
|
11
|
+
|
12
|
+
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
|
13
|
+
|
14
|
+
"⚠️" symbol highlights breaking changes.
|
15
|
+
|
3
16
|
## 7.2.0-beta.5 - 2022-11-02
|
4
17
|
* [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
|
5
18
|
* Updated beta APIs to the latest stable version
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v212
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
8.1.0-beta.1
|
@@ -33,6 +33,9 @@ module Stripe
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
# The `save` method is DEPRECATED and will be removed in a future major
|
37
|
+
# version of the library. Use the `update` method on the resource instead.
|
38
|
+
#
|
36
39
|
# Creates or updates an API resource.
|
37
40
|
#
|
38
41
|
# If the resource doesn't yet have an assigned ID and the resource is one
|
@@ -68,6 +71,8 @@ module Stripe
|
|
68
71
|
resp, opts = execute_resource_request(:post, save_url, values, opts)
|
69
72
|
initialize_from(resp.data, opts)
|
70
73
|
end
|
74
|
+
extend Gem::Deprecate
|
75
|
+
deprecate :save, :update, 2022, 11
|
71
76
|
|
72
77
|
def self.included(base)
|
73
78
|
# Set `metadata` as additive so that when it's set directly we remember
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -92,7 +92,6 @@ module Stripe
|
|
92
92
|
SetupIntent::OBJECT_NAME => SetupIntent,
|
93
93
|
ShippingRate::OBJECT_NAME => ShippingRate,
|
94
94
|
Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun,
|
95
|
-
SKU::OBJECT_NAME => SKU,
|
96
95
|
Source::OBJECT_NAME => Source,
|
97
96
|
SourceTransaction::OBJECT_NAME => SourceTransaction,
|
98
97
|
Subscription::OBJECT_NAME => Subscription,
|
@@ -6,10 +6,6 @@ module Stripe
|
|
6
6
|
# but not yet refunded. Funds will be refunded to the credit or debit card that
|
7
7
|
# was originally charged.
|
8
8
|
#
|
9
|
-
# Stripe Tax users with recurring payments and invoices can create [Credit Notes](https://stripe.com/docs/api/credit_notes),
|
10
|
-
# which reduce overall tax liability because tax is correctly recalculated and
|
11
|
-
# apportioned to the related invoice.
|
12
|
-
#
|
13
9
|
# Related guide: [Refunds](https://stripe.com/docs/refunds).
|
14
10
|
class Refund < APIResource
|
15
11
|
extend Stripe::APIOperations::Create
|
@@ -50,31 +50,6 @@ module Stripe
|
|
50
50
|
end
|
51
51
|
|
52
52
|
save_nested_resource :source
|
53
|
-
def delete(params = {}, opts = {})
|
54
|
-
request_stripe_object(
|
55
|
-
method: :delete,
|
56
|
-
path: format("/v1/subscriptions/%<subscription_exposed_id>s", { subscription_exposed_id: CGI.escape(self["id"]) }),
|
57
|
-
params: params,
|
58
|
-
opts: opts
|
59
|
-
)
|
60
|
-
end
|
61
|
-
|
62
|
-
def self.delete(subscription_exposed_id, params = {}, opts = {})
|
63
|
-
request_stripe_object(
|
64
|
-
method: :delete,
|
65
|
-
path: format("/v1/subscriptions/%<subscription_exposed_id>s", { subscription_exposed_id: CGI.escape(subscription_exposed_id) }),
|
66
|
-
params: params,
|
67
|
-
opts: opts
|
68
|
-
)
|
69
|
-
end
|
70
|
-
|
71
|
-
extend Gem::Deprecate
|
72
|
-
deprecate :delete, "Stripe::Subscription.cancel", 2022, 7
|
73
|
-
|
74
|
-
class << self
|
75
|
-
extend Gem::Deprecate
|
76
|
-
deprecate :delete, "Stripe::Subscription#cancel", 2022, 7
|
77
|
-
end
|
78
53
|
|
79
54
|
def self.search(params = {}, opts = {})
|
80
55
|
_search("/v1/subscriptions/search", params, opts)
|
data/lib/stripe/resources.rb
CHANGED
@@ -79,7 +79,6 @@ require "stripe/resources/setup_attempt"
|
|
79
79
|
require "stripe/resources/setup_intent"
|
80
80
|
require "stripe/resources/shipping_rate"
|
81
81
|
require "stripe/resources/sigma/scheduled_query_run"
|
82
|
-
require "stripe/resources/sku"
|
83
82
|
require "stripe/resources/source"
|
84
83
|
require "stripe/resources/source_transaction"
|
85
84
|
require "stripe/resources/subscription"
|
data/lib/stripe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.1.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -131,7 +131,6 @@ files:
|
|
131
131
|
- lib/stripe/resources/setup_intent.rb
|
132
132
|
- lib/stripe/resources/shipping_rate.rb
|
133
133
|
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
134
|
-
- lib/stripe/resources/sku.rb
|
135
134
|
- lib/stripe/resources/source.rb
|
136
135
|
- lib/stripe/resources/source_transaction.rb
|
137
136
|
- lib/stripe/resources/subscription.rb
|
@@ -196,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
195
|
- !ruby/object:Gem::Version
|
197
196
|
version: 1.3.1
|
198
197
|
requirements: []
|
199
|
-
rubygems_version: 3.3.
|
198
|
+
rubygems_version: 3.3.26
|
200
199
|
signing_key:
|
201
200
|
specification_version: 4
|
202
201
|
summary: Ruby bindings for the Stripe API
|
data/lib/stripe/resources/sku.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# Stores representations of [stock keeping units](http://en.wikipedia.org/wiki/Stock_keeping_unit).
|
6
|
-
# SKUs describe specific product variations, taking into account any combination of: attributes,
|
7
|
-
# currency, and cost. For example, a product may be a T-shirt, whereas a specific SKU represents
|
8
|
-
# the `size: large`, `color: red` version of that shirt.
|
9
|
-
#
|
10
|
-
# Can also be used to manage inventory.
|
11
|
-
class SKU < APIResource
|
12
|
-
extend Stripe::APIOperations::Create
|
13
|
-
include Stripe::APIOperations::Delete
|
14
|
-
extend Stripe::APIOperations::List
|
15
|
-
include Stripe::APIOperations::Save
|
16
|
-
|
17
|
-
OBJECT_NAME = "sku"
|
18
|
-
end
|
19
|
-
end
|