stripe 10.8.0 → 10.9.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +275 -45
  3. data/README.md +11 -0
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_operations/request.rb +2 -1
  6. data/lib/stripe/api_version.rb +1 -0
  7. data/lib/stripe/object_types.rb +23 -0
  8. data/lib/stripe/request_signing_authenticator.rb +79 -0
  9. data/lib/stripe/resources/account_notice.rb +29 -0
  10. data/lib/stripe/resources/capital/financing_offer.rb +46 -0
  11. data/lib/stripe/resources/capital/financing_summary.rb +12 -0
  12. data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
  13. data/lib/stripe/resources/confirmation_token.rb +13 -0
  14. data/lib/stripe/resources/customer.rb +11 -0
  15. data/lib/stripe/resources/customer_entitlement.rb +9 -0
  16. data/lib/stripe/resources/customer_entitlement_summary.rb +9 -0
  17. data/lib/stripe/resources/entitlements/event.rb +23 -0
  18. data/lib/stripe/resources/entitlements/feature.rb +35 -0
  19. data/lib/stripe/resources/financial_connections/account.rb +3 -0
  20. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +11 -0
  21. data/lib/stripe/resources/gift_cards/card.rb +56 -0
  22. data/lib/stripe/resources/gift_cards/transaction.rb +90 -0
  23. data/lib/stripe/resources/invoice.rb +53 -0
  24. data/lib/stripe/resources/invoice_payment.rb +9 -0
  25. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +85 -0
  26. data/lib/stripe/resources/issuing/personalization_design.rb +113 -0
  27. data/lib/stripe/resources/issuing/physical_bundle.rb +23 -0
  28. data/lib/stripe/resources/margin.rb +34 -0
  29. data/lib/stripe/resources/order.rb +117 -0
  30. data/lib/stripe/resources/quote.rb +104 -0
  31. data/lib/stripe/resources/quote_phase.rb +36 -0
  32. data/lib/stripe/resources/quote_preview_invoice.rb +40 -0
  33. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +8 -0
  34. data/lib/stripe/resources/subscription_schedule.rb +20 -0
  35. data/lib/stripe/resources/tax/form.rb +46 -0
  36. data/lib/stripe/resources/terminal/reader.rb +60 -0
  37. data/lib/stripe/resources.rb +22 -0
  38. data/lib/stripe/stripe_client.rb +62 -28
  39. data/lib/stripe/stripe_configuration.rb +2 -1
  40. data/lib/stripe/util.rb +8 -1
  41. data/lib/stripe/version.rb +1 -1
  42. data/lib/stripe.rb +46 -0
  43. metadata +26 -3
@@ -3,6 +3,7 @@
3
3
 
4
4
  require "stripe/resources/account"
5
5
  require "stripe/resources/account_link"
6
+ require "stripe/resources/account_notice"
6
7
  require "stripe/resources/account_session"
7
8
  require "stripe/resources/apple_pay_domain"
8
9
  require "stripe/resources/application_fee"
@@ -14,6 +15,9 @@ require "stripe/resources/bank_account"
14
15
  require "stripe/resources/billing_portal/configuration"
15
16
  require "stripe/resources/billing_portal/session"
16
17
  require "stripe/resources/capability"
18
+ require "stripe/resources/capital/financing_offer"
19
+ require "stripe/resources/capital/financing_summary"
20
+ require "stripe/resources/capital/financing_transaction"
17
21
  require "stripe/resources/card"
18
22
  require "stripe/resources/cash_balance"
19
23
  require "stripe/resources/charge"
@@ -21,6 +25,7 @@ require "stripe/resources/checkout/session"
21
25
  require "stripe/resources/climate/order"
22
26
  require "stripe/resources/climate/product"
23
27
  require "stripe/resources/climate/supplier"
28
+ require "stripe/resources/confirmation_token"
24
29
  require "stripe/resources/country_spec"
25
30
  require "stripe/resources/coupon"
26
31
  require "stripe/resources/credit_note"
@@ -28,34 +33,47 @@ require "stripe/resources/credit_note_line_item"
28
33
  require "stripe/resources/customer"
29
34
  require "stripe/resources/customer_balance_transaction"
