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.


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

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)

1080
1081
1082
# File 'generated/google/apis/content_v2/classes.rb', line 1080

def 
  @account_id
end

#account_shippingGoogle::Apis::ContentV2::AccountShipping

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


1085
1086
1087
# File 'generated/google/apis/content_v2/classes.rb', line 1085

def 
  @account_shipping
end

#batch_idFixnum

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

Returns:

  • (Fixnum)

1090
1091
1092
# File 'generated/google/apis/content_v2/classes.rb', line 1090

def batch_id
  @batch_id
end

#merchant_idString

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

Returns:

  • (String)

1095
1096
1097
# File 'generated/google/apis/content_v2/classes.rb', line 1095

def merchant_id
  @merchant_id
end

#request_methodString

Corresponds to the JSON property method

Returns:

  • (String)

1100
1101
1102
# File 'generated/google/apis/content_v2/classes.rb', line 1100

def request_method
  @request_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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

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