Skip to content

Commit

Permalink
Update generated code for v1381
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 3, 2024
1 parent 1c83fd3 commit e853404
Show file tree
Hide file tree
Showing 341 changed files with 3,966 additions and 27,110 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1370
v1381
525 changes: 37 additions & 488 deletions lib/stripe/resources/account.rb

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions lib/stripe/resources/account_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ def self.object_name

# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created

# The timestamp at which this account link will expire.
attr_reader :expires_at

# String representing the object's type. Objects of the same type share the same value.
attr_reader :object

# The URL for the account link.
attr_reader :url

Expand Down
23 changes: 2 additions & 21 deletions lib/stripe/resources/account_notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,49 +15,30 @@ def self.object_name
end

class Email < Stripe::StripeObject
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
attr_reader :plain_text
# Email address of the recipient.
attr_reader :recipient
# Subject of the email.
attr_reader :subject
attr_reader :plain_text, :recipient, :subject
end

class LinkedObjects < Stripe::StripeObject
# Associated [Capability](https://stripe.com/docs/api/capabilities)
attr_reader :capability
# Associated [Credit Underwriting Record](https://stripe.com/docs/api/issuing/credit_underwriting_record)
attr_reader :issuing_credit_underwriting_record
# Associated [Issuing Dispute](https://stripe.com/docs/api/issuing/disputes)
attr_reader :issuing_dispute
attr_reader :capability, :issuing_credit_underwriting_record, :issuing_dispute
end
# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created

# When present, the deadline for sending the notice to meet the relevant regulations.
attr_reader :deadline

# Information about the email when sent.
attr_reader :email

# Unique identifier for the object.
attr_reader :id

# Information about objects related to the notice.
attr_reader :linked_objects

# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode

# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
attr_reader :metadata

# String representing the object's type. Objects of the same type share the same value.
attr_reader :object

# Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
attr_reader :reason

# Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
attr_reader :sent_at

Expand Down
159 changes: 22 additions & 137 deletions lib/stripe/resources/account_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,218 +20,103 @@ def self.object_name
class Components < Stripe::StripeObject
class AccountManagement < Stripe::StripeObject
class Features < Stripe::StripeObject
# Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
attr_reader :disable_stripe_user_authentication
# Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
attr_reader :external_account_collection
attr_reader :disable_stripe_user_authentication, :external_account_collection
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class AccountOnboarding < Stripe::StripeObject
class Features < Stripe::StripeObject
# Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
attr_reader :disable_stripe_user_authentication
# Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
attr_reader :external_account_collection
attr_reader :disable_stripe_user_authentication, :external_account_collection
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class Balances < Stripe::StripeObject
class Features < Stripe::StripeObject
# Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
attr_reader :disable_stripe_user_authentication
# Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
attr_reader :edit_payout_schedule
# Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
attr_reader :external_account_collection
# Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
attr_reader :instant_payouts
# Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
attr_reader :standard_payouts
attr_reader :disable_stripe_user_authentication, :edit_payout_schedule, :external_account_collection, :instant_payouts, :standard_payouts
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class CapitalFinancing < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class CapitalFinancingApplication < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class CapitalFinancingPromotion < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class Documents < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class NotificationBanner < Stripe::StripeObject
class Features < Stripe::StripeObject
# Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
attr_reader :disable_stripe_user_authentication
# Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
attr_reader :external_account_collection
attr_reader :disable_stripe_user_authentication, :external_account_collection
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class PaymentDetails < Stripe::StripeObject
class Features < Stripe::StripeObject
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
attr_reader :capture_payments
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
attr_reader :destination_on_behalf_of_charge_management
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
attr_reader :dispute_management
# Whether to allow sending refunds. This is `true` by default.
attr_reader :refund_management
attr_reader :capture_payments, :destination_on_behalf_of_charge_management, :dispute_management, :refund_management
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class Payments < Stripe::StripeObject
class Features < Stripe::StripeObject
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
attr_reader :capture_payments
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
attr_reader :destination_on_behalf_of_charge_management
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
attr_reader :dispute_management
# Whether to allow sending refunds. This is `true` by default.
attr_reader :refund_management
attr_reader :capture_payments, :destination_on_behalf_of_charge_management, :dispute_management, :refund_management
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class Payouts < Stripe::StripeObject
class Features < Stripe::StripeObject
# Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
attr_reader :disable_stripe_user_authentication
# Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
attr_reader :edit_payout_schedule
# Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
attr_reader :external_account_collection
# Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
attr_reader :instant_payouts
# Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
attr_reader :standard_payouts
attr_reader :disable_stripe_user_authentication, :edit_payout_schedule, :external_account_collection, :instant_payouts, :standard_payouts
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class PayoutsList < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class TaxRegistrations < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end

class TaxSettings < Stripe::StripeObject
class Features < Stripe::StripeObject; end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features
attr_reader :enabled, :features
end
# Attribute for field account_management
attr_reader :account_management
# Attribute for field account_onboarding
attr_reader :account_onboarding
# Attribute for field balances
attr_reader :balances
# Attribute for field capital_financing
attr_reader :capital_financing
# Attribute for field capital_financing_application
attr_reader :capital_financing_application
# Attribute for field capital_financing_promotion
attr_reader :capital_financing_promotion
# Attribute for field documents
attr_reader :documents
# Attribute for field notification_banner
attr_reader :notification_banner
# Attribute for field payment_details
attr_reader :payment_details
# Attribute for field payments
attr_reader :payments
# Attribute for field payouts
attr_reader :payouts
# Attribute for field payouts_list
attr_reader :payouts_list
# Attribute for field tax_registrations
attr_reader :tax_registrations
# Attribute for field tax_settings
attr_reader :tax_settings
attr_reader :account_management, :account_onboarding, :balances, :capital_financing, :capital_financing_application, :capital_financing_promotion, :documents, :notification_banner, :payment_details, :payments, :payouts, :payouts_list, :tax_registrations, :tax_settings
end
# The ID of the account the AccountSession was created for
attr_reader :account

# The client secret of this AccountSession. Used on the client to set up secure access to the given `account`.
#
# The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
#
# Refer to our docs to [setup Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
attr_reader :client_secret

# Attribute for field components
attr_reader :components

# The timestamp at which this AccountSession will expire.
attr_reader :expires_at

# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode

# String representing the object's type. Objects of the same type share the same value.
attr_reader :object

Expand Down
5 changes: 0 additions & 5 deletions lib/stripe/resources/apple_pay_domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,14 @@ def self.object_name

# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created

# Attribute for field domain_name
attr_reader :domain_name

# Unique identifier for the object.
attr_reader :id

# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
attr_reader :livemode

# String representing the object's type. Objects of the same type share the same value.
attr_reader :object

# Always true for a deleted object
attr_reader :deleted

Expand Down
3 changes: 0 additions & 3 deletions lib/stripe/resources/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ def self.object_name

# Unique identifier for the object.
attr_reader :id

# The name of the application.
attr_reader :name

# String representing the object's type. Objects of the same type share the same value.
attr_reader :object

# Always true for a deleted object
attr_reader :deleted
end
Expand Down
Loading

0 comments on commit e853404

Please sign in to comment.