Class: Google::Apis::CloudsearchV1::PaygateInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::PaygateInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Information provided to clients so that they can show upgrade promos and warnings on call ending early (for non-paying users).
Instance Attribute Summary collapse
-
#call_ending_soon_warning_time ⇒ String
Time when client should show message that the call is ending soon.
-
#call_ending_time ⇒ String
Time when the call will end if the user does not upgrade (after in-call upgrade support check has been implemented).
-
#show_upgrade_promos ⇒ Boolean
(also: #show_upgrade_promos?)
This boolean is used by clients to decide whether the user should be shown promos to upgrade.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PaygateInfo
constructor
A new instance of PaygateInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PaygateInfo
Returns a new instance of PaygateInfo.
15143 15144 15145 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#call_ending_soon_warning_time ⇒ String
Time when client should show message that the call is ending soon.
Corresponds to the JSON property callEndingSoonWarningTime
15128 15129 15130 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15128 def call_ending_soon_warning_time @call_ending_soon_warning_time end |
#call_ending_time ⇒ String
Time when the call will end if the user does not upgrade (after in-call
upgrade support check has been implemented).
Corresponds to the JSON property callEndingTime
15134 15135 15136 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15134 def call_ending_time @call_ending_time end |
#show_upgrade_promos ⇒ Boolean Also known as: show_upgrade_promos?
This boolean is used by clients to decide whether the user should be shown
promos to upgrade.
Corresponds to the JSON property showUpgradePromos
15140 15141 15142 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15140 def show_upgrade_promos @show_upgrade_promos end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15148 15149 15150 15151 15152 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15148 def update!(**args) @call_ending_soon_warning_time = args[:call_ending_soon_warning_time] if args.key?(:call_ending_soon_warning_time) @call_ending_time = args[:call_ending_time] if args.key?(:call_ending_time) @show_upgrade_promos = args[:show_upgrade_promos] if args.key?(:show_upgrade_promos) end |