Class: Google::Apis::ContentV2_1::MerchantOrderReturnItem

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

Returns a new instance of MerchantOrderReturnItem.



3498
3499
3500
# File 'generated/google/apis/content_v2_1/classes.rb', line 3498

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

Instance Attribute Details

#customer_return_reasonGoogle::Apis::ContentV2_1::CustomerReturnReason

The reason that the customer chooses to return an item. Corresponds to the JSON property customerReturnReason



3470
3471
3472
# File 'generated/google/apis/content_v2_1/classes.rb', line 3470

def customer_return_reason
  @customer_return_reason
end

#item_idString

Product level item ID. If the returned items are of the same product, they will have the same ID. Corresponds to the JSON property itemId

Returns:

  • (String)


3476
3477
3478
# File 'generated/google/apis/content_v2_1/classes.rb', line 3476

def item_id
  @item_id
end

#merchant_return_reasonGoogle::Apis::ContentV2_1::RefundReason

The reason that merchant chooses to accept a return item. Corresponds to the JSON property merchantReturnReason



3481
3482
3483
# File 'generated/google/apis/content_v2_1/classes.rb', line 3481

def merchant_return_reason
  @merchant_return_reason
end

#productGoogle::Apis::ContentV2_1::OrderLineItemProduct

Product data from the time of the order placement. Corresponds to the JSON property product



3486
3487
3488
# File 'generated/google/apis/content_v2_1/classes.rb', line 3486

def product
  @product
end

#return_shipment_idsArray<String>

IDs of the return shipments that this return item belongs to. Corresponds to the JSON property returnShipmentIds

Returns:

  • (Array<String>)


3491
3492
3493
# File 'generated/google/apis/content_v2_1/classes.rb', line 3491

def return_shipment_ids
  @return_shipment_ids
end

#stateString

State of the item. Corresponds to the JSON property state

Returns:

  • (String)


3496
3497
3498
# File 'generated/google/apis/content_v2_1/classes.rb', line 3496

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3503
3504
3505
3506
3507
3508
3509
3510
# File 'generated/google/apis/content_v2_1/classes.rb', line 3503

def update!(**args)
  @customer_return_reason = args[:customer_return_reason] if args.key?(:customer_return_reason)
  @item_id = args[:item_id] if args.key?(:item_id)
  @merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason)
  @product = args[:product] if args.key?(:product)
  @return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids)
  @state = args[:state] if args.key?(:state)
end