Sha256: 1a9db8048a3e054e07db6df9091ba838219c2708c210d6420797aa1d2426f301

Contents?: true

Size: 1.11 KB

Versions: 49

Compression:

Stored size: 1.11 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Issuing
    # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can [view and manage these tokens](https://stripe.com/docs/issuing/controls/token-management) through Stripe.
    class Token < APIResource
      extend Stripe::APIOperations::List
      include Stripe::APIOperations::Save

      OBJECT_NAME = "issuing.token"
      def self.object_name
        "issuing.token"
      end

      # Lists all Issuing Token objects for a given card.
      def self.list(filters = {}, opts = {})
        request_stripe_object(method: :get, path: "/v1/issuing/tokens", params: filters, opts: opts)
      end

      # Attempts to update the specified Issuing Token object to the status specified.
      def self.update(id, params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: format("/v1/issuing/tokens/%<id>s", { id: CGI.escape(id) }),
          params: params,
          opts: opts
        )
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.1 lib/stripe/resources/issuing/token.rb
stripe-13.2.0 lib/stripe/resources/issuing/token.rb
stripe-13.1.2 lib/stripe/resources/issuing/token.rb
stripe-13.2.0.pre.beta.3 lib/stripe/resources/issuing/token.rb
stripe-13.2.0.pre.beta.2 lib/stripe/resources/issuing/token.rb
stripe-13.1.1 lib/stripe/resources/issuing/token.rb
stripe-13.2.0.pre.beta.1 lib/stripe/resources/issuing/token.rb
stripe-13.1.0 lib/stripe/resources/issuing/token.rb
stripe-13.0.2 lib/stripe/resources/issuing/token.rb
stripe-13.1.0.pre.beta.3 lib/stripe/resources/issuing/token.rb
stripe-13.0.1 lib/stripe/resources/issuing/token.rb
stripe-13.1.0.pre.beta.2 lib/stripe/resources/issuing/token.rb
stripe-13.0.0 lib/stripe/resources/issuing/token.rb
stripe-12.7.0.pre.beta.2 lib/stripe/resources/issuing/token.rb
stripe-12.7.0.pre.beta.1 lib/stripe/resources/issuing/token.rb
stripe-12.6.0 lib/stripe/resources/issuing/token.rb
stripe-12.6.0.pre.beta.1 lib/stripe/resources/issuing/token.rb
stripe-12.5.0 lib/stripe/resources/issuing/token.rb
stripe-12.5.0.pre.beta.2 lib/stripe/resources/issuing/token.rb
stripe-12.5.0.pre.beta.1 lib/stripe/resources/issuing/token.rb