Regen APIs
This commit is contained in:
1 parent
372488e45b
commit
26173baf69
46 files changed
+2343
-42
No files matched your search
@@ -1513,6 +1513,93 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class CarrierRate
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Carrier service, such as "UPS" or "Fedex". The list of supported carriers can
|
||||
# be retrieved via the getSupportedCarriers method. Required.
|
||||
# Corresponds to the JSON property `carrierName`
|
||||
# @return [String]
|
||||
attr_accessor :carrier_name
|
||||
|
||||
# Carrier service, such as "ground" or "2 days". The list of supported services
|
||||
# for a carrier can be retrieved via the getSupportedCarriers method. Required.
|
||||
# Corresponds to the JSON property `carrierService`
|
||||
# @return [String]
|
||||
attr_accessor :carrier_service
|
||||
|
||||
# Additive shipping rate modifier. Can be negative. For example ` "value": "1", "
|
||||
# currency" : "USD" ` adds $1 to the rate, ` "value": "-3", "currency" : "USD" `
|
||||
# removes $3 from the rate. Optional.
|
||||
# Corresponds to the JSON property `flatAdjustment`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :flat_adjustment
|
||||
|
||||
# Name of the carrier rate. Must be unique per rate group. Required.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Shipping origin for this carrier rate. Required.
|
||||
# Corresponds to the JSON property `originPostalCode`
|
||||
# @return [String]
|
||||
attr_accessor :origin_postal_code
|
||||
|
||||
# Multiplicative shipping rate modifier as a number in decimal notation. Can be
|
||||
# negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the
|
||||
# rate by 3%. Optional.
|
||||
# Corresponds to the JSON property `percentageAdjustment`
|
||||
# @return [String]
|
||||
attr_accessor :percentage_adjustment
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
|
||||
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
|
||||
@flat_adjustment = args[:flat_adjustment] if args.key?(:flat_adjustment)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
||||
@percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class CarriersCarrier
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The CLDR country code of the carrier (e.g., "US"). Always present.
|
||||
# Corresponds to the JSON property `country`
|
||||
# @return [String]
|
||||
attr_accessor :country
|
||||
|
||||
# The name of the carrier (e.g., "UPS"). Always present.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A list of supported services (e.g., "ground") for that carrier. Contains at
|
||||
# least one service.
|
||||
# Corresponds to the JSON property `services`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@country = args[:country] if args.key?(:country)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
end
|
||||
end
|
||||
|
||||
# Datafeed data.
|
||||
class Datafeed
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2130,6 +2217,34 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DeliveryTime
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Maximum number of business days that is spent in transit. 0 means same day
|
||||
# delivery, 1 means next day delivery. Must be greater than or equal to
|
||||
# minTransitTimeInDays. Required.
|
||||
# Corresponds to the JSON property `maxTransitTimeInDays`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_transit_time_in_days
|
||||
|
||||
# Minimum number of business days that is spent in transit. 0 means same day
|
||||
# delivery, 1 means next day delivery. Required.
|
||||
# Corresponds to the JSON property `minTransitTimeInDays`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :min_transit_time_in_days
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
|
||||
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
|
||||
end
|
||||
end
|
||||
|
||||
# An error returned by the API.
|
||||
class Error
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2192,6 +2307,63 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
||||
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
||||
class Headers
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of location ID sets. Must be non-empty. Can only be set if all other
|
||||
# fields are not set.
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Array<Google::Apis::ContentV2::LocationIdSet>]
|
||||
attr_accessor :locations
|
||||
|
||||
# A list of inclusive number of items upper bounds. The last value can be "
|
||||
# infinity". For example ["10", "50", "infinity"] represents the headers "<= 10
|
||||
# items", " 50 items". Must be non-empty. Can only be set if all other fields
|
||||
# are not set.
|
||||
# Corresponds to the JSON property `numberOfItems`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :number_of_items
|
||||
|
||||
# A list of postal group names. The last value can be "all other locations".
|
||||
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
|
||||
# groups must match the delivery country of the service. Must be non-empty. Can
|
||||
# only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `postalCodeGroupNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :postal_code_group_names
|
||||
|
||||
# be "infinity". For example [`"value": "10", "currency": "USD"`, `"value": "500"
|
||||
# , "currency": "USD"`, `"value": "infinity", "currency": "USD"`] represents the
|
||||
# headers "<= $10", " $500". All prices within a service must have the same
|
||||
# currency. Must be non-empty. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `prices`
|
||||
# @return [Array<Google::Apis::ContentV2::Price>]
|
||||
attr_accessor :prices
|
||||
|
||||
# be "infinity". For example [`"value": "10", "unit": "kg"`, `"value": "50", "
|
||||
# unit": "kg"`, `"value": "infinity", "unit": "kg"`] represents the headers "<=
|
||||
# 10kg", " 50kg". All weights within a service must have the same unit. Must be
|
||||
# non-empty. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `weights`
|
||||
# @return [Array<Google::Apis::ContentV2::Weight>]
|
||||
attr_accessor :weights
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@number_of_items = args[:number_of_items] if args.key?(:number_of_items)
|
||||
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
|
||||
@prices = args[:prices] if args.key?(:prices)
|
||||
@weights = args[:weights] if args.key?(:weights)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Installment
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2495,6 +2667,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LocationIdSet
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A non-empty list of location IDs. They must all be of the same location type (
|
||||
# e.g., state).
|
||||
# Corresponds to the JSON property `locationIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :location_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@location_ids = args[:location_ids] if args.key?(:location_ids)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LoyaltyPoints
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -4534,6 +4726,71 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PostalCodeGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The CLDR territory code of the country the postal code group applies to.
|
||||
# Required.
|
||||
# Corresponds to the JSON property `country`
|
||||
# @return [String]
|
||||
attr_accessor :country
|
||||
|
||||
# The name of the postal code group, referred to in headers. Required.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A range of postal codes. Required.
|
||||
# Corresponds to the JSON property `postalCodeRanges`
|
||||
# @return [Array<Google::Apis::ContentV2::PostalCodeRange>]
|
||||
attr_accessor :postal_code_ranges
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@country = args[:country] if args.key?(:country)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PostalCodeRange
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A postal code or a pattern of the form prefix* denoting the inclusive lower
|
||||
# bound of the range defining the area. Examples values: "94108", "9410*", "9*".
|
||||
# Required.
|
||||
# Corresponds to the JSON property `postalCodeRangeBegin`
|
||||
# @return [String]
|
||||
attr_accessor :postal_code_range_begin
|
||||
|
||||
# A postal code or a pattern of the form prefix* denoting the inclusive upper
|
||||
# bound of the range defining the area. It must have the same length as
|
||||
# postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
|
||||
# postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
|
||||
# pattern then postalCodeRangeEnd must be a pattern with the same prefix length.
|
||||
# Optional: if not set, then the area is defined as being all the postal codes
|
||||
# matching postalCodeRangeBegin.
|
||||
# Corresponds to the JSON property `postalCodeRangeEnd`
|
||||
# @return [String]
|
||||
attr_accessor :postal_code_range_end
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin)
|
||||
@postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Price
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -5834,6 +6091,387 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class RateGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of shipping labels defining the products to which this rate group
|
||||
# applies to. This is a disjunction: only one of the labels has to match for the
|
||||
# rate group to apply. May only be empty for the last rate group of a service.
|
||||
# Required.
|
||||
# Corresponds to the JSON property `applicableShippingLabels`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :applicable_shipping_labels
|
||||
|
||||
# A list of carrier rates that can be referred to by mainTable or singleValue.
|
||||
# Corresponds to the JSON property `carrierRates`
|
||||
# @return [Array<Google::Apis::ContentV2::CarrierRate>]
|
||||
attr_accessor :carrier_rates
|
||||
|
||||
# A table defining the rate group, when singleValue is not expressive enough.
|
||||
# Can only be set if singleValue is not set.
|
||||
# Corresponds to the JSON property `mainTable`
|
||||
# @return [Google::Apis::ContentV2::Table]
|
||||
attr_accessor :main_table
|
||||
|
||||
# The single value of a rate group or the value of a rate group table's cell.
|
||||
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
||||
# subtableName must be set.
|
||||
# Corresponds to the JSON property `singleValue`
|
||||
# @return [Google::Apis::ContentV2::Value]
|
||||
attr_accessor :single_value
|
||||
|
||||
# A list of subtables referred to by mainTable. Can only be set if mainTable is
|
||||
# set.
|
||||
# Corresponds to the JSON property `subtables`
|
||||
# @return [Array<Google::Apis::ContentV2::Table>]
|
||||
attr_accessor :subtables
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels)
|
||||
@carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
|
||||
@main_table = args[:main_table] if args.key?(:main_table)
|
||||
@single_value = args[:single_value] if args.key?(:single_value)
|
||||
@subtables = args[:subtables] if args.key?(:subtables)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Row
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of cells that constitute the row. Must have the same length as
|
||||
# columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
|
||||
# tables. Required.
|
||||
# Corresponds to the JSON property `cells`
|
||||
# @return [Array<Google::Apis::ContentV2::Value>]
|
||||
attr_accessor :cells
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cells = args[:cells] if args.key?(:cells)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Service
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A boolean exposing the active status of the shipping service. Required.
|
||||
# Corresponds to the JSON property `active`
|
||||
# @return [Boolean]
|
||||
attr_accessor :active
|
||||
alias_method :active?, :active
|
||||
|
||||
# The CLDR code of the currency to which this service applies. Must match that
|
||||
# of the prices in rate groups.
|
||||
# Corresponds to the JSON property `currency`
|
||||
# @return [String]
|
||||
attr_accessor :currency
|
||||
|
||||
# The CLDR territory code of the country to which the service applies. Required.
|
||||
# Corresponds to the JSON property `deliveryCountry`
|
||||
# @return [String]
|
||||
attr_accessor :delivery_country
|
||||
|
||||
# Time spent in various aspects from order to the delivery of the product.
|
||||
# Required.
|
||||
# Corresponds to the JSON property `deliveryTime`
|
||||
# @return [Google::Apis::ContentV2::DeliveryTime]
|
||||
attr_accessor :delivery_time
|
||||
|
||||
# Free-form name of the service. Must be unique within target account. Required.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Shipping rate group definitions. Only the last one is allowed to have an empty
|
||||
# applicableShippingLabels, which means "everything else". The other
|
||||
# applicableShippingLabels must not overlap.
|
||||
# Corresponds to the JSON property `rateGroups`
|
||||
# @return [Array<Google::Apis::ContentV2::RateGroup>]
|
||||
attr_accessor :rate_groups
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@active = args[:active] if args.key?(:active)
|
||||
@currency = args[:currency] if args.key?(:currency)
|
||||
@delivery_country = args[:delivery_country] if args.key?(:delivery_country)
|
||||
@delivery_time = args[:delivery_time] if args.key?(:delivery_time)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@rate_groups = args[:rate_groups] if args.key?(:rate_groups)
|
||||
end
|
||||
end
|
||||
|
||||
# The merchant account's shipping settings.
|
||||
class ShippingSettings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the account to which these account shipping settings belong. Ignored
|
||||
# upon update, always present in get request responses.
|
||||
# Corresponds to the JSON property `accountId`
|
||||
# @return [String]
|
||||
attr_accessor :account_id
|
||||
|
||||
# A list of postal code groups that can be referred to in services. Optional.
|
||||
# Corresponds to the JSON property `postalCodeGroups`
|
||||
# @return [Array<Google::Apis::ContentV2::PostalCodeGroup>]
|
||||
attr_accessor :postal_code_groups
|
||||
|
||||
# The target account's list of services. Optional.
|
||||
# Corresponds to the JSON property `services`
|
||||
# @return [Array<Google::Apis::ContentV2::Service>]
|
||||
attr_accessor :services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
|
||||
@services = args[:services] if args.key?(:services)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsCustomBatchRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The request entries to be processed in the batch.
|
||||
# Corresponds to the JSON property `entries`
|
||||
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry>]
|
||||
attr_accessor :entries
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@entries = args[:entries] if args.key?(:entries)
|
||||
end
|
||||
end
|
||||
|
||||
# A batch entry encoding a single non-batch accountshipping request.
|
||||
class ShippingsettingsCustomBatchRequestEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the account for which to get/update account shipping settings.
|
||||
# Corresponds to the JSON property `accountId`
|
||||
# @return [String]
|
||||
attr_accessor :account_id
|
||||
|
||||
# An entry ID, unique within the batch request.
|
||||
# Corresponds to the JSON property `batchId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :batch_id
|
||||
|
||||
# The ID of the managing account.
|
||||
# Corresponds to the JSON property `merchantId`
|
||||
# @return [String]
|
||||
attr_accessor :merchant_id
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `method`
|
||||
# @return [String]
|
||||
attr_accessor :method_prop
|
||||
|
||||
# The merchant account's shipping settings.
|
||||
# Corresponds to the JSON property `shippingSettings`
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
attr_accessor :shipping_settings
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
||||
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
||||
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsCustomBatchResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The result of the execution of the batch requests.
|
||||
# Corresponds to the JSON property `entries`
|
||||
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry>]
|
||||
attr_accessor :entries
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsCustomBatchResponse".
|
||||
# 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)
|
||||
@entries = args[:entries] if args.key?(:entries)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
# A batch entry encoding a single non-batch shipping settings response.
|
||||
class ShippingsettingsCustomBatchResponseEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the request entry to which this entry responds.
|
||||
# Corresponds to the JSON property `batchId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :batch_id
|
||||
|
||||
# A list of errors returned by a failed batch entry.
|
||||
# Corresponds to the JSON property `errors`
|
||||
# @return [Google::Apis::ContentV2::Errors]
|
||||
attr_accessor :errors
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsCustomBatchResponseEntry".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The merchant account's shipping settings.
|
||||
# Corresponds to the JSON property `shippingSettings`
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
attr_accessor :shipping_settings
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@errors = args[:errors] if args.key?(:errors)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsGetSupportedCarriersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of supported carriers. May be empty.
|
||||
# Corresponds to the JSON property `carriers`
|
||||
# @return [Array<Google::Apis::ContentV2::CarriersCarrier>]
|
||||
attr_accessor :carriers
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsGetSupportedCarriersResponse".
|
||||
# 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)
|
||||
@carriers = args[:carriers] if args.key?(:carriers)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ShippingsettingsListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# shippingsettingsListResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The token for the retrieval of the next page of shipping settings.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<Google::Apis::ContentV2::ShippingSettings>]
|
||||
attr_accessor :resources
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Table
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
||||
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
||||
# Corresponds to the JSON property `columnHeaders`
|
||||
# @return [Google::Apis::ContentV2::Headers]
|
||||
attr_accessor :column_headers
|
||||
|
||||
# Name of the table. Required for subtables, ignored for the main table.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
||||
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
||||
# Corresponds to the JSON property `rowHeaders`
|
||||
# @return [Google::Apis::ContentV2::Headers]
|
||||
attr_accessor :row_headers
|
||||
|
||||
# The list of rows that constitute the table. Must have the same length as
|
||||
# rowHeaders. Required.
|
||||
# Corresponds to the JSON property `rows`
|
||||
# @return [Array<Google::Apis::ContentV2::Row>]
|
||||
attr_accessor :rows
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@column_headers = args[:column_headers] if args.key?(:column_headers)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@row_headers = args[:row_headers] if args.key?(:row_headers)
|
||||
@rows = args[:rows] if args.key?(:rows)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TestOrder
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6117,6 +6755,56 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The single value of a rate group or the value of a rate group table's cell.
|
||||
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
||||
# subtableName must be set.
|
||||
class Value
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of a carrier rate referring to a carrier rate defined in the same
|
||||
# rate group. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `carrierRateName`
|
||||
# @return [String]
|
||||
attr_accessor :carrier_rate_name
|
||||
|
||||
# A flat rate. Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `flatRate`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :flat_rate
|
||||
|
||||
# If true, then the product can't ship. Must be true when set, can only be set
|
||||
# if all other fields are not set.
|
||||
# Corresponds to the JSON property `noShipping`
|
||||
# @return [Boolean]
|
||||
attr_accessor :no_shipping
|
||||
alias_method :no_shipping?, :no_shipping
|
||||
|
||||
# A percentage of the price represented as a number in decimal notation (e.g., "
|
||||
# 5.4"). Can only be set if all other fields are not set.
|
||||
# Corresponds to the JSON property `pricePercentage`
|
||||
# @return [String]
|
||||
attr_accessor :price_percentage
|
||||
|
||||
# The name of a subtable. Can only be set in table cells (i.e., not for single
|
||||
# values), and only if all other fields are not set.
|
||||
# Corresponds to the JSON property `subtableName`
|
||||
# @return [String]
|
||||
attr_accessor :subtable_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name)
|
||||
@flat_rate = args[:flat_rate] if args.key?(:flat_rate)
|
||||
@no_shipping = args[:no_shipping] if args.key?(:no_shipping)
|
||||
@price_percentage = args[:price_percentage] if args.key?(:price_percentage)
|
||||
@subtable_name = args[:subtable_name] if args.key?(:subtable_name)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Weight
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -262,6 +262,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CarrierRate
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CarriersCarrier
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Datafeed
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -358,6 +370,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeliveryTime
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -370,6 +388,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Headers
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Installment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -418,6 +442,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LocationIdSet
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LoyaltyPoints
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -724,6 +754,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PostalCodeGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PostalCodeRange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Price
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -874,6 +916,72 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RateGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Row
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Service
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingSettings
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequestEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponseEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsGetSupportedCarriersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShippingsettingsListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Table
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestOrder
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -904,6 +1012,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Value
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Weight
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1343,6 +1457,28 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CarrierRate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :carrier_name, as: 'carrierName'
|
||||
property :carrier_service, as: 'carrierService'
|
||||
property :flat_adjustment, as: 'flatAdjustment', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :origin_postal_code, as: 'originPostalCode'
|
||||
property :percentage_adjustment, as: 'percentageAdjustment'
|
||||
end
|
||||
end
|
||||
|
||||
class CarriersCarrier
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :country, as: 'country'
|
||||
property :name, as: 'name'
|
||||
collection :services, as: 'services'
|
||||
end
|
||||
end
|
||||
|
||||
class Datafeed
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1519,6 +1655,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class DeliveryTime
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_transit_time_in_days, as: 'maxTransitTimeInDays'
|
||||
property :min_transit_time_in_days, as: 'minTransitTimeInDays'
|
||||
end
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1538,6 +1682,20 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Headers
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::ContentV2::LocationIdSet, decorator: Google::Apis::ContentV2::LocationIdSet::Representation
|
||||
|
||||
collection :number_of_items, as: 'numberOfItems'
|
||||
collection :postal_code_group_names, as: 'postalCodeGroupNames'
|
||||
collection :prices, as: 'prices', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
collection :weights, as: 'weights', class: Google::Apis::ContentV2::Weight, decorator: Google::Apis::ContentV2::Weight::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Installment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -1630,6 +1788,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LocationIdSet
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :location_ids, as: 'locationIds'
|
||||
end
|
||||
end
|
||||
|
||||
class LoyaltyPoints
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2202,6 +2367,24 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class PostalCodeGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :country, as: 'country'
|
||||
property :name, as: 'name'
|
||||
collection :postal_code_ranges, as: 'postalCodeRanges', class: Google::Apis::ContentV2::PostalCodeRange, decorator: Google::Apis::ContentV2::PostalCodeRange::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PostalCodeRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :postal_code_range_begin, as: 'postalCodeRangeBegin'
|
||||
property :postal_code_range_end, as: 'postalCodeRangeEnd'
|
||||
end
|
||||
end
|
||||
|
||||
class Price
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2539,6 +2722,127 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RateGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :applicable_shipping_labels, as: 'applicableShippingLabels'
|
||||
collection :carrier_rates, as: 'carrierRates', class: Google::Apis::ContentV2::CarrierRate, decorator: Google::Apis::ContentV2::CarrierRate::Representation
|
||||
|
||||
property :main_table, as: 'mainTable', class: Google::Apis::ContentV2::Table, decorator: Google::Apis::ContentV2::Table::Representation
|
||||
|
||||
property :single_value, as: 'singleValue', class: Google::Apis::ContentV2::Value, decorator: Google::Apis::ContentV2::Value::Representation
|
||||
|
||||
collection :subtables, as: 'subtables', class: Google::Apis::ContentV2::Table, decorator: Google::Apis::ContentV2::Table::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Row
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :cells, as: 'cells', class: Google::Apis::ContentV2::Value, decorator: Google::Apis::ContentV2::Value::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Service
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :active, as: 'active'
|
||||
property :currency, as: 'currency'
|
||||
property :delivery_country, as: 'deliveryCountry'
|
||||
property :delivery_time, as: 'deliveryTime', class: Google::Apis::ContentV2::DeliveryTime, decorator: Google::Apis::ContentV2::DeliveryTime::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
collection :rate_groups, as: 'rateGroups', class: Google::Apis::ContentV2::RateGroup, decorator: Google::Apis::ContentV2::RateGroup::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingSettings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
collection :postal_code_groups, as: 'postalCodeGroups', class: Google::Apis::ContentV2::PostalCodeGroup, decorator: Google::Apis::ContentV2::PostalCodeGroup::Representation
|
||||
|
||||
collection :services, as: 'services', class: Google::Apis::ContentV2::Service, decorator: Google::Apis::ContentV2::Service::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchRequestEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :batch_id, as: 'batchId'
|
||||
property :merchant_id, as: 'merchantId'
|
||||
property :method_prop, as: 'method'
|
||||
property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entries, as: 'entries', class: Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsCustomBatchResponseEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :batch_id, as: 'batchId'
|
||||
property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :shipping_settings, as: 'shippingSettings', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsGetSupportedCarriersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :carriers, as: 'carriers', class: Google::Apis::ContentV2::CarriersCarrier, decorator: Google::Apis::ContentV2::CarriersCarrier::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class ShippingsettingsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :resources, as: 'resources', class: Google::Apis::ContentV2::ShippingSettings, decorator: Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Table
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :column_headers, as: 'columnHeaders', class: Google::Apis::ContentV2::Headers, decorator: Google::Apis::ContentV2::Headers::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :row_headers, as: 'rowHeaders', class: Google::Apis::ContentV2::Headers, decorator: Google::Apis::ContentV2::Headers::Representation
|
||||
|
||||
collection :rows, as: 'rows', class: Google::Apis::ContentV2::Row, decorator: Google::Apis::ContentV2::Row::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TestOrder
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2616,6 +2920,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Value
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :carrier_rate_name, as: 'carrierRateName'
|
||||
property :flat_rate, as: 'flatRate', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :no_shipping, as: 'noShipping'
|
||||
property :price_percentage, as: 'pricePercentage'
|
||||
property :subtable_name, as: 'subtableName'
|
||||
end
|
||||
end
|
||||
|
||||
class Weight
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -2324,6 +2324,250 @@ module Google
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves and updates the shipping settings of multiple accounts in a single
|
||||
# request.
|
||||
# @param [Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @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::ShippingsettingsCustomBatchResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse]
|
||||
#
|
||||
# @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 custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'shippingsettings/batch', options)
|
||||
command.request_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchRequest::Representation
|
||||
command.request_object = shippingsettings_custom_batch_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse
|
||||
command.query['dryRun'] = dry_run unless dry_run.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
|
||||
|
||||
# Retrieves the shipping settings of the account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account for which to get/update shipping settings.
|
||||
# @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::ShippingSettings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
#
|
||||
# @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 get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_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
|
||||
|
||||
# Retrieves supported carriers and carrier services for an account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the account for which to retrieve the supported carriers.
|
||||
# @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::ShippingsettingsGetSupportedCarriersResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse]
|
||||
#
|
||||
# @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 getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_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 shipping settings of the sub-accounts in your Merchant Center
|
||||
# account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of shipping settings to return in the response, used for
|
||||
# paging.
|
||||
# @param [String] page_token
|
||||
# The token returned by the previous request.
|
||||
# @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::ShippingsettingsListResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingsettingsListResponse]
|
||||
#
|
||||
# @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 list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingsettingsListResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingsettingsListResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.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
|
||||
|
||||
# Updates the shipping settings of the account. This method supports patch
|
||||
# semantics.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account for which to get/update shipping settings.
|
||||
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @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::ShippingSettings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
#
|
||||
# @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 patch_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{merchantId}/shippingsettings/{accountId}', options)
|
||||
command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.request_object = shipping_settings_object
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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
|
||||
|
||||
# Updates the shipping settings of the account.
|
||||
# @param [String] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] account_id
|
||||
# The ID of the account for which to get/update shipping settings.
|
||||
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
||||
# @param [Boolean] dry_run
|
||||
# Flag to run the request in dry-run mode.
|
||||
# @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::ShippingSettings] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::ShippingSettings]
|
||||
#
|
||||
# @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 update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
|
||||
command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.request_object = shipping_settings_object
|
||||
command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation
|
||||
command.response_class = Google::Apis::ContentV2::ShippingSettings
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.query['dryRun'] = dry_run unless dry_run.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
|
||||
|
||||
protected
|
||||
|
||||
|
||||
Reference in new issue
Block a user