mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-05 00:00:59 -04:00
Compare commits
7 Commits
ddf79610d9
...
25833c1408
Author | SHA1 | Date | |
---|---|---|---|
|
25833c1408 | ||
|
a59b57c3d1 | ||
|
63d447df77 | ||
|
5cd6f9f9bc | ||
|
46eca72f79 | ||
|
2dec63e6b0 | ||
|
ffa3747bdf |
@ -1 +1 @@
|
|||||||
v202
|
v205
|
@ -261,9 +261,13 @@ For example:
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
Stripe::Instrumentation.subscribe(:request_end) do |request_event|
|
Stripe::Instrumentation.subscribe(:request_end) do |request_event|
|
||||||
|
# Filter out high-cardinality ids from `path`
|
||||||
|
path_parts = event.path.split("/").drop(2)
|
||||||
|
resource = path_parts.map { |part| part.match?(/\A[a-z_]+\z/) ? part : ":id" }.join("/")
|
||||||
|
|
||||||
tags = {
|
tags = {
|
||||||
method: request_event.method,
|
method: request_event.method,
|
||||||
resource: request_event.path.split('/')[2],
|
resource: resource,
|
||||||
code: request_event.http_status,
|
code: request_event.http_status,
|
||||||
retries: request_event.num_retries
|
retries: request_event.num_retries
|
||||||
}
|
}
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Stripe
|
module Stripe
|
||||||
# An AccountSession allows a Connect platform to grant access to a connected account in Connect Elements.
|
# An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded UIs.
|
||||||
#
|
#
|
||||||
# We recommend that you create an AccountSession each time you need to display an embedded UI
|
# We recommend that you create an AccountSession each time you need to display an embedded UI
|
||||||
# to your user. Do not save AccountSessions to your database as they expire relatively
|
# to your user. Do not save AccountSessions to your database as they expire relatively
|
||||||
# quickly, and cannot be used more than once.
|
# quickly, and cannot be used more than once.
|
||||||
#
|
#
|
||||||
# Related guide: [Connect Elements](https://stripe.com/docs/connect/get-started-connect-elements).
|
# Related guide: [Connect embedded UIs](https://stripe.com/docs/connect/get-started-connect-embedded-uis).
|
||||||
class AccountSession < APIResource
|
class AccountSession < APIResource
|
||||||
extend Stripe::APIOperations::Create
|
extend Stripe::APIOperations::Create
|
||||||
|
|
||||||
|
@ -6,6 +6,10 @@ module Stripe
|
|||||||
# but not yet refunded. Funds will be refunded to the credit or debit card that
|
# but not yet refunded. Funds will be refunded to the credit or debit card that
|
||||||
# was originally charged.
|
# was originally charged.
|
||||||
#
|
#
|
||||||
|
# Stripe Tax users with recurring payments and invoices can create [Credit Notes](https://stripe.com/docs/api/credit_notes),
|
||||||
|
# which reduce overall tax liability because tax is correctly recalculated and
|
||||||
|
# apportioned to the related invoice.
|
||||||
|
#
|
||||||
# Related guide: [Refunds](https://stripe.com/docs/refunds).
|
# Related guide: [Refunds](https://stripe.com/docs/refunds).
|
||||||
class Refund < APIResource
|
class Refund < APIResource
|
||||||
extend Stripe::APIOperations::Create
|
extend Stripe::APIOperations::Create
|
||||||
|
@ -7,6 +7,10 @@ module Stripe
|
|||||||
# just like a `Card` object: once chargeable, they can be charged, or can be
|
# just like a `Card` object: once chargeable, they can be charged, or can be
|
||||||
# attached to customers.
|
# attached to customers.
|
||||||
#
|
#
|
||||||
|
# Stripe doesn't recommend using the deprecated [Sources API](https://stripe.com/docs/api/sources).
|
||||||
|
# We recommend that you adopt the [PaymentMethods API](https://stripe.com/docs/api/payment_methods).
|
||||||
|
# This newer API provides access to our latest features and payment method types.
|
||||||
|
#
|
||||||
# Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers).
|
# Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers).
|
||||||
class Source < APIResource
|
class Source < APIResource
|
||||||
extend Stripe::APIOperations::Create
|
extend Stripe::APIOperations::Create
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Report test coverage to coveralls for only one Ruby version to avoid
|
# Report test coverage to coveralls for only one Ruby version to avoid
|
||||||
# repeated builds. This also accounts for coveralls_reborn requiring
|
# repeated builds. This also accounts for coveralls_reborn requiring
|
||||||
# RUBY_VERSION >= 2.5.
|
# RUBY_VERSION >= 2.5.
|
||||||
if RUBY_VERSION.start_with?("3.1.")
|
if ENV.key?("COVERALLS_REPO_TOKEN") && RUBY_VERSION.start_with?("3.1.")
|
||||||
require "coveralls"
|
require "coveralls"
|
||||||
Coveralls.wear!
|
Coveralls.wear!
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user