Class: Stripe::Terminal::ConnectionToken::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/terminal/connection_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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 = expand
  @location = location
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



19
20
21
# File 'lib/stripe/resources/terminal/connection_token.rb', line 19

def expand
  @expand
end

#locationObject

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