Class: Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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) ⇒ OrdersUpdateMerchantOrderIdRequest

Returns a new instance of OrdersUpdateMerchantOrderIdRequest



7602
7603
7604
# File 'generated/google/apis/content_v2/classes.rb', line 7602

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

Instance Attribute Details

#merchant_order_idString

The merchant order id to be assigned to the order. Must be unique per merchant. Corresponds to the JSON property merchantOrderId

Returns:

  • (String)


7595
7596
7597
# File 'generated/google/apis/content_v2/classes.rb', line 7595

def merchant_order_id
  @merchant_order_id
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


7600
7601
7602
# File 'generated/google/apis/content_v2/classes.rb', line 7600

def operation_id
  @operation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7607
7608
7609
7610
# File 'generated/google/apis/content_v2/classes.rb', line 7607

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