Sha256: 4d39d6f062a5de6f78f7c364383ded8c34a1a1ec1efbe455fce814eb1bb8f85e
Contents?: true
Size: 1.11 KB
Versions: 20
Compression:
Stored size: 1.11 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe class FileLinkService < StripeService # Creates a new file link object. def create(params = {}, opts = {}) request(method: :post, path: "/v1/file_links", params: params, opts: opts, base_address: :api) end # Returns a list of file links. def list(params = {}, opts = {}) request(method: :get, path: "/v1/file_links", params: params, opts: opts, base_address: :api) end # Retrieves the file link with the given ID. def retrieve(link, params = {}, opts = {}) request( method: :get, path: format("/v1/file_links/%<link>s", { link: CGI.escape(link) }), params: params, opts: opts, base_address: :api ) end # Updates an existing file link object. Expired links can no longer be updated. def update(link, params = {}, opts = {}) request( method: :post, path: format("/v1/file_links/%<link>s", { link: CGI.escape(link) }), params: params, opts: opts, base_address: :api ) end end end
Version data entries
20 entries across 20 versions & 1 rubygems