Class: Google::Apis::ContentV2::ShoppingContentService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::ContentV2::ShoppingContentService
- Defined in:
- lib/google/apis/content_v2/service.rb
Overview
Content API for Shopping
Manage your product listings and accounts for Google Shopping
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersAcknowledgeResponse
Marks an order as acknowledged.
-
#advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse
Sandbox only.
-
#batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchAccountsResponse
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) accounts in a single request.
-
#batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchAccountStatusesResponse
Retrieves multiple Merchant Center account statuses in a single request.
-
#batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchAccountTaxResponse
Retrieves and updates tax settings of multiple accounts in a single request.
-
#batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchDatafeedsResponse
Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
-
#batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchDatafeedStatusesResponse
Gets multiple Merchant Center datafeed statuses in a single request.
-
#batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchProductsResponse
Retrieves, inserts, and deletes multiple products in a single request.
-
#batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchProductStatusesResponse
Gets the statuses of multiple products in a single request.
-
#cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCancelResponse
Cancels all line items in an order, making a full refund.
-
#cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCancelLineItemResponse
Cancels a line item, making a full refund.
-
#canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerResponse
Sandbox only.
-
#claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountsClaimWebsiteResponse
Claims the website of a Merchant Center sub-account.
-
#create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCreateTestOrderResponse
Sandbox only.
-
#createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
-
#createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse
Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders.
-
#createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCreateTestReturnResponse
Sandbox only.
-
#custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCustomBatchResponse
Retrieves or modifies multiple orders in a single request.
-
#custombatch_liasetting(liasettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsCustomBatchResponse
Retrieves and/or updates the LIA settings of multiple accounts in a single request.
-
#custombatch_po(pos_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosCustomBatchResponse
Batches multiple POS-related calls in a single request.
-
#custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse
Retrieves and updates the shipping settings of multiple accounts in a single request.
-
#delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a Merchant Center sub-account.
-
#delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a datafeed configuration from your Merchant Center account.
-
#delete_po(merchant_id, target_merchant_id, store_code, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a store for the given merchant.
-
#delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a product from your Merchant Center account.
-
#fetchnow_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::DatafeedsFetchNowResponse
Invokes a fetch for the datafeed in your Merchant Center account.
-
#get_account(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Account
Retrieves a Merchant Center account.
-
#get_account_authinfo(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountsAuthInfoResponse
Returns information about the authenticated user.
-
#get_account_status(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountStatus
Retrieves the status of a Merchant Center account.
-
#get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountTax
Retrieves the tax settings of the account.
-
#get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Datafeed
Retrieves a datafeed configuration from your Merchant Center account.
-
#get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::DatafeedStatus
Retrieves the status of a datafeed from your Merchant Center account.
-
#get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiaSettings
Retrieves the LIA settings of the account.
-
#get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Order
Retrieves an order from your Merchant Center account.
-
#get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse
Retrieves an order using merchant order ID.
-
#get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::MerchantOrderReturn
Retrieves an order return from your Merchant Center account.
-
#get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosStore
Retrieves information about the given store.
-
#get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Product
Retrieves a product from your Merchant Center account.
-
#get_product_status(merchant_id, product_id, destinations: nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ProductStatus
Gets the status of a product from your Merchant Center account.
-
#get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingSettings
Retrieves the shipping settings of the account.
-
#get_test_order_template(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse
Sandbox only.
-
#getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsGetAccessibleGmbAccountsResponse
Retrieves the list of accessible Google My Business accounts.
-
#getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse
Retrieves supported carriers and carrier services for an account.
-
#getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse
Retrieves supported holidays for an account.
-
#getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsGetSupportedPickupServicesResponse
Retrieves supported pickup services for an account.
-
#initialize ⇒ ShoppingContentService
constructor
A new instance of ShoppingContentService.
-
#insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Account
Creates a Merchant Center sub-account.
-
#insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Datafeed
Registers a datafeed configuration with your Merchant Center account.
-
#insert_po(merchant_id, target_merchant_id, pos_store_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosStore
Creates a store for the given merchant.
-
#insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Product
Uploads a product to your Merchant Center account.
-
#instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse
Deprecated.
-
#inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosInventoryResponse
Submit inventory for the given merchant.
-
#link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountsLinkResponse
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
-
#list_account_statuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListAccountStatusesResponse
Lists the statuses of the sub-accounts in your Merchant Center account.
-
#list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListAccountTaxResponse
Lists the tax settings of the sub-accounts in your Merchant Center account.
-
#list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListAccountsResponse
Lists the sub-accounts in your Merchant Center account.
-
#list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListDatafeedStatusesResponse
Lists the statuses of the datafeeds in your Merchant Center account.
-
#list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListDatafeedsResponse
Lists the configurations for datafeeds in your Merchant Center account.
-
#list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsListResponse
Lists the LIA settings of the sub-accounts in your Merchant Center account.
-
#list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderreturnsListResponse
Lists order returns in your Merchant Center account.
-
#list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersListResponse
Lists the orders in your Merchant Center account.
-
#list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosListResponse
Lists the stores of the target merchant.
-
#list_product_statuses(merchant_id, destinations: nil, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListProductStatusesResponse
Lists the statuses of the products in your Merchant Center account.
-
#list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListProductsResponse
Lists the products in your Merchant Center account.
-
#list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsListResponse
Lists the shipping settings of the sub-accounts in your Merchant Center account.
-
#listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderreportsListDisbursementsResponse
Retrieves a report for disbursements from your Merchant Center account.
-
#listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsListPosDataProvidersResponse
Retrieves the list of POS data providers that have active settings for the all eiligible countries.
-
#listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderreportsListTransactionsResponse
Retrieves a list of transactions for a disbursement from your Merchant Center account.
-
#refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersRefundResponse
Deprecated, please use returnRefundLineItem instead.
-
#rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse
Rejects return on an line item.
-
#requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse
Requests access to a specified Google My Business account.
-
#requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsRequestInventoryVerificationResponse
Requests inventory validation for the specified country.
-
#return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersReturnLineItemResponse
Returns a line item.
-
#returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse
Returns and refunds a line item.
-
#sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosSaleResponse
Submit a sale event for the given merchant.
-
#setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse
Sets the inventory verification contract for the specified country.
-
#setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse
Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs.
-
#setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse
Sets the POS data provider for the specified country.
-
#shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersShipLineItemsResponse
Marks line item(s) as shipped.
-
#update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Account
Updates a Merchant Center account.
-
#update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountTax
Updates the tax settings of the account.
-
#update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Datafeed
Updates a datafeed configuration of your Merchant Center account.
-
#update_liasetting(merchant_id, account_id, lia_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiaSettings
Updates the LIA settings of the account.
-
#update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse
Updates the merchant order ID for a given order.
-
#update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersUpdateShipmentResponse
Updates a shipment's status, carrier, and/or tracking ID.
-
#update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingSettings
Updates the shipping settings of the account.
-
#updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse
Updates ship by and delivery by dates for a line item.
Constructor Details
#initialize ⇒ ShoppingContentService
Returns a new instance of ShoppingContentService.
45 46 47 48 49 50 |
# File 'lib/google/apis/content_v2/service.rb', line 45 def initialize super('https://shoppingcontent.googleapis.com/', 'content/v2/', client_name: 'google-apis-content_v2', client_version: Google::Apis::ContentV2::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'lib/google/apis/content_v2/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns 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.
43 44 45 |
# File 'lib/google/apis/content_v2/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersAcknowledgeResponse
Marks an order as acknowledged.
1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 |
# File 'lib/google/apis/content_v2/service.rb', line 1678 def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', ) command.request_representation = Google::Apis::ContentV2::OrdersAcknowledgeRequest::Representation command.request_object = orders_acknowledge_request_object command.response_representation = Google::Apis::ContentV2::OrdersAcknowledgeResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersAcknowledgeResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse
Sandbox only. Moves a test order from state "inProgress
" to state "
pendingShipment
".
1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 |
# File 'lib/google/apis/content_v2/service.rb', line 1715 def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', ) command.response_representation = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchAccountsResponse
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) accounts in a single request.
142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/google/apis/content_v2/service.rb', line 142 def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/batch', ) command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation command.request_object = batch_accounts_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::BatchAccountsResponse 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? execute_or_queue_command(command, &block) end |
#batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchAccountStatusesResponse
Retrieves multiple Merchant Center account statuses in a single request.
402 403 404 405 406 407 408 409 410 411 |
# File 'lib/google/apis/content_v2/service.rb', line 402 def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accountstatuses/batch', ) command.request_representation = Google::Apis::ContentV2::BatchAccountStatusesRequest::Representation command.request_object = batch_account_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::BatchAccountStatusesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchAccountTaxResponse
Retrieves and updates tax settings of multiple accounts in a single request.
516 517 518 519 520 521 522 523 524 525 526 |
# File 'lib/google/apis/content_v2/service.rb', line 516 def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounttax/batch', ) command.request_representation = Google::Apis::ContentV2::BatchAccountTaxRequest::Representation command.request_object = batch_account_tax_request_object command.response_representation = Google::Apis::ContentV2::BatchAccountTaxResponse::Representation command.response_class = Google::Apis::ContentV2::BatchAccountTaxResponse 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? execute_or_queue_command(command, &block) end |
#batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchDatafeedsResponse
Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
665 666 667 668 669 670 671 672 673 674 675 |
# File 'lib/google/apis/content_v2/service.rb', line 665 def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'datafeeds/batch', ) command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation command.request_object = batch_datafeeds_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation command.response_class = Google::Apis::ContentV2::BatchDatafeedsResponse 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? execute_or_queue_command(command, &block) end |
#batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchDatafeedStatusesResponse
Gets multiple Merchant Center datafeed statuses in a single request.
923 924 925 926 927 928 929 930 931 932 |
# File 'lib/google/apis/content_v2/service.rb', line 923 def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'datafeedstatuses/batch', ) command.request_representation = Google::Apis::ContentV2::BatchDatafeedStatusesRequest::Representation command.request_object = batch_datafeed_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchDatafeedStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::BatchDatafeedStatusesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchProductsResponse
Retrieves, inserts, and deletes multiple products in a single request.
2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 |
# File 'lib/google/apis/content_v2/service.rb', line 2775 def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'products/batch', ) command.request_representation = Google::Apis::ContentV2::BatchProductsRequest::Representation command.request_object = batch_products_request_object command.response_representation = Google::Apis::ContentV2::BatchProductsResponse::Representation command.response_class = Google::Apis::ContentV2::BatchProductsResponse 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? execute_or_queue_command(command, &block) end |
#batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::BatchProductStatusesResponse
Gets the statuses of multiple products in a single request.
2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 |
# File 'lib/google/apis/content_v2/service.rb', line 2962 def batch_product_status(batch_product_statuses_request_object = nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'productstatuses/batch', ) command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation command.request_object = batch_product_statuses_request_object command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::BatchProductStatusesResponse command.query['includeAttributes'] = include_attributes unless include_attributes.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCancelResponse
Cancels all line items in an order, making a full refund.
1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 |
# File 'lib/google/apis/content_v2/service.rb', line 1750 def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', ) command.request_representation = Google::Apis::ContentV2::OrdersCancelRequest::Representation command.request_object = orders_cancel_request_object command.response_representation = Google::Apis::ContentV2::OrdersCancelResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCancelResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCancelLineItemResponse
Cancels a line item, making a full refund.
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/google/apis/content_v2/service.rb', line 1787 def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', ) command.request_representation = Google::Apis::ContentV2::OrdersCancelLineItemRequest::Representation command.request_object = orders_cancel_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersCancelLineItemResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCancelLineItemResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerResponse
Sandbox only. Cancels a test order for customer-initiated cancellation.
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 |
# File 'lib/google/apis/content_v2/service.rb', line 1824 def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', ) command.request_representation = Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerRequest::Representation command.request_object = orders_cancel_test_order_by_customer_request_object command.response_representation = Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCancelTestOrderByCustomerResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountsClaimWebsiteResponse
Claims the website of a Merchant Center sub-account.
107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/google/apis/content_v2/service.rb', line 107 def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', ) command.response_representation = Google::Apis::ContentV2::AccountsClaimWebsiteResponse::Representation command.response_class = Google::Apis::ContentV2::AccountsClaimWebsiteResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['overwrite'] = overwrite unless overwrite.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCreateTestOrderResponse
Sandbox only. Creates a test order.
1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 |
# File 'lib/google/apis/content_v2/service.rb', line 1859 def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/testorders', ) command.request_representation = Google::Apis::ContentV2::OrdersCreateTestOrderRequest::Representation command.request_object = orders_create_test_order_request_object command.response_representation = Google::Apis::ContentV2::OrdersCreateTestOrderResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCreateTestOrderResponse 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? execute_or_queue_command(command, &block) end |
#createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 |
# File 'lib/google/apis/content_v2/service.rb', line 1425 def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', ) command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceRequest::Representation command.request_object = orderinvoices_create_charge_invoice_request_object command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse::Representation command.response_class = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse
Creates a refund invoice for one or more shipment groups, and triggers a
refund for orderinvoice enabled orders. This can only be used for line items
that have previously been charged using createChargeInvoice
. All amounts (
except for the summary) are incremental with respect to the previous invoice.
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 |
# File 'lib/google/apis/content_v2/service.rb', line 1465 def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', ) command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest::Representation command.request_object = orderinvoices_create_refund_invoice_request_object command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse::Representation command.response_class = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCreateTestReturnResponse
Sandbox only. Creates a test return.
1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 |
# File 'lib/google/apis/content_v2/service.rb', line 1895 def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', ) command.request_representation = Google::Apis::ContentV2::OrdersCreateTestReturnRequest::Representation command.request_object = orders_create_test_return_request_object command.response_representation = Google::Apis::ContentV2::OrdersCreateTestReturnResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCreateTestReturnResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersCustomBatchResponse
Retrieves or modifies multiple orders in a single request.
1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 |
# File 'lib/google/apis/content_v2/service.rb', line 1927 def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'orders/batch', ) command.request_representation = Google::Apis::ContentV2::OrdersCustomBatchRequest::Representation command.request_object = orders_custom_batch_request_object command.response_representation = Google::Apis::ContentV2::OrdersCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#custombatch_liasetting(liasettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsCustomBatchResponse
Retrieves and/or updates the LIA settings of multiple accounts in a single request.
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 |
# File 'lib/google/apis/content_v2/service.rb', line 1040 def custombatch_liasetting(liasettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'liasettings/batch', ) command.request_representation = Google::Apis::ContentV2::LiasettingsCustomBatchRequest::Representation command.request_object = liasettings_custom_batch_request_object command.response_representation = Google::Apis::ContentV2::LiasettingsCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsCustomBatchResponse 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? execute_or_queue_command(command, &block) end |
#custombatch_po(pos_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosCustomBatchResponse
Batches multiple POS-related calls in a single request.
2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 |
# File 'lib/google/apis/content_v2/service.rb', line 2514 def custombatch_po(pos_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'pos/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsCustomBatchResponse
Retrieves and updates the shipping settings of multiple accounts in a single request.
3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 |
# File 'lib/google/apis/content_v2/service.rb', line 3089 def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'shippingsettings/batch', ) 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? execute_or_queue_command(command, &block) end |
#delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a Merchant Center sub-account.
182 183 184 185 186 187 188 189 190 191 |
# File 'lib/google/apis/content_v2/service.rb', line 182 def delete_account(merchant_id, account_id, dry_run: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', ) 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['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a datafeed configuration from your Merchant Center account.
703 704 705 706 707 708 709 710 711 |
# File 'lib/google/apis/content_v2/service.rb', line 703 def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_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? execute_or_queue_command(command, &block) end |
#delete_po(merchant_id, target_merchant_id, store_code, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a store for the given merchant.
2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 |
# File 'lib/google/apis/content_v2/service.rb', line 2553 def delete_po(merchant_id, target_merchant_id, store_code, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', ) 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? execute_or_queue_command(command, &block) end |
#delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a product from your Merchant Center account.
2813 2814 2815 2816 2817 2818 2819 2820 2821 |
# File 'lib/google/apis/content_v2/service.rb', line 2813 def delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/products/{productId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_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? execute_or_queue_command(command, &block) end |
#fetchnow_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::DatafeedsFetchNowResponse
Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.
741 742 743 744 745 746 747 748 749 750 751 |
# File 'lib/google/apis/content_v2/service.rb', line 741 def fetchnow_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', ) command.response_representation = Google::Apis::ContentV2::DatafeedsFetchNowResponse::Representation command.response_class = Google::Apis::ContentV2::DatafeedsFetchNowResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_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? execute_or_queue_command(command, &block) end |
#get_account(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Account
Retrieves a Merchant Center account.
217 218 219 220 221 222 223 224 225 226 |
# File 'lib/google/apis/content_v2/service.rb', line 217 def get_account(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', ) command.response_representation = Google::Apis::ContentV2::Account::Representation command.response_class = Google::Apis::ContentV2::Account 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? execute_or_queue_command(command, &block) end |
#get_account_authinfo(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountsAuthInfoResponse
Returns information about the authenticated user.
70 71 72 73 74 75 76 77 |
# File 'lib/google/apis/content_v2/service.rb', line 70 def get_account_authinfo(fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/authinfo', ) command.response_representation = Google::Apis::ContentV2::AccountsAuthInfoResponse::Representation command.response_class = Google::Apis::ContentV2::AccountsAuthInfoResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_account_status(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountStatus
Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.
441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/google/apis/content_v2/service.rb', line 441 def get_account_status(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', ) command.response_representation = Google::Apis::ContentV2::AccountStatus::Representation command.response_class = Google::Apis::ContentV2::AccountStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['destinations'] = destinations unless destinations.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountTax
Retrieves the tax settings of the account.
552 553 554 555 556 557 558 559 560 561 |
# File 'lib/google/apis/content_v2/service.rb', line 552 def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', ) command.response_representation = Google::Apis::ContentV2::AccountTax::Representation command.response_class = Google::Apis::ContentV2::AccountTax 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? execute_or_queue_command(command, &block) end |
#get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Datafeed
Retrieves a datafeed configuration from your Merchant Center account.
776 777 778 779 780 781 782 783 784 785 |
# File 'lib/google/apis/content_v2/service.rb', line 776 def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', ) command.response_representation = Google::Apis::ContentV2::Datafeed::Representation command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::DatafeedStatus
Retrieves the status of a datafeed from your Merchant Center account.
967 968 969 970 971 972 973 974 975 976 977 978 |
# File 'lib/google/apis/content_v2/service.rb', line 967 def get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', ) command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation command.response_class = Google::Apis::ContentV2::DatafeedStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? command.query['country'] = country unless country.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiaSettings
Retrieves the LIA settings of the account.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 |
# File 'lib/google/apis/content_v2/service.rb', line 1076 def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', ) command.response_representation = Google::Apis::ContentV2::LiaSettings::Representation command.response_class = Google::Apis::ContentV2::LiaSettings 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? execute_or_queue_command(command, &block) end |
#get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Order
Retrieves an order from your Merchant Center account.
1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 |
# File 'lib/google/apis/content_v2/service.rb', line 1961 def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orders/{orderId}', ) command.response_representation = Google::Apis::ContentV2::Order::Representation command.response_class = Google::Apis::ContentV2::Order command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse
Retrieves an order using merchant order ID.
1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 |
# File 'lib/google/apis/content_v2/service.rb', line 1995 def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', ) command.response_representation = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::MerchantOrderReturn
Retrieves an order return from your Merchant Center account.
1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/google/apis/content_v2/service.rb', line 1593 def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', ) command.response_representation = Google::Apis::ContentV2::MerchantOrderReturn::Representation command.response_class = Google::Apis::ContentV2::MerchantOrderReturn command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnId'] = return_id unless return_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosStore
Retrieves information about the given store.
2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 |
# File 'lib/google/apis/content_v2/service.rb', line 2588 def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', ) 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? execute_or_queue_command(command, &block) end |
#get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Product
Retrieves a product from your Merchant Center account.
2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 |
# File 'lib/google/apis/content_v2/service.rb', line 2846 def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/products/{productId}', ) command.response_representation = Google::Apis::ContentV2::Product::Representation command.response_class = Google::Apis::ContentV2::Product command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_product_status(merchant_id, product_id, destinations: nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ProductStatus
Gets the status of a product from your Merchant Center account.
3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 |
# File 'lib/google/apis/content_v2/service.rb', line 3003 def get_product_status(merchant_id, product_id, destinations: nil, include_attributes: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', ) command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation command.response_class = Google::Apis::ContentV2::ProductStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['destinations'] = destinations unless destinations.nil? command.query['includeAttributes'] = include_attributes unless include_attributes.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingSettings
Retrieves the shipping settings of the account.
3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 |
# File 'lib/google/apis/content_v2/service.rb', line 3125 def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', ) 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? execute_or_queue_command(command, &block) end |
#get_test_order_template(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse
Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'lib/google/apis/content_v2/service.rb', line 2032 def get_test_order_template(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', ) command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['templateName'] = template_name unless template_name.nil? command.query['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsGetAccessibleGmbAccountsResponse
Retrieves the list of accessible Google My Business accounts.
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 |
# File 'lib/google/apis/content_v2/service.rb', line 1112 def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', ) command.response_representation = Google::Apis::ContentV2::LiasettingsGetAccessibleGmbAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsGetAccessibleGmbAccountsResponse 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? execute_or_queue_command(command, &block) end |
#getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse
Retrieves supported carriers and carrier services for an account.
3156 3157 3158 3159 3160 3161 3162 3163 3164 |
# File 'lib/google/apis/content_v2/service.rb', line 3156 def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/supportedCarriers', ) 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? execute_or_queue_command(command, &block) end |
#getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse
Retrieves supported holidays for an account.
3186 3187 3188 3189 3190 3191 3192 3193 3194 |
# File 'lib/google/apis/content_v2/service.rb', line 3186 def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/supportedHolidays', ) command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse::Representation command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse 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? execute_or_queue_command(command, &block) end |
#getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsGetSupportedPickupServicesResponse
Retrieves supported pickup services for an account.
3216 3217 3218 3219 3220 3221 3222 3223 3224 |
# File 'lib/google/apis/content_v2/service.rb', line 3216 def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/supportedPickupServices', ) command.response_representation = Google::Apis::ContentV2::ShippingsettingsGetSupportedPickupServicesResponse::Representation command.response_class = Google::Apis::ContentV2::ShippingsettingsGetSupportedPickupServicesResponse 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? execute_or_queue_command(command, &block) end |
#insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Account
Creates a Merchant Center sub-account.
252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/google/apis/content_v2/service.rb', line 252 def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts', ) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation command.response_class = Google::Apis::ContentV2::Account command.params['merchantId'] = merchant_id unless 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? execute_or_queue_command(command, &block) end |
#insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Datafeed
Registers a datafeed configuration with your Merchant Center account.
812 813 814 815 816 817 818 819 820 821 822 823 |
# File 'lib/google/apis/content_v2/service.rb', line 812 def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/datafeeds', ) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless 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? execute_or_queue_command(command, &block) end |
#insert_po(merchant_id, target_merchant_id, pos_store_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosStore
Creates a store for the given merchant.
2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 |
# File 'lib/google/apis/content_v2/service.rb', line 2626 def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', ) 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? execute_or_queue_command(command, &block) end |
#insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Product
Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.
2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 |
# File 'lib/google/apis/content_v2/service.rb', line 2884 def insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/products', ) command.request_representation = Google::Apis::ContentV2::Product::Representation command.request_object = product_object command.response_representation = Google::Apis::ContentV2::Product::Representation command.response_class = Google::Apis::ContentV2::Product command.params['merchantId'] = merchant_id unless 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? execute_or_queue_command(command, &block) end |
#instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse
Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store) . Note: We recommend calling the returnrefundlineitem method to refund in- store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.
2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 |
# File 'lib/google/apis/content_v2/service.rb', line 2075 def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', ) command.request_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest::Representation command.request_object = orders_in_store_refund_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosInventoryResponse
Submit inventory for the given merchant.
2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/google/apis/content_v2/service.rb', line 2666 def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', ) 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? execute_or_queue_command(command, &block) end |
#link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountsLinkResponse
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/google/apis/content_v2/service.rb', line 291 def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', ) command.request_representation = Google::Apis::ContentV2::AccountsLinkRequest::Representation command.request_object = accounts_link_request_object command.response_representation = Google::Apis::ContentV2::AccountsLinkResponse::Representation command.response_class = Google::Apis::ContentV2::AccountsLinkResponse 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? execute_or_queue_command(command, &block) end |
#list_account_statuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListAccountStatusesResponse
Lists the statuses of the sub-accounts in your Merchant Center account.
481 482 483 484 485 486 487 488 489 490 491 492 |
# File 'lib/google/apis/content_v2/service.rb', line 481 def list_account_statuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accountstatuses', ) command.response_representation = Google::Apis::ContentV2::ListAccountStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['destinations'] = destinations unless destinations.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? execute_or_queue_command(command, &block) end |
#list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListAccountTaxResponse
Lists the tax settings of the sub-accounts in your Merchant Center account.
587 588 589 590 591 592 593 594 595 596 597 |
# File 'lib/google/apis/content_v2/service.rb', line 587 def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounttax', ) command.response_representation = Google::Apis::ContentV2::ListAccountTaxResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountTaxResponse 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? execute_or_queue_command(command, &block) end |
#list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListAccountsResponse
Lists the sub-accounts in your Merchant Center account.
328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/google/apis/content_v2/service.rb', line 328 def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts', ) command.response_representation = Google::Apis::ContentV2::ListAccountsResponse::Representation command.response_class = Google::Apis::ContentV2::ListAccountsResponse 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? execute_or_queue_command(command, &block) end |
#list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListDatafeedStatusesResponse
Lists the statuses of the datafeeds in your Merchant Center account.
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 |
# File 'lib/google/apis/content_v2/service.rb', line 1005 def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeedstatuses', ) command.response_representation = Google::Apis::ContentV2::ListDatafeedStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListDatafeedStatusesResponse 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? execute_or_queue_command(command, &block) end |
#list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListDatafeedsResponse
Lists the configurations for datafeeds in your Merchant Center account.
850 851 852 853 854 855 856 857 858 859 860 |
# File 'lib/google/apis/content_v2/service.rb', line 850 def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeeds', ) command.response_representation = Google::Apis::ContentV2::ListDatafeedsResponse::Representation command.response_class = Google::Apis::ContentV2::ListDatafeedsResponse 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? execute_or_queue_command(command, &block) end |
#list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsListResponse
Lists the LIA settings of the sub-accounts in your Merchant Center account.
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/google/apis/content_v2/service.rb', line 1147 def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/liasettings', ) command.response_representation = Google::Apis::ContentV2::LiasettingsListResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsListResponse 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? execute_or_queue_command(command, &block) end |
#list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderreturnsListResponse
Lists order returns in your Merchant Center account.
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 |
# File 'lib/google/apis/content_v2/service.rb', line 1639 def list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreturns', ) command.response_representation = Google::Apis::ContentV2::OrderreturnsListResponse::Representation command.response_class = Google::Apis::ContentV2::OrderreturnsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['createdEndDate'] = created_end_date unless created_end_date.nil? command.query['createdStartDate'] = created_start_date unless created_start_date.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.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? execute_or_queue_command(command, &block) end |
#list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersListResponse
Lists the orders in your Merchant Center account.
2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 |
# File 'lib/google/apis/content_v2/service.rb', line 2133 def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orders', ) command.response_representation = Google::Apis::ContentV2::OrdersListResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['acknowledged'] = acknowledged unless acknowledged.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil? command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil? command.query['statuses'] = statuses unless statuses.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosListResponse
Lists the stores of the target merchant.
2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 |
# File 'lib/google/apis/content_v2/service.rb', line 2702 def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', ) 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? execute_or_queue_command(command, &block) end |
#list_product_statuses(merchant_id, destinations: nil, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListProductStatusesResponse
Lists the statuses of the products in your Merchant Center account.
3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 |
# File 'lib/google/apis/content_v2/service.rb', line 3051 def list_product_statuses(merchant_id, destinations: nil, include_attributes: nil, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/productstatuses', ) command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['destinations'] = destinations unless destinations.nil? command.query['includeAttributes'] = include_attributes unless include_attributes.nil? command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.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? execute_or_queue_command(command, &block) end |
#list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ListProductsResponse
Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.
2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 |
# File 'lib/google/apis/content_v2/service.rb', line 2927 def list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/products', ) command.response_representation = Google::Apis::ContentV2::ListProductsResponse::Representation command.response_class = Google::Apis::ContentV2::ListProductsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.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? execute_or_queue_command(command, &block) end |
#list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingsettingsListResponse
Lists the shipping settings of the sub-accounts in your Merchant Center account.
3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 |
# File 'lib/google/apis/content_v2/service.rb', line 3252 def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/shippingsettings', ) 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? execute_or_queue_command(command, &block) end |
#listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderreportsListDisbursementsResponse
Retrieves a report for disbursements from your Merchant Center account.
1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 |
# File 'lib/google/apis/content_v2/service.rb', line 1508 def listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', ) command.response_representation = Google::Apis::ContentV2::OrderreportsListDisbursementsResponse::Representation command.response_class = Google::Apis::ContentV2::OrderreportsListDisbursementsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['disbursementEndDate'] = disbursement_end_date unless disbursement_end_date.nil? command.query['disbursementStartDate'] = disbursement_start_date unless disbursement_start_date.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? execute_or_queue_command(command, &block) end |
#listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsListPosDataProvidersResponse
Retrieves the list of POS data providers that have active settings for the all eiligible countries.
1178 1179 1180 1181 1182 1183 1184 1185 |
# File 'lib/google/apis/content_v2/service.rb', line 1178 def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'liasettings/posdataproviders', ) command.response_representation = Google::Apis::ContentV2::LiasettingsListPosDataProvidersResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsListPosDataProvidersResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrderreportsListTransactionsResponse
Retrieves a list of transactions for a disbursement from your Merchant Center account.
1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 |
# File 'lib/google/apis/content_v2/service.rb', line 1555 def listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', ) command.response_representation = Google::Apis::ContentV2::OrderreportsListTransactionsResponse::Representation command.response_class = Google::Apis::ContentV2::OrderreportsListTransactionsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['disbursementId'] = disbursement_id unless disbursement_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['transactionEndDate'] = transaction_end_date unless transaction_end_date.nil? command.query['transactionStartDate'] = transaction_start_date unless transaction_start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersRefundResponse
Deprecated, please use returnRefundLineItem instead.
2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 |
# File 'lib/google/apis/content_v2/service.rb', line 2174 def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refund', ) command.request_representation = Google::Apis::ContentV2::OrdersRefundRequest::Representation command.request_object = orders_refund_request_object command.response_representation = Google::Apis::ContentV2::OrdersRefundResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersRefundResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse
Rejects return on an line item.
2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 |
# File 'lib/google/apis/content_v2/service.rb', line 2211 def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', ) command.request_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest::Representation command.request_object = orders_reject_return_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse
Requests access to a specified Google My Business account.
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 |
# File 'lib/google/apis/content_v2/service.rb', line 1213 def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', ) command.response_representation = Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsRequestGmbAccessResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['gmbEmail'] = gmb_email unless gmb_email.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsRequestInventoryVerificationResponse
Requests inventory validation for the specified country.
1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/google/apis/content_v2/service.rb', line 1252 def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', ) command.response_representation = Google::Apis::ContentV2::LiasettingsRequestInventoryVerificationResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsRequestInventoryVerificationResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.params['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersReturnLineItemResponse
Returns a line item.
2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 |
# File 'lib/google/apis/content_v2/service.rb', line 2248 def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', ) command.request_representation = Google::Apis::ContentV2::OrdersReturnLineItemRequest::Representation command.request_object = orders_return_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersReturnLineItemResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersReturnLineItemResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse
Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.
2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 |
# File 'lib/google/apis/content_v2/service.rb', line 2290 def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', ) command.request_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest::Representation command.request_object = orders_return_refund_line_item_request_object command.response_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::PosSaleResponse
Submit a sale event for the given merchant.
2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 |
# File 'lib/google/apis/content_v2/service.rb', line 2739 def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', ) 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? execute_or_queue_command(command, &block) end |
#setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse
Sets the inventory verification contract for the specified country.
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/google/apis/content_v2/service.rb', line 1297 def setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', ) command.response_representation = Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsSetInventoryVerificationContactResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['contactEmail'] = contact_email unless contact_email.nil? command.query['contactName'] = contact_name unless contact_name.nil? command.query['country'] = country unless country.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse
Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.
2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 |
# File 'lib/google/apis/content_v2/service.rb', line 2331 def (merchant_id, order_id, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', ) command.request_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataRequest::Representation command.request_object = command.response_representation = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersSetLineItemMetadataResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse
Sets the POS data provider for the specified country.
1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 |
# File 'lib/google/apis/content_v2/service.rb', line 1343 def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', ) command.response_representation = Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse::Representation command.response_class = Google::Apis::ContentV2::LiasettingsSetPosDataProviderResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['country'] = country unless country.nil? command.query['posDataProviderId'] = pos_data_provider_id unless pos_data_provider_id.nil? command.query['posExternalAccountId'] = pos_external_account_id unless pos_external_account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersShipLineItemsResponse
Marks line item(s) as shipped.
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 |
# File 'lib/google/apis/content_v2/service.rb', line 2368 def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', ) command.request_representation = Google::Apis::ContentV2::OrdersShipLineItemsRequest::Representation command.request_object = orders_ship_line_items_request_object command.response_representation = Google::Apis::ContentV2::OrdersShipLineItemsResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersShipLineItemsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Account
Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.
369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/google/apis/content_v2/service.rb', line 369 def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', ) command.request_representation = Google::Apis::ContentV2::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2::Account::Representation command.response_class = Google::Apis::ContentV2::Account 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? execute_or_queue_command(command, &block) end |
#update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::AccountTax
Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.
628 629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/google/apis/content_v2/service.rb', line 628 def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', ) command.request_representation = Google::Apis::ContentV2::AccountTax::Representation command.request_object = account_tax_object command.response_representation = Google::Apis::ContentV2::AccountTax::Representation command.response_class = Google::Apis::ContentV2::AccountTax 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? execute_or_queue_command(command, &block) end |
#update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::Datafeed
Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.
890 891 892 893 894 895 896 897 898 899 900 901 902 |
# File 'lib/google/apis/content_v2/service.rb', line 890 def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', ) command.request_representation = Google::Apis::ContentV2::Datafeed::Representation command.request_object = datafeed_object command.response_representation = Google::Apis::ContentV2::Datafeed::Representation command.response_class = Google::Apis::ContentV2::Datafeed command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_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? execute_or_queue_command(command, &block) end |
#update_liasetting(merchant_id, account_id, lia_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::LiaSettings
Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.
1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 |
# File 'lib/google/apis/content_v2/service.rb', line 1386 def update_liasetting(merchant_id, account_id, lia_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', ) command.request_representation = Google::Apis::ContentV2::LiaSettings::Representation command.request_object = lia_settings_object command.response_representation = Google::Apis::ContentV2::LiaSettings::Representation command.response_class = Google::Apis::ContentV2::LiaSettings 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? execute_or_queue_command(command, &block) end |
#update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse
Updates the merchant order ID for a given order.
2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 |
# File 'lib/google/apis/content_v2/service.rb', line 2442 def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', ) command.request_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest::Representation command.request_object = orders_update_merchant_order_id_request_object command.response_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersUpdateShipmentResponse
Updates a shipment's status, carrier, and/or tracking ID.
2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 |
# File 'lib/google/apis/content_v2/service.rb', line 2479 def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', ) command.request_representation = Google::Apis::ContentV2::OrdersUpdateShipmentRequest::Representation command.request_object = orders_update_shipment_request_object command.response_representation = Google::Apis::ContentV2::OrdersUpdateShipmentResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersUpdateShipmentResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::ShippingSettings
Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.
3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 |
# File 'lib/google/apis/content_v2/service.rb', line 3293 def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', ) 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? execute_or_queue_command(command, &block) end |
#updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse
Updates ship by and delivery by dates for a line item.
2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 |
# File 'lib/google/apis/content_v2/service.rb', line 2405 def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', ) command.request_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsRequest::Representation command.request_object = orders_update_line_item_shipping_details_request_object command.response_representation = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse::Representation command.response_class = Google::Apis::ContentV2::OrdersUpdateLineItemShippingDetailsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['orderId'] = order_id unless order_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |