Class: Google::Apis::ContentV2::OrdersCustomBatchResponseEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersCustomBatchResponseEntry

Returns a new instance of OrdersCustomBatchResponseEntry.



7072
7073
7074
# File 'lib/google/apis/content_v2/classes.rb', line 7072

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)


7046
7047
7048
# File 'lib/google/apis/content_v2/classes.rb', line 7046

def batch_id
  @batch_id
end

#errorsGoogle::Apis::ContentV2::Errors

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



7051
7052
7053
# File 'lib/google/apis/content_v2/classes.rb', line 7051

def errors
  @errors
end

#execution_statusString

The status of the execution. Only defined if 1. the request was successful; and 2. the method is not get, getByMerchantOrderId, or one of the test methods. Acceptable values are: - "duplicate" - "executed" Corresponds to the JSON property executionStatus

Returns:

  • (String)


7058
7059
7060
# File 'lib/google/apis/content_v2/classes.rb', line 7058

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)


7064
7065
7066
# File 'lib/google/apis/content_v2/classes.rb', line 7064

def kind
  @kind
end

#orderGoogle::Apis::ContentV2::Order

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



7070
7071
7072
# File 'lib/google/apis/content_v2/classes.rb', line 7070

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7077
7078
7079
7080
7081
7082
7083
# File 'lib/google/apis/content_v2/classes.rb', line 7077

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