stripe 5.42.0 → 5.43.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59ec737c599289ebecd1ba030eadd9a2ae4ab262f1495d1de5a5ed4757cc542a
4
- data.tar.gz: dbc4cbf84351eec5c7fb641db3b00cf8b92b2605aedb8efc266733238cad4f6a
3
+ metadata.gz: b9a53a5c91bca32fad7bf4d30c6d3ad682025e9dbfa49194f9287699b4ddc985
4
+ data.tar.gz: c45fea791b7f752d632934c53f2733ac66979d8ad169b42557daf23e00c23154
5
5
  SHA512:
6
- metadata.gz: '08f077d4f908041fea497c83eb105713e3d324d39ff037067de53a4bc3f0d8bb9ba84f0c13d873c4b0a86d1d04345974ef67bb1a3051c53616368bd74f86c385'
7
- data.tar.gz: 8cd83d8c0568b831e3aa17d74aa7ae81396215c98e0978f0c4ec930cd437f7d3784a9be4cce33f82454f6801607a38be9792aef0ec0242770094f059e368343f
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/ruby#intro).
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#idempotent_requests
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#versioning
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.42.0
1
+ 5.43.0
@@ -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
@@ -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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.42.0"
4
+ VERSION = "5.43.0"
5
5
  end
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/ruby"
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/ruby",
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/ruby",
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.42.0
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: 2021-12-13 00:00:00.000000000 Z
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/ruby
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/ruby
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/ruby
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: []