stripe 9.2.0.pre.beta.1 → 9.3.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +325 -298
- 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/issuing/card.rb +0 -18
- 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
|
+
v515
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
9.
|
1
|
+
9.3.0-beta.1
|
data/lib/stripe/object_types.rb
CHANGED
@@ -78,6 +78,7 @@ module Stripe
|
|
78
78
|
PaymentLink::OBJECT_NAME => PaymentLink,
|
79
79
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
80
80
|
PaymentMethodConfiguration::OBJECT_NAME => PaymentMethodConfiguration,
|
81
|
+
PaymentMethodDomain::OBJECT_NAME => PaymentMethodDomain,
|
81
82
|
Payout::OBJECT_NAME => Payout,
|
82
83
|
Person::OBJECT_NAME => Person,
|
83
84
|
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
|
|
@@ -54,15 +54,6 @@ module Stripe
|
|
54
54
|
)
|
55
55
|
end
|
56
56
|
|
57
|
-
def self.submit_card(card, params = {}, opts = {})
|
58
|
-
request_stripe_object(
|
59
|
-
method: :post,
|
60
|
-
path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(card) }),
|
61
|
-
params: params,
|
62
|
-
opts: opts
|
63
|
-
)
|
64
|
-
end
|
65
|
-
|
66
57
|
def deliver_card(params = {}, opts = {})
|
67
58
|
@resource.request_stripe_object(
|
68
59
|
method: :post,
|
@@ -98,15 +89,6 @@ module Stripe
|
|
98
89
|
opts: opts
|
99
90
|
)
|
100
91
|
end
|
101
|
-
|
102
|
-
def submit_card(params = {}, opts = {})
|
103
|
-
@resource.request_stripe_object(
|
104
|
-
method: :post,
|
105
|
-
path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(@resource["id"]) }),
|
106
|
-
params: params,
|
107
|
-
opts: opts
|
108
|
-
)
|
109
|
-
end
|
110
92
|
end
|
111
93
|
end
|
112
94
|
end
|
@@ -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
@@ -65,6 +65,7 @@ require "stripe/resources/payment_intent"
|
|
65
65
|
require "stripe/resources/payment_link"
|
66
66
|
require "stripe/resources/payment_method"
|
67
67
|
require "stripe/resources/payment_method_configuration"
|
68
|
+
require "stripe/resources/payment_method_domain"
|
68
69
|
require "stripe/resources/payout"
|
69
70
|
require "stripe/resources/person"
|
70
71
|
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.3.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
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.
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/stripe/resources/payment_link.rb
|
118
118
|
- lib/stripe/resources/payment_method.rb
|
119
119
|
- lib/stripe/resources/payment_method_configuration.rb
|
120
|
+
- lib/stripe/resources/payment_method_domain.rb
|
120
121
|
- lib/stripe/resources/payout.rb
|
121
122
|
- lib/stripe/resources/person.rb
|
122
123
|
- lib/stripe/resources/plan.rb
|