stripe 6.5.0 → 6.6.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -3
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/credit_note.rb +8 -8
- data/lib/stripe/resources/customer.rb +1 -2
- data/lib/stripe/resources/invoice.rb +14 -14
- data/lib/stripe/resources/quote_phase.rb +28 -0
- data/lib/stripe/resources/subscription_schedule.rb +18 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/stripe_configuration.rb +2 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a286445665c480e3a76c430167b3ab15b3cfee150bbe8dac88c11b6f659a0ad
|
4
|
+
data.tar.gz: abecc95e3a2bca67e57d7fd45568566f04ea5ae633e93dd6fcfdc67da0f1e35b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3831e6f6fa2348dcb6abac005264e128cbb6028ba2f45e4d542c2c35788ad0c1a80547c49fe80d03ae3fa933abc4c9d9c0377600b53c9b75c3ccaccd2ada0e94
|
7
|
+
data.tar.gz: 8beebb89c127e5b66bbb0d4d1358dc41395f39ed282a1b36650615ef705fc0c59da277ee05ba642d07c7001804f2ed5df743e572f66eb50ef01537a325dc120d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 6.6.0-beta.1 - 2022-07-22
|
4
|
+
* [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
|
5
|
+
- Updated stable APIs to the latest version
|
6
|
+
- Add `QuotePhase` resource
|
7
|
+
* [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
|
8
|
+
- Updated stable APIs to the latest version
|
9
|
+
- Add `SubscriptionSchedule.amend` method.
|
10
|
+
* [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
|
11
|
+
- Include `server_side_confirmation_beta=v1` beta
|
12
|
+
- Add `secretKeyConfirmation` to `PaymentIntent`
|
13
|
+
* [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
|
14
|
+
- Updated stable APIs to the latest version
|
15
|
+
* [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
|
16
|
+
|
3
17
|
## 6.5.0 - 2022-06-29
|
4
18
|
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
5
19
|
* Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
|
@@ -28,8 +42,6 @@
|
|
28
42
|
* Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
|
29
43
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
30
44
|
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
31
|
-
|
32
|
-
|
33
45
|
|
34
46
|
## 6.0.0 - 2022-05-09
|
35
47
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
@@ -45,7 +57,6 @@
|
|
45
57
|
## 5.55.0 - 2022-05-05
|
46
58
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
47
59
|
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
48
|
-
|
49
60
|
|
50
61
|
## 5.54.0 - 2022-05-03
|
51
62
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
@@ -1076,3 +1087,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
|
1076
1087
|
<!--
|
1077
1088
|
# vim: set tw=0:
|
1078
1089
|
-->
|
1090
|
+
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v170
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.
|
1
|
+
6.6.0-beta.1
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -76,6 +76,7 @@ module Stripe
|
|
76
76
|
Product::OBJECT_NAME => Product,
|
77
77
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
78
78
|
Quote::OBJECT_NAME => Quote,
|
79
|
+
QuotePhase::OBJECT_NAME => QuotePhase,
|
79
80
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
80
81
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
81
82
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
@@ -18,28 +18,28 @@ module Stripe
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
|
-
def self.
|
21
|
+
def self.list_preview_line_items(params = {}, opts = {})
|
22
22
|
request_stripe_object(
|
23
|
-
method: :
|
24
|
-
path:
|
23
|
+
method: :get,
|
24
|
+
path: "/v1/credit_notes/preview/lines",
|
25
25
|
params: params,
|
26
26
|
opts: opts
|
27
27
|
)
|
28
28
|
end
|
29
29
|
|
30
|
-
def self.preview(params, opts = {})
|
30
|
+
def self.preview(params = {}, opts = {})
|
31
31
|
request_stripe_object(
|
32
32
|
method: :get,
|
33
|
-
path:
|
33
|
+
path: "/v1/credit_notes/preview",
|
34
34
|
params: params,
|
35
35
|
opts: opts
|
36
36
|
)
|
37
37
|
end
|
38
38
|
|
39
|
-
def self.
|
39
|
+
def self.void_credit_note(id, params = {}, opts = {})
|
40
40
|
request_stripe_object(
|
41
|
-
method: :
|
42
|
-
path:
|
41
|
+
method: :post,
|
42
|
+
path: format("/v1/credit_notes/%<id>s/void", { id: CGI.escape(id) }),
|
43
43
|
params: params,
|
44
44
|
opts: opts
|
45
45
|
)
|
@@ -76,8 +76,6 @@ module Stripe
|
|
76
76
|
)
|
77
77
|
end
|
78
78
|
|
79
|
-
custom_method :delete_discount, http_verb: :delete, http_path: "discount"
|
80
|
-
|
81
79
|
save_nested_resource :source
|
82
80
|
nested_resource_class_methods :source,
|
83
81
|
operations: %i[create retrieve update delete list]
|
@@ -87,6 +85,7 @@ module Stripe
|
|
87
85
|
class << self
|
88
86
|
alias detach_source delete_source
|
89
87
|
end
|
88
|
+
custom_method :delete_discount, http_verb: :delete, http_path: "discount"
|
90
89
|
|
91
90
|
# Deletes a discount associated with the customer.
|
92
91
|
#
|
@@ -65,55 +65,55 @@ module Stripe
|
|
65
65
|
)
|
66
66
|
end
|
67
67
|
|
68
|
-
def self.
|
68
|
+
def self.list_upcoming_line_items(params = {}, opts = {})
|
69
69
|
request_stripe_object(
|
70
|
-
method: :
|
71
|
-
path:
|
70
|
+
method: :get,
|
71
|
+
path: "/v1/invoices/upcoming/lines",
|
72
72
|
params: params,
|
73
73
|
opts: opts
|
74
74
|
)
|
75
75
|
end
|
76
76
|
|
77
|
-
def self.
|
77
|
+
def self.mark_uncollectible(invoice, params = {}, opts = {})
|
78
78
|
request_stripe_object(
|
79
79
|
method: :post,
|
80
|
-
path: format("/v1/invoices/%<invoice>s/
|
80
|
+
path: format("/v1/invoices/%<invoice>s/mark_uncollectible", { invoice: CGI.escape(invoice) }),
|
81
81
|
params: params,
|
82
82
|
opts: opts
|
83
83
|
)
|
84
84
|
end
|
85
85
|
|
86
|
-
def self.
|
86
|
+
def self.pay(invoice, params = {}, opts = {})
|
87
87
|
request_stripe_object(
|
88
88
|
method: :post,
|
89
|
-
path: format("/v1/invoices/%<invoice>s/
|
89
|
+
path: format("/v1/invoices/%<invoice>s/pay", { invoice: CGI.escape(invoice) }),
|
90
90
|
params: params,
|
91
91
|
opts: opts
|
92
92
|
)
|
93
93
|
end
|
94
94
|
|
95
|
-
def self.
|
95
|
+
def self.send_invoice(invoice, params = {}, opts = {})
|
96
96
|
request_stripe_object(
|
97
97
|
method: :post,
|
98
|
-
path: format("/v1/invoices/%<invoice>s/
|
98
|
+
path: format("/v1/invoices/%<invoice>s/send", { invoice: CGI.escape(invoice) }),
|
99
99
|
params: params,
|
100
100
|
opts: opts
|
101
101
|
)
|
102
102
|
end
|
103
103
|
|
104
|
-
def self.upcoming(params, opts = {})
|
104
|
+
def self.upcoming(params = {}, opts = {})
|
105
105
|
request_stripe_object(
|
106
106
|
method: :get,
|
107
|
-
path:
|
107
|
+
path: "/v1/invoices/upcoming",
|
108
108
|
params: params,
|
109
109
|
opts: opts
|
110
110
|
)
|
111
111
|
end
|
112
112
|
|
113
|
-
def self.
|
113
|
+
def self.void_invoice(invoice, params = {}, opts = {})
|
114
114
|
request_stripe_object(
|
115
|
-
method: :
|
116
|
-
path:
|
115
|
+
method: :post,
|
116
|
+
path: format("/v1/invoices/%<invoice>s/void", { invoice: CGI.escape(invoice) }),
|
117
117
|
params: params,
|
118
118
|
opts: opts
|
119
119
|
)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class QuotePhase < APIResource
|
6
|
+
extend Stripe::APIOperations::List
|
7
|
+
|
8
|
+
OBJECT_NAME = "quote_phase"
|
9
|
+
|
10
|
+
def list_line_items(params = {}, opts = {})
|
11
|
+
request_stripe_object(
|
12
|
+
method: :get,
|
13
|
+
path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(self["id"]) }),
|
14
|
+
params: params,
|
15
|
+
opts: opts
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.list_line_items(quote_phase, params = {}, opts = {})
|
20
|
+
request_stripe_object(
|
21
|
+
method: :get,
|
22
|
+
path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(quote_phase) }),
|
23
|
+
params: params,
|
24
|
+
opts: opts
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -9,6 +9,15 @@ module Stripe
|
|
9
9
|
|
10
10
|
OBJECT_NAME = "subscription_schedule"
|
11
11
|
|
12
|
+
def amend(params = {}, opts = {})
|
13
|
+
request_stripe_object(
|
14
|
+
method: :post,
|
15
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
16
|
+
params: params,
|
17
|
+
opts: opts
|
18
|
+
)
|
19
|
+
end
|
20
|
+
|
12
21
|
def cancel(params = {}, opts = {})
|
13
22
|
request_stripe_object(
|
14
23
|
method: :post,
|
@@ -27,6 +36,15 @@ module Stripe
|
|
27
36
|
)
|
28
37
|
end
|
29
38
|
|
39
|
+
def self.amend(schedule, params = {}, opts = {})
|
40
|
+
request_stripe_object(
|
41
|
+
method: :post,
|
42
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
43
|
+
params: params,
|
44
|
+
opts: opts
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
30
48
|
def self.cancel(schedule, params = {}, opts = {})
|
31
49
|
request_stripe_object(
|
32
50
|
method: :post,
|
data/lib/stripe/resources.rb
CHANGED
@@ -63,6 +63,7 @@ require "stripe/resources/price"
|
|
63
63
|
require "stripe/resources/product"
|
64
64
|
require "stripe/resources/promotion_code"
|
65
65
|
require "stripe/resources/quote"
|
66
|
+
require "stripe/resources/quote_phase"
|
66
67
|
require "stripe/resources/radar/early_fraud_warning"
|
67
68
|
require "stripe/resources/radar/value_list"
|
68
69
|
require "stripe/resources/radar/value_list_item"
|
data/lib/stripe/version.rb
CHANGED
data/lib/stripe.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: 6.
|
4
|
+
version: 6.6.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-07-22 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.
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/stripe/resources/product.rb
|
114
114
|
- lib/stripe/resources/promotion_code.rb
|
115
115
|
- lib/stripe/resources/quote.rb
|
116
|
+
- lib/stripe/resources/quote_phase.rb
|
116
117
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
117
118
|
- lib/stripe/resources/radar/value_list.rb
|
118
119
|
- lib/stripe/resources/radar/value_list_item.rb
|
@@ -189,9 +190,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
190
|
version: 2.3.0
|
190
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
192
|
requirements:
|
192
|
-
- - "
|
193
|
+
- - ">"
|
193
194
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
195
|
+
version: 1.3.1
|
195
196
|
requirements: []
|
196
197
|
rubygems_version: 3.3.7
|
197
198
|
signing_key:
|