stripe 9.1.0 → 9.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1238 -1233
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/payment_method_domain.rb +34 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- metadata +3 -2
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v507
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
9.
|
1
|
+
9.2.0
|
data/lib/stripe/object_types.rb
CHANGED
@@ -66,6 +66,7 @@ module Stripe
|
|
66
66
|
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
67
67
|
PaymentLink::OBJECT_NAME => PaymentLink,
|
68
68
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
69
|
+
PaymentMethodDomain::OBJECT_NAME => PaymentMethodDomain,
|
69
70
|
Payout::OBJECT_NAME => Payout,
|
70
71
|
Person::OBJECT_NAME => Person,
|
71
72
|
Plan::OBJECT_NAME => Plan,
|
@@ -5,7 +5,7 @@ module Stripe
|
|
5
5
|
# Account Links are the means by which a Connect platform grants a connected account permission to access
|
6
6
|
# Stripe-hosted applications, such as Connect Onboarding.
|
7
7
|
#
|
8
|
-
# Related guide: [Connect Onboarding](https://stripe.com/docs/connect/
|
8
|
+
# Related guide: [Connect Onboarding](https://stripe.com/docs/connect/custom/hosted-onboarding)
|
9
9
|
class AccountLink < APIResource
|
10
10
|
extend Stripe::APIOperations::Create
|
11
11
|
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# A payment method domain represents a web domain that you have registered with Stripe.
|
6
|
+
# Stripe Elements use registered payment method domains to control where certain payment methods are shown.
|
7
|
+
#
|
8
|
+
# Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
|
9
|
+
class PaymentMethodDomain < APIResource
|
10
|
+
extend Stripe::APIOperations::Create
|
11
|
+
extend Stripe::APIOperations::List
|
12
|
+
include Stripe::APIOperations::Save
|
13
|
+
|
14
|
+
OBJECT_NAME = "payment_method_domain"
|
15
|
+
|
16
|
+
def validate(params = {}, opts = {})
|
17
|
+
request_stripe_object(
|
18
|
+
method: :post,
|
19
|
+
path: format("/v1/payment_method_domains/%<payment_method_domain>s/validate", { payment_method_domain: CGI.escape(self["id"]) }),
|
20
|
+
params: params,
|
21
|
+
opts: opts
|
22
|
+
)
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.validate(payment_method_domain, params = {}, opts = {})
|
26
|
+
request_stripe_object(
|
27
|
+
method: :post,
|
28
|
+
path: format("/v1/payment_method_domains/%<payment_method_domain>s/validate", { payment_method_domain: CGI.escape(payment_method_domain) }),
|
29
|
+
params: params,
|
30
|
+
opts: opts
|
31
|
+
)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -53,6 +53,7 @@ require "stripe/resources/mandate"
|
|
53
53
|
require "stripe/resources/payment_intent"
|
54
54
|
require "stripe/resources/payment_link"
|
55
55
|
require "stripe/resources/payment_method"
|
56
|
+
require "stripe/resources/payment_method_domain"
|
56
57
|
require "stripe/resources/payout"
|
57
58
|
require "stripe/resources/person"
|
58
59
|
require "stripe/resources/plan"
|
data/lib/stripe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/stripe/resources/payment_intent.rb
|
105
105
|
- lib/stripe/resources/payment_link.rb
|
106
106
|
- lib/stripe/resources/payment_method.rb
|
107
|
+
- lib/stripe/resources/payment_method_domain.rb
|
107
108
|
- lib/stripe/resources/payout.rb
|
108
109
|
- lib/stripe/resources/person.rb
|
109
110
|
- lib/stripe/resources/plan.rb
|