Autogenerated update (2017-11-29)

Update:
- cloudbuild_v1
- cloudtasks_v2beta2
- content_v2
- content_v2sandbox
This commit is contained in:
Google APIs 2017-11-29 00:35:30 +00:00
parent 79b086a6aa
commit 0c52288420
13 changed files with 394 additions and 62 deletions

View File

@ -14006,6 +14006,7 @@
"/cloudtasks:v2beta2/Queue/queueState": queue_state
"/cloudtasks:v2beta2/Queue/rateLimits": rate_limits
"/cloudtasks:v2beta2/Queue/retryConfig": retry_config
"/cloudtasks:v2beta2/Queue/state": state
"/cloudtasks:v2beta2/Queue/throttleConfig": throttle_config
"/cloudtasks:v2beta2/RateLimits": rate_limits
"/cloudtasks:v2beta2/RateLimits/maxBurstSize": max_burst_size
@ -29294,6 +29295,7 @@
"/content:v2/Account/adultContent": adult_content
"/content:v2/Account/adwordsLinks": adwords_links
"/content:v2/Account/adwordsLinks/adwords_link": adwords_link
"/content:v2/Account/googleMyBusinessLink": google_my_business_link
"/content:v2/Account/id": id
"/content:v2/Account/kind": kind
"/content:v2/Account/name": name
@ -29307,6 +29309,9 @@
"/content:v2/AccountAdwordsLink": account_adwords_link
"/content:v2/AccountAdwordsLink/adwordsId": adwords_id
"/content:v2/AccountAdwordsLink/status": status
"/content:v2/AccountGoogleMyBusinessLink": account_google_my_business_link
"/content:v2/AccountGoogleMyBusinessLink/gmbEmail": gmb_email
"/content:v2/AccountGoogleMyBusinessLink/status": status
"/content:v2/AccountIdentifier": account_identifier
"/content:v2/AccountIdentifier/aggregatorId": aggregator_id
"/content:v2/AccountIdentifier/merchantId": merchant_id
@ -29778,6 +29783,7 @@
"/content:v2/OrderShipment/trackingId": tracking_id
"/content:v2/OrderShipmentLineItemShipment": order_shipment_line_item_shipment
"/content:v2/OrderShipmentLineItemShipment/lineItemId": line_item_id
"/content:v2/OrderShipmentLineItemShipment/productId": product_id
"/content:v2/OrderShipmentLineItemShipment/quantity": quantity
"/content:v2/OrdersAcknowledgeRequest": orders_acknowledge_request
"/content:v2/OrdersAcknowledgeRequest/operationId": operation_id
@ -29788,8 +29794,11 @@
"/content:v2/OrdersAdvanceTestOrderResponse/kind": kind
"/content:v2/OrdersCancelLineItemRequest": orders_cancel_line_item_request
"/content:v2/OrdersCancelLineItemRequest/amount": amount
"/content:v2/OrdersCancelLineItemRequest/amountPretax": amount_pretax
"/content:v2/OrdersCancelLineItemRequest/amountTax": amount_tax
"/content:v2/OrdersCancelLineItemRequest/lineItemId": line_item_id
"/content:v2/OrdersCancelLineItemRequest/operationId": operation_id
"/content:v2/OrdersCancelLineItemRequest/productId": product_id
"/content:v2/OrdersCancelLineItemRequest/quantity": quantity
"/content:v2/OrdersCancelLineItemRequest/reason": reason
"/content:v2/OrdersCancelLineItemRequest/reasonText": reason_text
@ -29830,16 +29839,22 @@
"/content:v2/OrdersCustomBatchRequestEntryCancel/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem": orders_custom_batch_request_entry_cancel_line_item
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/amount": amount
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/amountPretax": amount_pretax
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/amountTax": amount_tax
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/lineItemId": line_item_id
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/productId": product_id
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund
"/content:v2/OrdersCustomBatchRequestEntryRefund/amount": amount
"/content:v2/OrdersCustomBatchRequestEntryRefund/amountPretax": amount_pretax
"/content:v2/OrdersCustomBatchRequestEntryRefund/amountTax": amount_tax
"/content:v2/OrdersCustomBatchRequestEntryRefund/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/productId": product_id
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text
@ -29883,6 +29898,8 @@
"/content:v2/OrdersListResponse/resources/resource": resource
"/content:v2/OrdersRefundRequest": orders_refund_request
"/content:v2/OrdersRefundRequest/amount": amount
"/content:v2/OrdersRefundRequest/amountPretax": amount_pretax
"/content:v2/OrdersRefundRequest/amountTax": amount_tax
"/content:v2/OrdersRefundRequest/operationId": operation_id
"/content:v2/OrdersRefundRequest/reason": reason
"/content:v2/OrdersRefundRequest/reasonText": reason_text
@ -29892,6 +29909,7 @@
"/content:v2/OrdersReturnLineItemRequest": orders_return_line_item_request
"/content:v2/OrdersReturnLineItemRequest/lineItemId": line_item_id
"/content:v2/OrdersReturnLineItemRequest/operationId": operation_id
"/content:v2/OrdersReturnLineItemRequest/productId": product_id
"/content:v2/OrdersReturnLineItemRequest/quantity": quantity
"/content:v2/OrdersReturnLineItemRequest/reason": reason
"/content:v2/OrdersReturnLineItemRequest/reasonText": reason_text
@ -30205,6 +30223,7 @@
"/content:v2/TestOrder/kind": kind
"/content:v2/TestOrder/lineItems": line_items
"/content:v2/TestOrder/lineItems/line_item": line_item
"/content:v2/TestOrder/notificationMode": notification_mode
"/content:v2/TestOrder/paymentMethod": payment_method
"/content:v2/TestOrder/predefinedDeliveryAddress": predefined_delivery_address
"/content:v2/TestOrder/promotions": promotions
@ -30608,6 +30627,7 @@
"/content:v2sandbox/OrderShipment/trackingId": tracking_id
"/content:v2sandbox/OrderShipmentLineItemShipment": order_shipment_line_item_shipment
"/content:v2sandbox/OrderShipmentLineItemShipment/lineItemId": line_item_id
"/content:v2sandbox/OrderShipmentLineItemShipment/productId": product_id
"/content:v2sandbox/OrderShipmentLineItemShipment/quantity": quantity
"/content:v2sandbox/OrdersAcknowledgeRequest": orders_acknowledge_request
"/content:v2sandbox/OrdersAcknowledgeRequest/operationId": operation_id
@ -30618,8 +30638,11 @@
"/content:v2sandbox/OrdersAdvanceTestOrderResponse/kind": kind
"/content:v2sandbox/OrdersCancelLineItemRequest": orders_cancel_line_item_request
"/content:v2sandbox/OrdersCancelLineItemRequest/amount": amount
"/content:v2sandbox/OrdersCancelLineItemRequest/amountPretax": amount_pretax
"/content:v2sandbox/OrdersCancelLineItemRequest/amountTax": amount_tax
"/content:v2sandbox/OrdersCancelLineItemRequest/lineItemId": line_item_id
"/content:v2sandbox/OrdersCancelLineItemRequest/operationId": operation_id
"/content:v2sandbox/OrdersCancelLineItemRequest/productId": product_id
"/content:v2sandbox/OrdersCancelLineItemRequest/quantity": quantity
"/content:v2sandbox/OrdersCancelLineItemRequest/reason": reason
"/content:v2sandbox/OrdersCancelLineItemRequest/reasonText": reason_text
@ -30660,16 +30683,22 @@
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancel/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem": orders_custom_batch_request_entry_cancel_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/amount": amount
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/amountPretax": amount_pretax
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/amountTax": amount_tax
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/lineItemId": line_item_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/productId": product_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amount": amount
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amountPretax": amount_pretax
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amountTax": amount_tax
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/productId": product_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text
@ -30713,6 +30742,8 @@
"/content:v2sandbox/OrdersListResponse/resources/resource": resource
"/content:v2sandbox/OrdersRefundRequest": orders_refund_request
"/content:v2sandbox/OrdersRefundRequest/amount": amount
"/content:v2sandbox/OrdersRefundRequest/amountPretax": amount_pretax
"/content:v2sandbox/OrdersRefundRequest/amountTax": amount_tax
"/content:v2sandbox/OrdersRefundRequest/operationId": operation_id
"/content:v2sandbox/OrdersRefundRequest/reason": reason
"/content:v2sandbox/OrdersRefundRequest/reasonText": reason_text
@ -30722,6 +30753,7 @@
"/content:v2sandbox/OrdersReturnLineItemRequest": orders_return_line_item_request
"/content:v2sandbox/OrdersReturnLineItemRequest/lineItemId": line_item_id
"/content:v2sandbox/OrdersReturnLineItemRequest/operationId": operation_id
"/content:v2sandbox/OrdersReturnLineItemRequest/productId": product_id
"/content:v2sandbox/OrdersReturnLineItemRequest/quantity": quantity
"/content:v2sandbox/OrdersReturnLineItemRequest/reason": reason
"/content:v2sandbox/OrdersReturnLineItemRequest/reasonText": reason_text
@ -30763,6 +30795,7 @@
"/content:v2sandbox/TestOrder/kind": kind
"/content:v2sandbox/TestOrder/lineItems": line_items
"/content:v2sandbox/TestOrder/lineItems/line_item": line_item
"/content:v2sandbox/TestOrder/notificationMode": notification_mode
"/content:v2sandbox/TestOrder/paymentMethod": payment_method
"/content:v2sandbox/TestOrder/predefinedDeliveryAddress": predefined_delivery_address
"/content:v2sandbox/TestOrder/promotions": promotions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20171115'
REVISION = '20171128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20171117'
REVISION = '20171123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1057,6 +1057,10 @@ module Google
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which
@ -1088,15 +1092,6 @@ module Google
# @return [String]
attr_accessor :purge_time
# Output only. The state of the queue.
# `queue_state` can only be changed by called
# CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
# [queue.yaml](/appengine/docs/python/config/queueref).
# CloudTasks.UpdateQueue cannot be used to change `queue_state`.
# Corresponds to the JSON property `queueState`
# @return [String]
attr_accessor :queue_state
# Rate limits.
# This message determines the maximum rate that tasks can be dispatched by a
# queue, regardless of whether the dispatch is a first task attempt or a retry.
@ -1110,6 +1105,15 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::RetryConfig]
attr_accessor :retry_config
# Output only. The state of the queue.
# `state` can only be changed by called
# CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
# [queue.yaml](/appengine/docs/python/config/queueref).
# CloudTasks.UpdateQueue cannot be used to change `state`.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
@ -1122,9 +1126,9 @@ module Google
@pull_queue_config = args[:pull_queue_config] if args.key?(:pull_queue_config)
@pull_target = args[:pull_target] if args.key?(:pull_target)
@purge_time = args[:purge_time] if args.key?(:purge_time)
@queue_state = args[:queue_state] if args.key?(:queue_state)
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
@retry_config = args[:retry_config] if args.key?(:retry_config)
@state = args[:state] if args.key?(:state)
end
end
@ -1176,6 +1180,8 @@ module Google
# The maximum allowed value is 500.
# * For App Engine queues, this field is 1 by default.
# * For pull queues, this field is output only and always 10,000.
# In addition to the `max_tasks_dispatched_per_second` limit, a maximum of
# 10 QPS of CloudTasks.PullTasks requests are allowed per queue.
# This field has the same meaning as
# [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
# Corresponds to the JSON property `maxTasksDispatchedPerSecond`
@ -1559,6 +1565,10 @@ module Google
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `LOCATION_ID` is the canonical ID for the task's location.
# The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),

