Class: Google::Apis::PaymentsresellersubscriptionV1::IntentPayload

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 payload that describes the user intent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IntentPayload

Returns a new instance of IntentPayload.



649
650
651
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 649

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

Instance Attribute Details

#create_intentGoogle::Apis::PaymentsresellersubscriptionV1::CreateSubscriptionIntent

Intent message for creating a Subscription resource. Corresponds to the JSON property createIntent



637
638
639
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 637

def create_intent
  @create_intent
end

#entitle_intentGoogle::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent

Intent for entitling the previously provisioned subscription to an end user. Corresponds to the JSON property entitleIntent



642
643
644
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 642

def entitle_intent
  @entitle_intent
end

#intent_optionsGoogle::Apis::PaymentsresellersubscriptionV1::IntentPayloadIntentOptions

The options for the intent. Corresponds to the JSON property intentOptions



647
648
649
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 647

def intent_options
  @intent_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



654
655
656
657
658
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 654

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