/
loginlink.go
33 lines (29 loc) · 1.03 KB
/
loginlink.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// Creates a single-use login link for an Express account to access their Stripe dashboard.
//
// You may only create login links for [Express accounts](https://stripe.com/docs/connect/express-accounts) connected to your platform.
type LoginLinkParams struct {
Params `form:"*"`
Account *string `form:"-"` // Included in URL
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
}
// AddExpand appends a new field to expand.
func (p *LoginLinkParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}
// Login Links are single-use login link for an Express account to access their Stripe dashboard.
type LoginLink struct {
APIResource
// Time at which the object was created. Measured in seconds since the Unix epoch.
Created int64 `json:"created"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// The URL for the login link.
URL string `json:"url"`
}