stripe 9.2.0.pre.beta.1 → 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 +342 -479
- data/OPENAPI_VERSION +1 -1
- data/README.md +0 -11
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +0 -2
- data/lib/stripe/api_version.rb +0 -1
- data/lib/stripe/object_types.rb +1 -17
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +0 -39
- data/lib/stripe/resources/issuing/card.rb +0 -18
- data/lib/stripe/resources/payment_method_domain.rb +34 -0
- data/lib/stripe/resources/quote.rb +0 -100
- data/lib/stripe/resources/subscription_schedule.rb +0 -18
- data/lib/stripe/resources/terminal/reader.rb +0 -54
- data/lib/stripe/resources.rb +1 -17
- data/lib/stripe/stripe_client.rb +26 -60
- data/lib/stripe/stripe_configuration.rb +0 -2
- data/lib/stripe/util.rb +1 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -46
- metadata +5 -22
- data/lib/stripe/request_signing_authenticator.rb +0 -83
- data/lib/stripe/resources/capital/financing_offer.rb +0 -32
- data/lib/stripe/resources/capital/financing_summary.rb +0 -12
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
- data/lib/stripe/resources/customer_session.rb +0 -12
- data/lib/stripe/resources/financial_connections/inferred_balance.rb +0 -13
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
- data/lib/stripe/resources/gift_cards/card.rb +0 -25
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
- data/lib/stripe/resources/issuing/card_bundle.rb +0 -13
- data/lib/stripe/resources/issuing/card_design.rb +0 -58
- data/lib/stripe/resources/order.rb +0 -89
- data/lib/stripe/resources/payment_method_configuration.rb +0 -13
- data/lib/stripe/resources/quote_phase.rb +0 -29
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
- data/lib/stripe/resources/quote_preview_schedule.rb +0 -10
- data/lib/stripe/resources/tax/form.rb +0 -39
- data/lib/stripe/resources/tax/registration.rb +0 -19
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v507
|
data/README.md
CHANGED
@@ -323,17 +323,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str
|
|
323
323
|
Stripe.api_version += "; feature_beta=v3"
|
324
324
|
```
|
325
325
|
|
326
|
-
### Custom requests
|
327
|
-
|
328
|
-
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `raw_request` method on `Stripe`.
|
329
|
-
|
330
|
-
```ruby
|
331
|
-
resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
|
332
|
-
|
333
|
-
# (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
|
334
|
-
deserialized_resp = Stripe.deserialize(resp.http_body)
|
335
|
-
```
|
336
|
-
|
337
326
|
## Support
|
338
327
|
|
339
328
|
New features and bug fixes are released on the latest major version of the Stripe Ruby library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
9.2.0
|
1
|
+
9.2.0
|
@@ -47,7 +47,6 @@ module Stripe
|
|
47
47
|
api_key = headers.delete(:api_key)
|
48
48
|
api_base = headers.delete(:api_base)
|
49
49
|
client = headers.delete(:client)
|
50
|
-
api_mode = headers.delete(:api_mode)
|
51
50
|
# Assume all remaining opts must be headers
|
52
51
|
|
53
52
|
resp, opts[:api_key] = client.send(
|
@@ -55,7 +54,6 @@ module Stripe
|
|
55
54
|
method, url,
|
56
55
|
api_base: api_base, api_key: api_key,
|
57
56
|
headers: headers, params: params,
|
58
|
-
api_mode: api_mode,
|
59
57
|
&read_body_chunk_block
|
60
58
|
)
|
61
59
|
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -25,9 +25,6 @@ module Stripe
|
|
25
25
|
BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
|
26
26
|
BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
|
27
27
|
Capability::OBJECT_NAME => Capability,
|
28
|
-
Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
|
29
|
-
Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
|
30
|
-
Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
|
31
28
|
Card::OBJECT_NAME => Card,
|
32
29
|
CashBalance::OBJECT_NAME => CashBalance,
|
33
30
|
Charge::OBJECT_NAME => Charge,
|
@@ -39,7 +36,6 @@ module Stripe
|
|
39
36
|
Customer::OBJECT_NAME => Customer,
|
40
37
|
CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
|
41
38
|
CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
|
42
|
-
CustomerSession::OBJECT_NAME => CustomerSession,
|
43
39
|
Discount::OBJECT_NAME => Discount,
|
44
40
|
Dispute::OBJECT_NAME => Dispute,
|
45
41
|
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
@@ -52,12 +48,8 @@ module Stripe
|
|
52
48
|
FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
|
53
49
|
FinancialConnections::AccountOwnership::OBJECT_NAME =>
|
54
50
|
FinancialConnections::AccountOwnership,
|
55
|
-
FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
|
56
51
|
FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
|
57
|
-
FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
|
58
52
|
FundingInstructions::OBJECT_NAME => FundingInstructions,
|
59
|
-
GiftCards::Card::OBJECT_NAME => GiftCards::Card,
|
60
|
-
GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
|
61
53
|
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
|
62
54
|
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
|
63
55
|
Invoice::OBJECT_NAME => Invoice,
|
@@ -65,19 +57,16 @@ module Stripe
|
|
65
57
|
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
|
66
58
|
Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
|
67
59
|
Issuing::Card::OBJECT_NAME => Issuing::Card,
|
68
|
-
Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
|
69
|
-
Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
|
70
60
|
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
|
71
61
|
Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
|
72
62
|
Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
|
73
63
|
LineItem::OBJECT_NAME => LineItem,
|
74
64
|
LoginLink::OBJECT_NAME => LoginLink,
|
75
65
|
Mandate::OBJECT_NAME => Mandate,
|
76
|
-
Order::OBJECT_NAME => Order,
|
77
66
|
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
78
67
|
PaymentLink::OBJECT_NAME => PaymentLink,
|
79
68
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
80
|
-
|
69
|
+
PaymentMethodDomain::OBJECT_NAME => PaymentMethodDomain,
|
81
70
|
Payout::OBJECT_NAME => Payout,
|
82
71
|
Person::OBJECT_NAME => Person,
|
83
72
|
Plan::OBJECT_NAME => Plan,
|
@@ -85,9 +74,6 @@ module Stripe
|
|
85
74
|
Product::OBJECT_NAME => Product,
|
86
75
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
87
76
|
Quote::OBJECT_NAME => Quote,
|
88
|
-
QuotePhase::OBJECT_NAME => QuotePhase,
|
89
|
-
QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
|
90
|
-
QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
|
91
77
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
92
78
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
93
79
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
@@ -107,8 +93,6 @@ module Stripe
|
|
107
93
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
108
94
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
109
95
|
Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
|
110
|
-
Tax::Form::OBJECT_NAME => Tax::Form,
|
111
|
-
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
112
96
|
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
113
97
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
114
98
|
Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
|
@@ -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
|
|
@@ -6,12 +6,9 @@ module Stripe
|
|
6
6
|
# A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
|
7
7
|
class Account < APIResource
|
8
8
|
extend Stripe::APIOperations::List
|
9
|
-
extend Stripe::APIOperations::NestedResource
|
10
9
|
|
11
10
|
OBJECT_NAME = "financial_connections.account"
|
12
11
|
|
13
|
-
nested_resource_class_methods :inferred_balance, operations: %i[list]
|
14
|
-
|
15
12
|
def disconnect(params = {}, opts = {})
|
16
13
|
request_stripe_object(
|
17
14
|
method: :post,
|
@@ -39,24 +36,6 @@ module Stripe
|
|
39
36
|
)
|
40
37
|
end
|
41
38
|
|
42
|
-
def subscribe(params = {}, opts = {})
|
43
|
-
request_stripe_object(
|
44
|
-
method: :post,
|
45
|
-
path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(self["id"]) }),
|
46
|
-
params: params,
|
47
|
-
opts: opts
|
48
|
-
)
|
49
|
-
end
|
50
|
-
|
51
|
-
def unsubscribe(params = {}, opts = {})
|
52
|
-
request_stripe_object(
|
53
|
-
method: :post,
|
54
|
-
path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(self["id"]) }),
|
55
|
-
params: params,
|
56
|
-
opts: opts
|
57
|
-
)
|
58
|
-
end
|
59
|
-
|
60
39
|
def self.disconnect(account, params = {}, opts = {})
|
61
40
|
request_stripe_object(
|
62
41
|
method: :post,
|
@@ -83,24 +62,6 @@ module Stripe
|
|
83
62
|
opts: opts
|
84
63
|
)
|
85
64
|
end
|
86
|
-
|
87
|
-
def self.subscribe(account, params = {}, opts = {})
|
88
|
-
request_stripe_object(
|
89
|
-
method: :post,
|
90
|
-
path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(account) }),
|
91
|
-
params: params,
|
92
|
-
opts: opts
|
93
|
-
)
|
94
|
-
end
|
95
|
-
|
96
|
-
def self.unsubscribe(account, params = {}, opts = {})
|
97
|
-
request_stripe_object(
|
98
|
-
method: :post,
|
99
|
-
path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(account) }),
|
100
|
-
params: params,
|
101
|
-
opts: opts
|
102
|
-
)
|
103
|
-
end
|
104
65
|
end
|
105
66
|
end
|
106
67
|
end
|
@@ -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
|
@@ -8,14 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::Create
|
9
9
|
extend Stripe::APIOperations::List
|
10
10
|
include Stripe::APIOperations::Save
|
11
|
-
extend Stripe::APIOperations::NestedResource
|
12
11
|
|
13
12
|
OBJECT_NAME = "quote"
|
14
13
|
|
15
|
-
nested_resource_class_methods :preview_invoice, operations: %i[list]
|
16
|
-
nested_resource_class_methods :preview_subscription_schedule,
|
17
|
-
operations: %i[list]
|
18
|
-
|
19
14
|
def accept(params = {}, opts = {})
|
20
15
|
request_stripe_object(
|
21
16
|
method: :post,
|
@@ -34,15 +29,6 @@ module Stripe
|
|
34
29
|
)
|
35
30
|
end
|
36
31
|
|
37
|
-
def draft_quote(params = {}, opts = {})
|
38
|
-
request_stripe_object(
|
39
|
-
method: :post,
|
40
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
|
41
|
-
params: params,
|
42
|
-
opts: opts
|
43
|
-
)
|
44
|
-
end
|
45
|
-
|
46
32
|
def finalize_quote(params = {}, opts = {})
|
47
33
|
request_stripe_object(
|
48
34
|
method: :post,
|
@@ -70,24 +56,6 @@ module Stripe
|
|
70
56
|
)
|
71
57
|
end
|
72
58
|
|
73
|
-
def list_lines(params = {}, opts = {})
|
74
|
-
request_stripe_object(
|
75
|
-
method: :get,
|
76
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
|
77
|
-
params: params,
|
78
|
-
opts: opts
|
79
|
-
)
|
80
|
-
end
|
81
|
-
|
82
|
-
def mark_stale_quote(params = {}, opts = {})
|
83
|
-
request_stripe_object(
|
84
|
-
method: :post,
|
85
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
|
86
|
-
params: params,
|
87
|
-
opts: opts
|
88
|
-
)
|
89
|
-
end
|
90
|
-
|
91
59
|
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
92
60
|
config = opts[:client]&.config || Stripe.config
|
93
61
|
opts = { api_base: config.uploads_base }.merge(opts)
|
@@ -100,24 +68,6 @@ module Stripe
|
|
100
68
|
)
|
101
69
|
end
|
102
70
|
|
103
|
-
def preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
104
|
-
request_stripe_object(
|
105
|
-
method: :get,
|
106
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
|
107
|
-
params: params,
|
108
|
-
opts: opts
|
109
|
-
)
|
110
|
-
end
|
111
|
-
|
112
|
-
def reestimate(params = {}, opts = {})
|
113
|
-
request_stripe_object(
|
114
|
-
method: :post,
|
115
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
|
116
|
-
params: params,
|
117
|
-
opts: opts
|
118
|
-
)
|
119
|
-
end
|
120
|
-
|
121
71
|
def self.accept(quote, params = {}, opts = {})
|
122
72
|
request_stripe_object(
|
123
73
|
method: :post,
|
@@ -136,15 +86,6 @@ module Stripe
|
|
136
86
|
)
|
137
87
|
end
|
138
88
|
|
139
|
-
def self.draft_quote(quote, params = {}, opts = {})
|
140
|
-
request_stripe_object(
|
141
|
-
method: :post,
|
142
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
143
|
-
params: params,
|
144
|
-
opts: opts
|
145
|
-
)
|
146
|
-
end
|
147
|
-
|
148
89
|
def self.finalize_quote(quote, params = {}, opts = {})
|
149
90
|
request_stripe_object(
|
150
91
|
method: :post,
|
@@ -172,24 +113,6 @@ module Stripe
|
|
172
113
|
)
|
173
114
|
end
|
174
115
|
|
175
|
-
def self.list_lines(quote, params = {}, opts = {})
|
176
|
-
request_stripe_object(
|
177
|
-
method: :get,
|
178
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
179
|
-
params: params,
|
180
|
-
opts: opts
|
181
|
-
)
|
182
|
-
end
|
183
|
-
|
184
|
-
def self.mark_stale_quote(quote, params = {}, opts = {})
|
185
|
-
request_stripe_object(
|
186
|
-
method: :post,
|
187
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
188
|
-
params: params,
|
189
|
-
opts: opts
|
190
|
-
)
|
191
|
-
end
|
192
|
-
|
193
116
|
def self.pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
|
194
117
|
config = opts[:client]&.config || Stripe.config
|
195
118
|
opts = { api_base: config.uploads_base }.merge(opts)
|
@@ -201,28 +124,5 @@ module Stripe
|
|
201
124
|
&read_body_chunk_block
|
202
125
|
)
|
203
126
|
end
|
204
|
-
|
205
|
-
def self.preview_invoice_lines(
|
206
|
-
quote,
|
207
|
-
preview_invoice,
|
208
|
-
params = {},
|
209
|
-
opts = {}
|
210
|
-
)
|
211
|
-
request_stripe_object(
|
212
|
-
method: :get,
|
213
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
214
|
-
params: params,
|
215
|
-
opts: opts
|
216
|
-
)
|
217
|
-
end
|
218
|
-
|
219
|
-
def self.reestimate(quote, params = {}, opts = {})
|
220
|
-
request_stripe_object(
|
221
|
-
method: :post,
|
222
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
223
|
-
params: params,
|
224
|
-
opts: opts
|
225
|
-
)
|
226
|
-
end
|
227
127
|
end
|
228
128
|
end
|
@@ -12,15 +12,6 @@ module Stripe
|
|
12
12
|
|
13
13
|
OBJECT_NAME = "subscription_schedule"
|
14
14
|
|
15
|
-
def amend(params = {}, opts = {})
|
16
|
-
request_stripe_object(
|
17
|
-
method: :post,
|
18
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
19
|
-
params: params,
|
20
|
-
opts: opts
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
15
|
def cancel(params = {}, opts = {})
|
25
16
|
request_stripe_object(
|
26
17
|
method: :post,
|
@@ -39,15 +30,6 @@ module Stripe
|
|
39
30
|
)
|
40
31
|
end
|
41
32
|
|
42
|
-
def self.amend(schedule, params = {}, opts = {})
|
43
|
-
request_stripe_object(
|
44
|
-
method: :post,
|
45
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
46
|
-
params: params,
|
47
|
-
opts: opts
|
48
|
-
)
|
49
|
-
end
|
50
|
-
|
51
33
|
def self.cancel(schedule, params = {}, opts = {})
|
52
34
|
request_stripe_object(
|
53
35
|
method: :post,
|
@@ -23,33 +23,6 @@ module Stripe
|
|
23
23
|
)
|
24
24
|
end
|
25
25
|
|
26
|
-
def collect_inputs(params = {}, opts = {})
|
27
|
-
request_stripe_object(
|
28
|
-
method: :post,
|
29
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
|
30
|
-
params: params,
|
31
|
-
opts: opts
|
32
|
-
)
|
33
|
-
end
|
34
|
-
|
35
|
-
def collect_payment_method(params = {}, opts = {})
|
36
|
-
request_stripe_object(
|
37
|
-
method: :post,
|
38
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(self["id"]) }),
|
39
|
-
params: params,
|
40
|
-
opts: opts
|
41
|
-
)
|
42
|
-
end
|
43
|
-
|
44
|
-
def confirm_payment_intent(params = {}, opts = {})
|
45
|
-
request_stripe_object(
|
46
|
-
method: :post,
|
47
|
-
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(self["id"]) }),
|
48
|
-
params: params,
|
49
|
-
opts: opts
|
50
|
-
)
|
51
|
-
end
|
52
|
-
|
53
26
|
def process_payment_intent(params = {}, opts = {})
|
54
27
|
request_stripe_object(
|
55
28
|
method: :post,
|
@@ -95,33 +68,6 @@ module Stripe
|
|
95
68
|
)
|
96
69
|
end
|
97
70
|
|
98
|
-
def self.collect_inputs(reader, params = {}, opts = {})
|
99
|
-
request_stripe_object(
|
100
|
-
method: :post,
|
101
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
|
102
|
-
params: params,
|
103
|
-
opts: opts
|
104
|
-
)
|
105
|
-
end
|
106
|
-
|
107
|
-
def self.collect_payment_method(reader, params = {}, opts = {})
|
108
|
-
request_stripe_object(
|
109
|
-
method: :post,
|
110
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
|
111
|
-
params: params,
|
112
|
-
opts: opts
|
113
|
-
)
|
114
|
-
end
|
115
|
-
|
116
|
-
def self.confirm_payment_intent(reader, params = {}, opts = {})
|
117
|
-
request_stripe_object(
|
118
|
-
method: :post,
|
119
|
-
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
|
120
|
-
params: params,
|
121
|
-
opts: opts
|
122
|
-
)
|
123
|
-
end
|
124
|
-
|
125
71
|
def self.process_payment_intent(reader, params = {}, opts = {})
|
126
72
|
request_stripe_object(
|
127
73
|
method: :post,
|
data/lib/stripe/resources.rb
CHANGED
@@ -14,9 +14,6 @@ require "stripe/resources/bank_account"
|
|
14
14
|
require "stripe/resources/billing_portal/configuration"
|
15
15
|
require "stripe/resources/billing_portal/session"
|
16
16
|
require "stripe/resources/capability"
|
17
|
-
require "stripe/resources/capital/financing_offer"
|
18
|
-
require "stripe/resources/capital/financing_summary"
|
19
|
-
require "stripe/resources/capital/financing_transaction"
|
20
17
|
require "stripe/resources/card"
|
21
18
|
require "stripe/resources/cash_balance"
|
22
19
|
require "stripe/resources/charge"
|
@@ -28,7 +25,6 @@ require "stripe/resources/credit_note_line_item"
|
|
28
25
|
require "stripe/resources/customer"
|
29
26
|
require "stripe/resources/customer_balance_transaction"
|
30
27
|
require "stripe/resources/customer_cash_balance_transaction"
|
31
|
-
require "stripe/resources/customer_session"
|
32
28
|
require "stripe/resources/discount"
|
33
29
|
require "stripe/resources/dispute"
|
34
30
|
require "stripe/resources/ephemeral_key"
|
@@ -39,12 +35,8 @@ require "stripe/resources/file_link"
|
|
39
35
|
require "stripe/resources/financial_connections/account"
|
40
36
|
require "stripe/resources/financial_connections/account_owner"
|
41
37
|
require "stripe/resources/financial_connections/account_ownership"
|
42
|
-
require "stripe/resources/financial_connections/inferred_balance"
|
43
38
|
require "stripe/resources/financial_connections/session"
|
44
|
-
require "stripe/resources/financial_connections/transaction"
|
45
39
|
require "stripe/resources/funding_instructions"
|
46
|
-
require "stripe/resources/gift_cards/card"
|
47
|
-
require "stripe/resources/gift_cards/transaction"
|
48
40
|
require "stripe/resources/identity/verification_report"
|
49
41
|
require "stripe/resources/identity/verification_session"
|
50
42
|
require "stripe/resources/invoice"
|
@@ -52,19 +44,16 @@ require "stripe/resources/invoice_item"
|
|
52
44
|
require "stripe/resources/invoice_line_item"
|
53
45
|
require "stripe/resources/issuing/authorization"
|
54
46
|
require "stripe/resources/issuing/card"
|
55
|
-
require "stripe/resources/issuing/card_bundle"
|
56
|
-
require "stripe/resources/issuing/card_design"
|
57
47
|
require "stripe/resources/issuing/cardholder"
|
58
48
|
require "stripe/resources/issuing/dispute"
|
59
49
|
require "stripe/resources/issuing/transaction"
|
60
50
|
require "stripe/resources/line_item"
|
61
51
|
require "stripe/resources/login_link"
|
62
52
|
require "stripe/resources/mandate"
|
63
|
-
require "stripe/resources/order"
|
64
53
|
require "stripe/resources/payment_intent"
|
65
54
|
require "stripe/resources/payment_link"
|
66
55
|
require "stripe/resources/payment_method"
|
67
|
-
require "stripe/resources/
|
56
|
+
require "stripe/resources/payment_method_domain"
|
68
57
|
require "stripe/resources/payout"
|
69
58
|
require "stripe/resources/person"
|
70
59
|
require "stripe/resources/plan"
|
@@ -72,9 +61,6 @@ require "stripe/resources/price"
|
|
72
61
|
require "stripe/resources/product"
|
73
62
|
require "stripe/resources/promotion_code"
|
74
63
|
require "stripe/resources/quote"
|
75
|
-
require "stripe/resources/quote_phase"
|
76
|
-
require "stripe/resources/quote_preview_invoice"
|
77
|
-
require "stripe/resources/quote_preview_schedule"
|
78
64
|
require "stripe/resources/radar/early_fraud_warning"
|
79
65
|
require "stripe/resources/radar/value_list"
|
80
66
|
require "stripe/resources/radar/value_list_item"
|
@@ -94,8 +80,6 @@ require "stripe/resources/subscription_item"
|
|
94
80
|
require "stripe/resources/subscription_schedule"
|
95
81
|
require "stripe/resources/tax/calculation"
|
96
82
|
require "stripe/resources/tax/calculation_line_item"
|
97
|
-
require "stripe/resources/tax/form"
|
98
|
-
require "stripe/resources/tax/registration"
|
99
83
|
require "stripe/resources/tax/settings"
|
100
84
|
require "stripe/resources/tax/transaction"
|
101
85
|
require "stripe/resources/tax/transaction_line_item"
|