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



3402
3403
3404
# File 'generated/google/apis/content_v2_1/classes.rb', line 3402

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

Instance Attribute Details

#customer_return_reasonGoogle::Apis::ContentV2_1::CustomerReturnReason

Corresponds to the JSON property customerReturnReason



3375
3376
3377
# File 'generated/google/apis/content_v2_1/classes.rb', line 3375

def customer_return_reason
  @customer_return_reason
end

#item_idString

Corresponds to the JSON property itemId

Returns:

  • (String)


3380
3381
3382
# File 'generated/google/apis/content_v2_1/classes.rb', line 3380

def item_id
  @item_id
end

#merchant_return_reasonGoogle::Apis::ContentV2_1::RefundReason

Corresponds to the JSON property merchantReturnReason



3385
3386
3387
# File 'generated/google/apis/content_v2_1/classes.rb', line 3385

def merchant_return_reason
  @merchant_return_reason
end

#productGoogle::Apis::ContentV2_1::OrderLineItemProduct

Corresponds to the JSON property product



3390
3391
3392
# File 'generated/google/apis/content_v2_1/classes.rb', line 3390

def product
  @product
end

#return_shipment_idsArray<String>

Corresponds to the JSON property returnShipmentIds

Returns:

  • (Array<String>)


3395
3396
3397
# File 'generated/google/apis/content_v2_1/classes.rb', line 3395

def return_shipment_ids
  @return_shipment_ids
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


3400
3401
3402
# File 'generated/google/apis/content_v2_1/classes.rb', line 3400

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3407
3408
3409
3410
3411
3412
3413
3414
# File 'generated/google/apis/content_v2_1/classes.rb', line 3407

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