View File

@ -467,11 +467,11 @@ module Google
property :pull_target, as: 'pullTarget', class: Google::Apis::CloudtasksV2beta2::PullTarget, decorator: Google::Apis::CloudtasksV2beta2::PullTarget::Representation
property :purge_time, as: 'purgeTime'
property :queue_state, as: 'queueState'
property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta2::RateLimits, decorator: Google::Apis::CloudtasksV2beta2::RateLimits::Representation
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
property :state, as: 'state'
end
end

View File

@ -345,6 +345,10 @@ module Google
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which
@ -388,8 +392,8 @@ module Google
# tasks in the queue until it is resumed via
# CloudTasks.ResumeQueue. Tasks can still be added when the
# queue is paused. The state of the queue is stored in
# Queue.queue_state; if paused it will be set to
# Queue.QueueState.PAUSED.
# Queue.state; if paused it will be set to
# Queue.State.PAUSED.
# @param [String] name
# Required.
# The queue name. For example:
@ -464,9 +468,9 @@ module Google
# Resume a queue.
# This method resumes a queue after it has been
# Queue.QueueState.PAUSED or Queue.QueueState.DISABLED. The state of
# a queue is stored in Queue.queue_state; after calling this method it
# will be set to Queue.QueueState.RUNNING.
# Queue.State.PAUSED or Queue.State.DISABLED. The state of
# a queue is stored in Queue.state; after calling this method it
# will be set to Queue.State.RUNNING.
# WARNING: Resuming many high-QPS queues at the same time can
# lead to target overloading. If you are resuming high-QPS
# queues, follow the 500/50/5 pattern described in
@ -957,7 +961,7 @@ module Google
# task after a fix has been made or to manually force a task to be
# dispatched now.
# When this method is called, Cloud Tasks will dispatch the task to its
# target, even if the queue is Queue.QueueState.PAUSED.
# target, even if the queue is Queue.State.PAUSED.
# The dispatched task is returned. That is, the task that is returned
# contains the Task.task_status after the task is dispatched but
# before the task is received by its target.
@ -971,6 +975,7 @@ module Google
# failed. google.rpc.Code.FAILED_PRECONDITION is returned when
# CloudTasks.RunTask is called on task that is dispatched or
# already running.
# CloudTasks.RunTask cannot be called on pull tasks.
# @param [String] name
# Required.
# The task name. For example:

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20171102'
REVISION = '20171124'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -41,6 +41,12 @@ module Google
# @return [Array<Google::Apis::ContentV2::AccountAdwordsLink>]
attr_accessor :adwords_links
# The GMB account which is linked or in the process of being linked with the
# Merchant Center accounnt.
# Corresponds to the JSON property `googleMyBusinessLink`
# @return [Google::Apis::ContentV2::AccountGoogleMyBusinessLink]
attr_accessor :google_my_business_link
# Merchant Center account ID.
# Corresponds to the JSON property `id`
# @return [Fixnum]
@ -95,6 +101,7 @@ module Google
def update!(**args)
@adult_content = args[:adult_content] if args.key?(:adult_content)
@adwords_links = args[:adwords_links] if args.key?(:adwords_links)
@google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@ -139,6 +146,31 @@ module Google
end
end
#
class AccountGoogleMyBusinessLink
include Google::Apis::Core::Hashable
# The GMB email address.
# Corresponds to the JSON property `gmbEmail`
# @return [String]
attr_accessor :gmb_email
# Status of the link between this Merchant Center account and the GMB account.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gmb_email = args[:gmb_email] if args.key?(:gmb_email)
@status = args[:status] if args.key?(:status)
end
end
#
class AccountIdentifier
include Google::Apis::Core::Hashable
@ -3282,26 +3314,20 @@ module Google
# Acceptable values are:
# - "gsx"
# - "ups"
# - "united parcel service"
# - "usps"
# - "united states postal service"
# - "fedex"
# - "dhl"
# - "ecourier"
# - "cxt"
# - "google"
# - "on trac"
# - "ontrac"
# - "on-trac"
# - "on_trac"
# - "delvic"
# - "emsy"
# - "ont"
# - "deliv"
# - "dynamex"
# - "lasership"
# - "smartpost"
# - "fedex smartpost"
# - "mpx"
# - "uds"
# - "united delivery service"
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -3363,6 +3389,12 @@ module Google
# @return [String]
attr_accessor :line_item_id
# The ID of the product to ship. 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 that is shipped.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -3375,6 +3407,7 @@ module Google
# 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)
end
end
@ -3455,6 +3488,18 @@ module Google
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to cancellation 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 cancel. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
@ -3465,6 +3510,12 @@ module Google
# @return [String]
attr_accessor :operation_id
# The ID of the product to cancel. 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 cancel.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -3487,8 +3538,11 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@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)
@ -3773,11 +3827,29 @@ module Google
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to cancellation 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 cancel. 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 cancel. 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 cancel.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -3800,7 +3872,10 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@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)
@ -3816,6 +3891,17 @@ module Google
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The amount that is refunded. Either amount or amountPretax and amountTax
# should be filled.
# 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 reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
@ -3833,6 +3919,8 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
@ -3847,6 +3935,12 @@ module Google
# @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.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -3869,6 +3963,7 @@ module Google
# 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)
@ -4156,6 +4251,17 @@ module Google
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The amount that is refunded. Either amount or amountPretax and amountTax
# should be filled.
# 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 operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
@ -4178,6 +4284,8 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
@ -4224,6 +4332,12 @@ module Google
# @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.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -4247,6 +4361,7 @@ module Google
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)
@ -6282,6 +6397,12 @@ module Google
# @return [Array<Google::Apis::ContentV2::TestOrderLineItem>]
attr_accessor :line_items
# Determines if test order must be pulled by merchant or pushed to merchant via
# push integration.
# Corresponds to the JSON property `notificationMode`
# @return [String]
attr_accessor :notification_mode
# The details of the payment method.
# Corresponds to the JSON property `paymentMethod`
# @return [Google::Apis::ContentV2::TestOrderPaymentMethod]
@ -6322,6 +6443,7 @@ module Google
@customer = args[:customer] if args.key?(:customer)
@kind = args[:kind] if args.key?(:kind)
@line_items = args[:line_items] if args.key?(:line_items)
@notification_mode = args[:notification_mode] if args.key?(:notification_mode)
@payment_method = args[:payment_method] if args.key?(:payment_method)
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
@promotions = args[:promotions] if args.key?(:promotions)

