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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrdersGetByMerchantOrderIdResponse

Returns a new instance of OrdersGetByMerchantOrderIdResponse



5433
5434
5435
# File 'generated/google/apis/content_v2_1/classes.rb', line 5433

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)


5426
5427
5428
# File 'generated/google/apis/content_v2_1/classes.rb', line 5426

def kind
  @kind
end

#orderGoogle::Apis::ContentV2_1::Order

Order. All methods require the order manager role. Corresponds to the JSON property order



5431
5432
5433
# File 'generated/google/apis/content_v2_1/classes.rb', line 5431

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5438
5439
5440
5441
# File 'generated/google/apis/content_v2_1/classes.rb', line 5438

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