Skip to content

Commit d7b5d84

Browse files
Merge pull request #2033 from stripe/mbroshi/merge-go-beta
Mbroshi/merge go beta
2 parents 352729a + 86013fb commit d7b5d84

File tree

190 files changed

+34419
-473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+34419
-473
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1669
1+
v1669

account.go

Lines changed: 2325 additions & 0 deletions
Large diffs are not rendered by default.

accountlink.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,38 @@ func (p *AccountLinkParams) AddExpand(f string) {
5656
p.Expand = append(p.Expand, &f)
5757
}
5858

59+
// Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
60+
type AccountLinkCreateCollectionOptionsParams struct {
61+
// 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`.
62+
Fields *string `form:"fields"`
63+
// Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
64+
FutureRequirements *string `form:"future_requirements"`
65+
}
66+
67+
// 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.
68+
type AccountLinkCreateParams struct {
69+
Params `form:"*"`
70+
// The identifier of the account to create an account link for.
71+
Account *string `form:"account"`
72+
// The collect parameter is deprecated. Use `collection_options` instead.
73+
Collect *string `form:"collect"`
74+
// Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
75+
CollectionOptions *AccountLinkCreateCollectionOptionsParams `form:"collection_options"`
76+
// Specifies which fields in the response should be expanded.
77+
Expand []*string `form:"expand"`
78+
// 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.
79+
RefreshURL *string `form:"refresh_url"`
80+
// The URL that the user will be redirected to upon leaving or completing the linked flow.
81+
ReturnURL *string `form:"return_url"`
82+
// The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
83+
Type *string `form:"type"`
84+
}
85+
86+
// AddExpand appends a new field to expand.
87+
func (p *AccountLinkCreateParams) AddExpand(f string) {
88+
p.Expand = append(p.Expand, &f)
89+
}
90+
5991
// Account Links are the means by which a Connect platform grants a connected account permission to access
6092
// Stripe-hosted applications, such as Connect Onboarding.
6193
//

accountnotice.go

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,55 @@ type AccountNoticeEmailParams struct {
7777
Subject *string `form:"subject"`
7878
}
7979

80+
// Retrieves an AccountNotice object.
81+
type AccountNoticeRetrieveParams struct {
82+
Params `form:"*"`
83+
// Specifies which fields in the response should be expanded.
84+
Expand []*string `form:"expand"`
85+
}
86+
87+
// AddExpand appends a new field to expand.
88+
func (p *AccountNoticeRetrieveParams) AddExpand(f string) {
89+
p.Expand = append(p.Expand, &f)
90+
}
91+
92+
// Information about the email you sent.
93+
type AccountNoticeUpdateEmailParams struct {
94+
// Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
95+
PlainText *string `form:"plain_text"`
96+
// Email address of the recipient.
97+
Recipient *string `form:"recipient"`
98+
// Subject of the email.
99+
Subject *string `form:"subject"`
100+
}
101+
102+
// Updates an AccountNotice object.
103+
type AccountNoticeUpdateParams struct {
104+
Params `form:"*"`
105+
// Information about the email you sent.
106+
Email *AccountNoticeUpdateEmailParams `form:"email"`
107+
// Specifies which fields in the response should be expanded.
108+
Expand []*string `form:"expand"`
109+
// 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`.
110+
Metadata map[string]string `form:"metadata"`
111+
// Date when you sent the notice.
112+
SentAt *int64 `form:"sent_at"`
113+
}
114+
115+
// AddExpand appends a new field to expand.
116+
func (p *AccountNoticeUpdateParams) AddExpand(f string) {
117+
p.Expand = append(p.Expand, &f)
118+
}
119+
120+
// AddMetadata adds a new key-value pair to the Metadata.
121+
func (p *AccountNoticeUpdateParams) AddMetadata(key string, value string) {
122+
if p.Metadata == nil {
123+
p.Metadata = make(map[string]string)
124+
}
125+
126+
p.Metadata[key] = value
127+
}
128+
80129
// Information about the email when sent.
81130
type AccountNoticeEmail struct {
82131
// Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.

0 commit comments

Comments
 (0)