Skip to content

Commit

Permalink
add newliens (generated)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Dec 19, 2024
1 parent 3d8640d commit f21a16b
Show file tree
Hide file tree
Showing 679 changed files with 54,546 additions and 0 deletions.
743 changes: 743 additions & 0 deletions lib/stripe/resources/account.rb

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions lib/stripe/resources/account_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CreateParams < Stripe::RequestParams
class CollectionOptions < Stripe::RequestParams
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
attr_accessor :fields

# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
attr_accessor :future_requirements

Expand All @@ -28,16 +29,22 @@ def initialize(fields: nil, future_requirements: nil)
end
# The identifier of the account to create an account link for.
attr_accessor :account

# The collect parameter is deprecated. Use `collection_options` instead.
attr_accessor :collect

# Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
attr_accessor :collection_options

# Specifies which fields in the response should be expanded.
attr_accessor :expand

# The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
attr_accessor :refresh_url

# The URL that the user will be redirected to upon leaving or completing the linked flow.
attr_accessor :return_url

# The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
attr_accessor :type

Expand All @@ -61,10 +68,13 @@ def initialize(
end
# 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
22 changes: 22 additions & 0 deletions lib/stripe/resources/account_notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,38 @@ def self.object_name
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
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
end

class ListParams < Stripe::RequestParams
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
attr_accessor :ending_before

# Specifies which fields in the response should be expanded.
attr_accessor :expand

# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
attr_accessor :limit

# Set to false to only return unsent AccountNotices.
attr_accessor :sent

# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
attr_accessor :starting_after

Expand All @@ -66,8 +74,10 @@ class UpdateParams < Stripe::RequestParams
class Email < Stripe::RequestParams
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
attr_accessor :plain_text

# Email address of the recipient.
attr_accessor :recipient

# Subject of the email.
attr_accessor :subject

Expand All @@ -79,10 +89,13 @@ def initialize(plain_text: nil, recipient: nil, subject: nil)
end
# Information about the email you sent.
attr_accessor :email

# Specifies which fields in the response should be expanded.
attr_accessor :expand

# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
attr_accessor :metadata

# Date when you sent the notice.
attr_accessor :sent_at

Expand All @@ -95,22 +108,31 @@ def initialize(email: nil, expand: nil, metadata: nil, sent_at: nil)
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
Loading

0 comments on commit f21a16b

Please sign in to comment.