Class: Google::Apis::ContentV2::MerchantOrderReturnItem

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

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.



4026
4027
4028
# File 'generated/google/apis/content_v2/classes.rb', line 4026

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

Instance Attribute Details

#customer_return_reasonGoogle::Apis::ContentV2::CustomerReturnReason

Corresponds to the JSON property customerReturnReason



3999
4000
4001
# File 'generated/google/apis/content_v2/classes.rb', line 3999

def customer_return_reason
  @customer_return_reason
end

#item_idString

Corresponds to the JSON property itemId

Returns:

  • (String)


4004
4005
4006
# File 'generated/google/apis/content_v2/classes.rb', line 4004

def item_id
  @item_id
end

#merchant_return_reasonGoogle::Apis::ContentV2::RefundReason

Corresponds to the JSON property merchantReturnReason



4009
4010
4011
# File 'generated/google/apis/content_v2/classes.rb', line 4009

def merchant_return_reason
  @merchant_return_reason
end

#productGoogle::Apis::ContentV2::OrderLineItemProduct

Corresponds to the JSON property product



4014
4015
4016
# File 'generated/google/apis/content_v2/classes.rb', line 4014

def product
  @product
end

#return_shipment_idsArray<String>

Corresponds to the JSON property returnShipmentIds

Returns:

  • (Array<String>)


4019
4020
4021
# File 'generated/google/apis/content_v2/classes.rb', line 4019

def return_shipment_ids
  @return_shipment_ids
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


4024
4025
4026
# File 'generated/google/apis/content_v2/classes.rb', line 4024

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4031
4032
4033
4034
4035
4036
4037
4038
# File 'generated/google/apis/content_v2/classes.rb', line 4031

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