github.com/stripe/stripe-go/v76@v76.25.0/loginlink.go (about)

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