30
35
  require "stripe/resources/customer_cash_balance_transaction"
36
+ require "stripe/resources/customer_entitlement"
37
+ require "stripe/resources/customer_entitlement_summary"
31
38
  require "stripe/resources/customer_session"
32
39
  require "stripe/resources/discount"
33
40
  require "stripe/resources/dispute"
41
+ require "stripe/resources/entitlements/event"
42
+ require "stripe/resources/entitlements/feature"
34
43
  require "stripe/resources/ephemeral_key"
35
44
  require "stripe/resources/event"
36
45
  require "stripe/resources/exchange_rate"
37
46
  require "stripe/resources/file"
38
47
  require "stripe/resources/file_link"
39
48
  require "stripe/resources/financial_connections/account"
49
+ require "stripe/resources/financial_connections/account_inferred_balance"
40
50
  require "stripe/resources/financial_connections/account_owner"
41
51
  require "stripe/resources/financial_connections/account_ownership"
42
52
  require "stripe/resources/financial_connections/session"
43
53
  require "stripe/resources/financial_connections/transaction"
44
54
  require "stripe/resources/funding_instructions"
55
+ require "stripe/resources/gift_cards/card"
56
+ require "stripe/resources/gift_cards/transaction"
45
57
  require "stripe/resources/identity/verification_report"
46
58
  require "stripe/resources/identity/verification_session"
47
59
  require "stripe/resources/invoice"
48
60
  require "stripe/resources/invoice_item"
49
61
  require "stripe/resources/invoice_line_item"
62
+ require "stripe/resources/invoice_payment"
50
63
  require "stripe/resources/issuing/authorization"
51
64
  require "stripe/resources/issuing/card"
52
65
  require "stripe/resources/issuing/cardholder"
66
+ require "stripe/resources/issuing/credit_underwriting_record"
53
67
  require "stripe/resources/issuing/dispute"
68
+ require "stripe/resources/issuing/personalization_design"
69
+ require "stripe/resources/issuing/physical_bundle"
54
70
  require "stripe/resources/issuing/token"
55
71
  require "stripe/resources/issuing/transaction"
56
72
  require "stripe/resources/line_item"
57
73
  require "stripe/resources/login_link"
58
74
  require "stripe/resources/mandate"
75
+ require "stripe/resources/margin"
76
+ require "stripe/resources/order"
59
77
  require "stripe/resources/payment_intent"
60
78
  require "stripe/resources/payment_link"
61
79
  require "stripe/resources/payment_method"
@@ -68,6 +86,9 @@ require "stripe/resources/price"
68
86
  require "stripe/resources/product"
69
87
  require "stripe/resources/promotion_code"
70
88
  require "stripe/resources/quote"
89
+ require "stripe/resources/quote_phase"
90
+ require "stripe/resources/quote_preview_invoice"
91
+ require "stripe/resources/quote_preview_subscription_schedule"
71
92
  require "stripe/resources/radar/early_fraud_warning"
72
93
  require "stripe/resources/radar/value_list"
73
94
  require "stripe/resources/radar/value_list_item"
@@ -87,6 +108,7 @@ require "stripe/resources/subscription_item"
87
108
  require "stripe/resources/subscription_schedule"
88
109
  require "stripe/resources/tax/calculation"
89
110
  require "stripe/resources/tax/calculation_line_item"
111
+ require "stripe/resources/tax/form"
90
112
  require "stripe/resources/tax/registration"
91
113
  require "stripe/resources/tax/settings"
92
114
  require "stripe/resources/tax/transaction"
@@ -209,9 +209,10 @@ module Stripe
209
209
  end
210
210
 
211
211
  def execute_request(method, path,
212
- api_base: nil, api_key: nil, headers: {}, params: {}, usage: [])
212
+ api_base: nil, api_key: nil,
213
+ headers: {}, params: {}, api_mode: nil, usage: [])
213
214
  http_resp, api_key = execute_request_internal(
214
- method, path, api_base, api_key, headers, params, usage
215
+ method, path, api_base, api_key, headers, params, api_mode, usage
215
216
  )
216
217
 
217
218
  begin
