diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f135f6e0f..6c2a0d1b0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v387 \ No newline at end of file +v392 \ No newline at end of file diff --git a/README.md b/README.md index e3868b133..d0a12ed5a 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ For example: ```ruby Stripe::Instrumentation.subscribe(:request_end) do |request_event| # Filter out high-cardinality ids from `path` - path_parts = event.path.split("/").drop(2) + path_parts = request_event.path.split("/").drop(2) resource = path_parts.map { |part| part.match?(/\A[a-z_]+\z/) ? part : ":id" }.join("/") tags = { diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index d80bfd78b..0c7bd33f0 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -39,6 +39,7 @@ def self.object_names_to_classes Customer::OBJECT_NAME => Customer, CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction, CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction, + CustomerSession::OBJECT_NAME => CustomerSession, Discount::OBJECT_NAME => Discount, Dispute::OBJECT_NAME => Dispute, EphemeralKey::OBJECT_NAME => EphemeralKey, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 7b9ad526e..aa71076a0 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -28,6 +28,7 @@ require "stripe/resources/customer" require "stripe/resources/customer_balance_transaction" require "stripe/resources/customer_cash_balance_transaction" +require "stripe/resources/customer_session" require "stripe/resources/discount" require "stripe/resources/dispute" require "stripe/resources/ephemeral_key" diff --git a/lib/stripe/resources/customer_session.rb b/lib/stripe/resources/customer_session.rb new file mode 100644 index 000000000..6cfd25786 --- /dev/null +++ b/lib/stripe/resources/customer_session.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + # A customer session allows you to grant client access to Stripe's frontend SDKs (like BillingJs) + # control over a customer. + class CustomerSession < APIResource + extend Stripe::APIOperations::Create + + OBJECT_NAME = "customer_session" + end +end