View File

@ -34,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AccountGoogleMyBusinessLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountIdentifier
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -976,6 +982,8 @@ module Google
property :adult_content, as: 'adultContent'
collection :adwords_links, as: 'adwordsLinks', class: Google::Apis::ContentV2::AccountAdwordsLink, decorator: Google::Apis::ContentV2::AccountAdwordsLink::Representation
property :google_my_business_link, as: 'googleMyBusinessLink', class: Google::Apis::ContentV2::AccountGoogleMyBusinessLink, decorator: Google::Apis::ContentV2::AccountGoogleMyBusinessLink::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
@ -997,6 +1005,14 @@ module Google
end
end
class AccountGoogleMyBusinessLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gmb_email, as: 'gmbEmail'
property :status, as: 'status'
end
end
class AccountIdentifier
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1885,6 +1901,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
end
end
@ -1916,8 +1933,13 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
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'
@ -2011,7 +2033,12 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
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'
@ -2023,6 +2050,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
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 :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
@ -2032,6 +2063,7 @@ module Google
# @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'
@ -2125,6 +2157,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
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 :operation_id, as: 'operationId'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
@ -2144,6 +2180,7 @@ module Google
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'
@ -2706,6 +2743,7 @@ module Google
property :kind, as: 'kind'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::TestOrderLineItem, decorator: Google::Apis::ContentV2::TestOrderLineItem::Representation
property :notification_mode, as: 'notificationMode'
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation
property :predefined_delivery_address, as: 'predefinedDeliveryAddress'

