mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-06 00:02:18 -04:00
* Codegen for openapi 474461f * Add and fix tests for the latest stripe-mock Some of the tests had to be changed/mocked because stripe-mock has a bug where the includable sub-lists it returns have the wrong url set. Because of this, when you call create/list/etc. on one of those sub-lists the calls fails due to that URL being incorrect. Moved one test to use charge+refund (auto-expanded) and another used a mock to have the right URL returned.
26 lines
570 B
Ruby
26 lines
570 B
Ruby
# File generated from our OpenAPI spec
|
|
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
module Issuing
|
|
class Dispute < APIResource
|
|
extend Stripe::APIOperations::Create
|
|
extend Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Save
|
|
|
|
OBJECT_NAME = "issuing.dispute"
|
|
|
|
custom_method :submit, http_verb: :post
|
|
|
|
def submit(params = {}, opts = {})
|
|
request_stripe_object(
|
|
method: :post,
|
|
path: resource_url + "/submit",
|
|
params: params,
|
|
opts: opts
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|