Class: Google::Apis::ContentV2::AccountShippingBatchRequestEntry

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

Overview

A batch entry encoding a single non-batch accountshipping request.

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

Returns a new instance of AccountShippingBatchRequestEntry



1115
1116
1117
# File 'generated/google/apis/content_v2/classes.rb', line 1115

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

Instance Attribute Details

#account_idString

The ID of the account for which to get/update account shipping settings. Corresponds to the JSON property accountId

Returns:

  • (String)


1093
1094
1095
# File 'generated/google/apis/content_v2/classes.rb', line 1093

def 
  @account_id
end

#account_shippingGoogle::Apis::ContentV2::AccountShipping

The shipping settings of a merchant account. Corresponds to the JSON property accountShipping



1098
1099
1100
# File 'generated/google/apis/content_v2/classes.rb', line 1098

def 
  @account_shipping
end

#batch_idFixnum

An entry ID, unique within the batch request. Corresponds to the JSON property batchId

Returns:

  • (Fixnum)


1103
1104
1105
# File 'generated/google/apis/content_v2/classes.rb', line 1103

def batch_id
  @batch_id
end

#merchant_idString

The ID of the managing account. Corresponds to the JSON property merchantId

Returns:

  • (String)


1108
1109
1110
# File 'generated/google/apis/content_v2/classes.rb', line 1108

def merchant_id
  @merchant_id
end

#request_methodString

Corresponds to the JSON property method

Returns:

  • (String)


1113
1114
1115
# File 'generated/google/apis/content_v2/classes.rb', line 1113

def request_method
  @request_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1120
1121
1122
1123
1124
1125
1126
# File 'generated/google/apis/content_v2/classes.rb', line 1120

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @account_shipping = args[:account_shipping] if args.key?(:account_shipping)
  @batch_id = args[:batch_id] if args.key?(:batch_id)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
  @request_method = args[:request_method] if args.key?(:request_method)
end