package stripe

// TerminalConnectionTokenParams is the set of parameters that can be used when creating a terminal connection token.
type TerminalConnectionTokenParams struct {
	Params   `form:"*"`
	Location string `form:"location"`

	// This feature has been deprecated and should not be used anymore.
	OperatorAccount *string `form:"operator_account"`
}

// TerminalConnectionToken is the resource representing a Stripe terminal connection token.
type TerminalConnectionToken struct {
	Location string `json:"location"`
	Object   string `json:"object"`
	Secret   string `json:"secret"`
}

package stripe

// TerminalConnectionTokenParams is the set of parameters that can be used when creating a terminal connection token.
type TerminalConnectionTokenParams struct {
	Params `form:"*"`

	// This feature has been deprecated and should not be used anymore.
	OperatorAccount *string `form:"operator_account"`
}

// TerminalConnectionToken is the resource representing a Stripe terminal connection token.
type TerminalConnectionToken struct {
	Object string `json:"object"`
	Secret string `json:"secret"`
}

--- 
+++ 
@@ -2,7 +2,8 @@
 
 // TerminalConnectionTokenParams is the set of parameters that can be used when creating a terminal connection token.
 type TerminalConnectionTokenParams struct {
-	Params `form:"*"`
+	Params   `form:"*"`
+	Location string `form:"location"`
 
 	// This feature has been deprecated and should not be used anymore.
 	OperatorAccount *string `form:"operator_account"`
@@ -10,6 +11,7 @@
 
 // TerminalConnectionToken is the resource representing a Stripe terminal connection token.
 type TerminalConnectionToken struct {
-	Object string `json:"object"`
-	Secret string `json:"secret"`
+	Location string `json:"location"`
+	Object   string `json:"object"`
+	Secret   string `json:"secret"`
 }
Add support for `location` on `ConnectionToken`