@@ -242,6 +243,7 @@ module Stripe
242
243
  def execute_request_stream(method, path,
243
244
  api_base: nil, api_key: nil, usage: [],
244
245
  headers: {}, params: {},
246
+ api_mode: nil,
245
247
  &read_body_chunk_block)
246
248
  unless block_given?
247
249
  raise ArgumentError,
@@ -249,7 +251,8 @@ module Stripe
249
251
  end
250
252
 
251
253
  http_resp, api_key = execute_request_internal(
252
- method, path, api_base, api_key, headers, params, usage, &read_body_chunk_block
254
+ method, path, api_base, api_key,
255
+ headers, params, api_mode, usage, &read_body_chunk_block
253
256
  )
254
257
 
255
258
  # When the read_body_chunk_block is given, we no longer have access to the
@@ -428,8 +431,8 @@ module Stripe
428
431
  end
429
432
 
430
433
  private def execute_request_internal(method, path,
431
- api_base, api_key, headers, params, usage,
432
- &read_body_chunk_block)
434
+ api_base, api_key, headers, params,
435
+ api_mode, usage, &read_body_chunk_block)
433
436
  raise ArgumentError, "method should be a symbol" \
434
437
  unless method.is_a?(Symbol)
435
438
  raise ArgumentError, "path should be a string" \
@@ -437,9 +440,10 @@ module Stripe
437
440
 
438
441
  api_base ||= config.api_base
439
442
  api_key ||= config.api_key
443
+ authenticator ||= config.authenticator
440
444
  params = Util.objects_to_ids(params)
441
445
 
442
- check_api_key!(api_key)
446
+ check_keys!(api_key, authenticator)
443
447
 
444
448
  body_params = nil
445
449
  query_params = nil
@@ -452,8 +456,9 @@ module Stripe
452
456
 
453
457
  query_params, path = merge_query_params(query_params, path)
454
458
 
455
- headers = request_headers(api_key, method)
459
+ headers = request_headers(api_key, method, api_mode)
456
460
  .update(Util.normalize_headers(headers))
461
+
457
462
  url = api_url(path, api_base)
458
463
 
459
464
  # Merge given query parameters with any already encoded in the path.
@@ -464,13 +469,16 @@ module Stripe
464
469
  # a log-friendly variant of the encoded form. File objects are displayed
465
470
  # as such instead of as their file contents.
466
471
  body, body_log =
467
- body_params ? encode_body(body_params, headers) : [nil, nil]
472
+ body_params ? encode_body(body_params, headers, api_mode) : [nil, nil]
473
+
474
+ authenticator.authenticate(method, headers, body) unless api_key
468
475
 
469
476
  # stores information on the request we're about to make so that we don't
470
477
  # have to pass as many parameters around for logging.
471
478
  context = RequestLogContext.new
472
479
  context.account = headers["Stripe-Account"]
473
480
  context.api_key = api_key
481
+ context.authenticator = authenticator
474
482
  context.api_version = headers["Stripe-Version"]
475
483
  context.body = body_log
476
484
  context.idempotency_key = headers["Idempotency-Key"]
@@ -507,8 +515,16 @@ module Stripe
507
515
  (api_base || config.api_base) + url
508
516
  end
509
517
 
510
- private def check_api_key!(api_key)
511
- unless api_key
518
+ private def check_keys!(api_key, authenticator)
519
+ if api_key && authenticator
520
+ raise AuthenticationError, "Can't specify both API key " \
521
+ "and authenticator. Either set your API key" \
522
+ 'using "Stripe.api_key = <API-KEY>", or set your authenticator ' \
523
+ 'using "Stripe.authenticator = <AUTHENTICATOR>"' \
524
+ end
525
+
526
+ unless api_key || authenticator
527
+ # Default to missing API key error message for general users.
512
528
  raise AuthenticationError, "No API key provided. " \
513
529
  'Set your API key using "Stripe.api_key = <API-KEY>". ' \
514
530
  "You can generate API keys from the Stripe web interface. " \
@@ -527,7 +543,7 @@ module Stripe
527
543
  # Encodes a set of body parameters using multipart if `Content-Type` is set
528
544
  # for that, or standard form-encoding otherwise. Returns the encoded body
529
545
  # and a version of the encoded body that's safe to be logged.
