stripe 10.9.0.pre.beta.1 → 10.10.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/Gemfile +3 -0
- data/Makefile +7 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/bin/tapioca +27 -0
- data/lib/stripe/api_resource.rb +10 -1
- data/lib/stripe/api_resource_test_helpers.rb +6 -2
- data/lib/stripe/list_object.rb +3 -0
- data/lib/stripe/object_types.rb +142 -140
- data/lib/stripe/resources/account.rb +6 -4
- data/lib/stripe/resources/account_link.rb +3 -0
- data/lib/stripe/resources/account_notice.rb +3 -0
- data/lib/stripe/resources/account_session.rb +3 -0
- data/lib/stripe/resources/apple_pay_domain.rb +3 -0
- data/lib/stripe/resources/application_fee.rb +3 -0
- data/lib/stripe/resources/application_fee_refund.rb +3 -0
- data/lib/stripe/resources/apps/secret.rb +3 -0
- data/lib/stripe/resources/balance.rb +3 -0
- data/lib/stripe/resources/balance_transaction.rb +3 -0
- data/lib/stripe/resources/bank_account.rb +3 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +3 -0
- data/lib/stripe/resources/billing_portal/session.rb +3 -0
- data/lib/stripe/resources/capability.rb +3 -0
- data/lib/stripe/resources/capital/financing_offer.rb +3 -0
- data/lib/stripe/resources/capital/financing_summary.rb +3 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +3 -0
- data/lib/stripe/resources/card.rb +3 -0
- data/lib/stripe/resources/cash_balance.rb +3 -0
- data/lib/stripe/resources/charge.rb +3 -0
- data/lib/stripe/resources/checkout/session.rb +3 -0
- data/lib/stripe/resources/climate/order.rb +3 -0
- data/lib/stripe/resources/climate/product.rb +3 -0
- data/lib/stripe/resources/climate/supplier.rb +3 -0
- data/lib/stripe/resources/confirmation_token.rb +3 -0
- data/lib/stripe/resources/country_spec.rb +3 -0
- data/lib/stripe/resources/coupon.rb +3 -0
- data/lib/stripe/resources/credit_note.rb +3 -0
- data/lib/stripe/resources/credit_note_line_item.rb +3 -0
- data/lib/stripe/resources/customer.rb +8 -3
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +3 -0
- data/lib/stripe/resources/customer_entitlement.rb +3 -0
- data/lib/stripe/resources/customer_entitlement_summary.rb +3 -0
- data/lib/stripe/resources/customer_session.rb +3 -0
- data/lib/stripe/resources/discount.rb +3 -0
- data/lib/stripe/resources/dispute.rb +3 -0
- data/lib/stripe/resources/entitlements/event.rb +3 -0
- data/lib/stripe/resources/entitlements/feature.rb +3 -0
- data/lib/stripe/resources/ephemeral_key.rb +3 -0
- data/lib/stripe/resources/event.rb +3 -0
- data/lib/stripe/resources/exchange_rate.rb +3 -0
- data/lib/stripe/resources/file.rb +6 -0
- data/lib/stripe/resources/file_link.rb +3 -0
- data/lib/stripe/resources/financial_connections/account.rb +3 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +3 -0
- 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 +3 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +3 -0
- data/lib/stripe/resources/funding_instructions.rb +3 -0
- data/lib/stripe/resources/gift_cards/card.rb +3 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +3 -0
- data/lib/stripe/resources/identity/verification_report.rb +3 -0
- data/lib/stripe/resources/identity/verification_session.rb +3 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/invoice_item.rb +3 -0
- data/lib/stripe/resources/invoice_line_item.rb +3 -0
- data/lib/stripe/resources/invoice_payment.rb +3 -0
- data/lib/stripe/resources/issuing/authorization.rb +6 -0
- data/lib/stripe/resources/issuing/card.rb +6 -0
- data/lib/stripe/resources/issuing/cardholder.rb +3 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +3 -0
- data/lib/stripe/resources/issuing/dispute.rb +3 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +6 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +3 -0
- data/lib/stripe/resources/issuing/token.rb +3 -0
- data/lib/stripe/resources/issuing/transaction.rb +6 -0
- data/lib/stripe/resources/line_item.rb +3 -0
- data/lib/stripe/resources/login_link.rb +3 -0
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/margin.rb +3 -0
- data/lib/stripe/resources/order.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +55 -4
- data/lib/stripe/resources/payment_link.rb +3 -0
- data/lib/stripe/resources/payment_method.rb +3 -0
- data/lib/stripe/resources/payment_method_configuration.rb +3 -0
- data/lib/stripe/resources/payment_method_domain.rb +3 -0
- data/lib/stripe/resources/payout.rb +3 -0
- data/lib/stripe/resources/person.rb +3 -0
- data/lib/stripe/resources/plan.rb +3 -0
- data/lib/stripe/resources/price.rb +3 -0
- data/lib/stripe/resources/product.rb +3 -0
- data/lib/stripe/resources/promotion_code.rb +3 -0
- data/lib/stripe/resources/quote.rb +3 -0
- data/lib/stripe/resources/quote_phase.rb +3 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +3 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +3 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +3 -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 +6 -0
- data/lib/stripe/resources/reporting/report_run.rb +3 -0
- data/lib/stripe/resources/reporting/report_type.rb +3 -0
- data/lib/stripe/resources/reversal.rb +3 -0
- data/lib/stripe/resources/review.rb +3 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +3 -0
- data/lib/stripe/resources/shipping_rate.rb +3 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -0
- data/lib/stripe/resources/source.rb +3 -0
- data/lib/stripe/resources/source_transaction.rb +3 -0
- data/lib/stripe/resources/subscription.rb +3 -0
- data/lib/stripe/resources/subscription_item.rb +3 -0
- data/lib/stripe/resources/subscription_schedule.rb +3 -0
- data/lib/stripe/resources/tax/calculation.rb +3 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +3 -0
- data/lib/stripe/resources/tax/form.rb +3 -0
- data/lib/stripe/resources/tax/registration.rb +3 -0
- data/lib/stripe/resources/tax/settings.rb +3 -0
- data/lib/stripe/resources/tax/transaction.rb +3 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +3 -0
- data/lib/stripe/resources/tax_code.rb +3 -0
- data/lib/stripe/resources/tax_id.rb +5 -4
- data/lib/stripe/resources/tax_rate.rb +3 -0
- data/lib/stripe/resources/terminal/configuration.rb +3 -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 +6 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +3 -0
- data/lib/stripe/resources/token.rb +3 -0
- data/lib/stripe/resources/topup.rb +3 -0
- data/lib/stripe/resources/transfer.rb +3 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -0
- data/lib/stripe/resources/treasury/financial_account.rb +3 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +3 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +6 -0
- data/lib/stripe/resources/treasury/received_credit.rb +6 -0
- data/lib/stripe/resources/treasury/received_debit.rb +6 -0
- data/lib/stripe/resources/treasury/transaction.rb +3 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +3 -0
- data/lib/stripe/resources/usage_record.rb +3 -0
- data/lib/stripe/resources/usage_record_summary.rb +3 -0
- data/lib/stripe/resources/webhook_endpoint.rb +3 -0
- data/lib/stripe/search_result_object.rb +3 -0
- data/lib/stripe/singleton_api_resource.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/coveralls_reborn.rbi +3 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3437 -0
- data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
- data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +19 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
- data/sorbet/rbi/gems/mocha@1.16.1.rbi +11 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +9454 -0
- data/sorbet/rbi/gems/power_assert@2.0.3.rbi +414 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10085 -0
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +931 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5193 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +2884 -0
- data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3766 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4887 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7004 -0
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56919 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +555 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +8 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
- data/sorbet/rbi/gems/tapioca@0.11.17.rbi +3503 -0
- data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
- data/sorbet/rbi/gems/test-unit@3.6.1.rbi +4403 -0
- data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
- data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +1740 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +59 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15d265db0d747be11b2f268b6cf7e2c26e78cadbe764f9c4b55868d532415ea7
|
4
|
+
data.tar.gz: b4cc1df3d68f967ff58dff2f5163bffe50c3b355ad1370dc59fa452879472dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e190327bb385b28037e0a6043f2c27267e02c260480981e6109f5f80ddeb8f17a0d2b45576c5ec455a46a634848b934ee79b453d86aa045663dc0e9618e118bb
|
7
|
+
data.tar.gz: 78c3b59537ec23445582d2607cabdb006304aa3b7308d0d914886c988f8ca2cf8f2480596c006dfa868efc6e856022b0d512983998bd20a303dbb17a5f898f75
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 10.10.0-beta.1 - 2024-02-16
|
4
|
+
* [#1332](https://github.com/stripe/stripe-ruby/pull/1332) Update generated code for beta
|
5
|
+
* Add support for `decrement_authorization` method on resource `PaymentIntent`
|
6
|
+
* [#1328](https://github.com/stripe/stripe-ruby/pull/1328) Update generated code for beta
|
7
|
+
|
8
|
+
|
9
|
+
## 10.9.0 - 2024-02-15
|
10
|
+
* [#1329](https://github.com/stripe/stripe-ruby/pull/1329) Update generated code
|
11
|
+
* Fixed bug where `TaxId` resource `delete` method sent request to wrong URL (https://github.com/stripe/stripe-ruby/issues/1333)
|
12
|
+
* [#1324](https://github.com/stripe/stripe-ruby/pull/1324) Start running Sorbet in CI
|
13
|
+
* [#1327](https://github.com/stripe/stripe-ruby/pull/1327) Add methods for dynamically referenced constants
|
14
|
+
|
3
15
|
## 10.9.0-beta.1 - 2024-02-08
|
4
16
|
* [#1321](https://github.com/stripe/stripe-ruby/pull/1321) Update generated code for beta
|
5
17
|
* Release specs are identical.
|
6
18
|
|
19
|
+
## 10.8.0 - 2024-02-08
|
20
|
+
* [#1322](https://github.com/stripe/stripe-ruby/pull/1322) Update generated code
|
21
|
+
* [#1323](https://github.com/stripe/stripe-ruby/pull/1323) Extract other CRUDL api operations from mixins
|
22
|
+
* Extract more CRUDL operations, namely `create`, `delete`, `update`, and `list` into the resources. These methods will no longer rely on the APIOperation mixins.
|
23
|
+
* [#1314](https://github.com/stripe/stripe-ruby/pull/1314) Update mocha gem to 1.16
|
24
|
+
|
7
25
|
## 10.8.0-beta.1 - 2024-02-01
|
8
26
|
* [#1318](https://github.com/stripe/stripe-ruby/pull/1318) Update generated code for beta
|
9
27
|
* Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
|
data/Gemfile
CHANGED
data/Makefile
CHANGED
@@ -9,5 +9,12 @@ codegen-format:
|
|
9
9
|
|
10
10
|
ci-test:
|
11
11
|
bundle install && bundle exec rake test
|
12
|
+
@version=$$(ruby -e "puts RUBY_VERSION.split('.')[0..1].join.to_i"); \
|
13
|
+
if [ $$version -ge 27 ]; then \
|
14
|
+
echo "Ruby version >= 2.7, continue with srb tc"; \
|
15
|
+
bundle exec srb tc; \
|
16
|
+
else \
|
17
|
+
echo "Ruby version < 2.7, skipping srb tc"; \
|
18
|
+
fi
|
12
19
|
|
13
20
|
test: ci-test
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v831
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.10.0-beta.1
|
data/bin/tapioca
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'tapioca' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
|
+
load(bundle_binstub)
|
18
|
+
else
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
require "rubygems"
|
25
|
+
require "bundler/setup"
|
26
|
+
|
27
|
+
load Gem.bin_path("tapioca", "tapioca")
|
data/lib/stripe/api_resource.rb
CHANGED
@@ -11,6 +11,15 @@ module Stripe
|
|
11
11
|
# for example, where this is allowed.
|
12
12
|
attr_accessor :save_with_parent
|
13
13
|
|
14
|
+
# TODO: (major) Remove OBJECT_NAME and stop using const_get here
|
15
|
+
# This is a workaround to avoid breaking users who have defined their own
|
16
|
+
# APIResource subclasses with a custom OBJECT_NAME. We should never fallback
|
17
|
+
# on this case otherwise.
|
18
|
+
OBJECT_NAME = ""
|
19
|
+
def self.object_name
|
20
|
+
const_get(:OBJECT_NAME)
|
21
|
+
end
|
22
|
+
|
14
23
|
def self.class_name
|
15
24
|
name.split("::")[-1]
|
16
25
|
end
|
@@ -23,7 +32,7 @@ module Stripe
|
|
23
32
|
end
|
24
33
|
# Namespaces are separated in object names with periods (.) and in URLs
|
25
34
|
# with forward slashes (/), so replace the former with the latter.
|
26
|
-
"/v1/#{
|
35
|
+
"/v1/#{object_name.downcase.tr('.', '/')}s"
|
27
36
|
end
|
28
37
|
|
29
38
|
# A metaprogramming call that specifies that a field of a resource can be
|
@@ -14,6 +14,10 @@ module Stripe
|
|
14
14
|
@resource = resource
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.resource_class
|
18
|
+
nil
|
19
|
+
end
|
20
|
+
|
17
21
|
# Adds a custom method to a test helper. This is used to add support for
|
18
22
|
# non-CRUDL API requests, e.g. capturing charges. custom_method takes the
|
19
23
|
# following parameters:
|
@@ -27,12 +31,12 @@ module Stripe
|
|
27
31
|
# adds a `capture` class method to the resource class that, when called,
|
28
32
|
# will send a POST request to `/v1/<object_name>/capture`.
|
29
33
|
def self.custom_method(name, http_verb:, http_path: nil)
|
30
|
-
Util.custom_method
|
34
|
+
Util.custom_method resource_class, self, name, http_verb, http_path
|
31
35
|
end
|
32
36
|
|
33
37
|
def self.resource_url
|
34
38
|
"/v1/test_helpers/" \
|
35
|
-
"#{
|
39
|
+
"#{resource_class.object_name.downcase.tr('.', '/')}s"
|
36
40
|
end
|
37
41
|
|
38
42
|
def resource_url
|
data/lib/stripe/list_object.rb
CHANGED
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
include Stripe::APIOperations::Create
|
9
9
|
|
10
10
|
OBJECT_NAME = "list"
|
11
|
+
def self.object_name
|
12
|
+
"list"
|
13
|
+
end
|
11
14
|
|
12
15
|
# This accessor allows a `ListObject` to inherit various filters that were
|
13
16
|
# given to a predecessor. This allows for things like consistent limits,
|
data/lib/stripe/object_types.rb
CHANGED
@@ -2,159 +2,161 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
# rubocop:disable Metrics/MethodLength
|
5
|
+
# rubocop:disable Metrics/AbcSize
|
5
6
|
|
6
7
|
module Stripe
|
7
8
|
module ObjectTypes
|
8
9
|
def self.object_names_to_classes
|
9
10
|
{
|
10
11
|
# data structures
|
11
|
-
ListObject
|
12
|
-
SearchResultObject
|
12
|
+
ListObject.object_name => ListObject,
|
13
|
+
SearchResultObject.object_name => SearchResultObject,
|
13
14
|
|
14
15
|
# business objects
|
15
|
-
File
|
16
|
-
Account
|
17
|
-
AccountLink
|
18
|
-
AccountNotice
|
19
|
-
AccountSession
|
20
|
-
ApplePayDomain
|
21
|
-
ApplicationFee
|
22
|
-
ApplicationFeeRefund
|
23
|
-
Apps::Secret
|
24
|
-
Balance
|
25
|
-
BalanceTransaction
|
26
|
-
BankAccount
|
27
|
-
BillingPortal::Configuration
|
28
|
-
BillingPortal::Session
|
29
|
-
Capability
|
30
|
-
Capital::FinancingOffer
|
31
|
-
Capital::FinancingSummary
|
32
|
-
Capital::FinancingTransaction
|
33
|
-
Card
|
34
|
-
CashBalance
|
35
|
-
Charge
|
36
|
-
Checkout::Session
|
37
|
-
Climate::Order
|
38
|
-
Climate::Product
|
39
|
-
Climate::Supplier
|
40
|
-
ConfirmationToken
|
41
|
-
CountrySpec
|
42
|
-
Coupon
|
43
|
-
CreditNote
|
44
|
-
CreditNoteLineItem
|
45
|
-
Customer
|
46
|
-
CustomerBalanceTransaction
|
47
|
-
CustomerCashBalanceTransaction
|
48
|
-
CustomerEntitlement
|
49
|
-
CustomerEntitlementSummary
|
50
|
-
CustomerSession
|
51
|
-
Discount
|
52
|
-
Dispute
|
53
|
-
Entitlements::Event
|
54
|
-
Entitlements::Feature
|
55
|
-
EphemeralKey
|
56
|
-
Event
|
57
|
-
ExchangeRate
|
58
|
-
File
|
59
|
-
FileLink
|
60
|
-
FinancialConnections::Account
|
61
|
-
FinancialConnections::AccountInferredBalance
|
16
|
+
File.object_name_alt => File,
|
17
|
+
Account.object_name => Account,
|
18
|
+
AccountLink.object_name => AccountLink,
|
19
|
+
AccountNotice.object_name => AccountNotice,
|
20
|
+
AccountSession.object_name => AccountSession,
|
21
|
+
ApplePayDomain.object_name => ApplePayDomain,
|
22
|
+
ApplicationFee.object_name => ApplicationFee,
|
23
|
+
ApplicationFeeRefund.object_name => ApplicationFeeRefund,
|
24
|
+
Apps::Secret.object_name => Apps::Secret,
|
25
|
+
Balance.object_name => Balance,
|
26
|
+
BalanceTransaction.object_name => BalanceTransaction,
|
27
|
+
BankAccount.object_name => BankAccount,
|
28
|
+
BillingPortal::Configuration.object_name => BillingPortal::Configuration,
|
29
|
+
BillingPortal::Session.object_name => BillingPortal::Session,
|
30
|
+
Capability.object_name => Capability,
|
31
|
+
Capital::FinancingOffer.object_name => Capital::FinancingOffer,
|
32
|
+
Capital::FinancingSummary.object_name => Capital::FinancingSummary,
|
33
|
+
Capital::FinancingTransaction.object_name => Capital::FinancingTransaction,
|
34
|
+
Card.object_name => Card,
|
35
|
+
CashBalance.object_name => CashBalance,
|
36
|
+
Charge.object_name => Charge,
|
37
|
+
Checkout::Session.object_name => Checkout::Session,
|
38
|
+
Climate::Order.object_name => Climate::Order,
|
39
|
+
Climate::Product.object_name => Climate::Product,
|
40
|
+
Climate::Supplier.object_name => Climate::Supplier,
|
41
|
+
ConfirmationToken.object_name => ConfirmationToken,
|
42
|
+
CountrySpec.object_name => CountrySpec,
|
43
|
+
Coupon.object_name => Coupon,
|
44
|
+
CreditNote.object_name => CreditNote,
|
45
|
+
CreditNoteLineItem.object_name => CreditNoteLineItem,
|
46
|
+
Customer.object_name => Customer,
|
47
|
+
CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
|
48
|
+
CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
|
49
|
+
CustomerEntitlement.object_name => CustomerEntitlement,
|
50
|
+
CustomerEntitlementSummary.object_name => CustomerEntitlementSummary,
|
51
|
+
CustomerSession.object_name => CustomerSession,
|
52
|
+
Discount.object_name => Discount,
|
53
|
+
Dispute.object_name => Dispute,
|
54
|
+
Entitlements::Event.object_name => Entitlements::Event,
|
55
|
+
Entitlements::Feature.object_name => Entitlements::Feature,
|
56
|
+
EphemeralKey.object_name => EphemeralKey,
|
57
|
+
Event.object_name => Event,
|
58
|
+
ExchangeRate.object_name => ExchangeRate,
|
59
|
+
File.object_name => File,
|
60
|
+
FileLink.object_name => FileLink,
|
61
|
+
FinancialConnections::Account.object_name => FinancialConnections::Account,
|
62
|
+
FinancialConnections::AccountInferredBalance.object_name =>
|
62
63
|
FinancialConnections::AccountInferredBalance,
|
63
|
-
FinancialConnections::AccountOwner
|
64
|
-
FinancialConnections::AccountOwnership
|
64
|
+
FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner,
|
65
|
+
FinancialConnections::AccountOwnership.object_name =>
|
65
66
|
FinancialConnections::AccountOwnership,
|
66
|
-
FinancialConnections::Session
|
67
|
-
FinancialConnections::Transaction
|
68
|
-
FundingInstructions
|
69
|
-
GiftCards::Card
|
70
|
-
GiftCards::Transaction
|
71
|
-
Identity::VerificationReport
|
72
|
-
Identity::VerificationSession
|
73
|
-
Invoice
|
74
|
-
InvoiceItem
|
75
|
-
InvoiceLineItem
|
76
|
-
InvoicePayment
|
77
|
-
Issuing::Authorization
|
78
|
-
Issuing::Card
|
79
|
-
Issuing::Cardholder
|
80
|
-
Issuing::CreditUnderwritingRecord
|
81
|
-
Issuing::Dispute
|
82
|
-
Issuing::PersonalizationDesign
|
83
|
-
Issuing::PhysicalBundle
|
84
|
-
Issuing::Token
|
85
|
-
Issuing::Transaction
|
86
|
-
LineItem
|
87
|
-
LoginLink
|
88
|
-
Mandate
|
89
|
-
Margin
|
90
|
-
Order
|
91
|
-
PaymentIntent
|
92
|
-
PaymentLink
|
93
|
-
PaymentMethod
|
94
|
-
PaymentMethodConfiguration
|
95
|
-
PaymentMethodDomain
|
96
|
-
Payout
|
97
|
-
Person
|
98
|
-
Plan
|
99
|
-
Price
|
100
|
-
Product
|
101
|
-
PromotionCode
|
102
|
-
Quote
|
103
|
-
QuotePhase
|
104
|
-
QuotePreviewInvoice
|
105
|
-
QuotePreviewSubscriptionSchedule
|
106
|
-
Radar::EarlyFraudWarning
|
107
|
-
Radar::ValueList
|
108
|
-
Radar::ValueListItem
|
109
|
-
Refund
|
110
|
-
Reporting::ReportRun
|
111
|
-
Reporting::ReportType
|
112
|
-
Reversal
|
113
|
-
Review
|
114
|
-
SetupAttempt
|
115
|
-
SetupIntent
|
116
|
-
ShippingRate
|
117
|
-
Sigma::ScheduledQueryRun
|
118
|
-
Source
|
119
|
-
SourceTransaction
|
120
|
-
Subscription
|
121
|
-
SubscriptionItem
|
122
|
-
SubscriptionSchedule
|
123
|
-
Tax::Calculation
|
124
|
-
Tax::CalculationLineItem
|
125
|
-
Tax::Form
|
126
|
-
Tax::Registration
|
127
|
-
Tax::Settings
|
128
|
-
Tax::Transaction
|
129
|
-
Tax::TransactionLineItem
|
130
|
-
TaxCode
|
131
|
-
TaxId
|
132
|
-
TaxRate
|
133
|
-
Terminal::Configuration
|
134
|
-
Terminal::ConnectionToken
|
135
|
-
Terminal::Location
|
136
|
-
Terminal::Reader
|
137
|
-
TestHelpers::TestClock
|
138
|
-
Token
|
139
|
-
Topup
|
140
|
-
Transfer
|
141
|
-
Treasury::CreditReversal
|
142
|
-
Treasury::DebitReversal
|
143
|
-
Treasury::FinancialAccount
|
144
|
-
Treasury::FinancialAccountFeatures
|
145
|
-
Treasury::InboundTransfer
|
146
|
-
Treasury::OutboundPayment
|
147
|
-
Treasury::OutboundTransfer
|
148
|
-
Treasury::ReceivedCredit
|
149
|
-
Treasury::ReceivedDebit
|
150
|
-
Treasury::Transaction
|
151
|
-
Treasury::TransactionEntry
|
152
|
-
UsageRecord
|
153
|
-
UsageRecordSummary
|
154
|
-
WebhookEndpoint
|
67
|
+
FinancialConnections::Session.object_name => FinancialConnections::Session,
|
68
|
+
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
|
69
|
+
FundingInstructions.object_name => FundingInstructions,
|
70
|
+
GiftCards::Card.object_name => GiftCards::Card,
|
71
|
+
GiftCards::Transaction.object_name => GiftCards::Transaction,
|
72
|
+
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
73
|
+
Identity::VerificationSession.object_name => Identity::VerificationSession,
|
74
|
+
Invoice.object_name => Invoice,
|
75
|
+
InvoiceItem.object_name => InvoiceItem,
|
76
|
+
InvoiceLineItem.object_name => InvoiceLineItem,
|
77
|
+
InvoicePayment.object_name => InvoicePayment,
|
78
|
+
Issuing::Authorization.object_name => Issuing::Authorization,
|
79
|
+
Issuing::Card.object_name => Issuing::Card,
|
80
|
+
Issuing::Cardholder.object_name => Issuing::Cardholder,
|
81
|
+
Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
|
82
|
+
Issuing::Dispute.object_name => Issuing::Dispute,
|
83
|
+
Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
|
84
|
+
Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
|
85
|
+
Issuing::Token.object_name => Issuing::Token,
|
86
|
+
Issuing::Transaction.object_name => Issuing::Transaction,
|
87
|
+
LineItem.object_name => LineItem,
|
88
|
+
LoginLink.object_name => LoginLink,
|
89
|
+
Mandate.object_name => Mandate,
|
90
|
+
Margin.object_name => Margin,
|
91
|
+
Order.object_name => Order,
|
92
|
+
PaymentIntent.object_name => PaymentIntent,
|
93
|
+
PaymentLink.object_name => PaymentLink,
|
94
|
+
PaymentMethod.object_name => PaymentMethod,
|
95
|
+
PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
|
96
|
+
PaymentMethodDomain.object_name => PaymentMethodDomain,
|
97
|
+
Payout.object_name => Payout,
|
98
|
+
Person.object_name => Person,
|
99
|
+
Plan.object_name => Plan,
|
100
|
+
Price.object_name => Price,
|
101
|
+
Product.object_name => Product,
|
102
|
+
PromotionCode.object_name => PromotionCode,
|
103
|
+
Quote.object_name => Quote,
|
104
|
+
QuotePhase.object_name => QuotePhase,
|
105
|
+
QuotePreviewInvoice.object_name => QuotePreviewInvoice,
|
106
|
+
QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
|
107
|
+
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
|
108
|
+
Radar::ValueList.object_name => Radar::ValueList,
|
109
|
+
Radar::ValueListItem.object_name => Radar::ValueListItem,
|
110
|
+
Refund.object_name => Refund,
|
111
|
+
Reporting::ReportRun.object_name => Reporting::ReportRun,
|
112
|
+
Reporting::ReportType.object_name => Reporting::ReportType,
|
113
|
+
Reversal.object_name => Reversal,
|
114
|
+
Review.object_name => Review,
|
115
|
+
SetupAttempt.object_name => SetupAttempt,
|
116
|
+
SetupIntent.object_name => SetupIntent,
|
117
|
+
ShippingRate.object_name => ShippingRate,
|
118
|
+
Sigma::ScheduledQueryRun.object_name => Sigma::ScheduledQueryRun,
|
119
|
+
Source.object_name => Source,
|
120
|
+
SourceTransaction.object_name => SourceTransaction,
|
121
|
+
Subscription.object_name => Subscription,
|
122
|
+
SubscriptionItem.object_name => SubscriptionItem,
|
123
|
+
SubscriptionSchedule.object_name => SubscriptionSchedule,
|
124
|
+
Tax::Calculation.object_name => Tax::Calculation,
|
125
|
+
Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
|
126
|
+
Tax::Form.object_name => Tax::Form,
|
127
|
+
Tax::Registration.object_name => Tax::Registration,
|
128
|
+
Tax::Settings.object_name => Tax::Settings,
|
129
|
+
Tax::Transaction.object_name => Tax::Transaction,
|
130
|
+
Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
|
131
|
+
TaxCode.object_name => TaxCode,
|
132
|
+
TaxId.object_name => TaxId,
|
133
|
+
TaxRate.object_name => TaxRate,
|
134
|
+
Terminal::Configuration.object_name => Terminal::Configuration,
|
135
|
+
Terminal::ConnectionToken.object_name => Terminal::ConnectionToken,
|
136
|
+
Terminal::Location.object_name => Terminal::Location,
|
137
|
+
Terminal::Reader.object_name => Terminal::Reader,
|
138
|
+
TestHelpers::TestClock.object_name => TestHelpers::TestClock,
|
139
|
+
Token.object_name => Token,
|
140
|
+
Topup.object_name => Topup,
|
141
|
+
Transfer.object_name => Transfer,
|
142
|
+
Treasury::CreditReversal.object_name => Treasury::CreditReversal,
|
143
|
+
Treasury::DebitReversal.object_name => Treasury::DebitReversal,
|
144
|
+
Treasury::FinancialAccount.object_name => Treasury::FinancialAccount,
|
145
|
+
Treasury::FinancialAccountFeatures.object_name => Treasury::FinancialAccountFeatures,
|
146
|
+
Treasury::InboundTransfer.object_name => Treasury::InboundTransfer,
|
147
|
+
Treasury::OutboundPayment.object_name => Treasury::OutboundPayment,
|
148
|
+
Treasury::OutboundTransfer.object_name => Treasury::OutboundTransfer,
|
149
|
+
Treasury::ReceivedCredit.object_name => Treasury::ReceivedCredit,
|
150
|
+
Treasury::ReceivedDebit.object_name => Treasury::ReceivedDebit,
|
151
|
+
Treasury::Transaction.object_name => Treasury::Transaction,
|
152
|
+
Treasury::TransactionEntry.object_name => Treasury::TransactionEntry,
|
153
|
+
UsageRecord.object_name => UsageRecord,
|
154
|
+
UsageRecordSummary.object_name => UsageRecordSummary,
|
155
|
+
WebhookEndpoint.object_name => WebhookEndpoint,
|
155
156
|
}
|
156
157
|
end
|
157
158
|
end
|
158
159
|
end
|
159
160
|
|
161
|
+
# rubocop:enable Metrics/AbcSize
|
160
162
|
# rubocop:enable Metrics/MethodLength
|
@@ -17,10 +17,16 @@ module Stripe
|
|
17
17
|
extend Stripe::APIOperations::NestedResource
|
18
18
|
|
19
19
|
OBJECT_NAME = "account"
|
20
|
+
def self.object_name
|
21
|
+
"account"
|
22
|
+
end
|
20
23
|
|
21
24
|
nested_resource_class_methods :capability,
|
22
25
|
operations: %i[retrieve update list],
|
23
26
|
resource_plural: "capabilities"
|
27
|
+
nested_resource_class_methods :external_account,
|
28
|
+
operations: %i[create retrieve update delete list]
|
29
|
+
nested_resource_class_methods :login_link, operations: %i[create]
|
24
30
|
nested_resource_class_methods :person, operations: %i[create retrieve update delete list]
|
25
31
|
|
26
32
|
# Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first.
|
@@ -69,10 +75,6 @@ module Stripe
|
|
69
75
|
|
70
76
|
save_nested_resource :external_account
|
71
77
|
|
72
|
-
nested_resource_class_methods :external_account,
|
73
|
-
operations: %i[create retrieve update delete list]
|
74
|
-
nested_resource_class_methods :login_link, operations: %i[create]
|
75
|
-
|
76
78
|
def resource_url
|
77
79
|
if self["id"]
|
78
80
|
super
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
extend Stripe::APIOperations::Create
|
11
11
|
|
12
12
|
OBJECT_NAME = "account_link"
|
13
|
+
def self.object_name
|
14
|
+
"account_link"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
|
15
18
|
def self.create(params = {}, opts = {})
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
include Stripe::APIOperations::Save
|
11
11
|
|
12
12
|
OBJECT_NAME = "account_notice"
|
13
|
+
def self.object_name
|
14
|
+
"account_notice"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
15
18
|
def self.list(filters = {}, opts = {})
|
@@ -13,6 +13,9 @@ module Stripe
|
|
13
13
|
extend Stripe::APIOperations::Create
|
14
14
|
|
15
15
|
OBJECT_NAME = "account_session"
|
16
|
+
def self.object_name
|
17
|
+
"account_session"
|
18
|
+
end
|
16
19
|
|
17
20
|
# Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
|
18
21
|
def self.create(params = {}, opts = {})
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
extend Stripe::APIOperations::List
|
11
11
|
|
12
12
|
OBJECT_NAME = "balance_transaction"
|
13
|
+
def self.object_name
|
14
|
+
"balance_transaction"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
|
15
18
|
#
|
@@ -15,6 +15,9 @@ module Stripe
|
|
15
15
|
include Stripe::APIOperations::Save
|
16
16
|
|
17
17
|
OBJECT_NAME = "bank_account"
|
18
|
+
def self.object_name
|
19
|
+
"bank_account"
|
20
|
+
end
|
18
21
|
|
19
22
|
def verify(params = {}, opts = {})
|
20
23
|
resp, opts = execute_resource_request(:post, resource_url + "/verify", params, opts)
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
include Stripe::APIOperations::Save
|
11
11
|
|
12
12
|
OBJECT_NAME = "billing_portal.configuration"
|
13
|
+
def self.object_name
|
14
|
+
"billing_portal.configuration"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Creates a configuration that describes the functionality and behavior of a PortalSession
|
15
18
|
def self.create(params = {}, opts = {})
|