stripe 10.1.0 → 12.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +215 -21
- data/Gemfile +6 -5
- data/Makefile +8 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +46 -14
- data/Rakefile +7 -5
- data/VERSION +1 -1
- data/{bin → exe}/stripe-console +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +22 -2
- data/lib/stripe/api_operations/request.rb +22 -18
- data/lib/stripe/api_operations/save.rb +7 -9
- data/lib/stripe/api_operations/search.rb +5 -0
- data/lib/stripe/api_operations/singleton_save.rb +86 -0
- data/lib/stripe/api_resource.rb +13 -4
- data/lib/stripe/api_resource_test_helpers.rb +7 -3
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +4 -6
- data/lib/stripe/errors.rb +3 -11
- data/lib/stripe/instrumentation.rb +5 -21
- data/lib/stripe/list_object.rb +3 -0
- data/lib/stripe/multipart_encoder.rb +7 -7
- data/lib/stripe/oauth.rb +6 -6
- data/lib/stripe/object_types.rb +135 -116
- data/lib/stripe/resources/account.rb +103 -25
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_session.rb +8 -0
- data/lib/stripe/resources/alipay_account.rb +1 -1
- data/lib/stripe/resources/apple_pay_domain.rb +43 -0
- data/lib/stripe/resources/application_fee.rb +8 -0
- data/lib/stripe/resources/application_fee_refund.rb +4 -2
- data/lib/stripe/resources/apps/secret.rb +15 -0
- data/lib/stripe/resources/balance.rb +3 -0
- data/lib/stripe/resources/balance_transaction.rb +15 -0
- data/lib/stripe/resources/bank_account.rb +49 -7
- data/lib/stripe/resources/billing/alert.rb +87 -0
- data/lib/stripe/resources/billing/meter.rb +83 -0
- data/lib/stripe/resources/billing/meter_event.rb +27 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +26 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +33 -0
- data/lib/stripe/resources/billing_portal/session.rb +14 -1
- data/lib/stripe/resources/capability.rb +4 -2
- data/lib/stripe/resources/card.rb +28 -0
- data/lib/stripe/resources/cash_balance.rb +3 -0
- data/lib/stripe/resources/charge.rb +39 -1
- data/lib/stripe/resources/checkout/session.rb +47 -5
- data/lib/stripe/resources/climate/order.rb +67 -0
- data/lib/stripe/resources/climate/product.rb +27 -0
- data/lib/stripe/resources/climate/supplier.rb +26 -0
- data/lib/stripe/resources/confirmation_token.rb +39 -0
- data/lib/stripe/resources/country_spec.rb +8 -0
- data/lib/stripe/resources/coupon.rb +45 -0
- data/lib/stripe/resources/credit_note.rb +47 -7
- data/lib/stripe/resources/credit_note_line_item.rb +3 -0
- data/lib/stripe/resources/customer.rb +89 -26
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -1
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +3 -2
- data/lib/stripe/resources/customer_session.rb +29 -0
- data/lib/stripe/resources/discount.rb +3 -0
- data/lib/stripe/resources/dispute.rb +26 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +26 -0
- data/lib/stripe/resources/entitlements/feature.rb +49 -0
- data/lib/stripe/resources/ephemeral_key.rb +23 -0
- data/lib/stripe/resources/event.rb +11 -3
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +29 -16
- data/lib/stripe/resources/file_link.rb +23 -0
- data/lib/stripe/resources/financial_connections/account.rb +66 -7
- data/lib/stripe/resources/financial_connections/account_owner.rb +3 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +3 -0
- data/lib/stripe/resources/financial_connections/session.rb +13 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +26 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +3 -0
- data/lib/stripe/resources/identity/verification_report.rb +14 -1
- data/lib/stripe/resources/identity/verification_session.rb +90 -4
- data/lib/stripe/resources/invoice.rb +170 -17
- data/lib/stripe/resources/invoice_item.rb +43 -0
- data/lib/stripe/resources/invoice_line_item.rb +21 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +63 -0
- data/lib/stripe/resources/issuing/authorization.rb +88 -14
- data/lib/stripe/resources/issuing/card.rb +50 -16
- data/lib/stripe/resources/issuing/cardholder.rb +33 -0
- data/lib/stripe/resources/issuing/dispute.rb +35 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +119 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +26 -0
- data/lib/stripe/resources/issuing/token.rb +18 -0
- data/lib/stripe/resources/issuing/transaction.rb +30 -0
- data/lib/stripe/resources/line_item.rb +3 -0
- data/lib/stripe/resources/login_link.rb +4 -1
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +190 -25
- data/lib/stripe/resources/payment_link.rb +25 -0
- data/lib/stripe/resources/payment_method.rb +57 -4
- data/lib/stripe/resources/payment_method_configuration.rb +33 -0
- data/lib/stripe/resources/payment_method_domain.rb +46 -1
- data/lib/stripe/resources/payout.rb +39 -4
- data/lib/stripe/resources/person.rb +5 -4
- data/lib/stripe/resources/plan.rb +43 -0
- data/lib/stripe/resources/price.rb +24 -1
- data/lib/stripe/resources/product.rb +47 -1
- data/lib/stripe/resources/product_feature.rb +13 -0
- data/lib/stripe/resources/promotion_code.rb +23 -0
- data/lib/stripe/resources/quote.rb +67 -32
- data/lib/stripe/resources/radar/early_fraud_warning.rb +13 -0
- data/lib/stripe/resources/radar/value_list.rb +53 -0
- data/lib/stripe/resources/radar/value_list_item.rb +43 -0
- data/lib/stripe/resources/refund.rb +46 -0
- data/lib/stripe/resources/reporting/report_run.rb +23 -0
- data/lib/stripe/resources/reporting/report_type.rb +13 -0
- data/lib/stripe/resources/reversal.rb +5 -3
- data/lib/stripe/resources/review.rb +10 -0
- data/lib/stripe/resources/setup_attempt.rb +8 -0
- data/lib/stripe/resources/setup_intent.rb +72 -10
- data/lib/stripe/resources/shipping_rate.rb +23 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +13 -0
- data/lib/stripe/resources/source.rb +23 -1
- data/lib/stripe/resources/source_transaction.rb +3 -0
- data/lib/stripe/resources/subscription.rb +81 -13
- data/lib/stripe/resources/subscription_item.rb +54 -1
- data/lib/stripe/resources/subscription_schedule.rb +41 -4
- data/lib/stripe/resources/tax/calculation.rb +15 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +3 -0
- data/lib/stripe/resources/tax/registration.rb +35 -0
- data/lib/stripe/resources/tax/settings.rb +4 -2
- data/lib/stripe/resources/tax/transaction.rb +15 -8
- data/lib/stripe/resources/tax/transaction_line_item.rb +3 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +30 -12
- data/lib/stripe/resources/tax_rate.rb +23 -0
- data/lib/stripe/resources/terminal/configuration.rb +53 -0
- data/lib/stripe/resources/terminal/connection_token.rb +13 -0
- data/lib/stripe/resources/terminal/location.rb +54 -0
- data/lib/stripe/resources/terminal/reader.rb +80 -12
- data/lib/stripe/resources/test_helpers/test_clock.rb +45 -0
- data/lib/stripe/resources/token.rb +10 -1
- data/lib/stripe/resources/topup.rb +25 -0
- data/lib/stripe/resources/transfer.rb +26 -1
- data/lib/stripe/resources/treasury/credit_reversal.rb +23 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +23 -0
- data/lib/stripe/resources/treasury/financial_account.rb +42 -5
- data/lib/stripe/resources/treasury/financial_account_features.rb +3 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +47 -11
- data/lib/stripe/resources/treasury/outbound_payment.rb +64 -8
- data/lib/stripe/resources/treasury/outbound_transfer.rb +64 -8
- data/lib/stripe/resources/treasury/received_credit.rb +17 -0
- data/lib/stripe/resources/treasury/received_debit.rb +17 -0
- data/lib/stripe/resources/treasury/transaction.rb +13 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +13 -0
- data/lib/stripe/resources/usage_record.rb +5 -0
- data/lib/stripe/resources/usage_record_summary.rb +3 -0
- data/lib/stripe/resources/webhook_endpoint.rb +55 -2
- data/lib/stripe/resources.rb +18 -0
- data/lib/stripe/search_result_object.rb +4 -1
- data/lib/stripe/singleton_api_resource.rb +20 -3
- data/lib/stripe/stripe_client.rb +61 -63
- data/lib/stripe/stripe_configuration.rb +13 -29
- data/lib/stripe/stripe_object.rb +23 -21
- data/lib/stripe/stripe_response.rb +1 -3
- data/lib/stripe/util.rb +13 -15
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +26 -0
- data/stripe.gemspec +7 -4
- metadata +25 -5
data/lib/stripe/stripe_object.rb
CHANGED
@@ -4,6 +4,8 @@ module Stripe
|
|
4
4
|
class StripeObject
|
5
5
|
include Enumerable
|
6
6
|
|
7
|
+
attr_reader :last_response
|
8
|
+
|
7
9
|
@@permanent_attributes = Set.new([:id]) # rubocop:disable Style/ClassVars
|
8
10
|
|
9
11
|
# The default :id method is deprecated and isn't useful to us
|
@@ -80,13 +82,14 @@ module Stripe
|
|
80
82
|
@unsaved_values = Set.new
|
81
83
|
@transient_values = Set.new
|
82
84
|
@values[:id] = id if id
|
85
|
+
@last_response = nil
|
83
86
|
end
|
84
87
|
|
85
|
-
def self.construct_from(values, opts = {})
|
88
|
+
def self.construct_from(values, opts = {}, last_response = nil)
|
86
89
|
values = Stripe::Util.symbolize_names(values)
|
87
90
|
|
88
91
|
# work around protected #initialize_from for now
|
89
|
-
new(values[:id]).send(:initialize_from, values, opts)
|
92
|
+
new(values[:id]).send(:initialize_from, values, opts, last_response)
|
90
93
|
end
|
91
94
|
|
92
95
|
# Determines the equality of two Stripe objects. Stripe objects are
|
@@ -320,8 +323,8 @@ module Stripe
|
|
320
323
|
# Here we swallow that error and issue a warning so at least
|
321
324
|
# the program doesn't crash.
|
322
325
|
warn("WARNING: Unable to remove method `#{method_name}`; " \
|
323
|
-
|
324
|
-
|
326
|
+
"if custom, please consider renaming to a name that doesn't " \
|
327
|
+
"collide with an API property name.")
|
325
328
|
end
|
326
329
|
end
|
327
330
|
end
|
@@ -351,17 +354,15 @@ module Stripe
|
|
351
354
|
define_method(:"#{k}=") do |v|
|
352
355
|
if v == ""
|
353
356
|
raise ArgumentError, "You cannot set #{k} to an empty string. " \
|
354
|
-
|
355
|
-
|
357
|
+
"We interpret empty strings as nil in requests. " \
|
358
|
+
"You may set (object).#{k} = nil to delete the property."
|
356
359
|
end
|
357
360
|
@values[k] = Util.convert_to_stripe_object(v, @opts)
|
358
361
|
dirty_value!(@values[k])
|
359
362
|
@unsaved_values.add(k)
|
360
363
|
end
|
361
364
|
|
362
|
-
if [FalseClass, TrueClass].include?(values[k].class)
|
363
|
-
define_method(:"#{k}?") { @values[k] }
|
364
|
-
end
|
365
|
+
define_method(:"#{k}?") { @values[k] } if [FalseClass, TrueClass].include?(values[k].class)
|
365
366
|
end
|
366
367
|
end
|
367
368
|
end
|
@@ -369,7 +370,6 @@ module Stripe
|
|
369
370
|
# Disabling the cop because it's confused by the fact that the methods are
|
370
371
|
# protected, but we do define `#respond_to_missing?` just below. Hopefully
|
371
372
|
# this is fixed in more recent Rubocop versions.
|
372
|
-
# rubocop:disable Style/MissingRespondToMissing
|
373
373
|
protected def method_missing(name, *args)
|
374
374
|
# TODO: only allow setting in updateable classes.
|
375
375
|
if name.to_s.end_with?("=")
|
@@ -405,16 +405,14 @@ module Stripe
|
|
405
405
|
|
406
406
|
raise NoMethodError,
|
407
407
|
e.message + ". HINT: The '#{name}' attribute was set in the " \
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
408
|
+
"past, however. It was then wiped when refreshing the object " \
|
409
|
+
"with the result returned by Stripe's API, probably as a " \
|
410
|
+
"result of a save(). The attributes currently available on " \
|
411
|
+
"this object are: #{@values.keys.join(', ')}"
|
412
412
|
end
|
413
413
|
end
|
414
|
-
# rubocop:enable Style/MissingRespondToMissing
|
415
|
-
|
416
414
|
protected def respond_to_missing?(symbol, include_private = false)
|
417
|
-
@values && @values.key?(symbol) || super
|
415
|
+
(@values && @values.key?(symbol)) || super
|
418
416
|
end
|
419
417
|
|
420
418
|
# Re-initializes the object based on a hash of values (usually one that's
|
@@ -429,7 +427,9 @@ module Stripe
|
|
429
427
|
# * +:opts:+ Options for StripeObject like an API key.
|
430
428
|
# * +:partial:+ Indicates that the re-initialization should not attempt to
|
431
429
|
# remove accessors.
|
432
|
-
protected def initialize_from(values, opts)
|
430
|
+
protected def initialize_from(values, opts, last_response = nil)
|
431
|
+
@last_response = last_response
|
432
|
+
|
433
433
|
@opts = Util.normalize_opts(opts)
|
434
434
|
|
435
435
|
# the `#send` is here so that we can keep this method private
|
@@ -460,7 +460,8 @@ module Stripe
|
|
460
460
|
self
|
461
461
|
end
|
462
462
|
|
463
|
-
|
463
|
+
# rubocop:todo Metrics/PerceivedComplexity
|
464
|
+
protected def serialize_params_value(value, original, unsaved, force, # rubocop:todo Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
464
465
|
key: nil)
|
465
466
|
if value.nil?
|
466
467
|
""
|
@@ -494,8 +495,8 @@ module Stripe
|
|
494
495
|
value
|
495
496
|
else
|
496
497
|
raise ArgumentError, "Cannot save property `#{key}` containing " \
|
497
|
-
|
498
|
-
|
498
|
+
"an API resource. It doesn't appear to be persisted and is " \
|
499
|
+
"not marked as `save_with_parent`."
|
499
500
|
end
|
500
501
|
|
501
502
|
elsif value.is_a?(Array)
|
@@ -535,6 +536,7 @@ module Stripe
|
|
535
536
|
value
|
536
537
|
end
|
537
538
|
end
|
539
|
+
# rubocop:enable Metrics/PerceivedComplexity
|
538
540
|
|
539
541
|
# Produces a deep copy of the given object including support for arrays,
|
540
542
|
# hashes, and StripeObjects.
|
@@ -41,9 +41,7 @@ module Stripe
|
|
41
41
|
|
42
42
|
def [](name)
|
43
43
|
values = @hash[name.downcase]
|
44
|
-
if values && values.count > 1
|
45
|
-
warn("Duplicate header values for `#{name}`; returning only first")
|
46
|
-
end
|
44
|
+
warn("Duplicate header values for `#{name}`; returning only first") if values && values.count > 1
|
47
45
|
values ? values.first : nil
|
48
46
|
end
|
49
47
|
end
|
data/lib/stripe/util.rb
CHANGED
@@ -79,8 +79,8 @@ module Stripe
|
|
79
79
|
"id should be a string representing the ID of an API resource"
|
80
80
|
end
|
81
81
|
|
82
|
-
url = "#{target.resource_url}/"\
|
83
|
-
"#{CGI.escape(id)}/"\
|
82
|
+
url = "#{target.resource_url}/" \
|
83
|
+
"#{CGI.escape(id)}/" \
|
84
84
|
"#{CGI.escape(http_path)}"
|
85
85
|
|
86
86
|
resp, opts = resource.execute_resource_request(
|
@@ -90,7 +90,7 @@ module Stripe
|
|
90
90
|
opts
|
91
91
|
)
|
92
92
|
|
93
|
-
Util.convert_to_stripe_object_with_params(resp.data, params, opts)
|
93
|
+
Util.convert_to_stripe_object_with_params(resp.data, params, opts, resp)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
@@ -124,7 +124,7 @@ module Stripe
|
|
124
124
|
# * +data+ - Hash of fields and values to be converted into a StripeObject.
|
125
125
|
# * +opts+ - Options for +StripeObject+ like an API key that will be reused
|
126
126
|
# on subsequent API calls.
|
127
|
-
def self.convert_to_stripe_object_with_params(data, params, opts = {})
|
127
|
+
def self.convert_to_stripe_object_with_params(data, params, opts = {}, last_response = nil)
|
128
128
|
opts = normalize_opts(opts)
|
129
129
|
|
130
130
|
case data
|
@@ -135,13 +135,11 @@ module Stripe
|
|
135
135
|
# to generic StripeObject
|
136
136
|
object_name = data[:object] || data["object"]
|
137
137
|
obj = object_classes.fetch(object_name, StripeObject)
|
138
|
-
.construct_from(data, opts)
|
138
|
+
.construct_from(data, opts, last_response)
|
139
139
|
|
140
140
|
# set filters so that we can fetch the same limit, expansions, and
|
141
141
|
# predicates when accessing the next and previous pages
|
142
|
-
if obj && (obj.is_a?(SearchResultObject) || obj.is_a?(ListObject))
|
143
|
-
obj.filters = params.dup
|
144
|
-
end
|
142
|
+
obj.filters = params.dup if obj && (obj.is_a?(SearchResultObject) || obj.is_a?(ListObject))
|
145
143
|
|
146
144
|
obj
|
147
145
|
else
|
@@ -153,7 +151,7 @@ module Stripe
|
|
153
151
|
config = data.delete(:config) || Stripe.config
|
154
152
|
logger = config.logger || Stripe.logger
|
155
153
|
if !logger.nil? ||
|
156
|
-
!config.log_level.nil? && config.log_level <= Stripe::LEVEL_ERROR
|
154
|
+
(!config.log_level.nil? && config.log_level <= Stripe::LEVEL_ERROR)
|
157
155
|
log_internal(message, data, color: :cyan, level: Stripe::LEVEL_ERROR,
|
158
156
|
logger: Stripe.logger, out: $stderr)
|
159
157
|
end
|
@@ -163,7 +161,7 @@ module Stripe
|
|
163
161
|
config = data.delete(:config) || Stripe.config
|
164
162
|
logger = config.logger || Stripe.logger
|
165
163
|
if !logger.nil? ||
|
166
|
-
!config.log_level.nil? && config.log_level <= Stripe::LEVEL_INFO
|
164
|
+
(!config.log_level.nil? && config.log_level <= Stripe::LEVEL_INFO)
|
167
165
|
log_internal(message, data, color: :cyan, level: Stripe::LEVEL_INFO,
|
168
166
|
logger: Stripe.logger, out: $stdout)
|
169
167
|
end
|
@@ -173,7 +171,7 @@ module Stripe
|
|
173
171
|
config = data.delete(:config) || Stripe.config
|
174
172
|
logger = config.logger || Stripe.logger
|
175
173
|
if !logger.nil? ||
|
176
|
-
!config.log_level.nil? && config.log_level <= Stripe::LEVEL_DEBUG
|
174
|
+
(!config.log_level.nil? && config.log_level <= Stripe::LEVEL_DEBUG)
|
177
175
|
log_internal(message, data, color: :blue, level: Stripe::LEVEL_DEBUG,
|
178
176
|
logger: Stripe.logger, out: $stdout)
|
179
177
|
end
|
@@ -185,10 +183,10 @@ module Stripe
|
|
185
183
|
new_hash = {}
|
186
184
|
object.each do |key, value|
|
187
185
|
key = (begin
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
186
|
+
key.to_sym
|
187
|
+
rescue StandardError
|
188
|
+
key
|
189
|
+
end) || key
|
192
190
|
new_hash[key] = symbolize_names(value)
|
193
191
|
end
|
194
192
|
new_hash
|
data/lib/stripe/version.rb
CHANGED
data/lib/stripe.rb
CHANGED
@@ -25,6 +25,7 @@ require "stripe/api_operations/list"
|
|
25
25
|
require "stripe/api_operations/nested_resource"
|
26
26
|
require "stripe/api_operations/request"
|
27
27
|
require "stripe/api_operations/save"
|
28
|
+
require "stripe/api_operations/singleton_save"
|
28
29
|
require "stripe/api_operations/search"
|
29
30
|
|
30
31
|
# API resource support classes
|
@@ -116,6 +117,31 @@ module Stripe
|
|
116
117
|
version: version,
|
117
118
|
}
|
118
119
|
end
|
120
|
+
|
121
|
+
class RawRequest
|
122
|
+
include Stripe::APIOperations::Request
|
123
|
+
|
124
|
+
def initialize
|
125
|
+
@opts = {}
|
126
|
+
end
|
127
|
+
|
128
|
+
def execute(method, url, params = {}, opts = {}, usage = [])
|
129
|
+
resp, = execute_resource_request(method, url, params, opts, usage)
|
130
|
+
|
131
|
+
resp
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# Sends a request to Stripe REST API
|
136
|
+
def self.raw_request(method, url, params = {}, opts = {})
|
137
|
+
req = RawRequest.new
|
138
|
+
req.execute(method, url, params, opts, ["raw_request"])
|
139
|
+
end
|
140
|
+
|
141
|
+
def self.deserialize(data)
|
142
|
+
data = JSON.parse(data) if data.is_a?(String)
|
143
|
+
Util.convert_to_stripe_object(data, {})
|
144
|
+
end
|
119
145
|
end
|
120
146
|
|
121
147
|
Stripe.log_level = ENV["STRIPE_LOG"] unless ENV["STRIPE_LOG"].nil?
|
data/stripe.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift(
|
3
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
|
4
4
|
|
5
5
|
require "stripe/version"
|
6
6
|
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
"github_repo" => "ssh://github.com/stripe/stripe-ruby",
|
25
25
|
"homepage_uri" => "https://stripe.com/docs/api?lang=ruby",
|
26
26
|
"source_code_uri" => "https://github.com/stripe/stripe-ruby",
|
27
|
+
"rubygems_mfa_required" => "false",
|
27
28
|
}
|
28
29
|
|
29
30
|
ignored = Regexp.union(
|
@@ -32,10 +33,12 @@ Gem::Specification.new do |s|
|
|
32
33
|
/\A\.rubocop/,
|
33
34
|
/\A\.travis.yml/,
|
34
35
|
/\A\.vscode/,
|
36
|
+
/\Abin/,
|
37
|
+
/\Asorbet/,
|
35
38
|
/\Atest/
|
36
39
|
)
|
37
|
-
s.files = `git ls-files`.split("\n").
|
38
|
-
s.
|
39
|
-
|
40
|
+
s.files = `git ls-files`.split("\n").grep_v(ignored)
|
41
|
+
s.bindir = "exe"
|
42
|
+
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
|
40
43
|
s.require_paths = ["lib"]
|
41
44
|
end
|
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: 12.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-12 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.
|
@@ -29,7 +29,7 @@ files:
|
|
29
29
|
- README.md
|
30
30
|
- Rakefile
|
31
31
|
- VERSION
|
32
|
-
-
|
32
|
+
- exe/stripe-console
|
33
33
|
- lib/data/ca-certificates.crt
|
34
34
|
- lib/stripe.rb
|
35
35
|
- lib/stripe/api_operations/create.rb
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- lib/stripe/api_operations/request.rb
|
40
40
|
- lib/stripe/api_operations/save.rb
|
41
41
|
- lib/stripe/api_operations/search.rb
|
42
|
+
- lib/stripe/api_operations/singleton_save.rb
|
42
43
|
- lib/stripe/api_resource.rb
|
43
44
|
- lib/stripe/api_resource_test_helpers.rb
|
44
45
|
- lib/stripe/api_version.rb
|
@@ -62,6 +63,11 @@ files:
|
|
62
63
|
- lib/stripe/resources/balance.rb
|
63
64
|
- lib/stripe/resources/balance_transaction.rb
|
64
65
|
- lib/stripe/resources/bank_account.rb
|
66
|
+
- lib/stripe/resources/billing/alert.rb
|
67
|
+
- lib/stripe/resources/billing/meter.rb
|
68
|
+
- lib/stripe/resources/billing/meter_event.rb
|
69
|
+
- lib/stripe/resources/billing/meter_event_adjustment.rb
|
70
|
+
- lib/stripe/resources/billing/meter_event_summary.rb
|
65
71
|
- lib/stripe/resources/billing_portal/configuration.rb
|
66
72
|
- lib/stripe/resources/billing_portal/session.rb
|
67
73
|
- lib/stripe/resources/capability.rb
|
@@ -69,6 +75,10 @@ files:
|
|
69
75
|
- lib/stripe/resources/cash_balance.rb
|
70
76
|
- lib/stripe/resources/charge.rb
|
71
77
|
- lib/stripe/resources/checkout/session.rb
|
78
|
+
- lib/stripe/resources/climate/order.rb
|
79
|
+
- lib/stripe/resources/climate/product.rb
|
80
|
+
- lib/stripe/resources/climate/supplier.rb
|
81
|
+
- lib/stripe/resources/confirmation_token.rb
|
72
82
|
- lib/stripe/resources/country_spec.rb
|
73
83
|
- lib/stripe/resources/coupon.rb
|
74
84
|
- lib/stripe/resources/credit_note.rb
|
@@ -76,8 +86,11 @@ files:
|
|
76
86
|
- lib/stripe/resources/customer.rb
|
77
87
|
- lib/stripe/resources/customer_balance_transaction.rb
|
78
88
|
- lib/stripe/resources/customer_cash_balance_transaction.rb
|
89
|
+
- lib/stripe/resources/customer_session.rb
|
79
90
|
- lib/stripe/resources/discount.rb
|
80
91
|
- lib/stripe/resources/dispute.rb
|
92
|
+
- lib/stripe/resources/entitlements/active_entitlement.rb
|
93
|
+
- lib/stripe/resources/entitlements/feature.rb
|
81
94
|
- lib/stripe/resources/ephemeral_key.rb
|
82
95
|
- lib/stripe/resources/event.rb
|
83
96
|
- lib/stripe/resources/exchange_rate.rb
|
@@ -87,16 +100,21 @@ files:
|
|
87
100
|
- lib/stripe/resources/financial_connections/account_owner.rb
|
88
101
|
- lib/stripe/resources/financial_connections/account_ownership.rb
|
89
102
|
- lib/stripe/resources/financial_connections/session.rb
|
103
|
+
- lib/stripe/resources/financial_connections/transaction.rb
|
104
|
+
- lib/stripe/resources/forwarding/request.rb
|
90
105
|
- lib/stripe/resources/funding_instructions.rb
|
91
106
|
- lib/stripe/resources/identity/verification_report.rb
|
92
107
|
- lib/stripe/resources/identity/verification_session.rb
|
93
108
|
- lib/stripe/resources/invoice.rb
|
94
109
|
- lib/stripe/resources/invoice_item.rb
|
95
110
|
- lib/stripe/resources/invoice_line_item.rb
|
111
|
+
- lib/stripe/resources/invoice_rendering_template.rb
|
96
112
|
- lib/stripe/resources/issuing/authorization.rb
|
97
113
|
- lib/stripe/resources/issuing/card.rb
|
98
114
|
- lib/stripe/resources/issuing/cardholder.rb
|
99
115
|
- lib/stripe/resources/issuing/dispute.rb
|
116
|
+
- lib/stripe/resources/issuing/personalization_design.rb
|
117
|
+
- lib/stripe/resources/issuing/physical_bundle.rb
|
100
118
|
- lib/stripe/resources/issuing/token.rb
|
101
119
|
- lib/stripe/resources/issuing/transaction.rb
|
102
120
|
- lib/stripe/resources/line_item.rb
|
@@ -112,6 +130,7 @@ files:
|
|
112
130
|
- lib/stripe/resources/plan.rb
|
113
131
|
- lib/stripe/resources/price.rb
|
114
132
|
- lib/stripe/resources/product.rb
|
133
|
+
- lib/stripe/resources/product_feature.rb
|
115
134
|
- lib/stripe/resources/promotion_code.rb
|
116
135
|
- lib/stripe/resources/quote.rb
|
117
136
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
@@ -183,6 +202,7 @@ metadata:
|
|
183
202
|
github_repo: ssh://github.com/stripe/stripe-ruby
|
184
203
|
homepage_uri: https://stripe.com/docs/api?lang=ruby
|
185
204
|
source_code_uri: https://github.com/stripe/stripe-ruby
|
205
|
+
rubygems_mfa_required: 'false'
|
186
206
|
post_install_message:
|
187
207
|
rdoc_options: []
|
188
208
|
require_paths:
|
@@ -198,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
218
|
- !ruby/object:Gem::Version
|
199
219
|
version: '0'
|
200
220
|
requirements: []
|
201
|
-
rubygems_version: 3.3.
|
221
|
+
rubygems_version: 3.3.27
|
202
222
|
signing_key:
|
203
223
|
specification_version: 4
|
204
224
|
summary: Ruby bindings for the Stripe API
|