From f538aee155d5665bda47e7c87d45d48b433ad54a Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 11:50:43 -0700 Subject: [PATCH 1/3] Update generated code for v387 (#1234) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/reversal.rb | 4 ++-- lib/stripe/resources/transfer.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e55c97220..f135f6e0f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v379 \ No newline at end of file +v387 \ No newline at end of file diff --git a/lib/stripe/resources/reversal.rb b/lib/stripe/resources/reversal.rb index ceef154aa..e459a2466 100644 --- a/lib/stripe/resources/reversal.rb +++ b/lib/stripe/resources/reversal.rb @@ -10,11 +10,11 @@ module Stripe # Reversing a transfer that was made for a [destination # charge](https://stripe.com/docs/connect/destination-charges) is allowed only up to the amount of # the charge. It is possible to reverse a - # [transfer_group](https://stripe.com/docs/connect/charges-transfers#transfer-options) + # [transfer_group](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) # transfer only if the destination account has enough balance to cover the # reversal. # - # Related guide: [Reversing transfers](https://stripe.com/docs/connect/charges-transfers#reversing-transfers) + # Related guide: [Reversing transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#reversing-transfers) class Reversal < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save diff --git a/lib/stripe/resources/transfer.rb b/lib/stripe/resources/transfer.rb index 73946ed71..b8beb46fe 100644 --- a/lib/stripe/resources/transfer.rb +++ b/lib/stripe/resources/transfer.rb @@ -11,7 +11,7 @@ module Stripe # information, read about the # [transfer/payout split](https://stripe.com/docs/transfer-payout-split). # - # Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/charges-transfers) + # Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) class Transfer < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List From d297fdef7d03602cc265685a95ff77259d2752ec Mon Sep 17 00:00:00 2001 From: Justin Hammond <39606064+Justintime50@users.noreply.github.com> Date: Tue, 20 Jun 2023 12:47:16 -0600 Subject: [PATCH 2/3] fix: variable typo in README for instrumentation (#1231) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf953f45a..337e93ccd 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 = { From a2806aca65193ce4d292856700db1d9729605dbe Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 21 Jun 2023 18:00:44 +0000 Subject: [PATCH 3/3] Update generated code for v392 --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 1 + lib/stripe/resources.rb | 1 + lib/stripe/resources/customer_session.rb | 12 ++++++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lib/stripe/resources/customer_session.rb diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index aa211d828..6c2a0d1b0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v391 \ No newline at end of file +v392 \ No newline at end of file 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