Skip to content

Mbroshi/merge go beta #2033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1669
v1669
2,325 changes: 2,325 additions & 0 deletions account.go

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions accountlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,38 @@ func (p *AccountLinkParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

// Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
type AccountLinkCreateCollectionOptionsParams struct {
// 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`.
Fields *string `form:"fields"`
// Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
FutureRequirements *string `form:"future_requirements"`
}

// 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.
type AccountLinkCreateParams struct {
Params `form:"*"`
// The identifier of the account to create an account link for.
Account *string `form:"account"`
// The collect parameter is deprecated. Use `collection_options` instead.
Collect *string `form:"collect"`
// Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
CollectionOptions *AccountLinkCreateCollectionOptionsParams `form:"collection_options"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"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.
RefreshURL *string `form:"refresh_url"`
// The URL that the user will be redirected to upon leaving or completing the linked flow.
ReturnURL *string `form:"return_url"`
// The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
Type *string `form:"type"`
}

// AddExpand appends a new field to expand.
func (p *AccountLinkCreateParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

// Account Links are the means by which a Connect platform grants a connected account permission to access
// Stripe-hosted applications, such as Connect Onboarding.
//
Expand Down
49 changes: 49 additions & 0 deletions accountnotice.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,55 @@ type AccountNoticeEmailParams struct {
Subject *string `form:"subject"`
}

// Retrieves an AccountNotice object.
type AccountNoticeRetrieveParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
}

// AddExpand appends a new field to expand.
func (p *AccountNoticeRetrieveParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

// Information about the email you sent.
type AccountNoticeUpdateEmailParams struct {
// Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
PlainText *string `form:"plain_text"`
// Email address of the recipient.
Recipient *string `form:"recipient"`
// Subject of the email.
Subject *string `form:"subject"`
}

// Updates an AccountNotice object.
type AccountNoticeUpdateParams struct {
Params `form:"*"`
// Information about the email you sent.
Email *AccountNoticeUpdateEmailParams `form:"email"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"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`.
Metadata map[string]string `form:"metadata"`
// Date when you sent the notice.
SentAt *int64 `form:"sent_at"`
}

// AddExpand appends a new field to expand.
func (p *AccountNoticeUpdateParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}

// AddMetadata adds a new key-value pair to the Metadata.
func (p *AccountNoticeUpdateParams) AddMetadata(key string, value string) {
if p.Metadata == nil {
p.Metadata = make(map[string]string)
}

p.Metadata[key] = value
}

// Information about the email when sent.
type AccountNoticeEmail struct {
// Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
Expand Down
Loading