stripe 10.7.0.pre.beta.3 → 10.8.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb57ace02144a86ab65ccc919010a25b0353d7d79f6cf00efed9e644acc9d8d3
4
- data.tar.gz: 8c6b1ed19456e0a586e15e64b6ee77496cef3751e72250f2106a05b15d849a90
3
+ metadata.gz: 9b1e4368424356db6b9a4dd7d1cbb557b3194b22c1b5d49f453329c66778b87d
4
+ data.tar.gz: 75b2a1d9e1212ddbaeedc51f297d93689864b6eaa334e80ac39e86a2692ec26f
5
5
  SHA512:
6
- metadata.gz: 37097c3d79453588589d12b1f51c92ecf9e1fd1a51fc82a6f24a5c88054573c9fec6a374f899f87fe2f830f3c3e321a00d6d07569aff955bcd98bd7c3d520a65
7
- data.tar.gz: d3ad39890a237df5a2d6e96f4ea42f37b9f2d63a805b4c393ff602a691fca685651a09abc7d9ec5841068084aba7783e3634717a15de9002256deeea0754a62e
6
+ metadata.gz: cee5c33a2b7f22a8fc6b138d639645a767f3a9bea1a5c64e223033e5a919a58534a818199c36dcfa128aecb911397db2e126302cf03796d104c3a7eb00e547d0
7
+ data.tar.gz: b541c4231a195fad1c20fc3956ddb1764aee8c899a8a7762ce62c23215fd717e1127d72be45dcf429b565b903cfb061273749dc799eb98e5490390fcbfff0428
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 10.8.0-beta.1 - 2024-02-01
4
+ * [#1318](https://github.com/stripe/stripe-ruby/pull/1318) Update generated code for beta
5
+ * Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
6
+ * Add support for `create` method on resource `Event`
7
+ * Add support for `create` and `list` methods on resource `Feature`
8
+
9
+ ## 10.7.0 - 2024-02-01
10
+ * [#1317](https://github.com/stripe/stripe-ruby/pull/1317) Remove list method in child resources
11
+ * Removes list method mixin from child resources, as these methods always return `InvalidRequestError` and never succeed
12
+ * [#1311](https://github.com/stripe/stripe-ruby/pull/1311) Use the deprecation gem in search and clean up usage of the gem
13
+
3
14
  ## 10.7.0-beta.3 - 2024-01-25
4
15
  * [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
5
16
  * Add support for `create_preview` method on resource `Invoice`
@@ -8,7 +19,6 @@
8
19
  ## 10.7.0-beta.2 - 2024-01-19
9
20
  * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
10
21
 
11
-
12
22
  ## 10.7.0-beta.1 - 2024-01-12
13
23
  * [#1309](https://github.com/stripe/stripe-ruby/pull/1309) Update generated code for beta
14
24
  * [#1305](https://github.com/stripe/stripe-ruby/pull/1305) Update generated code for beta
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v794
1
+ v808
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.7.0-beta.3
1
+ 10.8.0-beta.1
@@ -45,9 +45,13 @@ module Stripe
45
45
  Customer::OBJECT_NAME => Customer,
46
46
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
47
47
  CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
48
+ CustomerEntitlement::OBJECT_NAME => CustomerEntitlement,
49
+ CustomerEntitlementSummary::OBJECT_NAME => CustomerEntitlementSummary,
48
50
  CustomerSession::OBJECT_NAME => CustomerSession,
49
51
  Discount::OBJECT_NAME => Discount,
50
52
  Dispute::OBJECT_NAME => Dispute,
53
+ Entitlements::Event::OBJECT_NAME => Entitlements::Event,
54
+ Entitlements::Feature::OBJECT_NAME => Entitlements::Feature,
51
55
  EphemeralKey::OBJECT_NAME => EphemeralKey,
52
56
  Event::OBJECT_NAME => Event,
53
57
  ExchangeRate::OBJECT_NAME => ExchangeRate,
@@ -8,7 +8,6 @@ module Stripe
8
8
  #
9
9
  # Related guide: [Refunding application fees](https://stripe.com/docs/connect/destination-charges#refunding-app-fee)
10
10
  class ApplicationFeeRefund < APIResource
11
- extend Stripe::APIOperations::List
12
11
  include Stripe::APIOperations::Save
13
12
 
14
13
  OBJECT_NAME = "fee_refund"
@@ -6,7 +6,6 @@ module Stripe
6
6
  #
7
7
  # Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities)
8
8
  class Capability < APIResource
9
- extend Stripe::APIOperations::List
10
9
  include Stripe::APIOperations::Save
11
10
 
12
11
  OBJECT_NAME = "capability"
@@ -17,6 +17,7 @@ module Stripe
17
17
 
18
18
  nested_resource_class_methods :balance_transaction, operations: %i[create retrieve update list]
19
19
  nested_resource_class_methods :cash_balance_transaction, operations: %i[retrieve list]
20
+ nested_resource_class_methods :entitlement, operations: %i[list]
20
21
  nested_resource_class_methods :tax_id, operations: %i[create retrieve delete list]
21
22
 
22
23
  # Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new
@@ -141,6 +142,16 @@ module Stripe
141
142
  )
142
143
  end
143
144
 
145
+ # Retrieve the entitlement summary for a customer
146
+ def self.retrieve_entitlement_summary(customer, params = {}, opts = {})
147
+ request_stripe_object(
148
+ method: :get,
149
+ path: format("/v1/customers/%<customer>s/entitlement_summary", { customer: CGI.escape(customer) }),
150
+ params: params,
151
+ opts: opts
152
+ )
153
+ end
154
+
144
155
  def test_helpers
145
156
  TestHelpers.new(self)
146
157
  end
@@ -9,7 +9,6 @@ module Stripe
9
9
  #
10
10
  # Related guide: [Customer balance](https://stripe.com/docs/billing/customer/balance)
11
11
  class CustomerBalanceTransaction < APIResource
12
- extend Stripe::APIOperations::List
13
12
  include Stripe::APIOperations::Save
14
13
 
15
14
  OBJECT_NAME = "customer_balance_transaction"
@@ -7,8 +7,6 @@ module Stripe
7
7
  # represent when funds are moved into or out of this balance. This includes funding by the customer, allocation
8
8
  # to payments, and refunds to the customer.
9
9
  class CustomerCashBalanceTransaction < APIResource
10
- extend Stripe::APIOperations::List
11
-
12
10
  OBJECT_NAME = "customer_cash_balance_transaction"
13
11
  end
14
12
  end
@@ -0,0 +1,9 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A entitlement for a customer describes access to a feature.
6
+ class CustomerEntitlement < APIResource
7
+ OBJECT_NAME = "customer_entitlement"
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A summary of a customer's entitlements.
6
+ class CustomerEntitlementSummary < APIResource
7
+ OBJECT_NAME = "customer_entitlement_summary"
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Entitlements
6
+ # An entitlement event either grants or revokes an entitlement to a feature for a customer.
7
+ class Event < APIResource
8
+ extend Stripe::APIOperations::Create
9
+
10
+ OBJECT_NAME = "entitlements.event"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Entitlements
6
+ # A feature represents a monetizable ability or functionality in your system.
7
+ # Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
8
+ class Feature < APIResource
9
+ extend Stripe::APIOperations::Create
10
+ extend Stripe::APIOperations::List
11
+
12
+ OBJECT_NAME = "entitlements.feature"
13
+ end
14
+ end
15
+ end
@@ -5,8 +5,6 @@ module Stripe
5
5
  module FinancialConnections
6
6
  # A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
7
7
  class AccountInferredBalance < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
8
  OBJECT_NAME = "financial_connections.account_inferred_balance"
11
9
  end
12
10
  end
@@ -4,8 +4,6 @@
4
4
  module Stripe
5
5
  # The invoice payment object
6
6
  class InvoicePayment < APIResource
7
- extend Stripe::APIOperations::List
8
-
9
7
  OBJECT_NAME = "invoice_payment"
10
8
  end
11
9
  end
@@ -9,7 +9,6 @@ module Stripe
9
9
  #
10
10
  # Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/handling-api-verification#person-information)
11
11
  class Person < APIResource
12
- extend Stripe::APIOperations::List
13
12
  include Stripe::APIOperations::Save
14
13
 
15
14
  OBJECT_NAME = "person"
@@ -35,8 +35,6 @@ module Stripe
35
35
  #
36
36
  # Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending)
37
37
  class QuotePreviewInvoice < APIResource
38
- extend Stripe::APIOperations::List
39
-
40
38
  OBJECT_NAME = "quote_preview_invoice"
41
39
  end
42
40
  end
@@ -3,8 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  class QuotePreviewSubscriptionSchedule < APIResource
6
- extend Stripe::APIOperations::List
7
-
8
6
  OBJECT_NAME = "quote_preview_subscription_schedule"
9
7
  end
10
8
  end
@@ -16,7 +16,6 @@ module Stripe
16
16
  #
17
17
  # Related guide: [Reversing transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#reversing-transfers)
18
18
  class Reversal < APIResource
19
- extend Stripe::APIOperations::List
20
19
  include Stripe::APIOperations::Save
21
20
 
22
21
  OBJECT_NAME = "transfer_reversal"
@@ -8,7 +8,6 @@ module Stripe
8
8
  # Related guides: [Customer tax identification numbers](https://stripe.com/docs/billing/taxes/tax-ids), [Account tax IDs](https://stripe.com/docs/invoicing/connect#account-tax-ids)
9
9
  class TaxId < APIResource
10
10
  include Stripe::APIOperations::Delete
11
- extend Stripe::APIOperations::List
12
11
 
13
12
  OBJECT_NAME = "tax_id"
14
13
 
@@ -33,9 +33,13 @@ require "stripe/resources/credit_note_line_item"
33
33
  require "stripe/resources/customer"
34
34
  require "stripe/resources/customer_balance_transaction"
35
35
  require "stripe/resources/customer_cash_balance_transaction"
36
+ require "stripe/resources/customer_entitlement"
37
+ require "stripe/resources/customer_entitlement_summary"
36
38
  require "stripe/resources/customer_session"
37
39
  require "stripe/resources/discount"
38
40
  require "stripe/resources/dispute"
41
+ require "stripe/resources/entitlements/event"
42
+ require "stripe/resources/entitlements/feature"
39
43
  require "stripe/resources/ephemeral_key"
40
44
  require "stripe/resources/event"
41
45
  require "stripe/resources/exchange_rate"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "10.7.0-beta.3"
4
+ VERSION = "10.8.0-beta.1"
5
5
  end
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: 10.7.0.pre.beta.3
4
+ version: 10.8.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: 2024-01-25 00:00:00.000000000 Z
11
+ date: 2024-02-02 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.
@@ -86,9 +86,13 @@ files:
86
86
  - lib/stripe/resources/customer.rb
87
87
  - lib/stripe/resources/customer_balance_transaction.rb
88
88
  - lib/stripe/resources/customer_cash_balance_transaction.rb
89
+ - lib/stripe/resources/customer_entitlement.rb
90
+ - lib/stripe/resources/customer_entitlement_summary.rb
89
91
  - lib/stripe/resources/customer_session.rb
90
92
  - lib/stripe/resources/discount.rb
91
93
  - lib/stripe/resources/dispute.rb
94
+ - lib/stripe/resources/entitlements/event.rb
95
+ - lib/stripe/resources/entitlements/feature.rb
92
96
  - lib/stripe/resources/ephemeral_key.rb
93
97
  - lib/stripe/resources/event.rb
94
98
  - lib/stripe/resources/exchange_rate.rb