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.



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

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



626
627
628
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 626

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



631
632
633
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 631

def entitle_intent
  @entitle_intent
end

#intent_optionsGoogle::Apis::PaymentsresellersubscriptionV1::IntentPayloadIntentOptions

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



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

def intent_options
  @intent_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



643
644
645
646
647
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 643

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