Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb
Overview
A user session contains a short-lived token that includes information required
to interact with Google Payments Reseller Platform using the following web
endpoints. - A user session token should be generated dynamically for an
authenticated user. You should refrain from sharing a token directly with a
user in an unauthenticated context, such as SMS, or email. - You can re-
generate new session tokens repeatedly for same generate
request if
necessary, regardless of the previous tokens being expired or not. You don't
need to worry about multiple sessions resulting in duplicate fulfillments as
guaranteed by the same subscription id. Please refer to the Google Managed
Signup documentation for additional
integration details.
Instance Attribute Summary collapse
-
#expire_time ⇒ String
Output only.
-
#token ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1UserSession
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1UserSession.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1UserSession
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1UserSession.
1393 1394 1395 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ String
Output only. The time at which the user session expires.
Corresponds to the JSON property expireTime
1384 1385 1386 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1384 def expire_time @expire_time end |
#token ⇒ String
Output only. The encrypted token of the user session, including the
information of the user's intent and request. This token should be provided
when redirecting the user to Google.
Corresponds to the JSON property token
1391 1392 1393 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1391 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1398 1399 1400 1401 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1398 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @token = args[:token] if args.key?(:token) end |