generated/google/apis/content_v2sandbox/classes.rb in google-api-client-0.17.3 vs generated/google/apis/content_v2sandbox/classes.rb in google-api-client-0.17.4
- old
+ new
@@ -982,30 +982,24 @@
# The carrier handling the shipment.
# 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
# Date on which the shipment has been created, in ISO 8601 format.
@@ -1063,10 +1057,16 @@
# required.
# Corresponds to the JSON property `lineItemId`
# @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]
attr_accessor :quantity
@@ -1075,10 +1075,11 @@
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)
end
end
#
@@ -1155,20 +1156,38 @@
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amount`
# @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 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 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]
attr_accessor :quantity
@@ -1187,12 +1206,15 @@
end
# 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)
end
end
@@ -1473,15 +1495,33 @@
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amount`
# @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]
attr_accessor :quantity
@@ -1500,11 +1540,14 @@
end
# 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)
end
end
@@ -1516,10 +1559,21 @@
# The amount that is refunded.
# Corresponds to the JSON property `amount`
# @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]
attr_accessor :reason
@@ -1533,10 +1587,12 @@
end
# 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
end
@@ -1547,10 +1603,16 @@
# 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.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
@@ -1569,10 +1631,11 @@
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
@@ -1856,10 +1919,21 @@
# The amount that is refunded.
# Corresponds to the JSON property `amount`
# @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]
attr_accessor :operation_id
@@ -1878,10 +1952,12 @@
end
# 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)
end
end
@@ -1924,10 +2000,16 @@
# 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.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
@@ -1947,10 +2029,11 @@
# 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
@@ -2223,10 +2306,16 @@
# Line items that are ordered. At least one line item must be provided.
# Corresponds to the JSON property `lineItems`
# @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]
attr_accessor :payment_method
@@ -2263,9 +2352,10 @@
# Update properties of this object
def update!(**args)
@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)
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)