stripe 5.55.0 → 8.3.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 +122 -2
- data/Gemfile +1 -0
- data/Makefile +1 -1
- data/OPENAPI_VERSION +1 -0
- data/README.md +37 -3
- data/VERSION +1 -1
- data/lib/data/ca-certificates.crt +1241 -1937
- data/lib/stripe/api_operations/create.rb +6 -2
- data/lib/stripe/api_operations/delete.rb +12 -7
- data/lib/stripe/api_operations/list.rb +6 -9
- data/lib/stripe/api_operations/nested_resource.rb +62 -34
- data/lib/stripe/api_operations/request.rb +10 -0
- data/lib/stripe/api_operations/save.rb +11 -3
- data/lib/stripe/api_operations/search.rb +6 -9
- data/lib/stripe/api_resource.rb +1 -1
- data/lib/stripe/api_resource_test_helpers.rb +2 -0
- data/lib/stripe/api_version.rb +8 -0
- data/lib/stripe/instrumentation.rb +45 -7
- data/lib/stripe/object_types.rb +12 -10
- data/lib/stripe/resources/account.rb +36 -9
- data/lib/stripe/resources/account_link.rb +4 -0
- data/lib/stripe/resources/application_fee_refund.rb +5 -0
- data/lib/stripe/resources/apps/secret.rb +40 -0
- data/lib/stripe/resources/balance.rb +11 -0
- data/lib/stripe/resources/balance_transaction.rb +4 -0
- data/lib/stripe/resources/bank_account.rb +7 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +1 -0
- data/lib/stripe/resources/billing_portal/session.rb +14 -0
- data/lib/stripe/resources/capability.rb +3 -0
- data/lib/stripe/resources/card.rb +6 -3
- data/lib/stripe/resources/cash_balance.rb +1 -0
- data/lib/stripe/resources/charge.rb +15 -3
- data/lib/stripe/resources/checkout/session.rb +41 -5
- data/lib/stripe/resources/country_spec.rb +6 -0
- data/lib/stripe/resources/coupon.rb +3 -0
- data/lib/stripe/resources/credit_note.rb +27 -9
- data/lib/stripe/resources/customer.rb +109 -19
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +14 -0
- data/lib/stripe/resources/discount.rb +4 -0
- data/lib/stripe/resources/dispute.rb +17 -3
- data/lib/stripe/resources/event.rb +29 -0
- data/lib/stripe/resources/exchange_rate.rb +11 -0
- data/lib/stripe/resources/file.rb +7 -0
- data/lib/stripe/resources/file_link.rb +3 -0
- data/lib/stripe/resources/financial_connections/account.rb +42 -6
- data/lib/stripe/resources/financial_connections/account_ownership.rb +1 -0
- data/lib/stripe/resources/financial_connections/session.rb +1 -0
- data/lib/stripe/resources/funding_instructions.rb +5 -0
- data/lib/stripe/resources/identity/verification_report.rb +11 -0
- data/lib/stripe/resources/identity/verification_session.rb +31 -5
- data/lib/stripe/resources/invoice.rb +96 -17
- data/lib/stripe/resources/invoice_item.rb +11 -0
- data/lib/stripe/resources/issuing/authorization.rb +25 -5
- data/lib/stripe/resources/issuing/card.rb +78 -8
- data/lib/stripe/resources/issuing/cardholder.rb +3 -0
- data/lib/stripe/resources/issuing/dispute.rb +13 -3
- data/lib/stripe/resources/issuing/transaction.rb +5 -0
- data/lib/stripe/resources/line_item.rb +1 -0
- data/lib/stripe/resources/mandate.rb +1 -0
- data/lib/stripe/resources/payment_intent.rb +71 -13
- data/lib/stripe/resources/payment_link.rb +15 -3
- data/lib/stripe/resources/payment_method.rb +25 -5
- data/lib/stripe/resources/payout.rb +28 -5
- data/lib/stripe/resources/person.rb +6 -0
- data/lib/stripe/resources/plan.rb +8 -0
- data/lib/stripe/resources/price.rb +6 -0
- data/lib/stripe/resources/product.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +52 -11
- data/lib/stripe/resources/radar/early_fraud_warning.rb +4 -0
- data/lib/stripe/resources/radar/value_list.rb +3 -0
- data/lib/stripe/resources/radar/value_list_item.rb +3 -0
- data/lib/stripe/resources/refund.rb +24 -5
- data/lib/stripe/resources/reporting/report_run.rb +8 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -1
- data/lib/stripe/resources/reversal.rb +13 -0
- data/lib/stripe/resources/review.rb +14 -3
- data/lib/stripe/resources/setup_attempt.rb +4 -0
- data/lib/stripe/resources/setup_intent.rb +52 -7
- data/lib/stripe/resources/shipping_rate.rb +3 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +4 -0
- data/lib/stripe/resources/source.rb +26 -6
- data/lib/stripe/resources/source_transaction.rb +4 -0
- data/lib/stripe/resources/subscription.rb +48 -3
- data/lib/stripe/resources/subscription_item.rb +2 -7
- data/lib/stripe/resources/subscription_schedule.rb +23 -5
- data/lib/stripe/resources/tax_code.rb +1 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/tax_rate.rb +3 -0
- data/lib/stripe/resources/terminal/configuration.rb +1 -0
- data/lib/stripe/resources/terminal/connection_token.rb +3 -0
- data/lib/stripe/resources/terminal/location.rb +3 -0
- data/lib/stripe/resources/terminal/reader.rb +70 -11
- data/lib/stripe/resources/test_helpers/test_clock.rb +13 -3
- data/lib/stripe/resources/token.rb +22 -0
- data/lib/stripe/resources/topup.rb +15 -3
- data/lib/stripe/resources/transfer.rb +10 -11
- data/lib/stripe/resources/treasury/credit_reversal.rb +14 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +14 -0
- data/lib/stripe/resources/treasury/financial_account.rb +52 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +94 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +96 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +100 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +30 -0
- data/lib/stripe/resources/treasury/transaction.rb +13 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +17 -0
- data/lib/stripe/resources/usage_record.rb +4 -0
- data/lib/stripe/resources/webhook_endpoint.rb +7 -0
- data/lib/stripe/resources.rb +12 -10
- data/lib/stripe/stripe_client.rb +25 -17
- data/lib/stripe/stripe_object.rb +2 -2
- data/lib/stripe/util.rb +38 -3
- data/lib/stripe/version.rb +1 -1
- metadata +17 -11
- data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
- data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
- data/lib/stripe/resources/issuing/card_details.rb +0 -10
- data/lib/stripe/resources/order.rb +0 -33
- data/lib/stripe/resources/order_return.rb +0 -10
- data/lib/stripe/resources/recipient.rb +0 -14
- data/lib/stripe/resources/sku.rb +0 -13
- data/lib/stripe/resources/three_d_secure.rb +0 -14
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:
|
4
|
+
version: 8.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-16 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.
|
@@ -25,6 +25,7 @@ files:
|
|
25
25
|
- History.txt
|
26
26
|
- LICENSE
|
27
27
|
- Makefile
|
28
|
+
- OPENAPI_VERSION
|
28
29
|
- README.md
|
29
30
|
- Rakefile
|
30
31
|
- VERSION
|
@@ -40,6 +41,7 @@ files:
|
|
40
41
|
- lib/stripe/api_operations/search.rb
|
41
42
|
- lib/stripe/api_resource.rb
|
42
43
|
- lib/stripe/api_resource_test_helpers.rb
|
44
|
+
- lib/stripe/api_version.rb
|
43
45
|
- lib/stripe/connection_manager.rb
|
44
46
|
- lib/stripe/error_object.rb
|
45
47
|
- lib/stripe/errors.rb
|
@@ -55,13 +57,12 @@ files:
|
|
55
57
|
- lib/stripe/resources/apple_pay_domain.rb
|
56
58
|
- lib/stripe/resources/application_fee.rb
|
57
59
|
- lib/stripe/resources/application_fee_refund.rb
|
60
|
+
- lib/stripe/resources/apps/secret.rb
|
58
61
|
- lib/stripe/resources/balance.rb
|
59
62
|
- lib/stripe/resources/balance_transaction.rb
|
60
63
|
- lib/stripe/resources/bank_account.rb
|
61
64
|
- lib/stripe/resources/billing_portal/configuration.rb
|
62
65
|
- lib/stripe/resources/billing_portal/session.rb
|
63
|
-
- lib/stripe/resources/bitcoin_receiver.rb
|
64
|
-
- lib/stripe/resources/bitcoin_transaction.rb
|
65
66
|
- lib/stripe/resources/capability.rb
|
66
67
|
- lib/stripe/resources/card.rb
|
67
68
|
- lib/stripe/resources/cash_balance.rb
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- lib/stripe/resources/credit_note_line_item.rb
|
74
75
|
- lib/stripe/resources/customer.rb
|
75
76
|
- lib/stripe/resources/customer_balance_transaction.rb
|
77
|
+
- lib/stripe/resources/customer_cash_balance_transaction.rb
|
76
78
|
- lib/stripe/resources/discount.rb
|
77
79
|
- lib/stripe/resources/dispute.rb
|
78
80
|
- lib/stripe/resources/ephemeral_key.rb
|
@@ -92,15 +94,12 @@ files:
|
|
92
94
|
- lib/stripe/resources/invoice_line_item.rb
|
93
95
|
- lib/stripe/resources/issuing/authorization.rb
|
94
96
|
- lib/stripe/resources/issuing/card.rb
|
95
|
-
- lib/stripe/resources/issuing/card_details.rb
|
96
97
|
- lib/stripe/resources/issuing/cardholder.rb
|
97
98
|
- lib/stripe/resources/issuing/dispute.rb
|
98
99
|
- lib/stripe/resources/issuing/transaction.rb
|
99
100
|
- lib/stripe/resources/line_item.rb
|
100
101
|
- lib/stripe/resources/login_link.rb
|
101
102
|
- lib/stripe/resources/mandate.rb
|
102
|
-
- lib/stripe/resources/order.rb
|
103
|
-
- lib/stripe/resources/order_return.rb
|
104
103
|
- lib/stripe/resources/payment_intent.rb
|
105
104
|
- lib/stripe/resources/payment_link.rb
|
106
105
|
- lib/stripe/resources/payment_method.rb
|
@@ -114,7 +113,6 @@ files:
|
|
114
113
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
115
114
|
- lib/stripe/resources/radar/value_list.rb
|
116
115
|
- lib/stripe/resources/radar/value_list_item.rb
|
117
|
-
- lib/stripe/resources/recipient.rb
|
118
116
|
- lib/stripe/resources/recipient_transfer.rb
|
119
117
|
- lib/stripe/resources/refund.rb
|
120
118
|
- lib/stripe/resources/reporting/report_run.rb
|
@@ -125,7 +123,6 @@ files:
|
|
125
123
|
- lib/stripe/resources/setup_intent.rb
|
126
124
|
- lib/stripe/resources/shipping_rate.rb
|
127
125
|
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
128
|
-
- lib/stripe/resources/sku.rb
|
129
126
|
- lib/stripe/resources/source.rb
|
130
127
|
- lib/stripe/resources/source_transaction.rb
|
131
128
|
- lib/stripe/resources/subscription.rb
|
@@ -139,10 +136,19 @@ files:
|
|
139
136
|
- lib/stripe/resources/terminal/location.rb
|
140
137
|
- lib/stripe/resources/terminal/reader.rb
|
141
138
|
- lib/stripe/resources/test_helpers/test_clock.rb
|
142
|
-
- lib/stripe/resources/three_d_secure.rb
|
143
139
|
- lib/stripe/resources/token.rb
|
144
140
|
- lib/stripe/resources/topup.rb
|
145
141
|
- lib/stripe/resources/transfer.rb
|
142
|
+
- lib/stripe/resources/treasury/credit_reversal.rb
|
143
|
+
- lib/stripe/resources/treasury/debit_reversal.rb
|
144
|
+
- lib/stripe/resources/treasury/financial_account.rb
|
145
|
+
- lib/stripe/resources/treasury/inbound_transfer.rb
|
146
|
+
- lib/stripe/resources/treasury/outbound_payment.rb
|
147
|
+
- lib/stripe/resources/treasury/outbound_transfer.rb
|
148
|
+
- lib/stripe/resources/treasury/received_credit.rb
|
149
|
+
- lib/stripe/resources/treasury/received_debit.rb
|
150
|
+
- lib/stripe/resources/treasury/transaction.rb
|
151
|
+
- lib/stripe/resources/treasury/transaction_entry.rb
|
146
152
|
- lib/stripe/resources/usage_record.rb
|
147
153
|
- lib/stripe/resources/usage_record_summary.rb
|
148
154
|
- lib/stripe/resources/webhook_endpoint.rb
|
@@ -181,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
187
|
- !ruby/object:Gem::Version
|
182
188
|
version: '0'
|
183
189
|
requirements: []
|
184
|
-
rubygems_version: 3.3.
|
190
|
+
rubygems_version: 3.3.26
|
185
191
|
signing_key:
|
186
192
|
specification_version: 4
|
187
193
|
summary: Ruby bindings for the Stripe API
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# Directly creating or retrieving BitcoinReceivers is deprecated. Please use
|
6
|
-
# the Sources API instead: https://stripe.com/docs/sources/bitcoin
|
7
|
-
class BitcoinReceiver < APIResource
|
8
|
-
extend Stripe::APIOperations::List
|
9
|
-
|
10
|
-
OBJECT_NAME = "bitcoin_receiver"
|
11
|
-
|
12
|
-
def self.resource_url
|
13
|
-
"/v1/bitcoin/receivers"
|
14
|
-
end
|
15
|
-
|
16
|
-
def resource_url
|
17
|
-
if respond_to?(:customer) && !customer.nil? && customer != ""
|
18
|
-
"#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
19
|
-
else
|
20
|
-
"#{self.class.resource_url}/#{CGI.escape(id)}"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# Directly retrieving BitcoinTransactions is deprecated. Please use
|
6
|
-
# the Sources API instead: https://stripe.com/docs/sources/bitcoin
|
7
|
-
class BitcoinTransaction < APIResource
|
8
|
-
extend Stripe::APIOperations::List
|
9
|
-
|
10
|
-
OBJECT_NAME = "bitcoin_transaction"
|
11
|
-
|
12
|
-
def self.resource_url
|
13
|
-
"/v1/bitcoin/transactions"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class Order < APIResource
|
6
|
-
extend Stripe::APIOperations::Create
|
7
|
-
extend Stripe::APIOperations::List
|
8
|
-
include Stripe::APIOperations::Save
|
9
|
-
|
10
|
-
OBJECT_NAME = "order"
|
11
|
-
|
12
|
-
custom_method :pay, http_verb: :post
|
13
|
-
custom_method :return_order, http_verb: :post, http_path: "returns"
|
14
|
-
|
15
|
-
def pay(params = {}, opts = {})
|
16
|
-
request_stripe_object(
|
17
|
-
method: :post,
|
18
|
-
path: resource_url + "/pay",
|
19
|
-
params: params,
|
20
|
-
opts: opts
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
def return_order(params = {}, opts = {})
|
25
|
-
request_stripe_object(
|
26
|
-
method: :post,
|
27
|
-
path: resource_url + "/returns",
|
28
|
-
params: params,
|
29
|
-
opts: opts
|
30
|
-
)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# Recipients objects are deprecated. Please use Stripe Connect instead.
|
6
|
-
class Recipient < APIResource
|
7
|
-
extend Stripe::APIOperations::Create
|
8
|
-
include Stripe::APIOperations::Delete
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
include Stripe::APIOperations::Save
|
11
|
-
|
12
|
-
OBJECT_NAME = "recipient"
|
13
|
-
end
|
14
|
-
end
|
data/lib/stripe/resources/sku.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class SKU < APIResource
|
6
|
-
extend Stripe::APIOperations::Create
|
7
|
-
include Stripe::APIOperations::Delete
|
8
|
-
extend Stripe::APIOperations::List
|
9
|
-
include Stripe::APIOperations::Save
|
10
|
-
|
11
|
-
OBJECT_NAME = "sku"
|
12
|
-
end
|
13
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class ThreeDSecure < APIResource
|
6
|
-
extend Stripe::APIOperations::Create
|
7
|
-
|
8
|
-
OBJECT_NAME = "three_d_secure"
|
9
|
-
|
10
|
-
def self.resource_url
|
11
|
-
"/v1/3d_secure"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|