Class: Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionResponse
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GenerateUserSessionResponse
- 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
Response that contains the details for generated user session.
Instance Attribute Summary collapse
-
#user_session ⇒ Google::Apis::PaymentsresellersubscriptionV1::UserSession
A user session contains a short-lived token that includes information required to interact with Google Payments Reseller Platform using the following web endpoints.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateUserSessionResponse
constructor
A new instance of GenerateUserSessionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateUserSessionResponse
Returns a new instance of GenerateUserSessionResponse.
521 522 523 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 521 def initialize(**args) update!(**args) end |
Instance Attribute Details
#user_session ⇒ Google::Apis::PaymentsresellersubscriptionV1::UserSession
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.
Corresponds to the JSON property userSession
519 520 521 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 519 def user_session @user_session end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
526 527 528 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 526 def update!(**args) @user_session = args[:user_session] if args.key?(:user_session) end |