Class: Google::Apis::ContentV2_1::OrderreturnsReturnItem

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

Constructor Details

#initialize(**args) ⇒ OrderreturnsReturnItem

Returns a new instance of OrderreturnsReturnItem.



6820
6821
6822
# File 'generated/google/apis/content_v2_1/classes.rb', line 6820

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

Instance Attribute Details

#refundGoogle::Apis::ContentV2_1::OrderreturnsRefundOperation

Refunds the item. Corresponds to the JSON property refund



6807
6808
6809
# File 'generated/google/apis/content_v2_1/classes.rb', line 6807

def refund
  @refund
end

#rejectGoogle::Apis::ContentV2_1::OrderreturnsRejectOperation

Rejects the item. Corresponds to the JSON property reject



6812
6813
6814
# File 'generated/google/apis/content_v2_1/classes.rb', line 6812

def reject
  @reject
end

#return_item_idString

Unit level ID for the return item. Different units of the same product will have different IDs. Corresponds to the JSON property returnItemId

Returns:

  • (String)


6818
6819
6820
# File 'generated/google/apis/content_v2_1/classes.rb', line 6818

def return_item_id
  @return_item_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6825
6826
6827
6828
6829
# File 'generated/google/apis/content_v2_1/classes.rb', line 6825

def update!(**args)
  @refund = args[:refund] if args.key?(:refund)
  @reject = args[:reject] if args.key?(:reject)
  @return_item_id = args[:return_item_id] if args.key?(:return_item_id)
end