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
@@ -9,6 +9,9 @@ module Stripe
|
|
9
9
|
extend Stripe::APIOperations::List
|
10
10
|
|
11
11
|
OBJECT_NAME = "capital.financing_offer"
|
12
|
+
def self.object_name
|
13
|
+
"capital.financing_offer"
|
14
|
+
end
|
12
15
|
|
13
16
|
# Acknowledges that platform has received and delivered the financing_offer to
|
14
17
|
# the intended merchant recipient.
|
@@ -7,6 +7,9 @@ module Stripe
|
|
7
7
|
# platforms to read the state of Capital offered to their connected accounts.
|
8
8
|
class FinancingSummary < SingletonAPIResource
|
9
9
|
OBJECT_NAME = "capital.financing_summary"
|
10
|
+
def self.object_name
|
11
|
+
"capital.financing_summary"
|
12
|
+
end
|
10
13
|
end
|
11
14
|
end
|
12
15
|
end
|
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::List
|
9
9
|
|
10
10
|
OBJECT_NAME = "capital.financing_transaction"
|
11
|
+
def self.object_name
|
12
|
+
"capital.financing_transaction"
|
13
|
+
end
|
11
14
|
|
12
15
|
# Returns a list of financing transactions. The transactions are returned in sorted order,
|
13
16
|
# with the most recent transactions appearing first.
|
@@ -5,6 +5,9 @@ module Stripe
|
|
5
5
|
# A customer's `Cash balance` represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account.
|
6
6
|
class CashBalance < APIResource
|
7
7
|
OBJECT_NAME = "cash_balance"
|
8
|
+
def self.object_name
|
9
|
+
"cash_balance"
|
10
|
+
end
|
8
11
|
|
9
12
|
def resource_url
|
10
13
|
if !respond_to?(:customer) || customer.nil?
|
@@ -11,6 +11,9 @@ module Stripe
|
|
11
11
|
include Stripe::APIOperations::Save
|
12
12
|
|
13
13
|
OBJECT_NAME = "climate.order"
|
14
|
+
def self.object_name
|
15
|
+
"climate.order"
|
16
|
+
end
|
14
17
|
|
15
18
|
# Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the
|
16
19
|
# reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
|
@@ -9,5 +9,8 @@ module Stripe
|
|
9
9
|
# To learn more or request access, visit the related guided: [Finalize payments on the server using Confirmation Tokens](https://stripe.com/docs/payments/finalize-payments-on-the-server-confirmation-tokens).
|
10
10
|
class ConfirmationToken < APIResource
|
11
11
|
OBJECT_NAME = "confirmation_token"
|
12
|
+
def self.object_name
|
13
|
+
"confirmation_token"
|
14
|
+
end
|
12
15
|
end
|
13
16
|
end
|
@@ -12,6 +12,9 @@ module Stripe
|
|
12
12
|
include Stripe::APIOperations::Save
|
13
13
|
|
14
14
|
OBJECT_NAME = "coupon"
|
15
|
+
def self.object_name
|
16
|
+
"coupon"
|
17
|
+
end
|
15
18
|
|
16
19
|
# You can create coupons easily via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. Coupon creation is also accessible via the API if you need to create coupons on the fly.
|
17
20
|
#
|
@@ -11,6 +11,9 @@ module Stripe
|
|
11
11
|
include Stripe::APIOperations::Save
|
12
12
|
|
13
13
|
OBJECT_NAME = "credit_note"
|
14
|
+
def self.object_name
|
15
|
+
"credit_note"
|
16
|
+
end
|
14
17
|
|
15
18
|
# Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
|
16
19
|
def void_credit_note(params = {}, opts = {})
|
@@ -14,11 +14,15 @@ module Stripe
|
|
14
14
|
extend Stripe::APIOperations::NestedResource
|
15
15
|
|
16
16
|
OBJECT_NAME = "customer"
|
17
|
+
def self.object_name
|
18
|
+
"customer"
|
19
|
+
end
|
17
20
|
|
18
21
|
nested_resource_class_methods :balance_transaction, operations: %i[create retrieve update list]
|
19
22
|
nested_resource_class_methods :cash_balance_transaction, operations: %i[retrieve list]
|
20
|
-
nested_resource_class_methods :
|
23
|
+
nested_resource_class_methods :source, operations: %i[create retrieve update delete list]
|
21
24
|
nested_resource_class_methods :tax_id, operations: %i[create retrieve delete list]
|
25
|
+
nested_resource_class_methods :entitlement, operations: %i[list]
|
22
26
|
|
23
27
|
# Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new
|
24
28
|
# funding instructions will be created. If funding instructions have already been created for a given customer, the same
|
@@ -105,8 +109,6 @@ module Stripe
|
|
105
109
|
end
|
106
110
|
|
107
111
|
save_nested_resource :source
|
108
|
-
nested_resource_class_methods :source,
|
109
|
-
operations: %i[create retrieve update delete list]
|
110
112
|
|
111
113
|
# The API request for deleting a card or bank account and for detaching a
|
112
114
|
# source object are the same.
|
@@ -200,6 +202,9 @@ module Stripe
|
|
200
202
|
|
201
203
|
class TestHelpers < APIResourceTestHelpers
|
202
204
|
RESOURCE_CLASS = Customer
|
205
|
+
def self.resource_class
|
206
|
+
"Customer"
|
207
|
+
end
|
203
208
|
|
204
209
|
# Create an incoming testmode bank transfer
|
205
210
|
def self.fund_cash_balance(customer, params = {}, opts = {})
|
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::Create
|
9
9
|
|
10
10
|
OBJECT_NAME = "customer_session"
|
11
|
+
def self.object_name
|
12
|
+
"customer_session"
|
13
|
+
end
|
11
14
|
|
12
15
|
# Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
|
13
16
|
def self.create(params = {}, opts = {})
|
@@ -12,6 +12,9 @@ module Stripe
|
|
12
12
|
include Stripe::APIOperations::Save
|
13
13
|
|
14
14
|
OBJECT_NAME = "dispute"
|
15
|
+
def self.object_name
|
16
|
+
"dispute"
|
17
|
+
end
|
15
18
|
|
16
19
|
# Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
|
17
20
|
#
|
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::Create
|
9
9
|
|
10
10
|
OBJECT_NAME = "entitlements.event"
|
11
|
+
def self.object_name
|
12
|
+
"entitlements.event"
|
13
|
+
end
|
11
14
|
|
12
15
|
# Create an entitlement event manually, outside of the entitlement events automatically created by Stripe lifecycle events.
|
13
16
|
def self.create(params = {}, opts = {})
|
@@ -36,6 +36,9 @@ module Stripe
|
|
36
36
|
extend Stripe::APIOperations::List
|
37
37
|
|
38
38
|
OBJECT_NAME = "event"
|
39
|
+
def self.object_name
|
40
|
+
"event"
|
41
|
+
end
|
39
42
|
|
40
43
|
# List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
|
41
44
|
def self.list(filters = {}, opts = {})
|
@@ -32,6 +32,9 @@ module Stripe
|
|
32
32
|
extend Stripe::APIOperations::List
|
33
33
|
|
34
34
|
OBJECT_NAME = "exchange_rate"
|
35
|
+
def self.object_name
|
36
|
+
"exchange_rate"
|
37
|
+
end
|
35
38
|
|
36
39
|
# Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.
|
37
40
|
def self.list(filters = {}, opts = {})
|
@@ -14,12 +14,18 @@ module Stripe
|
|
14
14
|
extend Stripe::APIOperations::List
|
15
15
|
|
16
16
|
OBJECT_NAME = "file"
|
17
|
+
def self.object_name
|
18
|
+
"file"
|
19
|
+
end
|
17
20
|
|
18
21
|
# This resource can have two different object names. In latter API
|
19
22
|
# versions, only `file` is used, but since stripe-ruby may be used with
|
20
23
|
# any API version, we need to support deserializing the older
|
21
24
|
# `file_upload` object into the same class.
|
22
25
|
OBJECT_NAME_ALT = "file_upload"
|
26
|
+
def self.object_name_alt
|
27
|
+
"file_upload"
|
28
|
+
end
|
23
29
|
|
24
30
|
def self.resource_url
|
25
31
|
"/v1/files"
|
@@ -6,6 +6,9 @@ module Stripe
|
|
6
6
|
# A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
|
7
7
|
class AccountInferredBalance < APIResource
|
8
8
|
OBJECT_NAME = "financial_connections.account_inferred_balance"
|
9
|
+
def self.object_name
|
10
|
+
"financial_connections.account_inferred_balance"
|
11
|
+
end
|
9
12
|
end
|
10
13
|
end
|
11
14
|
end
|
@@ -6,6 +6,9 @@ module Stripe
|
|
6
6
|
# Describes a snapshot of the owners of an account at a particular point in time.
|
7
7
|
class AccountOwnership < StripeObject
|
8
8
|
OBJECT_NAME = "financial_connections.account_ownership"
|
9
|
+
def self.object_name
|
10
|
+
"financial_connections.account_ownership"
|
11
|
+
end
|
9
12
|
end
|
10
13
|
end
|
11
14
|
end
|
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::Create
|
9
9
|
|
10
10
|
OBJECT_NAME = "financial_connections.session"
|
11
|
+
def self.object_name
|
12
|
+
"financial_connections.session"
|
13
|
+
end
|
11
14
|
|
12
15
|
# To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js.
|
13
16
|
def self.create(params = {}, opts = {})
|
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::List
|
9
9
|
|
10
10
|
OBJECT_NAME = "financial_connections.transaction"
|
11
|
+
def self.object_name
|
12
|
+
"financial_connections.transaction"
|
13
|
+
end
|
11
14
|
|
12
15
|
# Returns a list of Financial Connections Transaction objects.
|
13
16
|
def self.list(filters = {}, opts = {})
|
@@ -9,6 +9,9 @@ module Stripe
|
|
9
9
|
# Related guide: [Customer balance funding instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions)
|
10
10
|
class FundingInstructions < APIResource
|
11
11
|
OBJECT_NAME = "funding_instructions"
|
12
|
+
def self.object_name
|
13
|
+
"funding_instructions"
|
14
|
+
end
|
12
15
|
|
13
16
|
def resource_url
|
14
17
|
if !respond_to?(:customer) || customer.nil?
|
@@ -11,6 +11,9 @@ module Stripe
|
|
11
11
|
include Stripe::APIOperations::Save
|
12
12
|
|
13
13
|
OBJECT_NAME = "gift_cards.card"
|
14
|
+
def self.object_name
|
15
|
+
"gift_cards.card"
|
16
|
+
end
|
14
17
|
|
15
18
|
# Validates a gift card code, returning the matching gift card object if it exists.
|
16
19
|
def self.validate(params = {}, opts = {})
|
@@ -20,6 +20,9 @@ module Stripe
|
|
20
20
|
include Stripe::APIOperations::Save
|
21
21
|
|
22
22
|
OBJECT_NAME = "identity.verification_session"
|
23
|
+
def self.object_name
|
24
|
+
"identity.verification_session"
|
25
|
+
end
|
23
26
|
|
24
27
|
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
25
28
|
#
|
@@ -20,6 +20,9 @@ module Stripe
|
|
20
20
|
include Stripe::APIOperations::Save
|
21
21
|
|
22
22
|
OBJECT_NAME = "invoiceitem"
|
23
|
+
def self.object_name
|
24
|
+
"invoiceitem"
|
25
|
+
end
|
23
26
|
|
24
27
|
# Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.
|
25
28
|
def self.create(params = {}, opts = {})
|
@@ -13,6 +13,9 @@ module Stripe
|
|
13
13
|
include Stripe::APIOperations::Save
|
14
14
|
|
15
15
|
OBJECT_NAME = "issuing.authorization"
|
16
|
+
def self.object_name
|
17
|
+
"issuing.authorization"
|
18
|
+
end
|
16
19
|
|
17
20
|
# [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|
18
21
|
# This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
@@ -84,6 +87,9 @@ module Stripe
|
|
84
87
|
|
85
88
|
class TestHelpers < APIResourceTestHelpers
|
86
89
|
RESOURCE_CLASS = Authorization
|
90
|
+
def self.resource_class
|
91
|
+
"Authorization"
|
92
|
+
end
|
87
93
|
|
88
94
|
# Capture a test-mode authorization.
|
89
95
|
def self.capture(authorization, params = {}, opts = {})
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
include Stripe::APIOperations::Save
|
11
11
|
|
12
12
|
OBJECT_NAME = "issuing.card"
|
13
|
+
def self.object_name
|
14
|
+
"issuing.card"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Creates an Issuing Card object.
|
15
18
|
def self.create(params = {}, opts = {})
|
@@ -37,6 +40,9 @@ module Stripe
|
|
37
40
|
|
38
41
|
class TestHelpers < APIResourceTestHelpers
|
39
42
|
RESOURCE_CLASS = Card
|
43
|
+
def self.resource_class
|
44
|
+
"Card"
|
45
|
+
end
|
40
46
|
|
41
47
|
# Updates the shipping status of the specified Issuing Card object to delivered.
|
42
48
|
def self.deliver_card(card, params = {}, opts = {})
|
@@ -12,6 +12,9 @@ module Stripe
|
|
12
12
|
include Stripe::APIOperations::Save
|
13
13
|
|
14
14
|
OBJECT_NAME = "issuing.cardholder"
|
15
|
+
def self.object_name
|
16
|
+
"issuing.cardholder"
|
17
|
+
end
|
15
18
|
|
16
19
|
# Creates a new Issuing Cardholder object that can be issued cards.
|
17
20
|
def self.create(params = {}, opts = {})
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
extend Stripe::APIOperations::List
|
11
11
|
|
12
12
|
OBJECT_NAME = "issuing.credit_underwriting_record"
|
13
|
+
def self.object_name
|
14
|
+
"issuing.credit_underwriting_record"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Update a CreditUnderwritingRecord object to correct mistakes.
|
15
18
|
def correct(params = {}, opts = {})
|
@@ -12,6 +12,9 @@ module Stripe
|
|
12
12
|
include Stripe::APIOperations::Save
|
13
13
|
|
14
14
|
OBJECT_NAME = "issuing.dispute"
|
15
|
+
def self.object_name
|
16
|
+
"issuing.dispute"
|
17
|
+
end
|
15
18
|
|
16
19
|
# Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
|
17
20
|
def submit(params = {}, opts = {})
|
@@ -10,6 +10,9 @@ module Stripe
|
|
10
10
|
include Stripe::APIOperations::Save
|
11
11
|
|
12
12
|
OBJECT_NAME = "issuing.personalization_design"
|
13
|
+
def self.object_name
|
14
|
+
"issuing.personalization_design"
|
15
|
+
end
|
13
16
|
|
14
17
|
# Creates a personalization design object.
|
15
18
|
def self.create(params = {}, opts = {})
|
@@ -47,6 +50,9 @@ module Stripe
|
|
47
50
|
|
48
51
|
class TestHelpers < APIResourceTestHelpers
|
49
52
|
RESOURCE_CLASS = PersonalizationDesign
|
53
|
+
def self.resource_class
|
54
|
+
"PersonalizationDesign"
|
55
|
+
end
|
50
56
|
|
51
57
|
# Updates the status of the specified testmode personalization design object to active.
|
52
58
|
def self.activate(personalization_design, params = {}, opts = {})
|
@@ -8,6 +8,9 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::List
|
9
9
|
|
10
10
|
OBJECT_NAME = "issuing.physical_bundle"
|
11
|
+
def self.object_name
|
12
|
+
"issuing.physical_bundle"
|
13
|
+
end
|
11
14
|
|
12
15
|
# Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
13
16
|
def self.list(filters = {}, opts = {})
|