Class: Google::Apis::WalletobjectsV1::SaveRestrictions
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::SaveRestrictions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Overview
Defines restrictions on the object that will be verified during save. Note: this is an advanced feature, please contact Google for implementation support.
Instance Attribute Summary collapse
-
#restrict_to_email_sha256 ⇒ String
Restrict the save of the referencing object to the given email address only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SaveRestrictions
constructor
A new instance of SaveRestrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SaveRestrictions
Returns a new instance of SaveRestrictions.
7446 7447 7448 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#restrict_to_email_sha256 ⇒ String
Restrict the save of the referencing object to the given email address only.
This is the hex output of SHA256 sum of the email address, all lowercase and
without any notations like "." or "+", except "@". For example, for example@
example.com, this value will be
31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66 and for
[email protected], this value will be
bc34f262c93ad7122763684ccea6f07fb7f5d8a2d11e60ce15a6f43fe70ce632 If email
address of the logged-in user who tries to save this pass does not match with
the defined value here, users won't be allowed to save this pass. They will
instead be prompted with an error to contact the issuer. This information
should be gathered from the user with an explicit consent via Sign in with
Google integration https://developers.google.com/identity/authentication.
Please contact with support before using Save Restrictions.
Corresponds to the JSON property restrictToEmailSha256
7444 7445 7446 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7444 def restrict_to_email_sha256 @restrict_to_email_sha256 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7451 7452 7453 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7451 def update!(**args) @restrict_to_email_sha256 = args[:restrict_to_email_sha256] if args.key?(:restrict_to_email_sha256) end |