Class: Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest

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) ⇒ OrdersUpdateMerchantOrderIdRequest

Returns a new instance of OrdersUpdateMerchantOrderIdRequest.



8515
8516
8517
# File 'lib/google/apis/content_v2_1/classes.rb', line 8515

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)


8508
8509
8510
# File 'lib/google/apis/content_v2_1/classes.rb', line 8508

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)


8513
8514
8515
# File 'lib/google/apis/content_v2_1/classes.rb', line 8513

def operation_id
  @operation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8520
8521
8522
8523
# File 'lib/google/apis/content_v2_1/classes.rb', line 8520

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