Class: Google::Apis::ContentV2sandbox::OrdersCustomBatchResponseEntry

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

Returns a new instance of OrdersCustomBatchResponseEntry



2672
2673
2674
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2672

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

Instance Attribute Details

#batch_idFixnum

The ID of the request entry this entry responds to. Corresponds to the JSON property batchId

Returns:

  • (Fixnum)


2646
2647
2648
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2646

def batch_id
  @batch_id
end

#errorsGoogle::Apis::ContentV2sandbox::Errors

A list of errors returned by a failed batch entry. Corresponds to the JSON property errors



2651
2652
2653
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2651

def errors
  @errors
end

#execution_statusString

The status of the execution. Only defined if

  • the request was successful; and
  • the method is not get, getByMerchantOrderId, or one of the test methods. Corresponds to the JSON property executionStatus

Returns:

  • (String)


2658
2659
2660
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2658

def execution_status
  @execution_status
end

#kindString

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

Returns:

  • (String)


2664
2665
2666
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2664

def kind
  @kind
end

#orderGoogle::Apis::ContentV2sandbox::Order

The retrieved order. Only defined if the method is get and if the request was successful. Corresponds to the JSON property order



2670
2671
2672
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2670

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2677
2678
2679
2680
2681
2682
2683
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2677

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