stripe 5.42.0 → 5.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/payment_link.rb +23 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +3 -3
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9a53a5c91bca32fad7bf4d30c6d3ad682025e9dbfa49194f9287699b4ddc985
|
4
|
+
data.tar.gz: c45fea791b7f752d632934c53f2733ac66979d8ad169b42557daf23e00c23154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cde2b2558c66f2fb4ce6f9eedc0d29219510a4b4a546f080e2f91945ec17b74975533db641c2cbfde697c71cd1ab865da46d1dedfaeb19142630f08f8e17c88
|
7
|
+
data.tar.gz: 9d5eb1160fb1ef369ff3913a73a722490832d5ee265a08cbf14762a7f1c9aabdc3b3129728115b1b78cd6949fb38777ffa0c9a7ef63f48a9f98a05100492d384
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.43.0 - 2022-01-20
|
4
|
+
* [#1031](https://github.com/stripe/stripe-ruby/pull/1031) API Updates
|
5
|
+
* Add support for new resource `PaymentLink`
|
6
|
+
|
3
7
|
## 5.42.0 - 2021-12-13
|
4
8
|
* [#1022](https://github.com/stripe/stripe-ruby/pull/1022) Add connection manager logging and include object IDs in logging.
|
5
9
|
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ The library also provides other features. For example:
|
|
18
18
|
|
19
19
|
## Documentation
|
20
20
|
|
21
|
-
See the [Ruby API docs](https://stripe.com/docs/api
|
21
|
+
See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
|
22
22
|
|
23
23
|
See [video demonstrations][youtube-playlist] covering how to use the library.
|
24
24
|
|
@@ -340,9 +340,9 @@ Update the bundled [stripe-mock] by editing the version number found in
|
|
340
340
|
[api-keys]: https://dashboard.stripe.com/account/apikeys
|
341
341
|
[connect]: https://stripe.com/connect
|
342
342
|
[curl]: http://curl.haxx.se/docs/caextract.html
|
343
|
-
[idempotency-keys]: https://stripe.com/docs/api/ruby
|
343
|
+
[idempotency-keys]: https://stripe.com/docs/api/idempotent_requests?lang=ruby
|
344
344
|
[stripe-mock]: https://github.com/stripe/stripe-mock
|
345
|
-
[versioning]: https://stripe.com/docs/api/ruby
|
345
|
+
[versioning]: https://stripe.com/docs/api/versioning?lang=ruby
|
346
346
|
[youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M50RmP6ie-gdcSnfOuQCRYk
|
347
347
|
|
348
348
|
<!--
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.43.0
|
data/lib/stripe/object_types.rb
CHANGED
@@ -59,6 +59,7 @@ module Stripe
|
|
59
59
|
Order::OBJECT_NAME => Order,
|
60
60
|
OrderReturn::OBJECT_NAME => OrderReturn,
|
61
61
|
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
62
|
+
PaymentLink::OBJECT_NAME => PaymentLink,
|
62
63
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
63
64
|
Payout::OBJECT_NAME => Payout,
|
64
65
|
Person::OBJECT_NAME => Person,
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class PaymentLink < APIResource
|
6
|
+
extend Stripe::APIOperations::Create
|
7
|
+
extend Stripe::APIOperations::List
|
8
|
+
include Stripe::APIOperations::Save
|
9
|
+
|
10
|
+
OBJECT_NAME = "payment_link"
|
11
|
+
|
12
|
+
custom_method :list_line_items, http_verb: :get, http_path: "line_items"
|
13
|
+
|
14
|
+
def list_line_items(params = {}, opts = {})
|
15
|
+
request_stripe_object(
|
16
|
+
method: :get,
|
17
|
+
path: resource_url + "/line_items",
|
18
|
+
params: params,
|
19
|
+
opts: opts
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -48,6 +48,7 @@ require "stripe/resources/mandate"
|
|
48
48
|
require "stripe/resources/order"
|
49
49
|
require "stripe/resources/order_return"
|
50
50
|
require "stripe/resources/payment_intent"
|
51
|
+
require "stripe/resources/payment_link"
|
51
52
|
require "stripe/resources/payment_method"
|
52
53
|
require "stripe/resources/payout"
|
53
54
|
require "stripe/resources/person"
|
data/lib/stripe/version.rb
CHANGED
data/stripe.gemspec
CHANGED
@@ -13,16 +13,16 @@ Gem::Specification.new do |s|
|
|
13
13
|
"See https://stripe.com for details."
|
14
14
|
s.author = "Stripe"
|
15
15
|
s.email = "support@stripe.com"
|
16
|
-
s.homepage = "https://stripe.com/docs/api
|
16
|
+
s.homepage = "https://stripe.com/docs/api?lang=ruby"
|
17
17
|
s.license = "MIT"
|
18
18
|
|
19
19
|
s.metadata = {
|
20
20
|
"bug_tracker_uri" => "https://github.com/stripe/stripe-ruby/issues",
|
21
21
|
"changelog_uri" =>
|
22
22
|
"https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md",
|
23
|
-
"documentation_uri" => "https://stripe.com/docs/api
|
23
|
+
"documentation_uri" => "https://stripe.com/docs/api?lang=ruby",
|
24
24
|
"github_repo" => "ssh://github.com/stripe/stripe-ruby",
|
25
|
-
"homepage_uri" => "https://stripe.com/docs/api
|
25
|
+
"homepage_uri" => "https://stripe.com/docs/api?lang=ruby",
|
26
26
|
"source_code_uri" => "https://github.com/stripe/stripe-ruby",
|
27
27
|
}
|
28
28
|
|
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: 5.
|
4
|
+
version: 5.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-20 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.
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- lib/stripe/resources/order.rb
|
94
94
|
- lib/stripe/resources/order_return.rb
|
95
95
|
- lib/stripe/resources/payment_intent.rb
|
96
|
+
- lib/stripe/resources/payment_link.rb
|
96
97
|
- lib/stripe/resources/payment_method.rb
|
97
98
|
- lib/stripe/resources/payout.rb
|
98
99
|
- lib/stripe/resources/person.rb
|
@@ -143,15 +144,15 @@ files:
|
|
143
144
|
- lib/stripe/version.rb
|
144
145
|
- lib/stripe/webhook.rb
|
145
146
|
- stripe.gemspec
|
146
|
-
homepage: https://stripe.com/docs/api
|
147
|
+
homepage: https://stripe.com/docs/api?lang=ruby
|
147
148
|
licenses:
|
148
149
|
- MIT
|
149
150
|
metadata:
|
150
151
|
bug_tracker_uri: https://github.com/stripe/stripe-ruby/issues
|
151
152
|
changelog_uri: https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md
|
152
|
-
documentation_uri: https://stripe.com/docs/api
|
153
|
+
documentation_uri: https://stripe.com/docs/api?lang=ruby
|
153
154
|
github_repo: ssh://github.com/stripe/stripe-ruby
|
154
|
-
homepage_uri: https://stripe.com/docs/api
|
155
|
+
homepage_uri: https://stripe.com/docs/api?lang=ruby
|
155
156
|
source_code_uri: https://github.com/stripe/stripe-ruby
|
156
157
|
post_install_message:
|
157
158
|
rdoc_options: []
|