mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-03 00:01:21 -04:00
21 lines
501 B
Ruby
21 lines
501 B
Ruby
# File generated from our OpenAPI spec
|
|
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
class EphemeralKey < APIResource
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Delete
|
|
|
|
OBJECT_NAME = "ephemeral_key"
|
|
|
|
def self.create(params = {}, opts = {})
|
|
opts = Util.normalize_opts(opts)
|
|
unless opts[:stripe_version]
|
|
raise ArgumentError,
|
|
"stripe_version must be specified to create an ephemeral key"
|
|
end
|
|
super
|
|
end
|
|
end
|
|
end
|