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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderreturnsProcessRequest

Returns a new instance of OrderreturnsProcessRequest.



6009
6010
6011
# File 'generated/google/apis/content_v2_1/classes.rb', line 6009

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)


5990
5991
5992
# File 'generated/google/apis/content_v2_1/classes.rb', line 5990

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)


5997
5998
5999
# File 'generated/google/apis/content_v2_1/classes.rb', line 5997

def operation_id
  @operation_id
end

#refund_shipping_feeGoogle::Apis::ContentV2_1::OrderreturnsRefundOperation

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



6002
6003
6004
# File 'generated/google/apis/content_v2_1/classes.rb', line 6002

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



6007
6008
6009
# File 'generated/google/apis/content_v2_1/classes.rb', line 6007

def return_items
  @return_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6014
6015
6016
6017
6018
6019
# File 'generated/google/apis/content_v2_1/classes.rb', line 6014

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