Compare commits

..

2 Commits

Author SHA1 Message Date
anniel-stripe
0b65a716c4
Merge branch 'master' into latest-codegen-master 2023-08-16 15:08:30 -07:00
Stripe OpenAPI
4cb52bb8be Update generated code for v461 2023-08-14 16:09:04 +00:00
8 changed files with 1203 additions and 1255 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
v495 v461

View File

@ -1 +1 @@
9.0.0 8.7.0

View File

@ -14,7 +14,6 @@ module Stripe
# business objects # business objects
Account::OBJECT_NAME => Account, Account::OBJECT_NAME => Account,
AccountLink::OBJECT_NAME => AccountLink, AccountLink::OBJECT_NAME => AccountLink,
AccountSession::OBJECT_NAME => AccountSession,
ApplePayDomain::OBJECT_NAME => ApplePayDomain, ApplePayDomain::OBJECT_NAME => ApplePayDomain,
ApplicationFee::OBJECT_NAME => ApplicationFee, ApplicationFee::OBJECT_NAME => ApplicationFee,
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund, ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,

View File

@ -3,7 +3,6 @@
require "stripe/resources/account" require "stripe/resources/account"
require "stripe/resources/account_link" require "stripe/resources/account_link"
require "stripe/resources/account_session"
require "stripe/resources/apple_pay_domain" require "stripe/resources/apple_pay_domain"
require "stripe/resources/application_fee" require "stripe/resources/application_fee"
require "stripe/resources/application_fee_refund" require "stripe/resources/application_fee_refund"

View File

@ -1,17 +0,0 @@
# 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

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Stripe module Stripe
VERSION = "9.0.0" VERSION = "8.7.0"
end end

View File

@ -108,9 +108,8 @@ module Stripe
end end
if tolerance && timestamp < Time.now - tolerance if tolerance && timestamp < Time.now - tolerance
formatted_timestamp = Time.at(timestamp).strftime("%F %T")
raise SignatureVerificationError.new( raise SignatureVerificationError.new(
"Timestamp outside the tolerance zone (#{formatted_timestamp})", "Timestamp outside the tolerance zone (#{Time.at(timestamp)})",
header, http_body: payload header, http_body: payload
) )
end end