View File

@ -88,8 +88,9 @@ module Google
# Claims the website of a Merchant Center sub-account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account whose website is claimed.
# @param [Boolean] overwrite
@ -171,7 +172,8 @@ module Google
# Deletes a Merchant Center sub-account.
# @param [Fixnum] merchant_id
# The ID of the managing account. This must be a multi-client account.
# The ID of the managing account. This must be a multi-client account, and
# accountId must be the ID of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account.
# @param [Boolean] dry_run
@ -213,8 +215,9 @@ module Google
# Retrieves a Merchant Center account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account.
# @param [String] fields
@ -334,8 +337,9 @@ module Google
# Updates a Merchant Center account. This method supports patch semantics.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account.
# @param [Google::Apis::ContentV2::Account] account_object
@ -379,8 +383,9 @@ module Google
# Updates a Merchant Center account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account.
# @param [Google::Apis::ContentV2::Account] account_object
@ -459,8 +464,9 @@ module Google
# Retrieves the status of a Merchant Center account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account.
# @param [String] fields
@ -578,8 +584,9 @@ module Google
# Retrieves the tax settings of the account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account for which to get/update account tax settings.
# @param [String] fields
@ -658,8 +665,9 @@ module Google
# Updates the tax settings of the account. This method supports patch semantics.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account for which to get/update account tax settings.
# @param [Google::Apis::ContentV2::AccountTax] account_tax_object
@ -703,8 +711,9 @@ module Google
# Updates the tax settings of the account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account for which to get/update account tax settings.
# @param [Google::Apis::ContentV2::AccountTax] account_tax_object
@ -2277,8 +2286,9 @@ module Google
# Retrieves the shipping settings of the account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account for which to get/update shipping settings.
# @param [String] fields
@ -2395,8 +2405,9 @@ module Google
# Updates the shipping settings of the account. This method supports patch
# semantics.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account for which to get/update shipping settings.
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
@ -2440,8 +2451,9 @@ module Google
# Updates the shipping settings of the account.
# @param [Fixnum] merchant_id
# The ID of the managing account. If this account is not a multi-client account,
# then this parameter must be the same as accountId.
# The ID of the managing account. If this parameter is not the same as accountId,
# then this account must be a multi-client account and accountId must be the ID
# of a sub-account of this account.
# @param [Fixnum] account_id
# The ID of the account for which to get/update shipping settings.
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2sandbox
VERSION = 'V2sandbox'
REVISION = '20171102'
REVISION = '20171124'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -984,26 +984,20 @@ module Google
# Acceptable values are:
# - "gsx"
# - "ups"
# - "united parcel service"
# - "usps"
# - "united states postal service"
# - "fedex"
# - "dhl"
# - "ecourier"
# - "cxt"
# - "google"
# - "on trac"
# - "ontrac"
# - "on-trac"
# - "on_trac"
# - "delvic"
# - "emsy"
# - "ont"
# - "deliv"
# - "dynamex"
# - "lasership"
# - "smartpost"
# - "fedex smartpost"
# - "mpx"
# - "uds"
# - "united delivery service"
# Corresponds to the JSON property `carrier`
# @return [String]
attr_accessor :carrier
@ -1065,6 +1059,12 @@ module Google
# @return [String]
attr_accessor :line_item_id
# The ID of the product to ship. 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 that is shipped.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -1077,6 +1077,7 @@ module Google
# 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)
end
end
@ -1157,6 +1158,18 @@ module Google
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to cancellation 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 cancel. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
@ -1167,6 +1180,12 @@ module Google
# @return [String]
attr_accessor :operation_id
# The ID of the product to cancel. 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 cancel.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -1189,8 +1208,11 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@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)
@ -1475,11 +1497,29 @@ module Google
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to cancellation 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 cancel. 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 cancel. 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 cancel.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -1502,7 +1542,10 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@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)
@ -1518,6 +1561,17 @@ module Google
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount
# The amount that is refunded. Either amount or amountPretax and amountTax
# should be filled.
# 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 reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
@ -1535,6 +1589,8 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
@ -1549,6 +1605,12 @@ module Google
# @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.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -1571,6 +1633,7 @@ module Google
# 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)
@ -1858,6 +1921,17 @@ module Google
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount
# The amount that is refunded. Either amount or amountPretax and amountTax
# should be filled.
# 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 operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
@ -1880,6 +1954,8 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
@ -1926,6 +2002,12 @@ module Google
# @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.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
@ -1949,6 +2031,7 @@ module Google
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)
@ -2225,6 +2308,12 @@ module Google
# @return [Array<Google::Apis::ContentV2sandbox::TestOrderLineItem>]
attr_accessor :line_items
# Determines if test order must be pulled by merchant or pushed to merchant via
# push integration.
# Corresponds to the JSON property `notificationMode`
# @return [String]
attr_accessor :notification_mode
# The details of the payment method.
# Corresponds to the JSON property `paymentMethod`
# @return [Google::Apis::ContentV2sandbox::TestOrderPaymentMethod]
@ -2265,6 +2354,7 @@ module Google
@customer = args[:customer] if args.key?(:customer)
@kind = args[:kind] if args.key?(:kind)
@line_items = args[:line_items] if args.key?(:line_items)
@notification_mode = args[:notification_mode] if args.key?(:notification_mode)
@payment_method = args[:payment_method] if args.key?(:payment_method)
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
@promotions = args[:promotions] if args.key?(:promotions)

View File

@ -642,6 +642,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
end
end
@ -673,8 +674,13 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
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'
@ -768,7 +774,12 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
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'
@ -780,6 +791,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
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 :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
@ -789,6 +804,7 @@ module Google
# @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'
@ -882,6 +898,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
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 :operation_id, as: 'operationId'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
@ -901,6 +921,7 @@ module Google
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'
@ -988,6 +1009,7 @@ module Google
property :kind, as: 'kind'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2sandbox::TestOrderLineItem, decorator: Google::Apis::ContentV2sandbox::TestOrderLineItem::Representation
property :notification_mode, as: 'notificationMode'
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2sandbox::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2sandbox::TestOrderPaymentMethod::Representation
property :predefined_delivery_address, as: 'predefinedDeliveryAddress'