stripe 13.1.0.pre.beta.3 → 13.2.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 +23 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_resource.rb +8 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/payment_intent.rb +20 -0
- data/lib/stripe/resources/v2/event_destination.rb +13 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +11 -0
- data/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b601d7f345ad24347e0c10b93f2b7907e1e84b5355466d674c74fbd01b21efa
|
4
|
+
data.tar.gz: 4c6f7a16d45de0122264f7b98ed04ac6f83d312667f87caa4a433d905907500d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 518adbc49cc2068c87d99274f53f247813eadc7f350711019faec1a70649b2288e5778f14bd17ccb7e7a9a4c0adc724d60165908a04a9690a67215b98d1cfa51
|
7
|
+
data.tar.gz: 77a956d9614be77989f84289cbb10d708fe58eb47c59020ada0ca5d567a245e8a533edbf9308422e3a0016f2c4fc94210d18ff8ed1ddbc582c942d6a2edd8dc8
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,20 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 13.2.0-beta.1 - 2024-10-29
|
4
|
+
* [#1477](https://github.com/stripe/stripe-ruby/pull/1477) Update generated code for beta
|
5
|
+
* Add support for `trigger_action` method on resource `PaymentIntent`
|
6
|
+
|
7
|
+
## 13.1.0 - 2024-10-29
|
8
|
+
* [#1472](https://github.com/stripe/stripe-ruby/pull/1472) Update generated code
|
9
|
+
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
10
|
+
* Add support for new resource `V2.EventDestinations`
|
11
|
+
* Add support for `create`, `retrieve`, `update`, `list`, `delete`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
|
12
|
+
* [#1476](https://github.com/stripe/stripe-ruby/pull/1476) Fix APIResource#retrieve bug not returning instance of custom resources
|
13
|
+
* Fix bug in APIResource#refresh and APIResource#retrieve where they returned an instance of `StripeObject` for custom resources. They should now return the instance of the custom resource.
|
14
|
+
|
3
15
|
## 13.1.0-beta.3 - 2024-10-18
|
4
16
|
* [#1469](https://github.com/stripe/stripe-ruby/pull/1469) Update generated code for beta
|
5
17
|
|
6
|
-
|
7
18
|
## 13.1.0-beta.2 - 2024-10-08
|
8
19
|
* [#1468](https://github.com/stripe/stripe-ruby/pull/1468) Update generated code for beta
|
9
20
|
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
@@ -23,6 +34,17 @@
|
|
23
34
|
charge = client.deserialize(resp.data)
|
24
35
|
```
|
25
36
|
|
37
|
+
## 13.0.2 - 2024-10-23
|
38
|
+
* [#1473](https://github.com/stripe/stripe-ruby/pull/1473) Always return the result of APIResource#refresh in APIResource.retrieve
|
39
|
+
|
40
|
+
* Fix bug where we would not return the mutated `self` object when calling `APIResource.retrieve`
|
41
|
+
|
42
|
+
## 13.0.1 - 2024-10-18
|
43
|
+
* [#1471](https://github.com/stripe/stripe-ruby/pull/1471) update object tags for meter-related classes
|
44
|
+
|
45
|
+
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
|
46
|
+
* [#1470](https://github.com/stripe/stripe-ruby/pull/1470) Cleaned up examples and added documentation
|
47
|
+
|
26
48
|
## 13.0.0 - 2024-10-01
|
27
49
|
* [#1458](https://github.com/stripe/stripe-ruby/pull/1458) Support for APIs in the new API version 2024-09-30.acacia
|
28
50
|
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1319
|
data/README.md
CHANGED
@@ -367,7 +367,7 @@ background terminal ([stripe-mock's README][stripe-mock] also contains
|
|
367
367
|
instructions for installing via Homebrew and other methods):
|
368
368
|
|
369
369
|
```sh
|
370
|
-
go
|
370
|
+
go install github.com/stripe/stripe-mock@latest
|
371
371
|
stripe-mock
|
372
372
|
```
|
373
373
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.
|
1
|
+
13.2.0-beta.1
|
data/lib/stripe/api_resource.rb
CHANGED
@@ -98,7 +98,14 @@ module Stripe
|
|
98
98
|
"It is not possible to refresh v2 objects. Please retrieve the object using the StripeClient instead."
|
99
99
|
end
|
100
100
|
|
101
|
-
@requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params)
|
101
|
+
@obj = @requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params)
|
102
|
+
initialize_from(
|
103
|
+
@obj.last_response.data,
|
104
|
+
@obj.instance_variable_get(:@opts),
|
105
|
+
@obj.last_response,
|
106
|
+
api_mode: :v1,
|
107
|
+
requestor: @requestor
|
108
|
+
)
|
102
109
|
end
|
103
110
|
|
104
111
|
def self.retrieve(id, opts = {})
|
@@ -110,7 +117,6 @@ module Stripe
|
|
110
117
|
opts = Util.normalize_opts(opts)
|
111
118
|
instance = new(id, opts)
|
112
119
|
instance.refresh
|
113
|
-
instance
|
114
120
|
end
|
115
121
|
|
116
122
|
def request_stripe_object(method:, path:, params:, base_address: :api, opts: {})
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -175,6 +175,7 @@ module Stripe
|
|
175
175
|
V2::Billing::MeterEventAdjustment.object_name => V2::Billing::MeterEventAdjustment,
|
176
176
|
V2::Billing::MeterEventSession.object_name => V2::Billing::MeterEventSession,
|
177
177
|
V2::Event.object_name => V2::Event,
|
178
|
+
V2::EventDestination.object_name => V2::EventDestination,
|
178
179
|
# v2 object classes: The end of the section generated from our OpenAPI spec
|
179
180
|
}
|
180
181
|
end
|
@@ -316,6 +316,26 @@ module Stripe
|
|
316
316
|
search(params, opts).auto_paging_each(&blk)
|
317
317
|
end
|
318
318
|
|
319
|
+
# Trigger an external action on a PaymentIntent.
|
320
|
+
def trigger_action(params = {}, opts = {})
|
321
|
+
request_stripe_object(
|
322
|
+
method: :post,
|
323
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
|
324
|
+
params: params,
|
325
|
+
opts: opts
|
326
|
+
)
|
327
|
+
end
|
328
|
+
|
329
|
+
# Trigger an external action on a PaymentIntent.
|
330
|
+
def self.trigger_action(intent, params = {}, opts = {})
|
331
|
+
request_stripe_object(
|
332
|
+
method: :post,
|
333
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
334
|
+
params: params,
|
335
|
+
opts: opts
|
336
|
+
)
|
337
|
+
end
|
338
|
+
|
319
339
|
# Updates properties on a PaymentIntent object without confirming.
|
320
340
|
#
|
321
341
|
# Depending on which properties you update, you might need to confirm the
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
class EventDestination < APIResource
|
7
|
+
OBJECT_NAME = "v2.core.event_destination"
|
8
|
+
def self.object_name
|
9
|
+
"v2.core.event_destination"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -153,6 +153,7 @@ require "stripe/resources/v2/billing/meter_event"
|
|
153
153
|
require "stripe/resources/v2/billing/meter_event_adjustment"
|
154
154
|
require "stripe/resources/v2/billing/meter_event_session"
|
155
155
|
require "stripe/resources/v2/event"
|
156
|
+
require "stripe/resources/v2/event_destination"
|
156
157
|
require "stripe/resources/webhook_endpoint"
|
157
158
|
require "stripe/events/v1_billing_meter_error_report_triggered_event"
|
158
159
|
require "stripe/events/v1_billing_meter_no_meter_found_event"
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class AccountLoginLinkService < StripeService
|
6
|
-
# Creates a
|
6
|
+
# Creates a login link for a connected account to access the Express Dashboard.
|
7
7
|
#
|
8
8
|
# You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
|
9
9
|
def create(account, params = {}, opts = {})
|
@@ -199,6 +199,17 @@ module Stripe
|
|
199
199
|
)
|
200
200
|
end
|
201
201
|
|
202
|
+
# Trigger an external action on a PaymentIntent.
|
203
|
+
def trigger_action(intent, params = {}, opts = {})
|
204
|
+
request(
|
205
|
+
method: :post,
|
206
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
207
|
+
params: params,
|
208
|
+
opts: opts,
|
209
|
+
base_address: :api
|
210
|
+
)
|
211
|
+
end
|
212
|
+
|
202
213
|
# Updates properties on a PaymentIntent object without confirming.
|
203
214
|
#
|
204
215
|
# Depending on which properties you update, you might need to confirm the
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module V2
|
6
|
+
module Core
|
7
|
+
class EventDestinationService < StripeService
|
8
|
+
# Create a new event destination.
|
9
|
+
def create(params = {}, opts = {})
|
10
|
+
request(
|
11
|
+
method: :post,
|
12
|
+
path: "/v2/core/event_destinations",
|
13
|
+
params: params,
|
14
|
+
opts: opts,
|
15
|
+
base_address: :api
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Delete an event destination.
|
20
|
+
def delete(id, params = {}, opts = {})
|
21
|
+
request(
|
22
|
+
method: :delete,
|
23
|
+
path: format("/v2/core/event_destinations/%<id>s", { id: CGI.escape(id) }),
|
24
|
+
params: params,
|
25
|
+
opts: opts,
|
26
|
+
base_address: :api
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Disable an event destination.
|
31
|
+
def disable(id, params = {}, opts = {})
|
32
|
+
request(
|
33
|
+
method: :post,
|
34
|
+
path: format("/v2/core/event_destinations/%<id>s/disable", { id: CGI.escape(id) }),
|
35
|
+
params: params,
|
36
|
+
opts: opts,
|
37
|
+
base_address: :api
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
# Enable an event destination.
|
42
|
+
def enable(id, params = {}, opts = {})
|
43
|
+
request(
|
44
|
+
method: :post,
|
45
|
+
path: format("/v2/core/event_destinations/%<id>s/enable", { id: CGI.escape(id) }),
|
46
|
+
params: params,
|
47
|
+
opts: opts,
|
48
|
+
base_address: :api
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Lists all event destinations.
|
53
|
+
def list(params = {}, opts = {})
|
54
|
+
request(
|
55
|
+
method: :get,
|
56
|
+
path: "/v2/core/event_destinations",
|
57
|
+
params: params,
|
58
|
+
opts: opts,
|
59
|
+
base_address: :api
|
60
|
+
)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Send a `ping` event to an event destination.
|
64
|
+
def ping(id, params = {}, opts = {})
|
65
|
+
request(
|
66
|
+
method: :post,
|
67
|
+
path: format("/v2/core/event_destinations/%<id>s/ping", { id: CGI.escape(id) }),
|
68
|
+
params: params,
|
69
|
+
opts: opts,
|
70
|
+
base_address: :api
|
71
|
+
)
|
72
|
+
end
|
73
|
+
|
74
|
+
# Retrieves the details of an event destination.
|
75
|
+
def retrieve(id, params = {}, opts = {})
|
76
|
+
request(
|
77
|
+
method: :get,
|
78
|
+
path: format("/v2/core/event_destinations/%<id>s", { id: CGI.escape(id) }),
|
79
|
+
params: params,
|
80
|
+
opts: opts,
|
81
|
+
base_address: :api
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Update the details of an event destination.
|
86
|
+
def update(id, params = {}, opts = {})
|
87
|
+
request(
|
88
|
+
method: :post,
|
89
|
+
path: format("/v2/core/event_destinations/%<id>s", { id: CGI.escape(id) }),
|
90
|
+
params: params,
|
91
|
+
opts: opts,
|
92
|
+
base_address: :api
|
93
|
+
)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -4,10 +4,11 @@
|
|
4
4
|
module Stripe
|
5
5
|
module V2
|
6
6
|
class CoreService < StripeService
|
7
|
-
attr_reader :events
|
7
|
+
attr_reader :event_destinations, :events
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
10
|
super(requestor)
|
11
|
+
@event_destinations = Stripe::V2::Core::EventDestinationService.new(@requestor)
|
11
12
|
@events = Stripe::V2::Core::EventService.new(@requestor)
|
12
13
|
end
|
13
14
|
end
|
data/lib/stripe/services.rb
CHANGED
@@ -197,6 +197,7 @@ require "stripe/services/v2/billing/meter_event_service"
|
|
197
197
|
require "stripe/services/v2/billing/meter_event_session_service"
|
198
198
|
require "stripe/services/v2/billing/meter_event_stream_service"
|
199
199
|
require "stripe/services/v2/billing_service"
|
200
|
+
require "stripe/services/v2/core/event_destination_service"
|
200
201
|
require "stripe/services/v2/core/event_service"
|
201
202
|
require "stripe/services/v2/core_service"
|
202
203
|
require "stripe/services/v2_services"
|
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: 13.
|
4
|
+
version: 13.2.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-29 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.
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- lib/stripe/resources/v2/billing/meter_event_adjustment.rb
|
217
217
|
- lib/stripe/resources/v2/billing/meter_event_session.rb
|
218
218
|
- lib/stripe/resources/v2/event.rb
|
219
|
+
- lib/stripe/resources/v2/event_destination.rb
|
219
220
|
- lib/stripe/resources/webhook_endpoint.rb
|
220
221
|
- lib/stripe/search_result_object.rb
|
221
222
|
- lib/stripe/services.rb
|
@@ -416,6 +417,7 @@ files:
|
|
416
417
|
- lib/stripe/services/v2/billing/meter_event_session_service.rb
|
417
418
|
- lib/stripe/services/v2/billing/meter_event_stream_service.rb
|
418
419
|
- lib/stripe/services/v2/billing_service.rb
|
420
|
+
- lib/stripe/services/v2/core/event_destination_service.rb
|
419
421
|
- lib/stripe/services/v2/core/event_service.rb
|
420
422
|
- lib/stripe/services/v2/core_service.rb
|
421
423
|
- lib/stripe/services/v2_services.rb
|