stripe 7.1.2 → 7.2.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.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -20
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/data/ca-certificates.crt +3340 -290
  6. data/lib/stripe/object_types.rb +2 -0
  7. data/lib/stripe/resources/account.rb +6 -0
  8. data/lib/stripe/resources/account_link.rb +4 -0
  9. data/lib/stripe/resources/account_session.rb +17 -0
  10. data/lib/stripe/resources/application_fee_refund.rb +5 -0
  11. data/lib/stripe/resources/apps/secret.rb +9 -0
  12. data/lib/stripe/resources/balance.rb +11 -0
  13. data/lib/stripe/resources/balance_transaction.rb +4 -0
  14. data/lib/stripe/resources/bank_account.rb +7 -0
  15. data/lib/stripe/resources/billing_portal/configuration.rb +1 -0
  16. data/lib/stripe/resources/billing_portal/session.rb +14 -0
  17. data/lib/stripe/resources/capability.rb +3 -0
  18. data/lib/stripe/resources/card.rb +5 -0
  19. data/lib/stripe/resources/cash_balance.rb +1 -0
  20. data/lib/stripe/resources/charge.rb +5 -0
  21. data/lib/stripe/resources/checkout/session.rb +14 -0
  22. data/lib/stripe/resources/country_spec.rb +6 -0
  23. data/lib/stripe/resources/coupon.rb +3 -0
  24. data/lib/stripe/resources/credit_note.rb +3 -0
  25. data/lib/stripe/resources/customer.rb +3 -0
  26. data/lib/stripe/resources/customer_balance_transaction.rb +6 -0
  27. data/lib/stripe/resources/customer_cash_balance_transaction.rb +4 -0
  28. data/lib/stripe/resources/discount.rb +4 -0
  29. data/lib/stripe/resources/dispute.rb +7 -0
  30. data/lib/stripe/resources/event.rb +29 -0
  31. data/lib/stripe/resources/exchange_rate.rb +11 -0
  32. data/lib/stripe/resources/file.rb +7 -0
  33. data/lib/stripe/resources/file_link.rb +3 -0
  34. data/lib/stripe/resources/financial_connections/account.rb +1 -0
  35. data/lib/stripe/resources/financial_connections/account_ownership.rb +1 -0
  36. data/lib/stripe/resources/financial_connections/session.rb +1 -0
  37. data/lib/stripe/resources/funding_instructions.rb +5 -0
  38. data/lib/stripe/resources/identity/verification_report.rb +11 -0
  39. data/lib/stripe/resources/identity/verification_session.rb +11 -0
  40. data/lib/stripe/resources/invoice.rb +32 -0
  41. data/lib/stripe/resources/invoice_item.rb +7 -0
  42. data/lib/stripe/resources/issuing/authorization.rb +5 -0
  43. data/lib/stripe/resources/issuing/card.rb +1 -0
  44. data/lib/stripe/resources/issuing/cardholder.rb +3 -0
  45. data/lib/stripe/resources/issuing/dispute.rb +3 -0
  46. data/lib/stripe/resources/issuing/transaction.rb +5 -0
  47. data/lib/stripe/resources/line_item.rb +1 -0
  48. data/lib/stripe/resources/mandate.rb +1 -0
  49. data/lib/stripe/resources/order.rb +5 -0
  50. data/lib/stripe/resources/payment_intent.rb +11 -0
  51. data/lib/stripe/resources/payment_link.rb +5 -0
  52. data/lib/stripe/resources/payment_method.rb +5 -0
  53. data/lib/stripe/resources/payout.rb +8 -0
  54. data/lib/stripe/resources/person.rb +6 -0
  55. data/lib/stripe/resources/plan.rb +8 -0
  56. data/lib/stripe/resources/price.rb +6 -0
  57. data/lib/stripe/resources/product.rb +8 -0
  58. data/lib/stripe/resources/promotion_code.rb +2 -0
  59. data/lib/stripe/resources/quote.rb +2 -0
  60. data/lib/stripe/resources/quote_phase.rb +29 -0
  61. data/lib/stripe/resources/radar/early_fraud_warning.rb +4 -0
  62. data/lib/stripe/resources/radar/value_list.rb +3 -0
  63. data/lib/stripe/resources/radar/value_list_item.rb +3 -0
  64. data/lib/stripe/resources/refund.rb +5 -0
  65. data/lib/stripe/resources/reporting/report_run.rb +8 -0
  66. data/lib/stripe/resources/reporting/report_type.rb +8 -0
  67. data/lib/stripe/resources/reversal.rb +13 -0
  68. data/lib/stripe/resources/review.rb +4 -0
  69. data/lib/stripe/resources/setup_attempt.rb +4 -0
  70. data/lib/stripe/resources/setup_intent.rb +22 -0
  71. data/lib/stripe/resources/shipping_rate.rb +3 -0
  72. data/lib/stripe/resources/sigma/scheduled_query_run.rb +4 -0
  73. data/lib/stripe/resources/sku.rb +6 -0
  74. data/lib/stripe/resources/source.rb +6 -0
  75. data/lib/stripe/resources/source_transaction.rb +4 -0
  76. data/lib/stripe/resources/subscription.rb +3 -0
  77. data/lib/stripe/resources/subscription_item.rb +2 -0
  78. data/lib/stripe/resources/subscription_schedule.rb +21 -0
  79. data/lib/stripe/resources/tax_code.rb +1 -0
  80. data/lib/stripe/resources/tax_id.rb +4 -0
  81. data/lib/stripe/resources/tax_rate.rb +3 -0
  82. data/lib/stripe/resources/terminal/configuration.rb +1 -0
  83. data/lib/stripe/resources/terminal/connection_token.rb +3 -0
  84. data/lib/stripe/resources/terminal/location.rb +3 -0
  85. data/lib/stripe/resources/terminal/reader.rb +21 -0
  86. data/lib/stripe/resources/test_helpers/test_clock.rb +3 -0
  87. data/lib/stripe/resources/token.rb +22 -0
  88. data/lib/stripe/resources/topup.rb +5 -0
  89. data/lib/stripe/resources/transfer.rb +10 -0
  90. data/lib/stripe/resources/treasury/credit_reversal.rb +1 -0
  91. data/lib/stripe/resources/treasury/debit_reversal.rb +1 -0
  92. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  93. data/lib/stripe/resources/treasury/inbound_transfer.rb +1 -0
  94. data/lib/stripe/resources/treasury/outbound_payment.rb +3 -0
  95. data/lib/stripe/resources/treasury/outbound_transfer.rb +3 -0
  96. data/lib/stripe/resources/treasury/received_credit.rb +1 -0
  97. data/lib/stripe/resources/treasury/received_debit.rb +1 -0
  98. data/lib/stripe/resources/treasury/transaction.rb +1 -0
  99. data/lib/stripe/resources/treasury/transaction_entry.rb +1 -0
  100. data/lib/stripe/resources/usage_record.rb +4 -0
  101. data/lib/stripe/resources/webhook_endpoint.rb +7 -0
  102. data/lib/stripe/resources.rb +2 -0
  103. data/lib/stripe/stripe_configuration.rb +2 -0
  104. data/lib/stripe/version.rb +1 -1
  105. data/lib/stripe.rb +1 -0
  106. metadata +10 -8
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.
6
7
  class DebitReversal < APIResource
