mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
34 lines
766 B
Ruby
34 lines
766 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
module Issuing
|
|
class Authorization < APIResource
|
|
extend Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Save
|
|
|
|
OBJECT_NAME = "issuing.authorization".freeze
|
|
|
|
custom_method :approve, http_verb: :post
|
|
custom_method :decline, http_verb: :post
|
|
|
|
def approve(params = {}, opts = {})
|
|
request_stripe_object(
|
|
method: :post,
|
|
path: resource_url + "/approve",
|
|
params: params,
|
|
opts: opts
|
|
)
|
|
end
|
|
|
|
def decline(params = {}, opts = {})
|
|
request_stripe_object(
|
|
method: :post,
|
|
path: resource_url + "/decline",
|
|
params: params,
|
|
opts: opts
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|