Autogenerated update (2018-01-17)
Update: - appengine_v1beta - content_v2 - content_v2sandbox
This commit is contained in:
1 parent
e31f3fc20f
commit
8504b3d660
10 files changed
+1588
-4
No files matched your search
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20171220'
|
||||
REVISION = '20180112'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20171207'
|
||||
REVISION = '20180111'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
||||
@@ -3756,6 +3756,11 @@ module Google
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem]
|
||||
attr_accessor :cancel_line_item
|
||||
|
||||
# Required for inStoreReturnLineItem method.
|
||||
# Corresponds to the JSON property `inStoreRefundLineItem`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
|
||||
attr_accessor :in_store_refund_line_item
|
||||
|
||||
# The ID of the managing account.
|
||||
# Corresponds to the JSON property `merchantId`
|
||||
# @return [Fixnum]
|
||||
@@ -3788,11 +3793,21 @@ module Google
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund]
|
||||
attr_accessor :refund
|
||||
|
||||
# Required for rejectReturnLineItem method.
|
||||
# Corresponds to the JSON property `rejectReturnLineItem`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem]
|
||||
attr_accessor :reject_return_line_item
|
||||
|
||||
# Required for returnLineItem method.
|
||||
# Corresponds to the JSON property `returnLineItem`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
|
||||
attr_accessor :return_line_item
|
||||
|
||||
# Required for returnRefundLineItem method.
|
||||
# Corresponds to the JSON property `returnRefundLineItem`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem]
|
||||
attr_accessor :return_refund_line_item
|
||||
|
||||
# Required for setLineItemMetadata method.
|
||||
# Corresponds to the JSON property `setLineItemMetadata`
|
||||
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata]
|
||||
@@ -3822,13 +3837,16 @@ module Google
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@cancel = args[:cancel] if args.key?(:cancel)
|
||||
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
|
||||
@in_store_refund_line_item = args[:in_store_refund_line_item] if args.key?(:in_store_refund_line_item)
|
||||
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
||||
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
||||
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@refund = args[:refund] if args.key?(:refund)
|
||||
@reject_return_line_item = args[:reject_return_line_item] if args.key?(:reject_return_line_item)
|
||||
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
||||
@return_refund_line_item = args[:return_refund_line_item] if args.key?(:return_refund_line_item)
|
||||
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
|
||||
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
||||
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
|
||||
@@ -3927,6 +3945,62 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Required.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax. Required.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryRefund
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -3971,6 +4045,50 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4015,6 +4133,63 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Optional, but if filled then both amountPretax
|
||||
# and amountTax must be set.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4329,6 +4504,94 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersInStoreRefundLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Required.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax. Required.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the operation. Unique across all operations for a given order.
|
||||
# Corresponds to the JSON property `operationId`
|
||||
# @return [String]
|
||||
attr_accessor :operation_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersInStoreRefundLineItemResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersInStoreRefundLineItemResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4437,6 +4700,82 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersRejectReturnLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the operation. Unique across all operations for a given order.
|
||||
# Corresponds to the JSON property `operationId`
|
||||
# @return [String]
|
||||
attr_accessor :operation_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersRejectReturnLineItemResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersRejectReturnLineItemResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersReturnLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4513,6 +4852,95 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersReturnRefundLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Optional, but if filled then both amountPretax
|
||||
# and amountTax must be set.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the operation. Unique across all operations for a given order.
|
||||
# Corresponds to the JSON property `operationId`
|
||||
# @return [String]
|
||||
attr_accessor :operation_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersReturnRefundLineItemResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersReturnRefundLineItemResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -592,18 +592,36 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRefund
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -658,6 +676,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -676,6 +706,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersReturnLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -688,6 +730,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -2056,6 +2110,8 @@ module Google
|
||||
|
||||
property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem::Representation
|
||||
|
||||
property :in_store_refund_line_item, as: 'inStoreRefundLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem::Representation
|
||||
|
||||
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
||||
property :merchant_order_id, as: 'merchantOrderId'
|
||||
property :method_prop, as: 'method'
|
||||
@@ -2063,8 +2119,12 @@ module Google
|
||||
property :order_id, as: 'orderId'
|
||||
property :refund, as: 'refund', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund::Representation
|
||||
|
||||
property :reject_return_line_item, as: 'rejectReturnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem::Representation
|
||||
|
||||
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
||||
|
||||
property :return_refund_line_item, as: 'returnRefundLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem::Representation
|
||||
|
||||
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
|
||||
|
||||
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
||||
@@ -2101,6 +2161,21 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRefund
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2115,6 +2190,17 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2126,6 +2212,21 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2218,6 +2319,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2251,6 +2376,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersReturnLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2271,6 +2416,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -914,7 +914,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the datafeeds in your Merchant Center account.
|
||||
# Lists the configurations for datafeeds in your Merchant Center account.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the datafeeds. This account cannot be a
|
||||
# multi-client account.
|
||||
@@ -1621,6 +1621,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Notifies that item return and refund was handled directly in store.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order.
|
||||
# @param [Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest::Representation
|
||||
command.request_object = orders_in_store_refund_line_item_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the orders in your Merchant Center account.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
@@ -1737,6 +1779,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Rejects return on an line item.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order.
|
||||
# @param [Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest::Representation
|
||||
command.request_object = orders_reject_return_line_item_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a line item.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
@@ -1779,6 +1863,49 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns and refunds a line item. Note that this method can only be called on
|
||||
# fully shipped orders.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order.
|
||||
# @param [Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
|
||||
command.request_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest::Representation
|
||||
command.request_object = orders_return_refund_line_item_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets (overrides) merchant provided annotations on the line item.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2sandbox
|
||||
VERSION = 'V2sandbox'
|
||||
REVISION = '20171207'
|
||||
REVISION = '20180111'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
||||
@@ -1426,6 +1426,11 @@ module Google
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem]
|
||||
attr_accessor :cancel_line_item
|
||||
|
||||
# Required for inStoreReturnLineItem method.
|
||||
# Corresponds to the JSON property `inStoreRefundLineItem`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
|
||||
attr_accessor :in_store_refund_line_item
|
||||
|
||||
# The ID of the managing account.
|
||||
# Corresponds to the JSON property `merchantId`
|
||||
# @return [Fixnum]
|
||||
@@ -1458,11 +1463,21 @@ module Google
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund]
|
||||
attr_accessor :refund
|
||||
|
||||
# Required for rejectReturnLineItem method.
|
||||
# Corresponds to the JSON property `rejectReturnLineItem`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem]
|
||||
attr_accessor :reject_return_line_item
|
||||
|
||||
# Required for returnLineItem method.
|
||||
# Corresponds to the JSON property `returnLineItem`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem]
|
||||
attr_accessor :return_line_item
|
||||
|
||||
# Required for returnRefundLineItem method.
|
||||
# Corresponds to the JSON property `returnRefundLineItem`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem]
|
||||
attr_accessor :return_refund_line_item
|
||||
|
||||
# Required for setLineItemMetadata method.
|
||||
# Corresponds to the JSON property `setLineItemMetadata`
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata]
|
||||
@@ -1492,13 +1507,16 @@ module Google
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@cancel = args[:cancel] if args.key?(:cancel)
|
||||
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
|
||||
@in_store_refund_line_item = args[:in_store_refund_line_item] if args.key?(:in_store_refund_line_item)
|
||||
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
||||
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
||||
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@refund = args[:refund] if args.key?(:refund)
|
||||
@reject_return_line_item = args[:reject_return_line_item] if args.key?(:reject_return_line_item)
|
||||
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
||||
@return_refund_line_item = args[:return_refund_line_item] if args.key?(:return_refund_line_item)
|
||||
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
|
||||
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
||||
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
|
||||
@@ -1597,6 +1615,62 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Required.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax. Required.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryRefund
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1641,6 +1715,50 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1685,6 +1803,63 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Optional, but if filled then both amountPretax
|
||||
# and amountTax must be set.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1999,6 +2174,94 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersInStoreRefundLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Required.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax. Required.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the operation. Unique across all operations for a given order.
|
||||
# Corresponds to the JSON property `operationId`
|
||||
# @return [String]
|
||||
attr_accessor :operation_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersInStoreRefundLineItemResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersInStoreRefundLineItemResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2107,6 +2370,82 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersRejectReturnLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the operation. Unique across all operations for a given order.
|
||||
# Corresponds to the JSON property `operationId`
|
||||
# @return [String]
|
||||
attr_accessor :operation_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersRejectReturnLineItemResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersRejectReturnLineItemResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersReturnLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2183,6 +2522,95 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersReturnRefundLineItemRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount that is refunded. Optional, but if filled then both amountPretax
|
||||
# and amountTax must be set.
|
||||
# Corresponds to the JSON property `amountPretax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_pretax
|
||||
|
||||
# Tax amount that correspond to refund amount in amountPretax.
|
||||
# Corresponds to the JSON property `amountTax`
|
||||
# @return [Google::Apis::ContentV2sandbox::Price]
|
||||
attr_accessor :amount_tax
|
||||
|
||||
# The ID of the line item to return. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `lineItemId`
|
||||
# @return [String]
|
||||
attr_accessor :line_item_id
|
||||
|
||||
# The ID of the operation. Unique across all operations for a given order.
|
||||
# Corresponds to the JSON property `operationId`
|
||||
# @return [String]
|
||||
attr_accessor :operation_id
|
||||
|
||||
# The ID of the product to return. This is the REST ID used in the products
|
||||
# service. Either lineItemId or productId is required.
|
||||
# Corresponds to the JSON property `productId`
|
||||
# @return [String]
|
||||
attr_accessor :product_id
|
||||
|
||||
# The quantity to return and refund.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the return.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
||||
# The explanation of the reason.
|
||||
# Corresponds to the JSON property `reasonText`
|
||||
# @return [String]
|
||||
attr_accessor :reason_text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
||||
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
||||
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
||||
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@reason = args[:reason] if args.key?(:reason)
|
||||
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersReturnRefundLineItemResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status of the execution.
|
||||
# Corresponds to the JSON property `executionStatus`
|
||||
# @return [String]
|
||||
attr_accessor :execution_status
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# ordersReturnRefundLineItemResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -226,18 +226,36 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRefund
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -292,6 +310,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -310,6 +340,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersReturnLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -322,6 +364,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -797,6 +851,8 @@ module Google
|
||||
|
||||
property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem::Representation
|
||||
|
||||
property :in_store_refund_line_item, as: 'inStoreRefundLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem::Representation
|
||||
|
||||
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
||||
property :merchant_order_id, as: 'merchantOrderId'
|
||||
property :method_prop, as: 'method'
|
||||
@@ -804,8 +860,12 @@ module Google
|
||||
property :order_id, as: 'orderId'
|
||||
property :refund, as: 'refund', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund::Representation
|
||||
|
||||
property :reject_return_line_item, as: 'rejectReturnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem::Representation
|
||||
|
||||
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
||||
|
||||
property :return_refund_line_item, as: 'returnRefundLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem::Representation
|
||||
|
||||
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
|
||||
|
||||
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
||||
@@ -842,6 +902,21 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRefund
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -856,6 +931,17 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -867,6 +953,21 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -959,6 +1060,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersInStoreRefundLineItemResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -992,6 +1117,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersRejectReturnLineItemResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersReturnLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1012,6 +1157,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
||||
|
||||
property :line_item_id, as: 'lineItemId'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :product_id, as: 'productId'
|
||||
property :quantity, as: 'quantity'
|
||||
property :reason, as: 'reason'
|
||||
property :reason_text, as: 'reasonText'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersReturnRefundLineItemResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_status, as: 'executionStatus'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class OrdersSetLineItemMetadataRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -412,6 +412,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Notifies that item return and refund was handled directly in store.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order.
|
||||
# @param [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
|
||||
command.request_representation = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemRequest::Representation
|
||||
command.request_object = orders_in_store_refund_line_item_request_object
|
||||
command.response_representation = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the orders in your Merchant Center account.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
@@ -528,6 +570,48 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Rejects return on an line item.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order.
|
||||
# @param [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
|
||||
command.request_representation = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemRequest::Representation
|
||||
command.request_object = orders_reject_return_line_item_request_object
|
||||
command.response_representation = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a line item.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
@@ -570,6 +654,49 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns and refunds a line item. Note that this method can only be called on
|
||||
# fully shipped orders.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
# account.
|
||||
# @param [String] order_id
|
||||
# The ID of the order.
|
||||
# @param [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
|
||||
command.request_representation = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemRequest::Representation
|
||||
command.request_object = orders_return_refund_line_item_request_object
|
||||
command.response_representation = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['orderId'] = order_id unless order_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets (overrides) merchant provided annotations on the line item.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the account that manages the order. This cannot be a multi-client
|
||||
|
||||
Reference in new issue
Block a user