7
8
  extend Stripe::APIOperations::Create
8
9
  extend Stripe::APIOperations::List
@@ -3,6 +3,8 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance.
7
+ # FinancialAccounts serve as the source and destination of Treasury's money movement APIs.
6
8
  class FinancialAccount < APIResource
7
9
  extend Stripe::APIOperations::Create
8
10
  extend Stripe::APIOperations::List
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
6
7
  class InboundTransfer < APIResource
7
8
  extend Stripe::APIOperations::Create
8
9
  extend Stripe::APIOperations::List
@@ -3,6 +3,9 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
7
+ #
8
+ # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
6
9
  class OutboundPayment < APIResource
7
10
  extend Stripe::APIOperations::Create
8
11
  extend Stripe::APIOperations::List
@@ -3,6 +3,9 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
7
+ #
8
+ # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
6
9
  class OutboundTransfer < APIResource
7
10
  extend Stripe::APIOperations::Create
8
11
  extend Stripe::APIOperations::List
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount.
6
7
  class ReceivedCredit < APIResource
7
8
  extend Stripe::APIOperations::List
8
9
 
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount.
6
7
  class ReceivedDebit < APIResource
7
8
  extend Stripe::APIOperations::List
8
9
 
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # Transactions represent changes to a [FinancialAccount's](https://stripe.com/docs/api#financial_accounts) balance.
6
7
  class Transaction < APIResource
7
8
  extend Stripe::APIOperations::List
8
9
 
@@ -3,6 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
+ # TransactionEntries represent individual units of money movements within a single [Transaction](https://stripe.com/docs/api#transactions).
6
7
  class TransactionEntry < APIResource
7
8
  extend Stripe::APIOperations::List
8
9
 
