Sha256: 8f1b773ceaf5e5dd19f159af3e60a3ce071bcae8c0d8abaa12fbfdff6dba8083

Contents?: true

Size: 603 Bytes

Versions: 35

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module Stripe
  module Issuing
    class Authorization < Stripe::APIResource
      extend Stripe::APIOperations::List
      include Stripe::APIOperations::Save

      OBJECT_NAME = "issuing.authorization".freeze

      def approve(params = {}, opts = {})
        resp, opts = request(:post, resource_url + "/approve", params, opts)
        initialize_from(resp.data, opts)
      end

      def decline(params = {}, opts = {})
        resp, opts = request(:post, resource_url + "/decline", params, opts)
        initialize_from(resp.data, opts)
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
stripe-4.11.0 lib/stripe/issuing/authorization.rb
stripe-4.10.0 lib/stripe/issuing/authorization.rb
stripe-4.9.1 lib/stripe/issuing/authorization.rb
stripe-4.9.0 lib/stripe/issuing/authorization.rb
stripe-4.8.1 lib/stripe/issuing/authorization.rb
stripe-4.8.0 lib/stripe/issuing/authorization.rb
stripe-4.7.1 lib/stripe/issuing/authorization.rb
stripe-4.7.0 lib/stripe/issuing/authorization.rb
stripe-4.6.0 lib/stripe/issuing/authorization.rb
stripe-4.5.0 lib/stripe/issuing/authorization.rb
stripe-4.4.1 lib/stripe/issuing/authorization.rb
stripe-4.4.0 lib/stripe/issuing/authorization.rb
stripe-4.3.0 lib/stripe/issuing/authorization.rb
stripe-4.2.0 lib/stripe/issuing/authorization.rb
stripe-4.1.0 lib/stripe/issuing/authorization.rb
stripe-4.0.3 lib/stripe/issuing/authorization.rb
stripe-4.0.2 lib/stripe/issuing/authorization.rb
stripe-4.0.1 lib/stripe/issuing/authorization.rb
stripe-4.0.0 lib/stripe/issuing/authorization.rb
stripe-3.31.1 lib/stripe/issuing/authorization.rb