Autogenerated update (2018-10-04)

Update:
- admin_directory_v1
- androidpublisher_v2
- androidpublisher_v3
- content_v2
- content_v2sandbox
- dlp_v2
- language_v1
- language_v1beta1
- language_v1beta2
- testing_v1
- videointelligence_v1
- videointelligence_v1beta2
This commit is contained in:
Google APIs committed 2018-10-04 00:36:27 +00:00
1 parent 6773823e78
commit 4693389a88
30 files changed
+3000 -349

No files matched your search

+114 -114
View File
@@ -3893,10 +3893,10 @@ module Google
# @return [String]
attr_accessor :placed_date
# The details of the merchant provided promotions applied to the order. More
# details about the program are here.
# Deprecated. The details of the merchant provided promotions applied to the
# order. More details about the program are here.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
# @return [Array<Google::Apis::ContentV2::OrderLegacyPromotion>]
attr_accessor :promotions
# Refunds for the order.
@@ -4169,6 +4169,114 @@ module Google
end
end
#
class OrderLegacyPromotion
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `benefits`
# @return [Array<Google::Apis::ContentV2::OrderLegacyPromotionBenefit>]
attr_accessor :benefits
# The date and time frame when the promotion is active and ready for validation
# review. Note that the promotion live time may be delayed for a few hours due
# to the validation review.
# Start date and end date are separated by a forward slash (/). The start date
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
# expression of the time zone for the sale. The end date is in the same format.
# Corresponds to the JSON property `effectiveDates`
# @return [String]
attr_accessor :effective_dates
# Optional. The text code that corresponds to the promotion when applied on the
# retailer?s website.
# Corresponds to the JSON property `genericRedemptionCode`
# @return [String]
attr_accessor :generic_redemption_code
# The unique ID of the promotion.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The full title of the promotion.
# Corresponds to the JSON property `longTitle`
# @return [String]
attr_accessor :long_title
# Whether the promotion is applicable to all products or only specific products.
# Corresponds to the JSON property `productApplicability`
# @return [String]
attr_accessor :product_applicability
# Indicates that the promotion is valid online.
# Corresponds to the JSON property `redemptionChannel`
# @return [String]
attr_accessor :redemption_channel
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@benefits = args[:benefits] if args.key?(:benefits)
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
@id = args[:id] if args.key?(:id)
@long_title = args[:long_title] if args.key?(:long_title)
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
end
end
#
class OrderLegacyPromotionBenefit
include Google::Apis::Core::Hashable
# The discount in the order price when the promotion is applied.
# Corresponds to the JSON property `discount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :discount
# The OfferId(s) that were purchased in this order and map to this specific
# benefit of the promotion.
# Corresponds to the JSON property `offerIds`
# @return [Array<String>]
attr_accessor :offer_ids
# Further describes the benefit of the promotion. Note that we will expand on
# this enumeration as we support new promotion sub-types.
# Corresponds to the JSON property `subType`
# @return [String]
attr_accessor :sub_type
# The impact on tax when the promotion is applied.
# Corresponds to the JSON property `taxImpact`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax_impact
# Describes whether the promotion applies to products (e.g. 20% off) or to
# shipping (e.g. Free Shipping).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@discount = args[:discount] if args.key?(:discount)
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
@sub_type = args[:sub_type] if args.key?(:sub_type)
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
@type = args[:type] if args.key?(:type)
end
end
#
class OrderLineItem
include Google::Apis::Core::Hashable
@@ -4589,114 +4697,6 @@ module Google
end
end
#
class OrderPromotion
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `benefits`
# @return [Array<Google::Apis::ContentV2::OrderPromotionBenefit>]
attr_accessor :benefits
# The date and time frame when the promotion is active and ready for validation
# review. Note that the promotion live time may be delayed for a few hours due
# to the validation review.
# Start date and end date are separated by a forward slash (/). The start date
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
# expression of the time zone for the sale. The end date is in the same format.
# Corresponds to the JSON property `effectiveDates`
# @return [String]
attr_accessor :effective_dates
# Optional. The text code that corresponds to the promotion when applied on the
# retailer?s website.
# Corresponds to the JSON property `genericRedemptionCode`
# @return [String]
attr_accessor :generic_redemption_code
# The unique ID of the promotion.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The full title of the promotion.
# Corresponds to the JSON property `longTitle`
# @return [String]
attr_accessor :long_title
# Whether the promotion is applicable to all products or only specific products.
# Corresponds to the JSON property `productApplicability`
# @return [String]
attr_accessor :product_applicability
# Indicates that the promotion is valid online.
# Corresponds to the JSON property `redemptionChannel`
# @return [String]
attr_accessor :redemption_channel
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@benefits = args[:benefits] if args.key?(:benefits)
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
@id = args[:id] if args.key?(:id)
@long_title = args[:long_title] if args.key?(:long_title)
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
end
end
#
class OrderPromotionBenefit
include Google::Apis::Core::Hashable
# The discount in the order price when the promotion is applied.
# Corresponds to the JSON property `discount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :discount
# The OfferId(s) that were purchased in this order and map to this specific
# benefit of the promotion.
# Corresponds to the JSON property `offerIds`
# @return [Array<String>]
attr_accessor :offer_ids
# Further describes the benefit of the promotion. Note that we will expand on
# this enumeration as we support new promotion sub-types.
# Corresponds to the JSON property `subType`
# @return [String]
attr_accessor :sub_type
# The impact on tax when the promotion is applied.
# Corresponds to the JSON property `taxImpact`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax_impact
# Describes whether the promotion applies to products (e.g. 20% off) or to
# shipping (e.g. Free Shipping).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@discount = args[:discount] if args.key?(:discount)
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
@sub_type = args[:sub_type] if args.key?(:sub_type)
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
@type = args[:type] if args.key?(:type)
end
end
#
class OrderRefund
include Google::Apis::Core::Hashable
@@ -10324,10 +10324,10 @@ module Google
# @return [String]
attr_accessor :predefined_delivery_address
# The details of the merchant provided promotions applied to the order. More
# details about the program are here.
# Deprecated. The details of the merchant provided promotions applied to the
# order. More details about the program are here.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
# @return [Array<Google::Apis::ContentV2::OrderLegacyPromotion>]
attr_accessor :promotions
# The total cost of shipping for all items.
@@ -664,6 +664,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrderLegacyPromotion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderLegacyPromotionBenefit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -712,18 +724,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrderPromotion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderPromotionBenefit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderRefund
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2715,7 +2715,7 @@ module Google
property :payment_status, as: 'paymentStatus'
property :placed_date, as: 'placedDate'
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderPromotion, decorator: Google::Apis::ContentV2::OrderPromotion::Representation
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderLegacyPromotion, decorator: Google::Apis::ContentV2::OrderLegacyPromotion::Representation
collection :refunds, as: 'refunds', class: Google::Apis::ContentV2::OrderRefund, decorator: Google::Apis::ContentV2::OrderRefund::Representation
@@ -2784,6 +2784,33 @@ module Google
end
end
class OrderLegacyPromotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :benefits, as: 'benefits', class: Google::Apis::ContentV2::OrderLegacyPromotionBenefit, decorator: Google::Apis::ContentV2::OrderLegacyPromotionBenefit::Representation
property :effective_dates, as: 'effectiveDates'
property :generic_redemption_code, as: 'genericRedemptionCode'
property :id, as: 'id'
property :long_title, as: 'longTitle'
property :product_applicability, as: 'productApplicability'
property :redemption_channel, as: 'redemptionChannel'
end
end
class OrderLegacyPromotionBenefit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :discount, as: 'discount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
collection :offer_ids, as: 'offerIds'
property :sub_type, as: 'subType'
property :tax_impact, as: 'taxImpact', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :type, as: 'type'
end
end
class OrderLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2894,33 +2921,6 @@ module Google
end
end
class OrderPromotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :benefits, as: 'benefits', class: Google::Apis::ContentV2::OrderPromotionBenefit, decorator: Google::Apis::ContentV2::OrderPromotionBenefit::Representation
property :effective_dates, as: 'effectiveDates'
property :generic_redemption_code, as: 'genericRedemptionCode'
property :id, as: 'id'
property :long_title, as: 'longTitle'
property :product_applicability, as: 'productApplicability'
property :redemption_channel, as: 'redemptionChannel'
end
end
class OrderPromotionBenefit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :discount, as: 'discount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
collection :offer_ids, as: 'offerIds'
property :sub_type, as: 'subType'
property :tax_impact, as: 'taxImpact', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :type, as: 'type'
end
end
class OrderRefund
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -4490,7 +4490,7 @@ module Google
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation
property :predefined_delivery_address, as: 'predefinedDeliveryAddress'
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderPromotion, decorator: Google::Apis::ContentV2::OrderPromotion::Representation
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderLegacyPromotion, decorator: Google::Apis::ContentV2::OrderLegacyPromotion::Representation
property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
+6 -6
View File
@@ -1996,11 +1996,11 @@ module Google
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] disbursement_start_date
# The first date which disbursements occurred. In ISO 8601 format.
# @param [String] disbursement_end_date
# The last date which disbursements occurred. In ISO 8601 format. Default:
# current date.
# @param [String] disbursement_start_date
# The first date which disbursements occurred. In ISO 8601 format.
# @param [Fixnum] max_results
# The maximum number of disbursements to return in the response, used for paging.
# @param [String] page_token
@@ -2024,7 +2024,7 @@ module Google
# @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 listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
command.response_representation = Google::Apis::ContentV2::OrderreportsListDisbursementsResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderreportsListDisbursementsResponse
@@ -2046,6 +2046,8 @@ module Google
# account.
# @param [String] disbursement_id
# The Google-provided ID of the disbursement (found in Wallet).
# @param [String] transaction_start_date
# The first date in which transaction occurred. In ISO 8601 format.
# @param [Fixnum] max_results
# The maximum number of disbursements to return in the response, used for paging.
# @param [String] page_token
@@ -2053,8 +2055,6 @@ module Google
# @param [String] transaction_end_date
# The last date in which transaction occurred. In ISO 8601 format. Default:
# current date.
# @param [String] transaction_start_date
# The first date in which transaction occurred. In ISO 8601 format.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -2074,7 +2074,7 @@ module Google
# @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 listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
command.response_representation = Google::Apis::ContentV2::OrderreportsListTransactionsResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderreportsListTransactionsResponse