mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-27 00:02:34 -04:00
Update generated code for v507
This commit is contained in:
parent
206c80733f
commit
2ebd8cc795
@ -1 +1 @@
|
||||
v503
|
||||
v507
|
||||
@ -78,6 +78,7 @@ module Stripe
|
||||
PaymentLink::OBJECT_NAME => PaymentLink,
|
||||
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
||||
PaymentMethodConfiguration::OBJECT_NAME => PaymentMethodConfiguration,
|
||||
PaymentMethodDomain::OBJECT_NAME => PaymentMethodDomain,
|
||||
Payout::OBJECT_NAME => Payout,
|
||||
Person::OBJECT_NAME => Person,
|
||||
Plan::OBJECT_NAME => Plan,
|
||||
|
||||
@ -65,6 +65,7 @@ require "stripe/resources/payment_intent"
|
||||
require "stripe/resources/payment_link"
|
||||
require "stripe/resources/payment_method"
|
||||
require "stripe/resources/payment_method_configuration"
|
||||
require "stripe/resources/payment_method_domain"
|
||||
require "stripe/resources/payout"
|
||||
require "stripe/resources/person"
|
||||
require "stripe/resources/plan"
|
||||
|
||||
34
lib/stripe/resources/payment_method_domain.rb
Normal file
34
lib/stripe/resources/payment_method_domain.rb
Normal file
@ -0,0 +1,34 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
# A payment method domain represents a web domain that you have registered with Stripe.
|
||||
# Stripe Elements use registered payment method domains to control where certain payment methods are shown.
|
||||
#
|
||||
# Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
|
||||
class PaymentMethodDomain < APIResource
|
||||
extend Stripe::APIOperations::Create
|
||||
extend Stripe::APIOperations::List
|
||||
include Stripe::APIOperations::Save
|
||||
|
||||
OBJECT_NAME = "payment_method_domain"
|
||||
|
||||
def validate(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/payment_method_domains/%<payment_method_domain>s/validate", { payment_method_domain: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.validate(payment_method_domain, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/payment_method_domains/%<payment_method_domain>s/validate", { payment_method_domain: CGI.escape(payment_method_domain) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user