Class: Google::Apis::ContentV2_1::OrderreturnsProcessRequest

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

Returns a new instance of OrderreturnsProcessRequest.



6687
6688
6689
# File 'generated/google/apis/content_v2_1/classes.rb', line 6687

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

Instance Attribute Details

#full_charge_return_shipping_costBoolean Also known as: full_charge_return_shipping_cost?

Option to charge the customer return shipping cost. Corresponds to the JSON property fullChargeReturnShippingCost

Returns:

  • (Boolean)


6668
6669
6670
# File 'generated/google/apis/content_v2_1/classes.rb', line 6668

def full_charge_return_shipping_cost
  @full_charge_return_shipping_cost
end

#operation_idString

[required] The ID of the operation, unique across all operations for a given order return. Corresponds to the JSON property operationId

Returns:

  • (String)


6675
6676
6677
# File 'generated/google/apis/content_v2_1/classes.rb', line 6675

def operation_id
  @operation_id
end

#refund_shipping_feeGoogle::Apis::ContentV2_1::OrderreturnsRefundOperation

Refunds for original shipping fee. Corresponds to the JSON property refundShippingFee



6680
6681
6682
# File 'generated/google/apis/content_v2_1/classes.rb', line 6680

def refund_shipping_fee
  @refund_shipping_fee
end

#return_itemsArray<Google::Apis::ContentV2_1::OrderreturnsReturnItem>

The list of items to return. Corresponds to the JSON property returnItems



6685
6686
6687
# File 'generated/google/apis/content_v2_1/classes.rb', line 6685

def return_items
  @return_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6692
6693
6694
6695
6696
6697
# File 'generated/google/apis/content_v2_1/classes.rb', line 6692

def update!(**args)
  @full_charge_return_shipping_cost = args[:full_charge_return_shipping_cost] if args.key?(:full_charge_return_shipping_cost)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @refund_shipping_fee = args[:refund_shipping_fee] if args.key?(:refund_shipping_fee)
  @return_items = args[:return_items] if args.key?(:return_items)
end