530
- private def encode_body(body_params, headers)
546
+ private def encode_body(body_params, headers, api_mode)
531
547
  body = nil
532
548
  flattened_params = Util.flatten_params(body_params)
533
549
 
@@ -543,15 +559,22 @@ module Stripe
543
559
  flattened_params =
544
560
  flattened_params.map { |k, v| [k, v.is_a?(String) ? v : v.to_s] }.to_h
545
561
 
562
+ elsif api_mode == :preview
563
+ body = JSON.generate(body_params)
564
+ headers["Content-Type"] = "application/json"
546
565
  else
547
566
  body = Util.encode_parameters(body_params)
548
567
  end
549
568
 
550
- # We don't use `Util.encode_parameters` partly as an optimization (to not
551
- # redo work we've already done), and partly because the encoded forms of
552
- # certain characters introduce a lot of visual noise and it's nice to
553
- # have a clearer format for logs.
554
- body_log = flattened_params.map { |k, v| "#{k}=#{v}" }.join("&")
569
+ body_log = if api_mode == :preview
570
+ body
571
+ else
572
+ # We don't use `Util.encode_parameters` partly as an optimization (to
573
+ # not redo work we've already done), and partly because the encoded
574
+ # forms of certain characters introduce a lot of visual noise and it's
575
+ # nice to have a clearer format for logs.
576
+ flattened_params.map { |k, v| "#{k}=#{v}" }.join("&")
577
+ end
555
578
 
556
579
  [body, body_log]
557
580
  end
@@ -738,10 +761,11 @@ module Stripe
738
761
  end
739
762
 
740
763
  private def specific_api_error(resp, error_data, context)
