mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-11 00:01:02 -04:00
Codegen for openapi v154 (#1070)
This commit is contained in:
parent
ad84b25e8e
commit
001db8bd27
@ -1 +1 @@
|
||||
v152
|
||||
v154
|
@ -12,9 +12,6 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "account"
|
||||
|
||||
custom_method :persons, http_verb: :get
|
||||
custom_method :reject, http_verb: :post
|
||||
|
||||
nested_resource_class_methods :capability,
|
||||
operations: %i[retrieve update list],
|
||||
resource_plural: "capabilities"
|
||||
@ -24,7 +21,7 @@ module Stripe
|
||||
def persons(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/persons",
|
||||
path: format("/v1/accounts/%<account>s/persons", { account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -33,12 +30,32 @@ module Stripe
|
||||
def reject(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/reject",
|
||||
path: format("/v1/accounts/%<account>s/reject", { account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.persons(account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/accounts/%<account>s/persons", { account: CGI.escape(account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.reject(account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/accounts/%<account>s/reject", { account: CGI.escape(account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
save_nested_resource :external_account
|
||||
|
||||
nested_resource_class_methods :external_account,
|
||||
|
@ -12,7 +12,7 @@ module Stripe
|
||||
def self.delete_where(params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
resource_url + "/delete",
|
||||
"/v1/apps/secrets/delete",
|
||||
params,
|
||||
opts
|
||||
)
|
||||
@ -22,7 +22,7 @@ module Stripe
|
||||
def self.find(params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
resource_url + "/find",
|
||||
"/v1/apps/secrets/find",
|
||||
params,
|
||||
opts
|
||||
)
|
||||
|
@ -10,17 +10,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "charge"
|
||||
|
||||
custom_method :capture, http_verb: :post
|
||||
|
||||
def capture(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/capture",
|
||||
path: format("/v1/charges/%<charge>s/capture", { charge: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.capture(charge, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/charges/%<charge>s/capture", { charge: CGI.escape(charge) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/charges/search", params, opts)
|
||||
end
|
||||
|
@ -10,18 +10,26 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "checkout.session"
|
||||
|
||||
custom_method :expire, http_verb: :post
|
||||
|
||||
nested_resource_class_methods :line_item, operations: %i[list]
|
||||
|
||||
def expire(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/expire",
|
||||
path: format("/v1/checkout/sessions/%<session>s/expire", { session: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.expire(session, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/checkout/sessions/%<session>s/expire", { session: CGI.escape(session) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,17 +9,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "credit_note"
|
||||
|
||||
custom_method :void_credit_note, http_verb: :post, http_path: "void"
|
||||
|
||||
def void_credit_note(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/void",
|
||||
path: format("/v1/credit_notes/%<id>s/void", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.void_credit_note(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/credit_notes/%<id>s/void", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.preview(params, opts = {})
|
||||
resp, opts = execute_resource_request(:get, resource_url + "/preview", params, opts)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
|
@ -12,9 +12,6 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "customer"
|
||||
|
||||
custom_method :create_funding_instructions, http_verb: :post, http_path: "funding_instructions"
|
||||
custom_method :list_payment_methods, http_verb: :get, http_path: "payment_methods"
|
||||
|
||||
nested_resource_class_methods :balance_transaction,
|
||||
operations: %i[create retrieve update list]
|
||||
nested_resource_class_methods :tax_id,
|
||||
@ -23,7 +20,7 @@ module Stripe
|
||||
def create_funding_instructions(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/funding_instructions",
|
||||
path: format("/v1/customers/%<customer>s/funding_instructions", { customer: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -32,7 +29,7 @@ module Stripe
|
||||
def list_payment_methods(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/payment_methods",
|
||||
path: format("/v1/customers/%<customer>s/payment_methods", { customer: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -47,6 +44,26 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def self.create_funding_instructions(customer, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/customers/%<customer>s/funding_instructions", { customer: CGI.escape(customer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.list_payment_methods(customer, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/customers/%<customer>s/payment_methods", { customer: CGI.escape(customer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.retrieve_payment_method(
|
||||
customer,
|
||||
payment_method,
|
||||
|
@ -8,15 +8,23 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "dispute"
|
||||
|
||||
custom_method :close, http_verb: :post
|
||||
|
||||
def close(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/close",
|
||||
path: format("/v1/disputes/%<dispute>s/close", { dispute: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.close(dispute, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/disputes/%<dispute>s/close", { dispute: CGI.escape(dispute) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -8,14 +8,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "financial_connections.account"
|
||||
|
||||
custom_method :disconnect, http_verb: :post
|
||||
custom_method :list_owners, http_verb: :get, http_path: "owners"
|
||||
custom_method :refresh_account, http_verb: :post, http_path: "refresh"
|
||||
|
||||
def disconnect(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/disconnect",
|
||||
path: format("/v1/financial_connections/accounts/%<account>s/disconnect", { account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -24,7 +20,7 @@ module Stripe
|
||||
def list_owners(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/owners",
|
||||
path: format("/v1/financial_connections/accounts/%<account>s/owners", { account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -33,11 +29,41 @@ module Stripe
|
||||
def refresh_account(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/refresh",
|
||||
path: format("/v1/financial_connections/accounts/%<account>s/refresh", { account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.disconnect(account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/financial_connections/accounts/%<account>s/disconnect", { account: CGI.escape(account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.list_owners(account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/financial_connections/accounts/%<account>s/owners", { account: CGI.escape(account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.refresh_account(account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/financial_connections/accounts/%<account>s/refresh", { account: CGI.escape(account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,13 +10,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "identity.verification_session"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :redact, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/identity/verification_sessions/%<session>s/cancel", { session: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -25,11 +22,31 @@ module Stripe
|
||||
def redact(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/redact",
|
||||
path: format("/v1/identity/verification_sessions/%<session>s/redact", { session: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(session, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/identity/verification_sessions/%<session>s/cancel", { session: CGI.escape(session) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.redact(session, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/identity/verification_sessions/%<session>s/redact", { session: CGI.escape(session) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -11,16 +11,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "invoice"
|
||||
|
||||
custom_method :finalize_invoice, http_verb: :post, http_path: "finalize"
|
||||
custom_method :mark_uncollectible, http_verb: :post
|
||||
custom_method :pay, http_verb: :post
|
||||
custom_method :send_invoice, http_verb: :post, http_path: "send"
|
||||
custom_method :void_invoice, http_verb: :post, http_path: "void"
|
||||
|
||||
def finalize_invoice(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/finalize",
|
||||
path: format("/v1/invoices/%<invoice>s/finalize", { invoice: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -29,7 +23,7 @@ module Stripe
|
||||
def mark_uncollectible(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/mark_uncollectible",
|
||||
path: format("/v1/invoices/%<invoice>s/mark_uncollectible", { invoice: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -38,7 +32,7 @@ module Stripe
|
||||
def pay(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/pay",
|
||||
path: format("/v1/invoices/%<invoice>s/pay", { invoice: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -47,7 +41,7 @@ module Stripe
|
||||
def send_invoice(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/send",
|
||||
path: format("/v1/invoices/%<invoice>s/send", { invoice: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -56,12 +50,62 @@ module Stripe
|
||||
def void_invoice(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/void",
|
||||
path: format("/v1/invoices/%<invoice>s/void", { invoice: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.finalize_invoice(invoice, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/invoices/%<invoice>s/finalize", { invoice: CGI.escape(invoice) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.mark_uncollectible(invoice, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/invoices/%<invoice>s/mark_uncollectible", { invoice: CGI.escape(invoice) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.pay(invoice, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/invoices/%<invoice>s/pay", { invoice: CGI.escape(invoice) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.send_invoice(invoice, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/invoices/%<invoice>s/send", { invoice: CGI.escape(invoice) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.void_invoice(invoice, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/invoices/%<invoice>s/void", { invoice: CGI.escape(invoice) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.upcoming(params, opts = {})
|
||||
resp, opts = execute_resource_request(:get, resource_url + "/upcoming", params, opts)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
|
@ -9,13 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "issuing.authorization"
|
||||
|
||||
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",
|
||||
path: format("/v1/issuing/authorizations/%<authorization>s/approve", { authorization: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -24,11 +21,31 @@ module Stripe
|
||||
def decline(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/decline",
|
||||
path: format("/v1/issuing/authorizations/%<authorization>s/decline", { authorization: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.approve(authorization, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/issuing/authorizations/%<authorization>s/approve", { authorization: CGI.escape(authorization) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.decline(authorization, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/issuing/authorizations/%<authorization>s/decline", { authorization: CGI.escape(authorization) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,16 +10,24 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "issuing.card"
|
||||
|
||||
custom_method :details, http_verb: :get
|
||||
|
||||
def details(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/details",
|
||||
path: format("/v1/issuing/cards/%<card>s/details", { card: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.details(card, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/issuing/cards/%<card>s/details", { card: CGI.escape(card) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,16 +10,24 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "issuing.dispute"
|
||||
|
||||
custom_method :submit, http_verb: :post
|
||||
|
||||
def submit(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/submit",
|
||||
path: format("/v1/issuing/disputes/%<dispute>s/submit", { dispute: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.submit(dispute, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/issuing/disputes/%<dispute>s/submit", { dispute: CGI.escape(dispute) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,15 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "order"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :list_line_items, http_verb: :get, http_path: "line_items"
|
||||
custom_method :reopen, http_verb: :post
|
||||
custom_method :submit, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/orders/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -26,7 +21,7 @@ module Stripe
|
||||
def list_line_items(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/line_items",
|
||||
path: format("/v1/orders/%<id>s/line_items", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -35,7 +30,7 @@ module Stripe
|
||||
def reopen(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/reopen",
|
||||
path: format("/v1/orders/%<id>s/reopen", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -44,10 +39,50 @@ module Stripe
|
||||
def submit(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/submit",
|
||||
path: format("/v1/orders/%<id>s/submit", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/orders/%<id>s/cancel", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.list_line_items(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/orders/%<id>s/line_items", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.reopen(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/orders/%<id>s/reopen", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.submit(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/orders/%<id>s/submit", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,17 +10,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "payment_intent"
|
||||
|
||||
custom_method :apply_customer_balance, http_verb: :post
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :capture, http_verb: :post
|
||||
custom_method :confirm, http_verb: :post
|
||||
custom_method :increment_authorization, http_verb: :post
|
||||
custom_method :verify_microdeposits, http_verb: :post
|
||||
|
||||
def apply_customer_balance(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/apply_customer_balance",
|
||||
path: format("/v1/payment_intents/%<intent>s/apply_customer_balance", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -29,7 +22,7 @@ module Stripe
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/payment_intents/%<intent>s/cancel", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -38,7 +31,7 @@ module Stripe
|
||||
def capture(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/capture",
|
||||
path: format("/v1/payment_intents/%<intent>s/capture", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -47,7 +40,7 @@ module Stripe
|
||||
def confirm(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/confirm",
|
||||
path: format("/v1/payment_intents/%<intent>s/confirm", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -56,7 +49,7 @@ module Stripe
|
||||
def increment_authorization(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/increment_authorization",
|
||||
path: format("/v1/payment_intents/%<intent>s/increment_authorization", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -65,12 +58,72 @@ module Stripe
|
||||
def verify_microdeposits(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/verify_microdeposits",
|
||||
path: format("/v1/payment_intents/%<intent>s/verify_microdeposits", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.apply_customer_balance(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_intents/%<intent>s/apply_customer_balance", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.cancel(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_intents/%<intent>s/cancel", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.capture(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_intents/%<intent>s/capture", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.confirm(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_intents/%<intent>s/confirm", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.increment_authorization(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_intents/%<intent>s/increment_authorization", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.verify_microdeposits(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_intents/%<intent>s/verify_microdeposits", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/payment_intents/search", params, opts)
|
||||
end
|
||||
|
@ -9,15 +9,23 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "payment_link"
|
||||
|
||||
custom_method :list_line_items, http_verb: :get, http_path: "line_items"
|
||||
|
||||
def list_line_items(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/line_items",
|
||||
path: format("/v1/payment_links/%<payment_link>s/line_items", { payment_link: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.list_line_items(payment_link, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/payment_links/%<payment_link>s/line_items", { payment_link: CGI.escape(payment_link) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,13 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "payment_method"
|
||||
|
||||
custom_method :attach, http_verb: :post
|
||||
custom_method :detach, http_verb: :post
|
||||
|
||||
def attach(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/attach",
|
||||
path: format("/v1/payment_methods/%<payment_method>s/attach", { payment_method: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -24,10 +21,30 @@ module Stripe
|
||||
def detach(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/detach",
|
||||
path: format("/v1/payment_methods/%<payment_method>s/detach", { payment_method: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.attach(payment_method, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_methods/%<payment_method>s/attach", { payment_method: CGI.escape(payment_method) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.detach(payment_method, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payment_methods/%<payment_method>s/detach", { payment_method: CGI.escape(payment_method) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,13 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "payout"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :reverse, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/payouts/%<payout>s/cancel", { payout: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -24,10 +21,30 @@ module Stripe
|
||||
def reverse(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/reverse",
|
||||
path: format("/v1/payouts/%<payout>s/reverse", { payout: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(payout, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payouts/%<payout>s/cancel", { payout: CGI.escape(payout) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.reverse(payout, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/payouts/%<payout>s/reverse", { payout: CGI.escape(payout) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,16 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "quote"
|
||||
|
||||
custom_method :accept, http_verb: :post
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :finalize_quote, http_verb: :post, http_path: "finalize"
|
||||
custom_method :list_computed_upfront_line_items, http_verb: :get, http_path: "computed_upfront_line_items"
|
||||
custom_method :list_line_items, http_verb: :get, http_path: "line_items"
|
||||
|
||||
def accept(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/accept",
|
||||
path: format("/v1/quotes/%<quote>s/accept", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -27,7 +21,7 @@ module Stripe
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/quotes/%<quote>s/cancel", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -36,7 +30,7 @@ module Stripe
|
||||
def finalize_quote(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/finalize",
|
||||
path: format("/v1/quotes/%<quote>s/finalize", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -45,7 +39,7 @@ module Stripe
|
||||
def list_computed_upfront_line_items(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/computed_upfront_line_items",
|
||||
path: format("/v1/quotes/%<quote>s/computed_upfront_line_items", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -54,12 +48,62 @@ module Stripe
|
||||
def list_line_items(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/line_items",
|
||||
path: format("/v1/quotes/%<quote>s/line_items", { quote: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.accept(quote, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/quotes/%<quote>s/accept", { quote: CGI.escape(quote) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.cancel(quote, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/quotes/%<quote>s/cancel", { quote: CGI.escape(quote) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.finalize_quote(quote, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/quotes/%<quote>s/finalize", { quote: CGI.escape(quote) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.list_computed_upfront_line_items(quote, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/quotes/%<quote>s/computed_upfront_line_items", { quote: CGI.escape(quote) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.list_line_items(quote, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/quotes/%<quote>s/line_items", { quote: CGI.escape(quote) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
||||
unless block_given?
|
||||
raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."
|
||||
|
@ -9,17 +9,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "refund"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/refunds/%<refund>s/cancel", { refund: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(refund, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/refunds/%<refund>s/cancel", { refund: CGI.escape(refund) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def test_helpers
|
||||
TestHelpers.new(self)
|
||||
end
|
||||
@ -27,12 +35,20 @@ module Stripe
|
||||
class TestHelpers < APIResourceTestHelpers
|
||||
RESOURCE_CLASS = Refund
|
||||
|
||||
custom_method :expire, http_verb: :post
|
||||
def self.expire(refund, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/refunds/%<refund>s/expire", { refund: CGI.escape(refund) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def expire(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/expire",
|
||||
path: format("/v1/test_helpers/refunds/%<refund>s/expire", { refund: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
|
@ -7,15 +7,23 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "review"
|
||||
|
||||
custom_method :approve, http_verb: :post
|
||||
|
||||
def approve(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/approve",
|
||||
path: format("/v1/reviews/%<review>s/approve", { review: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.approve(review, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/reviews/%<review>s/approve", { review: CGI.escape(review) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,14 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "setup_intent"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :confirm, http_verb: :post
|
||||
custom_method :verify_microdeposits, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/setup_intents/%<intent>s/cancel", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -25,7 +21,7 @@ module Stripe
|
||||
def confirm(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/confirm",
|
||||
path: format("/v1/setup_intents/%<intent>s/confirm", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -34,10 +30,40 @@ module Stripe
|
||||
def verify_microdeposits(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/verify_microdeposits",
|
||||
path: format("/v1/setup_intents/%<intent>s/verify_microdeposits", { intent: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/setup_intents/%<intent>s/cancel", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.confirm(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/setup_intents/%<intent>s/confirm", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.verify_microdeposits(intent, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/setup_intents/%<intent>s/verify_microdeposits", { intent: CGI.escape(intent) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,20 +9,28 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "source"
|
||||
|
||||
custom_method :verify, http_verb: :post
|
||||
|
||||
nested_resource_class_methods :source_transaction,
|
||||
operations: %i[retrieve list]
|
||||
|
||||
def verify(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/verify",
|
||||
path: format("/v1/sources/%<source>s/verify", { source: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.verify(source, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/sources/%<source>s/verify", { source: CGI.escape(source) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def detach(params = {}, opts = {})
|
||||
if !respond_to?(:customer) || customer.nil? || customer.empty?
|
||||
raise NotImplementedError,
|
||||
|
@ -11,17 +11,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "subscription"
|
||||
|
||||
custom_method :delete_discount, http_verb: :delete, http_path: "discount"
|
||||
|
||||
def delete_discount(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :delete,
|
||||
path: resource_url + "/discount",
|
||||
path: format("/v1/subscriptions/%<subscription_exposed_id>s/discount", { subscription_exposed_id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.delete_discount(subscription_exposed_id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:delete,
|
||||
format("/v1/subscriptions/%<subscription_exposed_id>s/discount", { subscription_exposed_id: CGI.escape(subscription_exposed_id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
save_nested_resource :source
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
|
@ -9,13 +9,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "subscription_schedule"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
custom_method :release, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/subscription_schedules/%<schedule>s/cancel", { schedule: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -24,10 +21,30 @@ module Stripe
|
||||
def release(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/release",
|
||||
path: format("/v1/subscription_schedules/%<schedule>s/release", { schedule: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(schedule, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/subscription_schedules/%<schedule>s/cancel", { schedule: CGI.escape(schedule) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.release(schedule, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/subscription_schedules/%<schedule>s/release", { schedule: CGI.escape(schedule) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -11,15 +11,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "terminal.reader"
|
||||
|
||||
custom_method :cancel_action, http_verb: :post
|
||||
custom_method :process_payment_intent, http_verb: :post
|
||||
custom_method :process_setup_intent, http_verb: :post
|
||||
custom_method :set_reader_display, http_verb: :post
|
||||
|
||||
def cancel_action(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel_action",
|
||||
path: format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -28,7 +23,7 @@ module Stripe
|
||||
def process_payment_intent(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/process_payment_intent",
|
||||
path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -37,7 +32,7 @@ module Stripe
|
||||
def process_setup_intent(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/process_setup_intent",
|
||||
path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -46,12 +41,52 @@ module Stripe
|
||||
def set_reader_display(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/set_reader_display",
|
||||
path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel_action(reader, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(reader) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.process_payment_intent(reader, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(reader) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.process_setup_intent(reader, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(reader) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.set_reader_display(reader, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(reader) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def test_helpers
|
||||
TestHelpers.new(self)
|
||||
end
|
||||
@ -59,12 +94,20 @@ module Stripe
|
||||
class TestHelpers < APIResourceTestHelpers
|
||||
RESOURCE_CLASS = Reader
|
||||
|
||||
custom_method :present_payment_method, http_verb: :post
|
||||
def self.present_payment_method(reader, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/terminal/readers/%<reader>s/present_payment_method", { reader: CGI.escape(reader) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def present_payment_method(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/present_payment_method",
|
||||
path: format("/v1/test_helpers/terminal/readers/%<reader>s/present_payment_method", { reader: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
|
@ -10,16 +10,24 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "test_helpers.test_clock"
|
||||
|
||||
custom_method :advance, http_verb: :post
|
||||
|
||||
def advance(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/advance",
|
||||
path: format("/v1/test_helpers/test_clocks/%<test_clock>s/advance", { test_clock: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.advance(test_clock, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/test_clocks/%<test_clock>s/advance", { test_clock: CGI.escape(test_clock) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,15 +9,23 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "topup"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/topups/%<topup>s/cancel", { topup: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(topup, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/topups/%<topup>s/cancel", { topup: CGI.escape(topup) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,18 +10,26 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "transfer"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
|
||||
nested_resource_class_methods :reversal,
|
||||
operations: %i[create retrieve update list]
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/transfers/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/transfers/%<id>s/cancel", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -10,13 +10,10 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "treasury.financial_account"
|
||||
|
||||
custom_method :retrieve_features, http_verb: :get, http_path: "features"
|
||||
custom_method :update_features, http_verb: :post, http_path: "features"
|
||||
|
||||
def retrieve_features(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: resource_url + "/features",
|
||||
path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -25,11 +22,31 @@ module Stripe
|
||||
def update_features(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/features",
|
||||
path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.retrieve_features(financial_account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:get,
|
||||
format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.update_features(financial_account, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -9,17 +9,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "treasury.inbound_transfer"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/treasury/inbound_transfers/%<inbound_transfer>s/cancel", { inbound_transfer: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(inbound_transfer, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/treasury/inbound_transfers/%<inbound_transfer>s/cancel", { inbound_transfer: CGI.escape(inbound_transfer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def test_helpers
|
||||
TestHelpers.new(self)
|
||||
end
|
||||
@ -27,14 +35,40 @@ module Stripe
|
||||
class TestHelpers < APIResourceTestHelpers
|
||||
RESOURCE_CLASS = InboundTransfer
|
||||
|
||||
custom_method :fail, http_verb: :post
|
||||
custom_method :return_inbound_transfer, http_verb: :post, http_path: "return"
|
||||
custom_method :succeed, http_verb: :post
|
||||
def self.fail(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.return_inbound_transfer(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.succeed(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def fail(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/fail",
|
||||
path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -43,7 +77,7 @@ module Stripe
|
||||
def return_inbound_transfer(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/return",
|
||||
path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -52,7 +86,7 @@ module Stripe
|
||||
def succeed(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/succeed",
|
||||
path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
|
@ -9,17 +9,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "treasury.outbound_payment"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/treasury/outbound_payments/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/treasury/outbound_payments/%<id>s/cancel", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def test_helpers
|
||||
TestHelpers.new(self)
|
||||
end
|
||||
@ -27,14 +35,40 @@ module Stripe
|
||||
class TestHelpers < APIResourceTestHelpers
|
||||
RESOURCE_CLASS = OutboundPayment
|
||||
|
||||
custom_method :fail, http_verb: :post
|
||||
custom_method :post, http_verb: :post
|
||||
custom_method :return_outbound_payment, http_verb: :post, http_path: "return"
|
||||
def self.fail(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.post(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.return_outbound_payment(id, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(id) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def fail(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/fail",
|
||||
path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -43,7 +77,7 @@ module Stripe
|
||||
def post(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/post",
|
||||
path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -52,7 +86,7 @@ module Stripe
|
||||
def return_outbound_payment(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/return",
|
||||
path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
|
@ -9,17 +9,25 @@ module Stripe
|
||||
|
||||
OBJECT_NAME = "treasury.outbound_transfer"
|
||||
|
||||
custom_method :cancel, http_verb: :post
|
||||
|
||||
def cancel(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/cancel",
|
||||
path: format("/v1/treasury/outbound_transfers/%<outbound_transfer>s/cancel", { outbound_transfer: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.cancel(outbound_transfer, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/treasury/outbound_transfers/%<outbound_transfer>s/cancel", { outbound_transfer: CGI.escape(outbound_transfer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def test_helpers
|
||||
TestHelpers.new(self)
|
||||
end
|
||||
@ -27,14 +35,44 @@ module Stripe
|
||||
class TestHelpers < APIResourceTestHelpers
|
||||
RESOURCE_CLASS = OutboundTransfer
|
||||
|
||||
custom_method :fail, http_verb: :post
|
||||
custom_method :post, http_verb: :post
|
||||
custom_method :return_outbound_transfer, http_verb: :post, http_path: "return"
|
||||
def self.fail(outbound_transfer, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/fail", { outbound_transfer: CGI.escape(outbound_transfer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.post(outbound_transfer, params = {}, opts = {})
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(outbound_transfer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def self.return_outbound_transfer(
|
||||
outbound_transfer,
|
||||
params = {},
|
||||
opts = {}
|
||||
)
|
||||
resp, opts = execute_resource_request(
|
||||
:post,
|
||||
format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/return", { outbound_transfer: CGI.escape(outbound_transfer) }),
|
||||
params,
|
||||
opts
|
||||
)
|
||||
Util.convert_to_stripe_object(resp.data, opts)
|
||||
end
|
||||
|
||||
def fail(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/fail",
|
||||
path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/fail", { outbound_transfer: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -43,7 +81,7 @@ module Stripe
|
||||
def post(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/post",
|
||||
path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -52,7 +90,7 @@ module Stripe
|
||||
def return_outbound_transfer(params = {}, opts = {})
|
||||
@resource.request_stripe_object(
|
||||
method: :post,
|
||||
path: resource_url + "/return",
|
||||
path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/return", { outbound_transfer: CGI.escape(@resource["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user