Class: Google::Apis::PaymentsresellersubscriptionV1::IntentPayloadIntentOptions

Inherits:
Object
  • Object
show all
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

The options for the intent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntentPayloadIntentOptions

Returns a new instance of IntentPayloadIntentOptions.



673
674
675
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 673

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_offer_overrideBoolean Also known as: enable_offer_override?

Optional. If true, Google may use a different product and promotion id from the ones in the create_intent based on the user's eligibility. Only applicable for certain YouTube free trial offers. Corresponds to the JSON property enableOfferOverride

Returns:

  • (Boolean)


670
671
672
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 670

def enable_offer_override
  @enable_offer_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



678
679
680
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 678

def update!(**args)
  @enable_offer_override = args[:enable_offer_override] if args.key?(:enable_offer_override)
end