764
+ message = error_data[:message]
741
765
  Util.log_error("Stripe API error",
742
766
  status: resp.http_status,
743
767
  error_code: error_data[:code],
744
- error_message: error_data[:message],
768
+ error_message: message,
745
769
  error_param: error_data[:param],
746
770
  error_type: error_data[:type],
747
771
  idempotency_key: context.idempotency_key,
@@ -762,26 +786,26 @@ module Stripe
762
786
  when 400, 404
763
787
  case error_data[:type]
764
788
  when "idempotency_error"
765
- IdempotencyError.new(error_data[:message], **opts)
789
+ IdempotencyError.new(message, **opts)
766
790
  else
767
791
  InvalidRequestError.new(
768
- error_data[:message], error_data[:param],
792
+ message, error_data[:param],
769
793
  **opts
770
794
  )
771
795
  end
772
796
  when 401
773
- AuthenticationError.new(error_data[:message], **opts)
797
+ AuthenticationError.new(message, **opts)
774
798
  when 402
775
799
  CardError.new(
776
- error_data[:message], error_data[:param],
800
+ message, error_data[:param],
777
801
  **opts
778
802
  )
779
803
  when 403
780
- PermissionError.new(error_data[:message], **opts)
804
+ PermissionError.new(message, **opts)
781
805
  when 429
782
- RateLimitError.new(error_data[:message], **opts)
806
+ RateLimitError.new(message, **opts)
783
807
  else
784
- APIError.new(error_data[:message], **opts)
808
+ APIError.new(message, **opts)
785
809
  end
786
810
  end
787
811
 
@@ -849,16 +873,20 @@ module Stripe
849
873
  message + "\n\n(Network error: #{error.message})"
850
874
  end
851
875
 
852
- private def request_headers(api_key, method)
876
+ private def request_headers(api_key, method, api_mode)
853
877
  user_agent = "Stripe/v1 RubyBindings/#{Stripe::VERSION}"
854
878
  user_agent += " " + format_app_info(Stripe.app_info) unless Stripe.app_info.nil?
855
879
 
856
880
  headers = {
857
881
  "User-Agent" => user_agent,
858
882
  "Authorization" => "Bearer #{api_key}",
859
- "Content-Type" => "application/x-www-form-urlencoded",
860
883
  }
861
884
 
885
+ if api_mode != :preview
886
+ # TODO: (major) don't set Content-Type if method is not post
887
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
888
+ end
889
+
862
890
  if config.enable_telemetry? && !@last_request_metrics.nil?
863
891
  headers["X-Stripe-Client-Telemetry"] = JSON.generate(
864
892
  last_request_metrics: @last_request_metrics.payload
@@ -871,7 +899,12 @@ module Stripe
871
899
  headers["Idempotency-Key"] ||= SecureRandom.uuid
872
900
  end
873
901
 
874
- headers["Stripe-Version"] = config.api_version if config.api_version
902
+ if api_mode == :preview
903
+ headers["Stripe-Version"] = ApiVersion::PREVIEW
904
+ elsif config.api_version
905
+ headers["Stripe-Version"] = config.api_version
906
+ end
907
+
875
908
  headers["Stripe-Account"] = config.stripe_account if config.stripe_account
876
909
 
877
910
  user_agent = @system_profiler.user_agent
@@ -954,7 +987,8 @@ module Stripe
954
987
  # that we can log certain information. It's useful because it means that we
955
988
  # don't have to pass around as many parameters.
956
989
  class RequestLogContext
957
- attr_accessor :body, :account, :api_key, :api_version, :idempotency_key, :method, :path, :query, :request_id
990
+ attr_accessor :body, :account, :api_key, :authenticator, :api_version, :idempotency_key, :method, :path, :query,
991
+ :request_id
958
992
 
959
993
  # The idea with this method is that we might want to update some of
960
994
  # context information because a response that we've received from the API
@@ -25,7 +25,7 @@ module Stripe
25
25
  # If `.logger` is set, the value of `.log_level` is ignored. The decision on
26
26
  # what levels to print is entirely deferred to the logger.
27
27
  class StripeConfiguration
28
- attr_accessor :api_key, :api_version, :client_id, :enable_telemetry, :logger, :stripe_account
28
+ attr_accessor :api_key, :api_version, :authenticator, :client_id, :enable_telemetry, :logger, :stripe_account
29
29
 
30
30
  attr_reader :api_base, :uploads_base, :connect_base, :ca_bundle_path, :log_level, :initial_network_retry_delay,
31
31
  # rubocop:todo Layout/LineLength
@@ -50,6 +50,7 @@ module Stripe
50
50
 
51
51
  def initialize
52
52
  @api_version = ApiVersion::CURRENT
53
+
53
54
  @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
54
55
  @enable_telemetry = true
55
56
  @verify_ssl_certs = true
data/lib/stripe/util.rb CHANGED
@@ -7,6 +7,7 @@ module Stripe
7
7
  # Options that a user is allowed to specify.
8
8
  OPTS_USER_SPECIFIED = Set[
9
9
  :api_key,
10
+ :authenticator,
10
11
  :idempotency_key,
11
12
  :stripe_account,
12
13
  :stripe_version
@@ -279,7 +280,13 @@ module Stripe
279
280
  when String
280
281
  { api_key: opts }
281
282
  when Hash
282
- check_api_key!(opts.fetch(:api_key)) if opts.key?(:api_key)
283
+ # If the user is using request signing for authentication,
284
+ # no need to check the api_key per request.
285
+ if !(opts.key?(:client) &&
286
+ opts.fetch(:client).config.authenticator) &&
287
+ opts.key?(:api_key)
288
+ check_api_key!(opts.fetch(:api_key))
289
+ end
283
290
  # Explicitly use dup here instead of clone to avoid preserving freeze
284
291
  # state on input params.
285
292
  opts.dup
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "10.8.0"
4
+ VERSION = "10.9.0-beta.1"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -13,6 +13,7 @@ require "set"
13
13
  require "socket"
14
14
  require "uri"
15
15
  require "forwardable"
16
+ require "base64"
16
17
 
17
18
  # Version
18
19
  require "stripe/api_version"
@@ -45,6 +46,7 @@ require "stripe/api_resource_test_helpers"
45
46
  require "stripe/singleton_api_resource"
46
47
  require "stripe/webhook"
47
48
  require "stripe/stripe_configuration"
49
+ require "stripe/request_signing_authenticator"
48
50
 
49
51
  # Named API resources
50
52
  require "stripe/resources"
@@ -71,6 +73,7 @@ module Stripe
71
73
 
72
74
  # User configurable options
73
75
  def_delegators :@config, :api_key, :api_key=
76
+ def_delegators :@config, :authenticator, :authenticator=
74
77
  def_delegators :@config, :api_version, :api_version=
75
78
  def_delegators :@config, :stripe_account, :stripe_account=
76
79
  def_delegators :@config, :api_base, :api_base=
@@ -117,6 +120,49 @@ module Stripe
117
120
  version: version,
118
121
  }
119
122
  end
123
+
124
+ class Preview
125
+ def self._get_default_opts(opts)
126
+ { api_mode: :preview }.merge(opts)
127
+ end
128
+
129
+ def self.get(url, opts = {})
130
+ Stripe.raw_request(:get, url, {}, _get_default_opts(opts))
131
+ end
132
+
133
+ def self.post(url, params = {}, opts = {})
134
+ Stripe.raw_request(:post, url, params, _get_default_opts(opts))
135
+ end
136
+
137
+ def self.delete(url, opts = {})
138
+ Stripe.raw_request(:delete, url, {}, _get_default_opts(opts))
139
+ end
140
+ end
141
+
142
+ class RawRequest
143
+ include Stripe::APIOperations::Request
144
+
145
+ def initialize
146
+ @opts = {}
147
+ end
148
+
149
+ def execute(method, url, params = {}, opts = {}, usage = [])
150
+ resp, = execute_resource_request(method, url, params, opts, usage)
151
+
152
+ resp
153
+ end
154
+ end
155
+
156
+ # Sends a request to Stripe REST API
157
+ def self.raw_request(method, url, params = {}, opts = {})
158
+ req = RawRequest.new
159
+ req.execute(method, url, params, opts, ["raw_request"])
160
+ end
161
+
162
+ def self.deserialize(data)
163
+ data = JSON.parse(data) if data.is_a?(String)
164
+ Util.convert_to_stripe_object(data, {})
165
+ end
120
166
  end
121
167
 
122
168
  Stripe.log_level = ENV["STRIPE_LOG"] unless ENV["STRIPE_LOG"].nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.8.0
4
+ version: 10.9.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
@@ -51,9 +51,11 @@ files:
51
51
  - lib/stripe/multipart_encoder.rb
52
52
  - lib/stripe/oauth.rb
53
53
  - lib/stripe/object_types.rb
54
+ - lib/stripe/request_signing_authenticator.rb
54
55
  - lib/stripe/resources.rb
55
56
  - lib/stripe/resources/account.rb
56
57
  - lib/stripe/resources/account_link.rb
58
+ - lib/stripe/resources/account_notice.rb
57
59
  - lib/stripe/resources/account_session.rb
58
60
  - lib/stripe/resources/alipay_account.rb
59
61
  - lib/stripe/resources/apple_pay_domain.rb
@@ -66,6 +68,9 @@ files:
66
68
  - lib/stripe/resources/billing_portal/configuration.rb
67
69
  - lib/stripe/resources/billing_portal/session.rb
68
70
  - lib/stripe/resources/capability.rb
71
+ - lib/stripe/resources/capital/financing_offer.rb
72
+ - lib/stripe/resources/capital/financing_summary.rb
73
+ - lib/stripe/resources/capital/financing_transaction.rb
69
74
  - lib/stripe/resources/card.rb
70
75
  - lib/stripe/resources/cash_balance.rb
71
76
  - lib/stripe/resources/charge.rb
@@ -73,6 +78,7 @@ files:
73
78
  - lib/stripe/resources/climate/order.rb
74
79
  - lib/stripe/resources/climate/product.rb
75
80
  - lib/stripe/resources/climate/supplier.rb
81
+ - lib/stripe/resources/confirmation_token.rb
76
82
  - lib/stripe/resources/country_spec.rb
77
83
  - lib/stripe/resources/coupon.rb
78
84
  - lib/stripe/resources/credit_note.rb
@@ -80,34 +86,47 @@ files:
80
86
  - lib/stripe/resources/customer.rb
81
87
  - lib/stripe/resources/customer_balance_transaction.rb
82
88
  - lib/stripe/resources/customer_cash_balance_transaction.rb
89
+ - lib/stripe/resources/customer_entitlement.rb
90
+ - lib/stripe/resources/customer_entitlement_summary.rb
83
91
  - lib/stripe/resources/customer_session.rb
84
92
  - lib/stripe/resources/discount.rb
85
93
  - lib/stripe/resources/dispute.rb
94
+ - lib/stripe/resources/entitlements/event.rb
95
+ - lib/stripe/resources/entitlements/feature.rb
86
96
  - lib/stripe/resources/ephemeral_key.rb
87
97
  - lib/stripe/resources/event.rb
88
98
  - lib/stripe/resources/exchange_rate.rb
89
99
  - lib/stripe/resources/file.rb
90
100
  - lib/stripe/resources/file_link.rb
91
101
  - lib/stripe/resources/financial_connections/account.rb
102
+ - lib/stripe/resources/financial_connections/account_inferred_balance.rb
92
103
  - lib/stripe/resources/financial_connections/account_owner.rb
93
104
  - lib/stripe/resources/financial_connections/account_ownership.rb
94
105
  - lib/stripe/resources/financial_connections/session.rb
95
106
  - lib/stripe/resources/financial_connections/transaction.rb
96
107
  - lib/stripe/resources/funding_instructions.rb
108
+ - lib/stripe/resources/gift_cards/card.rb
109
+ - lib/stripe/resources/gift_cards/transaction.rb
97
110
  - lib/stripe/resources/identity/verification_report.rb
98
111
  - lib/stripe/resources/identity/verification_session.rb
99
112
  - lib/stripe/resources/invoice.rb
100
113
  - lib/stripe/resources/invoice_item.rb
101
114
  - lib/stripe/resources/invoice_line_item.rb
115
+ - lib/stripe/resources/invoice_payment.rb
102
116
  - lib/stripe/resources/issuing/authorization.rb
103
117
  - lib/stripe/resources/issuing/card.rb
104
118
  - lib/stripe/resources/issuing/cardholder.rb
119
+ - lib/stripe/resources/issuing/credit_underwriting_record.rb
105
120
  - lib/stripe/resources/issuing/dispute.rb
121
+ - lib/stripe/resources/issuing/personalization_design.rb
122
+ - lib/stripe/resources/issuing/physical_bundle.rb
106
123
  - lib/stripe/resources/issuing/token.rb
107
124
  - lib/stripe/resources/issuing/transaction.rb
108
125
  - lib/stripe/resources/line_item.rb
109
126
  - lib/stripe/resources/login_link.rb
110
127
  - lib/stripe/resources/mandate.rb
128
+ - lib/stripe/resources/margin.rb
129
+ - lib/stripe/resources/order.rb
111
130
  - lib/stripe/resources/payment_intent.rb
112
131
  - lib/stripe/resources/payment_link.rb
113
132
  - lib/stripe/resources/payment_method.rb
@@ -120,6 +139,9 @@ files:
120
139
  - lib/stripe/resources/product.rb
121
140
  - lib/stripe/resources/promotion_code.rb
122
141
  - lib/stripe/resources/quote.rb
142
+ - lib/stripe/resources/quote_phase.rb
143
+ - lib/stripe/resources/quote_preview_invoice.rb
144
+ - lib/stripe/resources/quote_preview_subscription_schedule.rb
123
145
  - lib/stripe/resources/radar/early_fraud_warning.rb
124
146
  - lib/stripe/resources/radar/value_list.rb
125
147
  - lib/stripe/resources/radar/value_list_item.rb
@@ -140,6 +162,7 @@ files:
140
162
  - lib/stripe/resources/subscription_schedule.rb
141
163
  - lib/stripe/resources/tax/calculation.rb
142
164
  - lib/stripe/resources/tax/calculation_line_item.rb
165
+ - lib/stripe/resources/tax/form.rb
143
166
  - lib/stripe/resources/tax/registration.rb
144
167
  - lib/stripe/resources/tax/settings.rb
145
168
  - lib/stripe/resources/tax/transaction.rb
@@ -201,9 +224,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
224
  version: 2.3.0
202
225
  required_rubygems_version: !ruby/object:Gem::Requirement
203
226
  requirements:
204
- - - ">="
227
+ - - ">"
205
228
  - !ruby/object:Gem::Version
206
- version: '0'
229
+ version: 1.3.1
207
230
  requirements: []
208
231
  rubygems_version: 3.3.26
209
232
  signing_key: