Class: Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequestEntry

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

Returns a new instance of ReturnaddressCustomBatchRequestEntry



8720
8721
8722
# File 'generated/google/apis/content_v2_1/classes.rb', line 8720

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

Instance Attribute Details

#batch_idFixnum

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

Returns:

  • (Fixnum)


8698
8699
8700
# File 'generated/google/apis/content_v2_1/classes.rb', line 8698

def batch_id
  @batch_id
end

#merchant_idFixnum

The Merchant Center account ID. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


8703
8704
8705
# File 'generated/google/apis/content_v2_1/classes.rb', line 8703

def merchant_id
  @merchant_id
end

#method_propString

Corresponds to the JSON property method

Returns:

  • (String)


8708
8709
8710
# File 'generated/google/apis/content_v2_1/classes.rb', line 8708

def method_prop
  @method_prop
end

#return_addressGoogle::Apis::ContentV2_1::ReturnAddress

Return address resource. Corresponds to the JSON property returnAddress



8713
8714
8715
# File 'generated/google/apis/content_v2_1/classes.rb', line 8713

def return_address
  @return_address
end

#return_address_idString

The return address ID. Set this only if the method is delete or get. Corresponds to the JSON property returnAddressId

Returns:

  • (String)


8718
8719
8720
# File 'generated/google/apis/content_v2_1/classes.rb', line 8718

def return_address_id
  @return_address_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8725
8726
8727
8728
8729
8730
8731
# File 'generated/google/apis/content_v2_1/classes.rb', line 8725

def update!(**args)
  @batch_id = args[:batch_id] if args.key?(:batch_id)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @return_address = args[:return_address] if args.key?(:return_address)
  @return_address_id = args[:return_address_id] if args.key?(:return_address_id)
end