stripe 9.0.0.pre.beta.1 → 9.1.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 +944 -1082
- 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 +0 -17
- data/lib/stripe/resources/financial_connections/account.rb +0 -39
- data/lib/stripe/resources/issuing/card.rb +0 -18
- data/lib/stripe/resources/quote.rb +0 -131
- data/lib/stripe/resources/subscription_schedule.rb +0 -18
- data/lib/stripe/resources/terminal/reader.rb +0 -54
- data/lib/stripe/resources.rb +0 -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 +4 -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 -40
- data/lib/stripe/resources/quote_preview_schedule.rb +0 -8
- 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
|
+
v495
|
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.
|
1
|
+
9.1.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,15 @@ 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
|
-
PaymentMethodConfiguration::OBJECT_NAME => PaymentMethodConfiguration,
|
81
69
|
Payout::OBJECT_NAME => Payout,
|
82
70
|
Person::OBJECT_NAME => Person,
|
83
71
|
Plan::OBJECT_NAME => Plan,
|
@@ -85,9 +73,6 @@ module Stripe
|
|
85
73
|
Product::OBJECT_NAME => Product,
|
86
74
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
87
75
|
Quote::OBJECT_NAME => Quote,
|
88
|
-
QuotePhase::OBJECT_NAME => QuotePhase,
|
89
|
-
QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
|
90
|
-
QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
|
91
76
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
92
77
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
93
78
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
@@ -107,8 +92,6 @@ module Stripe
|
|
107
92
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
108
93
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
109
94
|
Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
|
110
|
-
Tax::Form::OBJECT_NAME => Tax::Form,
|
111
|
-
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
112
95
|
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
113
96
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
114
97
|
Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
|
@@ -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
|
@@ -29,15 +29,6 @@ module Stripe
|
|
29
29
|
)
|
30
30
|
end
|
31
31
|
|
32
|
-
def draft_quote(params = {}, opts = {})
|
33
|
-
request_stripe_object(
|
34
|
-
method: :post,
|
35
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
|
36
|
-
params: params,
|
37
|
-
opts: opts
|
38
|
-
)
|
39
|
-
end
|
40
|
-
|
41
32
|
def finalize_quote(params = {}, opts = {})
|
42
33
|
request_stripe_object(
|
43
34
|
method: :post,
|
@@ -65,24 +56,6 @@ module Stripe
|
|
65
56
|
)
|
66
57
|
end
|
67
58
|
|
68
|
-
def list_lines(params = {}, opts = {})
|
69
|
-
request_stripe_object(
|
70
|
-
method: :get,
|
71
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
|
72
|
-
params: params,
|
73
|
-
opts: opts
|
74
|
-
)
|
75
|
-
end
|
76
|
-
|
77
|
-
def mark_stale_quote(params = {}, opts = {})
|
78
|
-
request_stripe_object(
|
79
|
-
method: :post,
|
80
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
|
81
|
-
params: params,
|
82
|
-
opts: opts
|
83
|
-
)
|
84
|
-
end
|
85
|
-
|
86
59
|
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
87
60
|
config = opts[:client]&.config || Stripe.config
|
88
61
|
opts = { api_base: config.uploads_base }.merge(opts)
|
@@ -95,42 +68,6 @@ module Stripe
|
|
95
68
|
)
|
96
69
|
end
|
97
70
|
|
98
|
-
def preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
99
|
-
request_stripe_object(
|
100
|
-
method: :get,
|
101
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
|
102
|
-
params: params,
|
103
|
-
opts: opts
|
104
|
-
)
|
105
|
-
end
|
106
|
-
|
107
|
-
def preview_invoices(params = {}, opts = {})
|
108
|
-
request_stripe_object(
|
109
|
-
method: :get,
|
110
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(self["id"]) }),
|
111
|
-
params: params,
|
112
|
-
opts: opts
|
113
|
-
)
|
114
|
-
end
|
115
|
-
|
116
|
-
def preview_subscription_schedules(params = {}, opts = {})
|
117
|
-
request_stripe_object(
|
118
|
-
method: :get,
|
119
|
-
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(self["id"]) }),
|
120
|
-
params: params,
|
121
|
-
opts: opts
|
122
|
-
)
|
123
|
-
end
|
124
|
-
|
125
|
-
def reestimate(params = {}, opts = {})
|
126
|
-
request_stripe_object(
|
127
|
-
method: :post,
|
128
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
|
129
|
-
params: params,
|
130
|
-
opts: opts
|
131
|
-
)
|
132
|
-
end
|
133
|
-
|
134
71
|
def self.accept(quote, params = {}, opts = {})
|
135
72
|
request_stripe_object(
|
136
73
|
method: :post,
|
@@ -149,15 +86,6 @@ module Stripe
|
|
149
86
|
)
|
150
87
|
end
|
151
88
|
|
152
|
-
def self.draft_quote(quote, params = {}, opts = {})
|
153
|
-
request_stripe_object(
|
154
|
-
method: :post,
|
155
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
156
|
-
params: params,
|
157
|
-
opts: opts
|
158
|
-
)
|
159
|
-
end
|
160
|
-
|
161
89
|
def self.finalize_quote(quote, params = {}, opts = {})
|
162
90
|
request_stripe_object(
|
163
91
|
method: :post,
|
@@ -185,24 +113,6 @@ module Stripe
|
|
185
113
|
)
|
186
114
|
end
|
187
115
|
|
188
|
-
def self.list_lines(quote, params = {}, opts = {})
|
189
|
-
request_stripe_object(
|
190
|
-
method: :get,
|
191
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
192
|
-
params: params,
|
193
|
-
opts: opts
|
194
|
-
)
|
195
|
-
end
|
196
|
-
|
197
|
-
def self.mark_stale_quote(quote, params = {}, opts = {})
|
198
|
-
request_stripe_object(
|
199
|
-
method: :post,
|
200
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
201
|
-
params: params,
|
202
|
-
opts: opts
|
203
|
-
)
|
204
|
-
end
|
205
|
-
|
206
116
|
def self.pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
|
207
117
|
config = opts[:client]&.config || Stripe.config
|
208
118
|
opts = { api_base: config.uploads_base }.merge(opts)
|
@@ -214,46 +124,5 @@ module Stripe
|
|
214
124
|
&read_body_chunk_block
|
215
125
|
)
|
216
126
|
end
|
217
|
-
|
218
|
-
def self.preview_invoice_lines(
|
219
|
-
quote,
|
220
|
-
preview_invoice,
|
221
|
-
params = {},
|
222
|
-
opts = {}
|
223
|
-
)
|
224
|
-
request_stripe_object(
|
225
|
-
method: :get,
|
226
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
227
|
-
params: params,
|
228
|
-
opts: opts
|
229
|
-
)
|
230
|
-
end
|
231
|
-
|
232
|
-
def self.preview_invoices(quote, params = {}, opts = {})
|
233
|
-
request_stripe_object(
|
234
|
-
method: :get,
|
235
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
|
236
|
-
params: params,
|
237
|
-
opts: opts
|
238
|
-
)
|
239
|
-
end
|
240
|
-
|
241
|
-
def self.preview_subscription_schedules(quote, params = {}, opts = {})
|
242
|
-
request_stripe_object(
|
243
|
-
method: :get,
|
244
|
-
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
|
245
|
-
params: params,
|
246
|
-
opts: opts
|
247
|
-
)
|
248
|
-
end
|
249
|
-
|
250
|
-
def self.reestimate(quote, params = {}, opts = {})
|
251
|
-
request_stripe_object(
|
252
|
-
method: :post,
|
253
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
254
|
-
params: params,
|
255
|
-
opts: opts
|
256
|
-
)
|
257
|
-
end
|
258
127
|
end
|
259
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,15 @@ 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/payment_method_configuration"
|
68
56
|
require "stripe/resources/payout"
|
69
57
|
require "stripe/resources/person"
|
70
58
|
require "stripe/resources/plan"
|
@@ -72,9 +60,6 @@ require "stripe/resources/price"
|
|
72
60
|
require "stripe/resources/product"
|
73
61
|
require "stripe/resources/promotion_code"
|
74
62
|
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
63
|
require "stripe/resources/radar/early_fraud_warning"
|
79
64
|
require "stripe/resources/radar/value_list"
|
80
65
|
require "stripe/resources/radar/value_list_item"
|
@@ -94,8 +79,6 @@ require "stripe/resources/subscription_item"
|
|
94
79
|
require "stripe/resources/subscription_schedule"
|
95
80
|
require "stripe/resources/tax/calculation"
|
96
81
|
require "stripe/resources/tax/calculation_line_item"
|
97
|
-
require "stripe/resources/tax/form"
|
98
|
-
require "stripe/resources/tax/registration"
|
99
82
|
require "stripe/resources/tax/settings"
|
100
83
|
require "stripe/resources/tax/transaction"
|
101
84
|
require "stripe/resources/tax/transaction_line_item"
|