mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-18 00:00:44 -04:00
Compare commits
6 Commits
0b65a716c4
...
7f9a370236
Author | SHA1 | Date | |
---|---|---|---|
|
7f9a370236 | ||
|
79463b2efa | ||
|
011f3121a5 | ||
|
4af7ea944c | ||
|
31f300c16d | ||
|
d1d4b6e83c |
2432
CHANGELOG.md
2432
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
v457
|
||||
v495
|
@ -3,6 +3,6 @@
|
||||
|
||||
module Stripe
|
||||
module ApiVersion
|
||||
CURRENT = "2022-11-15"
|
||||
CURRENT = "2023-08-16"
|
||||
end
|
||||
end
|
||||
|
@ -14,6 +14,7 @@ module Stripe
|
||||
# business objects
|
||||
Account::OBJECT_NAME => Account,
|
||||
AccountLink::OBJECT_NAME => AccountLink,
|
||||
AccountSession::OBJECT_NAME => AccountSession,
|
||||
ApplePayDomain::OBJECT_NAME => ApplePayDomain,
|
||||
ApplicationFee::OBJECT_NAME => ApplicationFee,
|
||||
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
require "stripe/resources/account"
|
||||
require "stripe/resources/account_link"
|
||||
require "stripe/resources/account_session"
|
||||
require "stripe/resources/apple_pay_domain"
|
||||
require "stripe/resources/application_fee"
|
||||
require "stripe/resources/application_fee_refund"
|
||||
|
17
lib/stripe/resources/account_session.rb
Normal file
17
lib/stripe/resources/account_session.rb
Normal file
@ -0,0 +1,17 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.
|
||||
#
|
||||
# We recommend that you create an AccountSession each time you need to display an embedded component
|
||||
# to your user. Do not save AccountSessions to your database as they expire relatively
|
||||
# quickly, and cannot be used more than once.
|
||||
#
|
||||
# Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
|
||||
class AccountSession < APIResource
|
||||
extend Stripe::APIOperations::Create
|
||||
|
||||
OBJECT_NAME = "account_session"
|
||||
end
|
||||
end
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "8.7.0"
|
||||
VERSION = "9.0.0"
|
||||
end
|
||||
|
@ -108,8 +108,9 @@ module Stripe
|
||||
end
|
||||
|
||||
if tolerance && timestamp < Time.now - tolerance
|
||||
formatted_timestamp = Time.at(timestamp).strftime("%F %T")
|
||||
raise SignatureVerificationError.new(
|
||||
"Timestamp outside the tolerance zone (#{Time.at(timestamp)})",
|
||||
"Timestamp outside the tolerance zone (#{formatted_timestamp})",
|
||||
header, http_body: payload
|
||||
)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user