Class: Stripe::Apps::Secret::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Apps::Secret::CreateParams
- Defined in:
- lib/stripe/resources/apps/secret.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) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, expires_at: nil, name: nil, payload: nil, scope: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
86 87 88 89 90 91 92 |
# File 'lib/stripe/resources/apps/secret.rb', line 86 def initialize(expand: nil, expires_at: nil, name: nil, payload: nil, scope: nil) @expand = @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.
76 77 78 |
# File 'lib/stripe/resources/apps/secret.rb', line 76 def @expand end |
#expires_at ⇒ Object
The Unix timestamp for the expiry time of the secret, after which the secret deletes.
78 79 80 |
# File 'lib/stripe/resources/apps/secret.rb', line 78 def expires_at @expires_at end |
#name ⇒ Object
A name for the secret that’s unique within the scope.
80 81 82 |
# File 'lib/stripe/resources/apps/secret.rb', line 80 def name @name end |
#payload ⇒ Object
The plaintext secret value to be stored.
82 83 84 |
# File 'lib/stripe/resources/apps/secret.rb', line 82 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.
84 85 86 |
# File 'lib/stripe/resources/apps/secret.rb', line 84 def scope @scope end |