Class: Stripe::Apps::SecretCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Apps::SecretCreateParams
- Defined in:
- lib/stripe/params/apps/secret_create_params.rb
Defined Under Namespace
Classes: Scope
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#expires_at ⇒ Object
The Unix timestamp for the expiry time of the secret, after which the secret deletes.
-
#name ⇒ Object
A name for the secret that’s unique within the scope.
-
#payload ⇒ Object
The plaintext secret value to be stored.
-
#scope ⇒ Object
Specifies the scoping of the secret.
Instance Method Summary collapse
-
#initialize(expand: nil, expires_at: nil, name: nil, payload: nil, scope: nil) ⇒ SecretCreateParams
constructor
A new instance of SecretCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, expires_at: nil, name: nil, payload: nil, scope: nil) ⇒ SecretCreateParams
Returns a new instance of SecretCreateParams.
29 30 31 32 33 34 35 |
# File 'lib/stripe/params/apps/secret_create_params.rb', line 29 def initialize(expand: nil, expires_at: nil, name: nil, payload: nil, scope: nil) = @expires_at = expires_at @name = name @payload = payload @scope = scope end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
19 20 21 |
# File 'lib/stripe/params/apps/secret_create_params.rb', line 19 def end |
#expires_at ⇒ Object
The Unix timestamp for the expiry time of the secret, after which the secret deletes.
21 22 23 |
# File 'lib/stripe/params/apps/secret_create_params.rb', line 21 def expires_at @expires_at end |
#name ⇒ Object
A name for the secret that’s unique within the scope.
23 24 25 |
# File 'lib/stripe/params/apps/secret_create_params.rb', line 23 def name @name end |
#payload ⇒ Object
The plaintext secret value to be stored.
25 26 27 |
# File 'lib/stripe/params/apps/secret_create_params.rb', line 25 def payload @payload end |
#scope ⇒ Object
Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
27 28 29 |
# File 'lib/stripe/params/apps/secret_create_params.rb', line 27 def scope @scope end |