@@ -2,6 +2,10 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
+ # Usage records allow you to report customer usage and metrics to Stripe for
6
+ # metered billing of subscription prices.
7
+ #
8
+ # Related guide: [Metered Billing](https://stripe.com/docs/billing/subscriptions/metered-billing).
5
9
  class UsageRecord < APIResource
6
10
  OBJECT_NAME = "usage_record"
7
11
  end
@@ -2,6 +2,13 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
+ # You can configure [webhook endpoints](https://stripe.com/docs/webhooks/) via the API to be
6
+ # notified about events that happen in your Stripe account or connected
7
+ # accounts.
8
+ #
9
+ # Most users configure webhooks from [the dashboard](https://dashboard.stripe.com/webhooks), which provides a user interface for registering and testing your webhook endpoints.
10
+ #
11
+ # Related guide: [Setting up Webhooks](https://stripe.com/docs/webhooks/configure).
5
12
  class WebhookEndpoint < APIResource
6
13
  extend Stripe::APIOperations::Create
7
14
  include Stripe::APIOperations::Delete
@@ -3,6 +3,7 @@
3
3
 
4
4
  require "stripe/resources/account"
5
5
  require "stripe/resources/account_link"
6
+ require "stripe/resources/account_session"
6
7
  require "stripe/resources/apple_pay_domain"
7
8
  require "stripe/resources/application_fee"
8
9
  require "stripe/resources/application_fee_refund"
@@ -60,6 +61,7 @@ require "stripe/resources/price"
60
61
  require "stripe/resources/product"
61
62
  require "stripe/resources/promotion_code"
62
63
  require "stripe/resources/quote"
64
+ require "stripe/resources/quote_phase"
63
65
  require "stripe/resources/radar/early_fraud_warning"
64
66
  require "stripe/resources/radar/value_list"
65
67
  require "stripe/resources/radar/value_list_item"
@@ -63,6 +63,8 @@ module Stripe
63
63
  end
64
64
 
65
65
  def initialize
66
+ @api_version = ApiVersion::CURRENT
67
+
66
68
  @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
67
69
  @enable_telemetry = true
68
70
  @verify_ssl_certs = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "7.1.2"
4
+ VERSION = "7.2.0-beta.1"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -15,6 +15,7 @@ require "uri"
15
15
  require "forwardable"
16
16
 
17
17
  # Version
18
+ require "stripe/api_version"
18
19
  require "stripe/version"
19
20
 
20
21
  # API operations
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: 7.1.2
4
+ version: 7.2.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-23 00:00:00.000000000 Z
11
+ date: 2022-08-23 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.
@@ -53,6 +53,7 @@ files:
53
53
  - lib/stripe/resources.rb
54
54
  - lib/stripe/resources/account.rb
55
55
  - lib/stripe/resources/account_link.rb
56
+ - lib/stripe/resources/account_session.rb
56
57
  - lib/stripe/resources/alipay_account.rb
57
58
  - lib/stripe/resources/apple_pay_domain.rb
58
59
  - lib/stripe/resources/application_fee.rb
@@ -111,6 +112,7 @@ files:
111
112
  - lib/stripe/resources/product.rb
112
113
  - lib/stripe/resources/promotion_code.rb
113
114
  - lib/stripe/resources/quote.rb
115
+ - lib/stripe/resources/quote_phase.rb
114
116
  - lib/stripe/resources/radar/early_fraud_warning.rb
115
117
  - lib/stripe/resources/radar/value_list.rb
116
118
  - lib/stripe/resources/radar/value_list_item.rb
@@ -174,7 +176,7 @@ metadata:
174
176
  github_repo: ssh://github.com/stripe/stripe-ruby
175
177
  homepage_uri: https://stripe.com/docs/api?lang=ruby
176
178
  source_code_uri: https://github.com/stripe/stripe-ruby
177
- post_install_message:
179
+ post_install_message:
178
180
  rdoc_options: []
179
181
  require_paths:
180
182
  - lib
@@ -185,12 +187,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
187
  version: 2.3.0
186
188
  required_rubygems_version: !ruby/object:Gem::Requirement
187
189
  requirements:
188
- - - ">="
190
+ - - ">"
189
191
  - !ruby/object:Gem::Version
190
- version: '0'
192
+ version: 1.3.1
191
193
  requirements: []
192
- rubygems_version: 3.3.27
193
- signing_key:
194
+ rubygems_version: 3.3.7
195
+ signing_key:
194
196
  specification_version: 4
195
197
  summary: Ruby bindings for the Stripe API
196
198
  test_files: []