Sha256: 19047ebfd872a8ceb8e6dbe1d048450e4d077e703d8fec3cd904b417d6551f0d
Contents?: true
Size: 1.95 KB
Versions: 49
Compression:
Stored size: 1.95 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Terminal # A Configurations object represents how features should be configured for terminal readers. class Configuration < APIResource extend Stripe::APIOperations::Create include Stripe::APIOperations::Delete extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "terminal.configuration" def self.object_name "terminal.configuration" end # Creates a new Configuration object. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/terminal/configurations", params: params, opts: opts ) end # Deletes a Configuration object. def self.delete(id, params = {}, opts = {}) request_stripe_object( method: :delete, path: format("/v1/terminal/configurations/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts ) end # Deletes a Configuration object. def delete(params = {}, opts = {}) request_stripe_object( method: :delete, path: format("/v1/terminal/configurations/%<configuration>s", { configuration: CGI.escape(self["id"]) }), params: params, opts: opts ) end # Returns a list of Configuration objects. def self.list(filters = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/terminal/configurations", params: filters, opts: opts ) end # Updates a new Configuration object. def self.update(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/terminal/configurations/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts ) end end end end
Version data entries
49 entries across 49 versions & 1 rubygems