Merge upstream and update generated code for v394

This commit is contained in:
Stripe OpenAPI 2023-06-23 21:47:05 +00:00
commit 456f10ab93
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
v392
v394

View File

@ -89,13 +89,16 @@ module Stripe
val = Stripe::LEVEL_DEBUG
elsif val == "info"
val = Stripe::LEVEL_INFO
elsif val == "error"
val = Stripe::LEVEL_ERROR
end
levels = [Stripe::LEVEL_INFO, Stripe::LEVEL_DEBUG, Stripe::LEVEL_ERROR]
if !val.nil? && !levels.include?(val)
raise ArgumentError,
"log_level should only be set to `nil`, `debug` or `info`"
"log_level should only be set to `nil`, `debug`, `info`," \
" or `error`"
end
@log_level = val
end