Class: Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersGetByMerchantOrderIdResponse

Returns a new instance of OrdersGetByMerchantOrderIdResponse.



8313
8314
8315
# File 'lib/google/apis/content_v2_1/classes.rb', line 8313

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# ordersGetByMerchantOrderIdResponse". Corresponds to the JSON property kind

Returns:

  • (String)


8305
8306
8307
# File 'lib/google/apis/content_v2_1/classes.rb', line 8305

def kind
  @kind
end

#orderGoogle::Apis::ContentV2_1::Order

Order. Production access (all methods) requires the order manager role. Sandbox access does not. Corresponds to the JSON property order



8311
8312
8313
# File 'lib/google/apis/content_v2_1/classes.rb', line 8311

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8318
8319
8320
8321
# File 'lib/google/apis/content_v2_1/classes.rb', line 8318

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