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-3.31.0 lib/stripe/issuing/authorization.rb
stripe-3.30.0 lib/stripe/issuing/authorization.rb
stripe-3.29.0 lib/stripe/issuing/authorization.rb
stripe-3.28.0 lib/stripe/issuing/authorization.rb
stripe-3.27.0 lib/stripe/issuing/authorization.rb
stripe-3.26.1 lib/stripe/issuing/authorization.rb
stripe-3.26.0 lib/stripe/issuing/authorization.rb
stripe-3.25.0 lib/stripe/issuing/authorization.rb
stripe-3.24.0 lib/stripe/issuing/authorization.rb
stripe-3.23.0 lib/stripe/issuing/authorization.rb
stripe-3.22.0 lib/stripe/issuing/authorization.rb
stripe-3.21.0 lib/stripe/issuing/authorization.rb
stripe-3.20.0 lib/stripe/issuing/authorization.rb
stripe-3.19.0 lib/stripe/issuing/authorization.rb
stripe-3.18.0 lib/stripe/issuing/authorization.rb