Skip to content

Commit

Permalink
Add all params
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Dec 17, 2024
1 parent 8ba1ae7 commit 4aa1af7
Show file tree
Hide file tree
Showing 698 changed files with 303,753 additions and 4,134 deletions.
5,145 changes: 5,109 additions & 36 deletions lib/stripe/resources/account.rb

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions lib/stripe/resources/account_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,53 @@ def self.object_name
"account_link"
end

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

def initialize(fields: nil, future_requirements: nil)
super
@fields = fields
@future_requirements = future_requirements
end
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

def initialize(
account: nil,
collect: nil,
collection_options: nil,
expand: nil,
refresh_url: nil,
return_url: nil,
type: nil
)
super
@account = account
@collect = collect
@collection_options = collection_options
@expand = expand
@refresh_url = refresh_url
@return_url = return_url
@type = type
end
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.
Expand Down
84 changes: 80 additions & 4 deletions lib/stripe/resources/account_notice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,87 @@ def self.object_name
end

class Email < Stripe::StripeObject
attr_reader :plain_text, :recipient, :subject
# 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
attr_reader :capability, :issuing_credit_underwriting_record, :issuing_dispute
# 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

def initialize(ending_before: nil, expand: nil, limit: nil, sent: nil, starting_after: nil)
super
@ending_before = ending_before
@expand = expand
@limit = limit
@sent = sent
@starting_after = starting_after
end
end

class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand

def initialize(expand: nil)
super
@expand = expand
end
end

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

def initialize(plain_text: nil, recipient: nil, subject: nil)
super
@plain_text = plain_text
@recipient = recipient
@subject = subject
end
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

def initialize(email: nil, expand: nil, metadata: nil, sent_at: nil)
super
@email = email
@expand = expand
@metadata = metadata
@sent_at = sent_at
end
end
# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created
Expand All @@ -43,8 +119,8 @@ class LinkedObjects < Stripe::StripeObject
attr_reader :sent_at

# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
def self.list(filters = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/account_notices", params: filters, opts: opts)
def self.list(params = {}, opts = {})
request_stripe_object(method: :get, path: "/v1/account_notices", params: params, opts: opts)
end

# Updates an AccountNotice object.
Expand Down
Loading

0 comments on commit 4aa1af7

Please sign in to comment.