Class: Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequestEntry

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

Returns a new instance of ReturnpolicyCustomBatchRequestEntry.



9136
9137
9138
# File 'generated/google/apis/content_v2_1/classes.rb', line 9136

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)


9114
9115
9116
# File 'generated/google/apis/content_v2_1/classes.rb', line 9114

def batch_id
  @batch_id
end

#merchant_idFixnum

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

Returns:

  • (Fixnum)


9119
9120
9121
# File 'generated/google/apis/content_v2_1/classes.rb', line 9119

def merchant_id
  @merchant_id
end

#method_propString

Corresponds to the JSON property method

Returns:

  • (String)


9124
9125
9126
# File 'generated/google/apis/content_v2_1/classes.rb', line 9124

def method_prop
  @method_prop
end

#return_policyGoogle::Apis::ContentV2_1::ReturnPolicy

Return policy resource. Corresponds to the JSON property returnPolicy



9129
9130
9131
# File 'generated/google/apis/content_v2_1/classes.rb', line 9129

def return_policy
  @return_policy
end

#return_policy_idString

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

Returns:

  • (String)


9134
9135
9136
# File 'generated/google/apis/content_v2_1/classes.rb', line 9134

def return_policy_id
  @return_policy_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9141
9142
9143
9144
9145
9146
9147
# File 'generated/google/apis/content_v2_1/classes.rb', line 9141

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_policy = args[:return_policy] if args.key?(:return_policy)
  @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
end