Autogenerated update (2018-03-03)
Update: - bigquery_v2 - content_v2 - dataflow_v1b3 - dataproc_v1 - dataproc_v1beta2 - deploymentmanager_alpha - deploymentmanager_v2 - deploymentmanager_v2beta
This commit is contained in:
1 parent
42c5513d45
commit
4efe498900
25 files changed
+1718
-399
No files matched your search
@@ -63,7 +63,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# URL for individual seller reviews, i.e., reviews for each child account.
|
||||
# [DEPRECATED] This field is never returned and will be ignored if provided.
|
||||
# Corresponds to the JSON property `reviewsUrl`
|
||||
# @return [String]
|
||||
attr_accessor :reviews_url
|
||||
@@ -150,7 +150,9 @@ module Google
|
||||
class AccountGoogleMyBusinessLink
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The GMB email address.
|
||||
# The GMB email address of which a specific account within a GMB account. A
|
||||
# sample account within a GMB account could be a business account with set of
|
||||
# locations, managed under the GMB account.
|
||||
# Corresponds to the JSON property `gmbEmail`
|
||||
# @return [String]
|
||||
attr_accessor :gmb_email
|
||||
@@ -5389,6 +5391,632 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosCustomBatchRequest
|
||||
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::PosCustomBatchRequestEntry>]
|
||||
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
|
||||
|
||||
#
|
||||
class PosCustomBatchRequestEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An entry ID, unique within the batch request.
|
||||
# Corresponds to the JSON property `batchId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :batch_id
|
||||
|
||||
# The absolute quantity of an item available at the given store.
|
||||
# Corresponds to the JSON property `inventory`
|
||||
# @return [Google::Apis::ContentV2::PosInventory]
|
||||
attr_accessor :inventory
|
||||
|
||||
# The ID of the POS provider.
|
||||
# Corresponds to the JSON property `merchantId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :merchant_id
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `method`
|
||||
# @return [String]
|
||||
attr_accessor :method_prop
|
||||
|
||||
# The change of the available quantity of an item at the given store.
|
||||
# Corresponds to the JSON property `sale`
|
||||
# @return [Google::Apis::ContentV2::PosSale]
|
||||
attr_accessor :sale
|
||||
|
||||
# Store resource.
|
||||
# Corresponds to the JSON property `store`
|
||||
# @return [Google::Apis::ContentV2::PosStore]
|
||||
attr_accessor :store
|
||||
|
||||
# The store code. Required only to get/submit store information.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The ID of the account for which to get/submit data.
|
||||
# Corresponds to the JSON property `targetMerchantId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :target_merchant_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
||||
@inventory = args[:inventory] if args.key?(:inventory)
|
||||
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
||||
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
||||
@sale = args[:sale] if args.key?(:sale)
|
||||
@store = args[:store] if args.key?(:store)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_merchant_id = args[:target_merchant_id] if args.key?(:target_merchant_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosCustomBatchResponse
|
||||
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::PosCustomBatchResponseEntry>]
|
||||
attr_accessor :entries
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posCustomBatchResponse".
|
||||
# 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
|
||||
|
||||
#
|
||||
class PosCustomBatchResponseEntry
|
||||
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
|
||||
|
||||
# The absolute quantity of an item available at the given store.
|
||||
# Corresponds to the JSON property `inventory`
|
||||
# @return [Google::Apis::ContentV2::PosInventory]
|
||||
attr_accessor :inventory
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posCustomBatchResponseEntry".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The change of the available quantity of an item at the given store.
|
||||
# Corresponds to the JSON property `sale`
|
||||
# @return [Google::Apis::ContentV2::PosSale]
|
||||
attr_accessor :sale
|
||||
|
||||
# Store resource.
|
||||
# Corresponds to the JSON property `store`
|
||||
# @return [Google::Apis::ContentV2::PosStore]
|
||||
attr_accessor :store
|
||||
|
||||
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)
|
||||
@inventory = args[:inventory] if args.key?(:inventory)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@sale = args[:sale] if args.key?(:sale)
|
||||
@store = args[:store] if args.key?(:store)
|
||||
end
|
||||
end
|
||||
|
||||
# The absolute quantity of an item available at the given store.
|
||||
class PosInventory
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The two-letter ISO 639-1 language code for the item.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# Global Trade Item Number.
|
||||
# Corresponds to the JSON property `gtin`
|
||||
# @return [String]
|
||||
attr_accessor :gtin
|
||||
|
||||
# A unique identifier for the item.
|
||||
# Corresponds to the JSON property `itemId`
|
||||
# @return [String]
|
||||
attr_accessor :item_id
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posInventory".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The current price of the item.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# The available quantity of the item.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The identifier of the merchant's store.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The CLDR territory code for the item.
|
||||
# Corresponds to the JSON property `targetCountry`
|
||||
# @return [String]
|
||||
attr_accessor :target_country
|
||||
|
||||
# The inventory timestamp, in ISO 8601 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@gtin = args[:gtin] if args.key?(:gtin)
|
||||
@item_id = args[:item_id] if args.key?(:item_id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_country = args[:target_country] if args.key?(:target_country)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosInventoryRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The two-letter ISO 639-1 language code for the item.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# Global Trade Item Number.
|
||||
# Corresponds to the JSON property `gtin`
|
||||
# @return [String]
|
||||
attr_accessor :gtin
|
||||
|
||||
# A unique identifier for the item.
|
||||
# Corresponds to the JSON property `itemId`
|
||||
# @return [String]
|
||||
attr_accessor :item_id
|
||||
|
||||
# The current price of the item.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# The available quantity of the item.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The identifier of the merchant's store.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The CLDR territory code for the item.
|
||||
# Corresponds to the JSON property `targetCountry`
|
||||
# @return [String]
|
||||
attr_accessor :target_country
|
||||
|
||||
# The inventory timestamp, in ISO 8601 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@gtin = args[:gtin] if args.key?(:gtin)
|
||||
@item_id = args[:item_id] if args.key?(:item_id)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_country = args[:target_country] if args.key?(:target_country)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosInventoryResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The two-letter ISO 639-1 language code for the item.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# Global Trade Item Number.
|
||||
# Corresponds to the JSON property `gtin`
|
||||
# @return [String]
|
||||
attr_accessor :gtin
|
||||
|
||||
# A unique identifier for the item.
|
||||
# Corresponds to the JSON property `itemId`
|
||||
# @return [String]
|
||||
attr_accessor :item_id
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posInventoryResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The current price of the item.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# The available quantity of the item.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The identifier of the merchant's store.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The CLDR territory code for the item.
|
||||
# Corresponds to the JSON property `targetCountry`
|
||||
# @return [String]
|
||||
attr_accessor :target_country
|
||||
|
||||
# The inventory timestamp, in ISO 8601 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@gtin = args[:gtin] if args.key?(:gtin)
|
||||
@item_id = args[:item_id] if args.key?(:item_id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_country = args[:target_country] if args.key?(:target_country)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posListResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<Google::Apis::ContentV2::PosStore>]
|
||||
attr_accessor :resources
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
end
|
||||
end
|
||||
|
||||
# The change of the available quantity of an item at the given store.
|
||||
class PosSale
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The two-letter ISO 639-1 language code for the item.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# Global Trade Item Number.
|
||||
# Corresponds to the JSON property `gtin`
|
||||
# @return [String]
|
||||
attr_accessor :gtin
|
||||
|
||||
# A unique identifier for the item.
|
||||
# Corresponds to the JSON property `itemId`
|
||||
# @return [String]
|
||||
attr_accessor :item_id
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posSale".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The price of the item.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# The relative change of the available quantity. Negative for items sold.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# A unique ID to group items from the same sale event.
|
||||
# Corresponds to the JSON property `saleId`
|
||||
# @return [String]
|
||||
attr_accessor :sale_id
|
||||
|
||||
# The identifier of the merchant's store.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The CLDR territory code for the item.
|
||||
# Corresponds to the JSON property `targetCountry`
|
||||
# @return [String]
|
||||
attr_accessor :target_country
|
||||
|
||||
# The inventory timestamp, in ISO 8601 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@gtin = args[:gtin] if args.key?(:gtin)
|
||||
@item_id = args[:item_id] if args.key?(:item_id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@sale_id = args[:sale_id] if args.key?(:sale_id)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_country = args[:target_country] if args.key?(:target_country)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosSaleRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The two-letter ISO 639-1 language code for the item.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# Global Trade Item Number.
|
||||
# Corresponds to the JSON property `gtin`
|
||||
# @return [String]
|
||||
attr_accessor :gtin
|
||||
|
||||
# A unique identifier for the item.
|
||||
# Corresponds to the JSON property `itemId`
|
||||
# @return [String]
|
||||
attr_accessor :item_id
|
||||
|
||||
# The price of the item.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# The relative change of the available quantity. Negative for items sold.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# A unique ID to group items from the same sale event.
|
||||
# Corresponds to the JSON property `saleId`
|
||||
# @return [String]
|
||||
attr_accessor :sale_id
|
||||
|
||||
# The identifier of the merchant's store.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The CLDR territory code for the item.
|
||||
# Corresponds to the JSON property `targetCountry`
|
||||
# @return [String]
|
||||
attr_accessor :target_country
|
||||
|
||||
# The inventory timestamp, in ISO 8601 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@gtin = args[:gtin] if args.key?(:gtin)
|
||||
@item_id = args[:item_id] if args.key?(:item_id)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@sale_id = args[:sale_id] if args.key?(:sale_id)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_country = args[:target_country] if args.key?(:target_country)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PosSaleResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The two-letter ISO 639-1 language code for the item.
|
||||
# Corresponds to the JSON property `contentLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :content_language
|
||||
|
||||
# Global Trade Item Number.
|
||||
# Corresponds to the JSON property `gtin`
|
||||
# @return [String]
|
||||
attr_accessor :gtin
|
||||
|
||||
# A unique identifier for the item.
|
||||
# Corresponds to the JSON property `itemId`
|
||||
# @return [String]
|
||||
attr_accessor :item_id
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posSaleResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The price of the item.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# The relative change of the available quantity. Negative for items sold.
|
||||
# Corresponds to the JSON property `quantity`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# A unique ID to group items from the same sale event.
|
||||
# Corresponds to the JSON property `saleId`
|
||||
# @return [String]
|
||||
attr_accessor :sale_id
|
||||
|
||||
# The identifier of the merchant's store.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
# The CLDR territory code for the item.
|
||||
# Corresponds to the JSON property `targetCountry`
|
||||
# @return [String]
|
||||
attr_accessor :target_country
|
||||
|
||||
# The inventory timestamp, in ISO 8601 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_language = args[:content_language] if args.key?(:content_language)
|
||||
@gtin = args[:gtin] if args.key?(:gtin)
|
||||
@item_id = args[:item_id] if args.key?(:item_id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
@quantity = args[:quantity] if args.key?(:quantity)
|
||||
@sale_id = args[:sale_id] if args.key?(:sale_id)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
@target_country = args[:target_country] if args.key?(:target_country)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
# Store resource.
|
||||
class PosStore
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "content#
|
||||
# posStore".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The street address of the store.
|
||||
# Corresponds to the JSON property `storeAddress`
|
||||
# @return [String]
|
||||
attr_accessor :store_address
|
||||
|
||||
# A store identifier that is unique for the given merchant.
|
||||
# Corresponds to the JSON property `storeCode`
|
||||
# @return [String]
|
||||
attr_accessor :store_code
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@store_address = args[:store_address] if args.key?(:store_address)
|
||||
@store_code = args[:store_code] if args.key?(:store_code)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PostalCodeGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -814,6 +814,78 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosCustomBatchRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosCustomBatchRequestEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosCustomBatchResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosCustomBatchResponseEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosInventory
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosInventoryRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosInventoryResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosSale
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosSaleRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosSaleResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PosStore
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PostalCodeGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -2584,6 +2656,171 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class PosCustomBatchRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entries, as: 'entries', class: Google::Apis::ContentV2::PosCustomBatchRequestEntry, decorator: Google::Apis::ContentV2::PosCustomBatchRequestEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PosCustomBatchRequestEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :batch_id, as: 'batchId'
|
||||
property :inventory, as: 'inventory', class: Google::Apis::ContentV2::PosInventory, decorator: Google::Apis::ContentV2::PosInventory::Representation
|
||||
|
||||
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
||||
property :method_prop, as: 'method'
|
||||
property :sale, as: 'sale', class: Google::Apis::ContentV2::PosSale, decorator: Google::Apis::ContentV2::PosSale::Representation
|
||||
|
||||
property :store, as: 'store', class: Google::Apis::ContentV2::PosStore, decorator: Google::Apis::ContentV2::PosStore::Representation
|
||||
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_merchant_id, :numeric_string => true, as: 'targetMerchantId'
|
||||
end
|
||||
end
|
||||
|
||||
class PosCustomBatchResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entries, as: 'entries', class: Google::Apis::ContentV2::PosCustomBatchResponseEntry, decorator: Google::Apis::ContentV2::PosCustomBatchResponseEntry::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class PosCustomBatchResponseEntry
|
||||
# @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 :inventory, as: 'inventory', class: Google::Apis::ContentV2::PosInventory, decorator: Google::Apis::ContentV2::PosInventory::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :sale, as: 'sale', class: Google::Apis::ContentV2::PosSale, decorator: Google::Apis::ContentV2::PosSale::Representation
|
||||
|
||||
property :store, as: 'store', class: Google::Apis::ContentV2::PosStore, decorator: Google::Apis::ContentV2::PosStore::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PosInventory
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :gtin, as: 'gtin'
|
||||
property :item_id, as: 'itemId'
|
||||
property :kind, as: 'kind'
|
||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :quantity, :numeric_string => true, as: 'quantity'
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_country, as: 'targetCountry'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class PosInventoryRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :gtin, as: 'gtin'
|
||||
property :item_id, as: 'itemId'
|
||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :quantity, :numeric_string => true, as: 'quantity'
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_country, as: 'targetCountry'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class PosInventoryResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :gtin, as: 'gtin'
|
||||
property :item_id, as: 'itemId'
|
||||
property :kind, as: 'kind'
|
||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :quantity, :numeric_string => true, as: 'quantity'
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_country, as: 'targetCountry'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class PosListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :resources, as: 'resources', class: Google::Apis::ContentV2::PosStore, decorator: Google::Apis::ContentV2::PosStore::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PosSale
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :gtin, as: 'gtin'
|
||||
property :item_id, as: 'itemId'
|
||||
property :kind, as: 'kind'
|
||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :quantity, :numeric_string => true, as: 'quantity'
|
||||
property :sale_id, as: 'saleId'
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_country, as: 'targetCountry'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class PosSaleRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :gtin, as: 'gtin'
|
||||
property :item_id, as: 'itemId'
|
||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :quantity, :numeric_string => true, as: 'quantity'
|
||||
property :sale_id, as: 'saleId'
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_country, as: 'targetCountry'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class PosSaleResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_language, as: 'contentLanguage'
|
||||
property :gtin, as: 'gtin'
|
||||
property :item_id, as: 'itemId'
|
||||
property :kind, as: 'kind'
|
||||
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
||||
|
||||
property :quantity, :numeric_string => true, as: 'quantity'
|
||||
property :sale_id, as: 'saleId'
|
||||
property :store_code, as: 'storeCode'
|
||||
property :target_country, as: 'targetCountry'
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class PosStore
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :store_address, as: 'storeAddress'
|
||||
property :store_code, as: 'storeCode'
|
||||
end
|
||||
end
|
||||
|
||||
class PostalCodeGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -2116,6 +2116,297 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Batches multiple POS-related calls in a single request.
|
||||
# @param [Google::Apis::ContentV2::PosCustomBatchRequest] pos_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::PosCustomBatchResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::PosCustomBatchResponse]
|
||||
#
|
||||
# @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_po(pos_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'pos/batch', options)
|
||||
command.request_representation = Google::Apis::ContentV2::PosCustomBatchRequest::Representation
|
||||
command.request_object = pos_custom_batch_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::PosCustomBatchResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::PosCustomBatchResponse
|
||||
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
|
||||
|
||||
# Deletes a store for the given merchant.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the POS provider.
|
||||
# @param [Fixnum] target_merchant_id
|
||||
# The ID of the target merchant.
|
||||
# @param [String] store_code
|
||||
# A store code that is unique per merchant.
|
||||
# @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 [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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 delete_po(merchant_id, target_merchant_id, store_code, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
|
||||
command.params['storeCode'] = store_code unless store_code.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
|
||||
|
||||
# Retrieves information about the given store.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the POS provider.
|
||||
# @param [Fixnum] target_merchant_id
|
||||
# The ID of the target merchant.
|
||||
# @param [String] store_code
|
||||
# A store code that is unique per merchant.
|
||||
# @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::PosStore] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::PosStore]
|
||||
#
|
||||
# @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_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
|
||||
command.response_representation = Google::Apis::ContentV2::PosStore::Representation
|
||||
command.response_class = Google::Apis::ContentV2::PosStore
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
|
||||
command.params['storeCode'] = store_code unless store_code.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
|
||||
|
||||
# Creates a store for the given merchant.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the POS provider.
|
||||
# @param [Fixnum] target_merchant_id
|
||||
# The ID of the target merchant.
|
||||
# @param [Google::Apis::ContentV2::PosStore] pos_store_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::PosStore] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::PosStore]
|
||||
#
|
||||
# @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 insert_po(merchant_id, target_merchant_id, pos_store_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
|
||||
command.request_representation = Google::Apis::ContentV2::PosStore::Representation
|
||||
command.request_object = pos_store_object
|
||||
command.response_representation = Google::Apis::ContentV2::PosStore::Representation
|
||||
command.response_class = Google::Apis::ContentV2::PosStore
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_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
|
||||
|
||||
# Submit inventory for the given merchant.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the POS provider.
|
||||
# @param [Fixnum] target_merchant_id
|
||||
# The ID of the target merchant.
|
||||
# @param [Google::Apis::ContentV2::PosInventoryRequest] pos_inventory_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::PosInventoryResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::PosInventoryResponse]
|
||||
#
|
||||
# @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 inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
|
||||
command.request_representation = Google::Apis::ContentV2::PosInventoryRequest::Representation
|
||||
command.request_object = pos_inventory_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::PosInventoryResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::PosInventoryResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_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
|
||||
|
||||
# Lists the stores of the target merchant.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the POS provider.
|
||||
# @param [Fixnum] target_merchant_id
|
||||
# The ID of the target merchant.
|
||||
# @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::PosListResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::PosListResponse]
|
||||
#
|
||||
# @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_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
|
||||
command.response_representation = Google::Apis::ContentV2::PosListResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::PosListResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['targetMerchantId'] = target_merchant_id unless target_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
|
||||
|
||||
# Submit a sale event for the given merchant.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the POS provider.
|
||||
# @param [Fixnum] target_merchant_id
|
||||
# The ID of the target merchant.
|
||||
# @param [Google::Apis::ContentV2::PosSaleRequest] pos_sale_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::PosSaleResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContentV2::PosSaleResponse]
|
||||
#
|
||||
# @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 sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
|
||||
command.request_representation = Google::Apis::ContentV2::PosSaleRequest::Representation
|
||||
command.request_object = pos_sale_request_object
|
||||
command.response_representation = Google::Apis::ContentV2::PosSaleResponse::Representation
|
||||
command.response_class = Google::Apis::ContentV2::PosSaleResponse
|
||||
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
||||
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_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
|
||||
|
||||
# Retrieves, inserts, and deletes multiple products in a single request.
|
||||
# @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
|
||||
# @param [Boolean] dry_run
|
||||
|
||||
Reference in new issue
Block a user