Class: Google::Apis::MerchantapiAccountsV1beta::OnDisplayToOrder

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Overview

Collection of information related to the on display to order (ODO).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OnDisplayToOrder

Returns a new instance of OnDisplayToOrder.



2741
2742
2743
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2741

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

Instance Attribute Details

#stateString

Output only. The state of the URI. Corresponds to the JSON property state

Returns:

  • (String)


2734
2735
2736
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2734

def state
  @state
end

#uriString

Required. The on display to order (ODO) policy URI. Corresponds to the JSON property uri

Returns:

  • (String)


2739
2740
2741
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2739

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2746
2747
2748
2749
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2746

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