Class: Stripe::Terminal::ConnectionToken::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Terminal::ConnectionToken::CreateParams
- Defined in:
- lib/stripe/resources/terminal/connection_token.rb
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#location ⇒ Object
The id of the location that this connection token is scoped to.
Instance Method Summary collapse
-
#initialize(expand: nil, location: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, location: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
23 24 25 26 |
# File 'lib/stripe/resources/terminal/connection_token.rb', line 23 def initialize(expand: nil, location: nil) @expand = @location = location end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
19 20 21 |
# File 'lib/stripe/resources/terminal/connection_token.rb', line 19 def @expand end |
#location ⇒ Object
The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
21 22 23 |
# File 'lib/stripe/resources/terminal/connection_token.rb', line 21 def location @location end |