mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-07 00:05:33 -04:00
23 lines
603 B
Ruby
23 lines
603 B
Ruby
# 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
|